Re: [PATCH 2/3] x86: add guest_late_init hook to hypervisor_x86 structure

2017-11-08 Thread Juergen Gross
On 08/11/17 10:40, Ingo Molnar wrote: > > * Juergen Gross wrote: > >>> Plus add a default empty function (which hypervisors can override). This >>> avoids >>> all the hidden conditions and wrappery. >> >> Hmm, x86_hyper is just a pointer being NULL on bare metal. So we would >> have to add a p

[tip:sched/core] sched/core: Optimize sched_feat() for !SCHED_DEBUG builds

2017-11-08 Thread tip-bot for Patrick Bellasi
Commit-ID: 692ee9a79c14c9f707eeb03754a26b9427c0e005 Gitweb: https://git.kernel.org/tip/692ee9a79c14c9f707eeb03754a26b9427c0e005 Author: Patrick Bellasi AuthorDate: Tue, 7 Nov 2017 16:06:58 + Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 10:17:29 +0100 sched/core: Optimize sche

[tip:x86/urgent] x86/unwind: Disable KASAN checking in the ORC unwinder

2017-11-08 Thread tip-bot for Josh Poimboeuf
Commit-ID: 881125bfe65bb772f34f4fcb04a35dfe117e186a Gitweb: https://git.kernel.org/tip/881125bfe65bb772f34f4fcb04a35dfe117e186a Author: Josh Poimboeuf AuthorDate: Tue, 7 Nov 2017 20:19:34 -0600 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 10:21:49 +0100 x86/unwind: Disable KASAN

Re: [PATCH] ARM: dts: add phy-reset property for rk3066a-rayeager emac

2017-11-08 Thread Chris Zhong
Hi Florian Fainelli On 2017年11月08日 02:26, Florian Fainelli wrote: On 11/07/2017 01:51 AM, Chris Zhong wrote: On 2017年11月07日 15:54, Vladimir Zapolskiy wrote: Hello Chris, On 11/07/2017 04:49 AM, Chris Zhong wrote: The ethernet phy of rk3066a-rayeager has a reset pin, it controlled by GPIO1_

[PATCH v2] ARM: dts: add reset property for rk3066a-rayeager emac phy

2017-11-08 Thread Chris Zhong
The ethernet phy of rk3066a-rayeager has a reset pin, it controlled by GPIO1_D6, this pin should be pull down then pull up to reset the phy. Add a reset-gpios property in phy0, make the phy can be reset when emac power on. Signed-off-by: Chris Zhong --- Changes in v2: use a generic property for

Re: [PATCH 23/31] nds32: Device tree support

2017-11-08 Thread Arnd Bergmann
On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: > From: Greentime Hu > > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu > --- > arch/nds32/boot/dts/Makefile |8 ++ > arch/nds32/boot/dts/ae3xx.dts | 55 > arch/nds32/boot/dts/ag101

Re: [PATCH v11 09/12] x86: Enable User-Mode Instruction Prevention at runtime

2017-11-08 Thread Ingo Molnar
* Ricardo Neri wrote: > User-Mode Instruction Prevention (UMIP) is enabled by setting/clearing a > bit in %cr4. > > It makes sense to enable UMIP at some point while booting, before user > spaces come up. Like SMAP and SMEP, is not critical to have it enabled > very early during boot. This is b

Re: [PATCH 2/3] x86: add guest_late_init hook to hypervisor_x86 structure

2017-11-08 Thread Paolo Bonzini
On 08/11/2017 10:07, Juergen Gross wrote: > Add a new guest_late_init hook to the hypervisor_x86 structure. It > will replace the current kvm_guest_init() call which is changed to > make use of the new hook. > > Signed-off-by: Juergen Gross The trivial KVM changes are of course Acked-by: Paolo

Re: [PATCH 0/2] Clean up for tsc_init()

2017-11-08 Thread Dou Liyang
Hi Ingo, At 11/08/2017 05:42 PM, Ingo Molnar wrote: * Dou Liyang wrote: cyc2ns_init() and detect_art() which is invoked in tsc_init(), are only called during boot time. So they should be a "__init" function. Dou Liyang (2): x86/tsc: Mark cyc2ns_init() __init x86/tsc: Mark detect_art() _

Re: [PATCH 24/31] nds32: Miscellaneous header files

2017-11-08 Thread Arnd Bergmann
On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: > + > +static inline void __delay(unsigned long loops) > +{ > + __asm__ __volatile__(".align 2\n" > +"1:\n" > +"\taddi\t%0, %0, -1\n" > +"\tbgtz\t%0, 1b\n"

Re: [PATCH 2/3] x86: add guest_late_init hook to hypervisor_x86 structure

2017-11-08 Thread Ingo Molnar
* Juergen Gross wrote: > On 08/11/17 10:40, Ingo Molnar wrote: > > > > * Juergen Gross wrote: > > > >>> Plus add a default empty function (which hypervisors can override). This > >>> avoids > >>> all the hidden conditions and wrappery. > >> > >> Hmm, x86_hyper is just a pointer being NULL o

Re: [GIT PULL] lockdep: Add lightweight IRQs disabled/enabled check v2

2017-11-08 Thread Thomas Gleixner
On Mon, 6 Nov 2017, Frederic Weisbecker wrote: > Ingo, > > Please pull the lockdep/irq-v2 branch that can be found at: > > git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git > lockdep/irq-v2 Acked-by: Thomas Gleixner

[PATCH v2] nvme: compare NQN string with right size

2017-11-08 Thread Javier González
From: Javier González Copy subnqns using NVMF_NQN_SIZE as it is < 256 Changes since V1: - Fix commit message to indicate that it is a copy and not a comparison. Signed-off-by: Javier González Reviewed-by: Christoph Hellwig --- drivers/nvme/host/core.c | 2 +- 1 file changed, 1 insertion(+)

[PATCH v2] nvme: fix eui_show() print format

2017-11-08 Thread Javier González
From: Javier González Fix print formatting, but keep the original output to prevent user breakage as suggested by Joe Perches. Change since v1: - Maintain the original output format printing spaces instead of dashes Signed-off-by: Javier González Reviewed-by: Keith Busch --- drivers/nvme/h

[RFC PATCH -tip 1/6] net: tcp: Add trace events for TCP congestion window tracing

2017-11-08 Thread Masami Hiramatsu
This adds an event to trace TCP stat variables with slightly intrusive trace-event. This uses ftrace/perf event log buffer to trace those state, no needs to prepare own ring-buffer, nor custom user apps. User can use ftrace to trace this event as below; # cd /sys/kernel/debug/tracing # echo 1

Re: [PATCH v11 00/12] x86: Enable User-Mode Instruction Prevention

2017-11-08 Thread Thomas Gleixner
On Sun, 5 Nov 2017, Ricardo Neri wrote: > Changes since V10: > *Patch 1 ("x86/insn-eval: Extend get_seg_base_addr() to also obtain segment > limit") of v10 has been dropped has it has been merged in the tip tree. > *Removed unnecessary wrap-around of function calls to enforce the 80 > chars-per-l

[RFC PATCH -tip 0/6] net: tcp: sctp: dccp: Replace jprobe usage with trace events

2017-11-08 Thread Masami Hiramatsu
Hi, This series introduce new trace events which allows user to trace network congestion window etc. via ftrace or perftools. And remove jprobe usages (tcp_probe/dccp_probe/sctp_probe). So this series removes all register_jprobe users from the kernel tree. So following example in https://wiki.li

[PATCH RESEND] dmaengine: ti-dma-crossbar: Correct am335x/am43xx mux value type

2017-11-08 Thread Peter Ujfalusi
The used 0x1f mask is only valid for am335x family of SoC, different family using this type of crossbar might have different number of electable events. In case of am43xx family 0x3f mask should have been used for example. Instead of trying to handle each family's mask, just use u8 type to store t

[RFC PATCH -tip 2/6] net: tcp: Remove TCP probe module

2017-11-08 Thread Masami Hiramatsu
Remove TCP probe module since jprobe has been deprecated. That function is now replaced by tcp/tcp_probe trace-event. You can use it via ftrace or perftools. Signed-off-by: Masami Hiramatsu --- net/Kconfig | 17 --- net/ipv4/Makefile|1 net/ipv4/tcp_probe.c | 301 ---

[RFC PATCH -tip 3/6] net: sctp: Add SCTP ACK tracking trace event

2017-11-08 Thread Masami Hiramatsu
Add SCTP ACK tracking trace event to trace the changes of SCTP association state in response to incoming packets. It is used for debugging SCTP congestion control algorithms, and will replace sctp_probe module. Note that this event a bit tricky. Since this consists of 2 events (sctp_probe and sctp

[RFC PATCH -tip 4/6] net: sctp: Remove debug SCTP probe module

2017-11-08 Thread Masami Hiramatsu
Remove SCTP probe module since jprobe has been deprecated. That function is now replaced by sctp/sctp_probe and sctp/sctp_probe_path trace-events. You can use it via ftrace or perftools. Signed-off-by: Masami Hiramatsu --- net/sctp/Kconfig | 12 --- net/sctp/Makefile |3 - net/sctp/probe.

[RFC PATCH -tip 5/6] net: dccp: Add DCCP sendmsg trace event

2017-11-08 Thread Masami Hiramatsu
Add DCCP sendmsg trace event (dccp/dccp_probe) for replacing dccpprobe. User can trace this event via ftrace or perftools. Signed-off-by: Masami Hiramatsu --- net/dccp/proto.c |5 +++ net/dccp/trace.h | 105 ++ 2 files changed, 110 inserti

Re: [PATCH 25/31] nds32: defconfig

2017-11-08 Thread Arnd Bergmann
On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: > From: Greentime Hu > > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu > --- > arch/nds32/configs/ae3xx_defconfig | 110 > +++ > arch/nds32/configs/ag101p_defconfig | 109 +++

[RFC PATCH -tip 6/6] net: dccp: Remove dccpprobe module

2017-11-08 Thread Masami Hiramatsu
Remove DCCP probe module since jprobe has been deprecated. That function is now replaced by dccp/dccp_probe trace-event. You can use it via ftrace or perftools. Signed-off-by: Masami Hiramatsu --- net/dccp/Kconfig | 17 net/dccp/Makefile |2 - net/dccp/probe.c | 203 ---

Re: [tip:sched/core] sched/core: Optimize sched_feat() for !SCHED_DEBUG builds

2017-11-08 Thread Ingo Molnar
* tip-bot for Patrick Bellasi wrote: > Commit-ID: 692ee9a79c14c9f707eeb03754a26b9427c0e005 > Gitweb: > https://git.kernel.org/tip/692ee9a79c14c9f707eeb03754a26b9427c0e005 > Author: Patrick Bellasi > AuthorDate: Tue, 7 Nov 2017 16:06:58 + > Committer: Ingo Molnar > CommitDate: We

Re: [PATCH v2] nvme: fix eui_show() print format

2017-11-08 Thread Sagi Grimberg
Reviewed-by: Sagi Grimberg

Re: [PATCH v2] nvme: compare NQN string with right size

2017-11-08 Thread Sagi Grimberg
Reviewed-by: Sagi Grimberg

RE: [PATCH 11/31] nds32: Atomic operations

2017-11-08 Thread vincentc
> -Original Message- > From: arndbergm...@gmail.com [mailto:arndbergm...@gmail.com] On > Behalf Of Arnd Bergmann > Sent: Wednesday, November 08, 2017 4:54 PM > To: Greentime Hu > Cc: Greentime Ying-Han Hu(胡英漢); Linux Kernel Mailing List; linux-arch; > Thomas Gleixner; Jason Cooper; Marc Zyn

[PATCH v2] x86/tsc: Mark cyc2ns_init() and detect_art() __init

2017-11-08 Thread Dou Liyang
These two functions are only called by tsc_init(), which is an __init function during boot time, so mark them __init as well. Signed-off-by: Dou Liyang Reviewed-by: Ingo Molnar --- changelog V1 --> V2: Put two similar and slight patches together suggested by Ingo. --- arch/x86/kernel/tsc.c |

Is there a race between __mod_timer() and del_timer()?

2017-11-08 Thread David Howells
Is there a race between the optimisation for networking code in __mod_timer() and del_timer() - or, at least, a race that matters? Consider: CPU A CPU B === === [timer X is active] ==

Re: [PATCH 26/31] nds32: Build infrastructure

2017-11-08 Thread Arnd Bergmann
On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: > diff --git a/arch/nds32/Kconfig b/arch/nds32/Kconfig > new file mode 100644 > index 000..112f470 > --- /dev/null > +++ b/arch/nds32/Kconfig > @@ -0,0 +1,107 @@ > +# > +# For a description of the syntax of this configuration file, > +# see

Re: [PATCH v2 00/15] ima: digest list feature

2017-11-08 Thread Roberto Sassu
On 11/7/2017 7:03 PM, Safford, David (GE Global Research, US) wrote: -Original Message- From: linux-integrity-ow...@vger.kernel.org [mailto:linux-integrity- ow...@vger.kernel.org] On Behalf Of Roberto Sassu Sent: Tuesday, November 07, 2017 5:37 AM To: linux-integr...@vger.kernel.org Cc: l

Re: [PATCH 5/7] scripts/leaking_addresses: add emailing results

2017-11-08 Thread Petr Mladek
On Wed 2017-11-08 14:37:37, Tobin C. Harding wrote: > Developers may not have the time (or inclination) to investigate script > output. This information is, however, useful. If we add functionality to > the script to email results for further investigation. > > Add --send-report flag to email scan

[PATCH 3/3] mmc: tmio: support IP-builtin card detection logic

2017-11-08 Thread Masahiro Yamada
A card detect GPIO is set up only for platforms with "cd-gpios" DT property or TMIO_MMC_USE_GPIO_CD flag. However, the driver core always uses mmc_gpio_get_cd, which just fails with -ENOSYS if ctx->cd_gpio is unset. The bit 5 of the status register provides the current signal level of the CD line

[PATCH 2/3] mmc: tmio: use mmc_can_gpio_cd() instead of checking TMIO_MMC_USE_GPIO_CD

2017-11-08 Thread Masahiro Yamada
To use a GPIO line for card detection, TMIO_MMC_USE_GPIO_CD is used by a legacy board (arch/sh/boards/mach-ecovec24). For DT platforms, the "cd-gpios" property is a legitimate way for that in case the IP-builtin card detection can not be used for some reason. mmc_of_parse() calls mmc_gpiod_request

[PATCH 0/3] mmc: tmio: fix card detection

2017-11-08 Thread Masahiro Yamada
Masahiro Yamada (3): mmc: tmio: move mmc_gpio_request_cd() before mmc_add_host() mmc: tmio: use mmc_can_gpio_cd() instead of checking TMIO_MMC_USE_GPIO_CD mmc: tmio: support IP-builtin card detection logic drivers/mmc/host/tmio_mmc_core.c | 31 +-- 1 file ch

[PATCH 1/3] mmc: tmio: move mmc_gpio_request_cd() before mmc_add_host()

2017-11-08 Thread Masahiro Yamada
Drivers do not need to call mmc_gpiod_request_cd_irq() explicitly because mmc_start_host() calls it. To make it work, cd_gpio must be set before mmc_add_host(). Signed-off-by: Masahiro Yamada --- drivers/mmc/host/tmio_mmc_core.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions

Re: [PATCH 00/31] Andes(nds32) Linux Kernel Port

2017-11-08 Thread Arnd Bergmann
On Wed, Nov 8, 2017 at 9:41 AM, Greentime Hu wrote: > 2017-11-08 16:32 GMT+08:00 David Howells : >> Greentime Hu wrote: >> >>> The build script and toolchain repositories are able to be found here: >>> https://github.com/andestech/build_script.git >> >> Is arch support in upstream binutils and

Re: [PATCH v3] platform/chrome: Use proper protocol transfer function

2017-11-08 Thread Jon Hunter
Hi Doug, On 07/11/17 17:22, Doug Anderson wrote: > On Tue, Nov 7, 2017 at 3:28 AM, Jon Hunter wrote: >> On 10/10/17 17:52, Doug Anderson wrote: >> >> ... >> I'm still not clear on why we see an error only on the first transaction after boot. In this case, the embedded controller pr

[PATCH] x86/selftests: Add test for mapping placement for 5-level paging

2017-11-08 Thread Kirill A. Shutemov
With 5-level paging, we have 56-bit virtual address space available for userspace. But we don't want to expose userspace to addresses above 47-bits, unless it asked specifically for it. We use mmap(2) hint address as a way for kernel to know if it's okay to allocate virtual memory above 47-bit. L

Re: Is there a race between __mod_timer() and del_timer()?

2017-11-08 Thread David Howells
David Howells wrote: > I think it might just be best to put a note in the comments in __mod_timer(). How about the attached? David --- commit d538c734f9bf885292b88a81a06c5efee528d70d Author: David Howells Date: Wed Nov 8 10:20:27 2017 + Add a comment into __mod_timer() noting a poss

Re: [PATCH v2 4/4] platform/x86: topstar-laptop: add optional WLAN LED workaround

2017-11-08 Thread Andy Shevchenko
On Wed, Nov 8, 2017 at 2:25 AM, Guillaume Douézan-Grard wrote: > On Sun, Nov 05, 2017 at 02:34:43PM -0800, Darren Hart wrote: >> On Sun, Nov 05, 2017 at 03:28:09PM +0200, Andy Shevchenko wrote: > I replaced the module parameter with a board name/version DMI check, > that will be included for the

Re: [PATCH v2 1/3] staging: ccree: copy IV to DMAable memory

2017-11-08 Thread Horia Geantă
On 11/2/2017 10:14 AM, Gilad Ben-Yossef wrote: > We are being passed an IV buffer from unknown origin, which may be > stack allocated and thus not safe for DMA. Allocate a DMA safe > buffer for the IV and use that instead. > IIUC this fixes only the (a)blkcipher / skcipher algorithms. What about a

Re: [PATCH 00/31] Andes(nds32) Linux Kernel Port

2017-11-08 Thread Arnd Bergmann
On Wed, Nov 8, 2017 at 6:54 AM, Greentime Hu wrote: > This patchset adds core architecture support to Linux for Andestech's > N13, N15, D15, N10, D10 processor cores. > > Based on the 16/32-bit AndeStar RISC-like architecture, we designed the > configurable AndesCore series of embedded processor f

[PATCH 0/3] perf tools: Build fixes

2017-11-08 Thread Jiri Olsa
hi, got a build error on latest Fedora 27, sending fix. Also available in: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git perf/fixes thanks, jirka --- Jiri Olsa (3): perf tools: Use shell function for perl cflags retrieval perf tools: Fix build for hardened enviro

[PATCH 3/3] perf tools: Removing FLAGS_PYTHON_EMBED/FLAGS_PERL_EMBED variables

2017-11-08 Thread Jiri Olsa
There's no user of those. Link: http://lkml.kernel.org/n/tip-84jeuwojm21wcjfzvtis6...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/Makefile.config | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 5e3734e4c1e4..caa7fe26ef

[PATCH 2/3] perf tools: Fix build for hardened environments

2017-11-08 Thread Jiri Olsa
From: Jiri Olsa On Fedora systems the perl and python CFLAGS/LDFLAGS include the hardened specs from redhat-rpm-config package. We apply them only for perl/python objects, which makes them not compatible with the rest of the objects and the build fails with: /usr/bin/ld: perf-in.o: relocation

[PATCH 1/3] perf tools: Use shell function for perl cflags retrieval

2017-11-08 Thread Jiri Olsa
Using the shell function for perl cflags retrieval instead of back quotes (``). Both execute shell with the command, but the latter is more explicit and seems to be the preferred way. Also we don't have any other use of the back quotes in perf Makefiles. Link: http://lkml.kernel.org/n/tip-ozknr59

Re: [PATCH v2 2/3] drivers: phy: broadcom: Add driver for Cygnus USB phy controller

2017-11-08 Thread Chanwoo Choi
Hi, On 2017년 11월 08일 16:52, Raveendra Padasalagi wrote: > Hi, > > Adding Chanwoo Choi to review extcon API's. > > -Raveendra > On Wed, Nov 8, 2017 at 1:16 PM, Raveendra Padasalagi > wrote: >> Add driver for Broadcom's USB phy controller's used in Cygnus >> familyof SoC. Cygnus has three USB phy

Re: Soft lockup in rt2x00usb_work_rxdone()

2017-11-08 Thread Stanislaw Gruszka
On Tue, Nov 07, 2017 at 12:01:23PM +0100, Richard Genoud wrote: > Le mardi 07 novembre 2017 à 11:13 +0100, Stanislaw Gruszka a écrit : > > On Tue, Nov 07, 2017 at 11:06:39AM +0100, Richard Genoud wrote: > > > > 3 short articles how to configure and use ftrace are here: > > > > https://lwn.net/Artic

Re: [PATCH 1/2] perf/trace: call machine__exit() at exiting

2017-11-08 Thread Jiri Olsa
On Tue, Nov 07, 2017 at 04:22:45PM -0800, Andrei Vagin wrote: > Otherwise perf trace leaves a temprary file /tmp/perf-vdso.so-XX. > > $ perf trace -o log true > $ ls -l /tmp/perf-vdso.* > -rw--- 1 root root 8192 Nov 8 03:08 /tmp/perf-vdso.so-5bCpD0 > > Cc: Peter Zijlstra > Cc: Ingo Moln

Re: [PATCH v2] documentation: fb: update list of available compiled-in fonts

2017-11-08 Thread Jonathan Corbet
On Tue, 7 Nov 2017 10:28:06 -0800 Randy Dunlap wrote: > Update list of available compiled-in fonts in lib/fonts/: > add 6x10 and drop RomanLarge (which was reverted 12 years ago). > > Also sort the list alphabetically. > > Signed-off-by: Randy Dunlap > Cc: Geert Uytterhoeven > Acked-by: Geert

Re: Is there a race between __mod_timer() and del_timer()?

2017-11-08 Thread Thomas Gleixner
On Wed, 8 Nov 2017, David Howells wrote: > Is there a race between the optimisation for networking code in __mod_timer() > and del_timer() - or, at least, a race that matters? > > Consider: > > CPU A CPU B > === ==

Re: Soft lockup in rt2x00usb_work_rxdone()

2017-11-08 Thread Stanislaw Gruszka
On Tue, Nov 07, 2017 at 12:13:47PM +0100, Richard Genoud wrote: > Le mardi 07 novembre 2017 à 11:13 +0100, Stanislaw Gruszka a écrit : > > On Tue, Nov 07, 2017 at 11:06:39AM +0100, Richard Genoud wrote: > > > > 3 short articles how to configure and use ftrace are here: > > > > https://lwn.net/Artic

Re: [PATCH v4 20/20] cpufreq: scmi: add support for fast frequency switching

2017-11-08 Thread Sudeep Holla
On 08/11/17 00:24, Rafael J. Wysocki wrote: > On Friday, November 3, 2017 3:47:57 PM CET Sudeep Holla wrote: >> The cpufreq core provides option for drivers to implement fast_switch >> callback which is invoked for frequency switching from interrupt context. >> >> This patch adds support for fast

Re: [PATCH 4/7] scripts/leaking_addresses: add reporting

2017-11-08 Thread Petr Mladek
On Wed 2017-11-08 14:37:36, Tobin C. Harding wrote: > Currently script just dumps all results found. Potentially, this risks > loosing single results among multiple duplicate results. We need some > way of restricting duplicates to assist users of the script. It would > also be nice if we got a rep

Re: [PATCH v3 5/5] perf/script: add support for skid ip

2017-11-08 Thread Jiri Olsa
On Tue, Nov 07, 2017 at 11:56:37PM -0800, Stephane Eranian wrote: SNIP > diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c > index 223165055d41..ee8fb635f694 100644 > --- a/tools/perf/util/session.c > +++ b/tools/perf/util/session.c > @@ -1133,7 +1133,7 @@ static void dump_sample

Re: [PATCH] backlight: ili922x: remove redundant variable len

2017-11-08 Thread Lee Jones
On Sun, 05 Nov 2017, Colin King wrote: > From: Colin Ian King > > The variable len is assigned but never read, therefore it is redundant > and can be removed. Cleans up clang warning: > > drivers/video/backlight/ili922x.c:276:2: warning: Value stored to 'len' > is never read > > Signed-off-by:

[PATCH net-next] net: dsa: lan9303: Fix lan9303_alr_del_port()

2017-11-08 Thread Egil Hjelmeland
Fix embarrassing bug in lan9303_alr_del_port(): Instead of zeroing entr->mac_addr, I destroyed the next cache entry. Affected .port_fdb_del and .port_mdb_del. Fixes: 0620427ea0d6 ("net: dsa: lan9303: Add fdb/mdb manipulation") Signed-off-by: Egil Hjelmeland --- drivers/net/dsa/lan9303-core.c | 2

Re: [PATCH 0/2] backlight: pwm_bl: prevent backlight flicker when switching PWM on

2017-11-08 Thread Daniel Thompson
On 26/10/17 13:49, Lothar Waßmann wrote: These patches implement some measures to prevent backlight flicker when the backlight is being switched on for a display with an active low brightness control pin. GIT: [PATCH 1/2] backlight: pwm_bl: Enable PWM before switching regulator GIT: [PATCH 2/2] b

Re: [PATCH] x86/oprofile/ppro: Do not use __this_cpu* accessors in preemptible context

2017-11-08 Thread Thomas Gleixner
On Tue, 7 Nov 2017, Borislav Petkov wrote: > --- a/arch/x86/oprofile/op_model_ppro.c > +++ b/arch/x86/oprofile/op_model_ppro.c > @@ -212,8 +212,9 @@ static void arch_perfmon_setup_counters(void) > eax.full = cpuid_eax(0xa); > > /* Workaround for BIOS bugs in 6/15. Taken from perfmon2

Re: [PATCH] net/tcp: track all ipv4/tcp state transition in tcp_set_state

2017-11-08 Thread Yafang Shao
2017-11-08 14:51 GMT+08:00 David Miller : > From: Yafang Shao > Date: Tue, 7 Nov 2017 18:36:28 +0800 > >> When I hooked the function tcp_set_state with kprobe to track the ipv4/tcp >> state transistion, I found state transition from TCP_LISTEN to TCP_SYN_RECV >> is missed. >> >> I think it is bet

[PATCH net-next] net: dsa: lan9303: Documentation: Add missing word "Mbps"

2017-11-08 Thread Egil Hjelmeland
Signed-off-by: Egil Hjelmeland --- Documentation/networking/dsa/lan9303.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/networking/dsa/lan9303.txt b/Documentation/networking/dsa/lan9303.txt index ec28683d107d..144b02b95207 100644 --- a/Documentation/ne

Re: [PATCH 1/1] add rgb888 pins to a20 to enable parallel rgb LCD

2017-11-08 Thread Maxime Ripard
Hi, On Tue, Nov 07, 2017 at 05:38:55PM +0100, Giulio Benetti wrote: > Board could be any with A20, > for example Olinuxino A20. > Or our Q027, S027 boards, but final dts still are not complete. Therefore no upstream boards are using it right now, so we'll merge it when that will be the case. Max

[tip:locking/core] locking/lockdep: Add IRQs disabled/enabled assertion APIs: lockdep_assert_irqs_enabled()/disabled()

2017-11-08 Thread tip-bot for Frederic Weisbecker
Commit-ID: f54bb2ec02c839f6bfe3e8d438cd93d30b4809dd Gitweb: https://git.kernel.org/tip/f54bb2ec02c839f6bfe3e8d438cd93d30b4809dd Author: Frederic Weisbecker AuthorDate: Mon, 6 Nov 2017 16:01:17 +0100 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:13:47 +0100 locking/lockdep: Add

[tip:locking/core] irq/softirqs: Use lockdep to assert IRQs are disabled/enabled

2017-11-08 Thread tip-bot for Frederic Weisbecker
Commit-ID: f71b74bca637fca7de78f1d44eaefde5bc900f9f Gitweb: https://git.kernel.org/tip/f71b74bca637fca7de78f1d44eaefde5bc900f9f Author: Frederic Weisbecker AuthorDate: Mon, 6 Nov 2017 16:01:18 +0100 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:13:48 +0100 irq/softirqs: Use loc

[tip:locking/core] workqueue: Use lockdep to assert IRQs are disabled/enabled

2017-11-08 Thread tip-bot for Frederic Weisbecker
Commit-ID: 8e8eb730759f9cfd7a761b0b4ee41d714e720993 Gitweb: https://git.kernel.org/tip/8e8eb730759f9cfd7a761b0b4ee41d714e720993 Author: Frederic Weisbecker AuthorDate: Mon, 6 Nov 2017 16:01:19 +0100 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:13:48 +0100 workqueue: Use lockde

[tip:locking/core] timers/nohz: Use lockdep to assert IRQs are disabled/enabled

2017-11-08 Thread tip-bot for Frederic Weisbecker
Commit-ID: ebf3adbad012b89c4a51a3beae718a587d988a3a Gitweb: https://git.kernel.org/tip/ebf3adbad012b89c4a51a3beae718a587d988a3a Author: Frederic Weisbecker AuthorDate: Mon, 6 Nov 2017 16:01:20 +0100 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:13:49 +0100 timers/nohz: Use lock

[tip:locking/core] timers/hrtimer: Use lockdep to assert IRQs are disabled/enabled

2017-11-08 Thread tip-bot for Frederic Weisbecker
Commit-ID: 53bef3fd47f69e40b52c9f9acd3551dfff9f8702 Gitweb: https://git.kernel.org/tip/53bef3fd47f69e40b52c9f9acd3551dfff9f8702 Author: Frederic Weisbecker AuthorDate: Mon, 6 Nov 2017 16:01:21 +0100 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:13:49 +0100 timers/hrtimer: Use l

[tip:locking/core] smp/core: Use lockdep to assert IRQs are disabled/enabled

2017-11-08 Thread tip-bot for Frederic Weisbecker
Commit-ID: 83efcbd028ad3aec36b5a3882cfa32490c135df7 Gitweb: https://git.kernel.org/tip/83efcbd028ad3aec36b5a3882cfa32490c135df7 Author: Frederic Weisbecker AuthorDate: Mon, 6 Nov 2017 16:01:22 +0100 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:13:50 +0100 smp/core: Use lockdep

[tip:locking/core] x86: Use lockdep to assert IRQs are disabled/enabled

2017-11-08 Thread tip-bot for Frederic Weisbecker
Commit-ID: 7a10e2a9190628a4024ea394ce7bd641ae40ffd1 Gitweb: https://git.kernel.org/tip/7a10e2a9190628a4024ea394ce7bd641ae40ffd1 Author: Frederic Weisbecker AuthorDate: Mon, 6 Nov 2017 16:01:23 +0100 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:13:50 +0100 x86: Use lockdep to a

[tip:locking/core] perf/core: Use lockdep to assert IRQs are disabled/enabled

2017-11-08 Thread tip-bot for Frederic Weisbecker
Commit-ID: 164446455a5d3f1402b5a0ea42acce33fd576ed7 Gitweb: https://git.kernel.org/tip/164446455a5d3f1402b5a0ea42acce33fd576ed7 Author: Frederic Weisbecker AuthorDate: Mon, 6 Nov 2017 16:01:24 +0100 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:13:51 +0100 perf/core: Use lockde

Re: [PATCH V2] acpi: apei: call into AER handling regardless of severity

2017-11-08 Thread Borislav Petkov
On Tue, Nov 07, 2017 at 06:21:31PM -0500, Tyler Baicar wrote: > Do you think this patch is good now? Yes, it looks ok to me but please split it in two patches: 1. Only code movement without any functional changes 2. Make the change to severity checking and add the comment. This will make the git

[tip:locking/core] irq/timings: Use lockdep to assert IRQs are disabled/enabled

2017-11-08 Thread tip-bot for Frederic Weisbecker
Commit-ID: a934d4d15f040cdd254350e7270b35cc7521e12e Gitweb: https://git.kernel.org/tip/a934d4d15f040cdd254350e7270b35cc7521e12e Author: Frederic Weisbecker AuthorDate: Mon, 6 Nov 2017 16:01:25 +0100 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:13:52 +0100 irq/timings: Use lock

[tip:locking/core] irq_work: Use lockdep to assert IRQs are disabled/enabled

2017-11-08 Thread tip-bot for Frederic Weisbecker
Commit-ID: 3c7169a3bf8216a56761a8edf775072dd36a00a0 Gitweb: https://git.kernel.org/tip/3c7169a3bf8216a56761a8edf775072dd36a00a0 Author: Frederic Weisbecker AuthorDate: Mon, 6 Nov 2017 16:01:26 +0100 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:13:52 +0100 irq_work: Use lockdep

[tip:locking/core] sched/clock, sched/cputime: Use lockdep to assert IRQs are disabled/enabled

2017-11-08 Thread tip-bot for Frederic Weisbecker
Commit-ID: 2c11dba00a39007b457c7607c1b1a4db95ca04bc Gitweb: https://git.kernel.org/tip/2c11dba00a39007b457c7607c1b1a4db95ca04bc Author: Frederic Weisbecker AuthorDate: Mon, 6 Nov 2017 16:01:27 +0100 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:13:53 +0100 sched/clock, sched/cp

[tip:locking/core] timers/posix-cpu-timers: Use lockdep to assert IRQs are disabled/enabled

2017-11-08 Thread tip-bot for Frederic Weisbecker
Commit-ID: a69682200db9c2c26594188f81dd2df560af4683 Gitweb: https://git.kernel.org/tip/a69682200db9c2c26594188f81dd2df560af4683 Author: Frederic Weisbecker AuthorDate: Mon, 6 Nov 2017 16:01:28 +0100 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:13:54 +0100 timers/posix-cpu-time

[tip:locking/core] netpoll: Use lockdep to assert IRQs are disabled/enabled

2017-11-08 Thread tip-bot for Frederic Weisbecker
Commit-ID: af0733937317e1e03b60f3af8cf9cd59d665593c Gitweb: https://git.kernel.org/tip/af0733937317e1e03b60f3af8cf9cd59d665593c Author: Frederic Weisbecker AuthorDate: Mon, 6 Nov 2017 16:01:29 +0100 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:13:54 +0100 netpoll: Use lockdep

[tip:locking/core] rcu: Use lockdep to assert IRQs are disabled/enabled

2017-11-08 Thread tip-bot for Frederic Weisbecker
Commit-ID: b04db8e19fc2e9131524dec43057c1b96d5ba3ba Gitweb: https://git.kernel.org/tip/b04db8e19fc2e9131524dec43057c1b96d5ba3ba Author: Frederic Weisbecker AuthorDate: Mon, 6 Nov 2017 16:01:30 +0100 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:13:55 +0100 rcu: Use lockdep to a

Re: [PATCH] staging: comedi: usbdux: remove redundant initialization of val

2017-11-08 Thread Ian Abbott
On 07/11/17 19:07, Colin King wrote: From: Colin Ian King The early initialization of val is redundant as the value is never read and is updated inside a for-loop. Remove the initialization and move the declaration and initialization to the for-loop scope. Cleans up clang warning: drivers/stag

Re: [tip:sched/core] sched/core: Optimize sched_feat() for !SCHED_DEBUG builds

2017-11-08 Thread Patrick Bellasi
On 08-Nov 11:03, Ingo Molnar wrote: > > * tip-bot for Patrick Bellasi wrote: > > > Commit-ID: 692ee9a79c14c9f707eeb03754a26b9427c0e005 > > Gitweb: > > https://git.kernel.org/tip/692ee9a79c14c9f707eeb03754a26b9427c0e005 > > Author: Patrick Bellasi > > AuthorDate: Tue, 7 Nov 2017 16:06:

Re: [PATCH v4 20/20] cpufreq: scmi: add support for fast frequency switching

2017-11-08 Thread Arnd Bergmann
On Wed, Nov 8, 2017 at 11:42 AM, Sudeep Holla wrote: > > > On 08/11/17 00:24, Rafael J. Wysocki wrote: >> On Friday, November 3, 2017 3:47:57 PM CET Sudeep Holla wrote: >>> The cpufreq core provides option for drivers to implement fast_switch >>> callback which is invoked for frequency switching f

[tip:x86/asm] x86/insn-eval: Compute linear address in several utility functions

2017-11-08 Thread tip-bot for Ricardo Neri
Commit-ID: 70e57c0f4b502f2435b7649a201861fe212c2e4e Gitweb: https://git.kernel.org/tip/70e57c0f4b502f2435b7649a201861fe212c2e4e Author: Ricardo Neri AuthorDate: Sun, 5 Nov 2017 18:27:46 -0800 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:16:18 +0100 x86/insn-eval: Compute linea

[tip:x86/asm] x86/insn-eval: Add support to resolve 32-bit address encodings

2017-11-08 Thread tip-bot for Ricardo Neri
Commit-ID: 7a6daf79123a086f03b8cdfbc953958c8e1c1287 Gitweb: https://git.kernel.org/tip/7a6daf79123a086f03b8cdfbc953958c8e1c1287 Author: Ricardo Neri AuthorDate: Sun, 5 Nov 2017 18:27:47 -0800 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:16:19 +0100 x86/insn-eval: Add support t

Re: [PATCH v7 2/5] x86/pvclock: add setter for pvclock_pvti_cpu0_va

2017-11-08 Thread Thomas Gleixner
On Tue, 7 Nov 2017, Joao Martins wrote: > On 11/06/2017 04:09 PM, Paolo Bonzini wrote: > > On 19/10/2017 15:39, Joao Martins wrote: > >> Right now there is only a pvclock_pvti_cpu0_va() which is defined > >> on kvmclock since: > >> > >> commit dac16fba6fc5 > >> ("x86/vdso: Get pvclock data from the

[tip:x86/asm] x86/cpufeature: Add User-Mode Instruction Prevention definitions

2017-11-08 Thread tip-bot for Ricardo Neri
Commit-ID: 3522c2a6a4f341058b8291326a945e2a2d2aaf55 Gitweb: https://git.kernel.org/tip/3522c2a6a4f341058b8291326a945e2a2d2aaf55 Author: Ricardo Neri AuthorDate: Sun, 5 Nov 2017 18:27:51 -0800 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:16:21 +0100 x86/cpufeature: Add User-Mod

[tip:x86/asm] x86/insn-eval: Handle 32-bit address encodings in virtual-8086 mode

2017-11-08 Thread tip-bot for Ricardo Neri
Commit-ID: 86cc35109029b7f1b195cef6c74654bad95e81af Gitweb: https://git.kernel.org/tip/86cc35109029b7f1b195cef6c74654bad95e81af Author: Ricardo Neri AuthorDate: Sun, 5 Nov 2017 18:27:49 -0800 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:16:20 +0100 x86/insn-eval: Handle 32-bit

Re: Soft lockup in rt2x00usb_work_rxdone()

2017-11-08 Thread Richard Genoud
Le mercredi 08 novembre 2017 à 11:37 +0100, Stanislaw Gruszka a écrit : > On Tue, Nov 07, 2017 at 12:01:23PM +0100, Richard Genoud wrote: > > Le mardi 07 novembre 2017 à 11:13 +0100, Stanislaw Gruszka a > > écrit : > > > On Tue, Nov 07, 2017 at 11:06:39AM +0100, Richard Genoud wrote: > > > > > 3 sh

[tip:x86/asm] x86/insn-eval: Add support to resolve 16-bit address encodings

2017-11-08 Thread tip-bot for Ricardo Neri
Commit-ID: 9c6c799faeed54b17857c2eed9058a25b8ee3614 Gitweb: https://git.kernel.org/tip/9c6c799faeed54b17857c2eed9058a25b8ee3614 Author: Ricardo Neri AuthorDate: Sun, 5 Nov 2017 18:27:50 -0800 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:16:20 +0100 x86/insn-eval: Add support t

[tip:x86/asm] x86/insn-eval: Add wrapper function for 32 and 64-bit addresses

2017-11-08 Thread tip-bot for Ricardo Neri
Commit-ID: cd9b594a9ef122a41bc961c330a55d87e226822f Gitweb: https://git.kernel.org/tip/cd9b594a9ef122a41bc961c330a55d87e226822f Author: Ricardo Neri AuthorDate: Sun, 5 Nov 2017 18:27:48 -0800 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:16:20 +0100 x86/insn-eval: Add wrapper f

[tip:x86/asm] x86/umip: Force a page fault when unable to copy emulated result to user

2017-11-08 Thread tip-bot for Ricardo Neri
Commit-ID: c6a960bbf6a36572a06bde866d94a7338c7f256a Gitweb: https://git.kernel.org/tip/c6a960bbf6a36572a06bde866d94a7338c7f256a Author: Ricardo Neri AuthorDate: Sun, 5 Nov 2017 18:27:53 -0800 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:16:22 +0100 x86/umip: Force a page fault

[tip:x86/asm] x86/umip: Enable User-Mode Instruction Prevention at runtime

2017-11-08 Thread tip-bot for Ricardo Neri
Commit-ID: aa35f896979d9610bb11df485cf7bb6ca241febb Gitweb: https://git.kernel.org/tip/aa35f896979d9610bb11df485cf7bb6ca241febb Author: Ricardo Neri AuthorDate: Sun, 5 Nov 2017 18:27:54 -0800 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:16:23 +0100 x86/umip: Enable User-Mode I

[tip:x86/asm] x86/traps: Fix up general protection faults caused by UMIP

2017-11-08 Thread tip-bot for Ricardo Neri
Commit-ID: 6fc9dc81bff0ea461db534e2672acfdaf76f3e4e Gitweb: https://git.kernel.org/tip/6fc9dc81bff0ea461db534e2672acfdaf76f3e4e Author: Ricardo Neri AuthorDate: Sun, 5 Nov 2017 18:27:55 -0800 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:16:24 +0100 x86/traps: Fix up general pr

Re: [PATCH 09/12] PM / mfd: intel-lpss: Use DPM_FLAG_SMART_SUSPEND

2017-11-08 Thread Lee Jones
On Wed, 01 Nov 2017, Rafael J. Wysocki wrote: > On Wed, Nov 1, 2017 at 10:28 AM, Lee Jones wrote: > > On Tue, 31 Oct 2017, Rafael J. Wysocki wrote: > > > >> On Tue, Oct 31, 2017 at 4:09 PM, Lee Jones wrote: > >> > On Mon, 16 Oct 2017, Rafael J. Wysocki wrote: > >> > > >> >> From: Rafael J. Wysoc

[tip:x86/asm] x86/umip: Add emulation code for UMIP instructions

2017-11-08 Thread tip-bot for Ricardo Neri
Commit-ID: 1e5db223696afa55e6a038fac638f759e1fdcc01 Gitweb: https://git.kernel.org/tip/1e5db223696afa55e6a038fac638f759e1fdcc01 Author: Ricardo Neri AuthorDate: Sun, 5 Nov 2017 18:27:52 -0800 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:16:22 +0100 x86/umip: Add emulation code

[tip:x86/asm] selftests/x86: Add tests for User-Mode Instruction Prevention

2017-11-08 Thread tip-bot for Ricardo Neri
Commit-ID: 9390afebe1d3f5a0be18b1afdd0ce09d67cebf9e Gitweb: https://git.kernel.org/tip/9390afebe1d3f5a0be18b1afdd0ce09d67cebf9e Author: Ricardo Neri AuthorDate: Sun, 5 Nov 2017 18:27:56 -0800 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:16:24 +0100 selftests/x86: Add tests for

[tip:x86/asm] selftests/x86: Add tests for the STR and SLDT instructions

2017-11-08 Thread tip-bot for Ricardo Neri
Commit-ID: a9e017d5619eb371460c8e516f4684def62bef3a Gitweb: https://git.kernel.org/tip/a9e017d5619eb371460c8e516f4684def62bef3a Author: Ricardo Neri AuthorDate: Sun, 5 Nov 2017 18:27:57 -0800 Committer: Ingo Molnar CommitDate: Wed, 8 Nov 2017 11:16:25 +0100 selftests/x86: Add tests for

Re: [kernel-hardening] Re: [PATCH resend 2/2] userns: control capabilities of some user namespaces

2017-11-08 Thread महेश बंडेवार
Sorry folks I was traveling and seems like lot happened on this thread. :p I will try to response few of these comments selectively - > The thing that makes me hesitate with this set is that it is a > permanent new feature to address what (I hope) is a temporary > problem. I agree this is permane

Re: [PATCH net-next V2 3/3] tun: add eBPF based queue selection method

2017-11-08 Thread Jason Wang
On 2017年11月08日 14:43, Michael S. Tsirkin wrote: On Wed, Nov 08, 2017 at 02:28:53PM +0900, Jason Wang wrote: On 2017年11月04日 08:56, Willem de Bruijn wrote: On Fri, Nov 3, 2017 at 5:56 PM, Willem de Bruijn wrote: On Tue, Oct 31, 2017 at 7:32 PM, Jason Wang wrote: This patch introduces an eB

Re: [butterfly_attach] WARNING: CPU: 0 PID: 198 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x71/0x97

2017-11-08 Thread Mark Brown
On Tue, Nov 07, 2017 at 08:49:46AM -0800, Linus Torvalds wrote: > On Tue, Nov 7, 2017 at 2:24 AM, Fengguang Wu wrote: > > FYI this happens in v4.14-rc8 -- it's not necessarily a new bug. > Yeah, very doubtful. Nobody has touched that spi-butterfly driver in > about two years. Indeed. I'm not s

<    4   5   6   7   8   9   10   11   12   13   >