[PATCH 0/3] thermal: Support for Coffee Lake and Cannon Lake

2017-10-19 Thread Srinivas Pandruvada
Added support for PCH and processor thermal device. Srinivas Pandruvada (3): thermal: int340x: processor_thermal: Add Cannon Lake support thermal: int340x: processor_thermal: Add Coffee Lake support thermal: pch: Add Cannon Lake support drivers/thermal/int340x_thermal/processor_thermal_dev

[PATCH 1/3] thermal: int340x: processor_thermal: Add Cannon Lake support

2017-10-19 Thread Srinivas Pandruvada
Added PCI-ID of Cannon Lake thermal device. Signed-off-by: Srinivas Pandruvada --- drivers/thermal/int340x_thermal/processor_thermal_device.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/thermal/int340x_thermal/processor_thermal_device.c b/drivers/thermal/int340x_thermal/proc

Re: [PATCH v3 2/2] livepatch: add atomic replace

2017-10-19 Thread Jason Baron
On 10/18/2017 05:10 AM, Miroslav Benes wrote: > On Tue, 17 Oct 2017, Jason Baron wrote: > >> >> >> On 10/17/2017 09:50 AM, Miroslav Benes wrote: >>> On Tue, 17 Oct 2017, Miroslav Benes wrote: >>> On Tue, 10 Oct 2017, Jason Baron wrote: > > > On 10/06/2017 06:32 PM, Josh Poi

Re: [PATCH 2/3] clocksource/mips-gic-timer: Remove pointless irq_save,restore

2017-10-19 Thread Daniel Lezcano
On 19/10/2017 15:23, Daniel Lezcano wrote: > On 19/10/2017 13:55, Matt Redfearn wrote: >> gic_next_event is always called with interrupts disabled, so the save / >> restore is pointless - remove it. >> >> Signed-off-by: Matt Redfearn >> Suggested-by: Thomas Gleixner >> --- > > Applied for 4.15.

Re: [PATCH v2 1/5] dt-bindings: iio: at91-sama5d2_adc: add optional dma property

2017-10-19 Thread Rob Herring
On Thu, Oct 19, 2017 at 6:14 AM, Alexandre Belloni wrote: > On 13/10/2017 at 16:51:42 -0500, Rob Herring wrote: >> On Wed, Oct 11, 2017 at 09:35:28AM +0300, Eugen Hristev wrote: >> > Added property for DMA configuration of the device. >> > >> > Signed-off-by: Eugen Hristev >> > --- >> > Document

Re: [PATCH 2/9] PCI: host: brcmstb: add DT docs for Brcmstb PCIe device

2017-10-19 Thread Florian Fainelli
On 10/19/2017 02:49 PM, Rob Herring wrote: > On Tue, Oct 17, 2017 at 5:42 PM, Jim Quinlan wrote: >> On Tue, Oct 17, 2017 at 4:24 PM, Rob Herring wrote: >>> On Wed, Oct 11, 2017 at 06:34:22PM -0400, Jim Quinlan wrote: The DT bindings description of the Brcmstb PCIe device is described. This

[PATCH] net: sched: mark expected switch fall-throughs

2017-10-19 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- This code was tested by compilation only (GCC 7.2.0 was used). Please, verify if the actual intention of the code is to fall through. net/sched/sch

[PATCH] net: smc_close: mark expected switch fall-throughs

2017-10-19 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Notice that in this particular case I placed a "fall through" comment on its own line, which is what GCC is expecting to find. Signed-off-by: Gustavo A. R. Silva --- net/smc/smc_close.c

Re: [PATCH] clockevents/drivers/cs5535: improve resilience to spurious interrupts

2017-10-19 Thread Daniel Lezcano
On 19/10/2017 22:57, David Kozub wrote: > This solves a BUG on ALIX 2c3 where mfgpt_tick is called before > clockevents_config_and_register returns. This caused mfgpt_tick to call a > null function pointer. > > Thanks to Daniel Lezcano and Thomas Gleixner for helping me analyze this > and suggesti

RE: [PATCH V2] scsi: storvsc: Allow only one remove lun work item to be issued per lun

2017-10-19 Thread Long Li
> On Tue, Oct 17, 2017 at 01:35:21PM -0400, Cathy Avery wrote: > > + /* > > +* Set the error handler work queue. > > +*/ > > + snprintf(host_dev->work_q_name, sizeof(host_dev- > >work_q_name), > > +"storvsc_error_wq_%d", host->host_no); > > + host_dev->handle_error_wq = >

Re: [PATCH 02/27] Add a SysRq option to lift kernel lockdown

2017-10-19 Thread David Howells
Randy Dunlap wrote: > > +config ALLOW_LOCKDOWN_LIFT > > + bool > > + help > > + Allow the lockdown on a kernel to be lifted, thereby restoring the > > + ability of userspace to access the kernel image (eg. by SysRq+x under > > how about:

Re: [PATCH] of: overlay: make pr_err() string unique

2017-10-19 Thread Rob Herring
On Thu, Oct 19, 2017 at 4:38 PM, wrote: > From: Frank Rowand > > The same error string occurs in drivers/of/resolver.c. Change > the error here to more precisely describe this case, and avoid > the possible confusion of looking in the wrong source location > to understand the cause of an error.

Re: [PATCH] of: overlay: pr_err from return NOTIFY_OK to overlay apply/remove

2017-10-19 Thread Rob Herring
On Thu, Oct 19, 2017 at 4:18 PM, wrote: > From: Frank Rowand > > A device tree overlay notifier can return NOTIFY_OK, NOTIFY_STOP, > or an embedded errno. overlay_notify() incorrectly reports an > error for NOTIFY_OK. > > Reported-by: at...@kernel.org > Signed-off-by: Frank Rowand > --- > dri

[PATCH v3 0/2] Altera ASMI Parallel II IP Core

2017-10-19 Thread matthew . gerlach
From: Matthew Gerlach This patch set adds a spi-nor flash driver for the Altera ASMI Parallel II IP Core. This driver was created based on feedback from Marek Vasut, Cyrill Pitchen, and Michal Suchanek regarding Version 2 of the Altera Quadspi Controller: https://lkml.org/lkml/2017/6/26/518 Th

[PATCH v3 1/2] dt-bindings: mtd: Altera ASMI Parallel II IP Core

2017-10-19 Thread matthew . gerlach
From: Matthew Gerlach Device Tree bindings for Altera ASMI Parallel II IP Core connected to a flash chip. Signed-off-by: Matthew Gerlach Acked-by: Rob Herring --- v2: Made substitutions suggested by Rob Herring. Emphasize driver expects controller is connected to spi-nor flash. v3: ad

[PATCH v3 2/2] mtd: spi-nor: Altera ASMI Parallel II IP Core

2017-10-19 Thread matthew . gerlach
From: Matthew Gerlach This patch adds support for a spi-nor, platform driver for the Altera ASMI Parallel II IP Core. The intended use case is to be able to update the flash used to load a FPGA at power up with mtd-utils. Signed-off-by: Matthew Gerlach --- v2: minor checkpatch fixing by Wu

[PATCH v2] net: rxrpc: mark expected switch fall-throughs

2017-10-19 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- This code was tested by compilation only (GCC 7.2.0 was used). Please, verify if the actual intention of the code is to fall through. Changes in v2:

Re: [PATCH 32/58] isdn/gigaset: Convert timers to use timer_setup()

2017-10-19 Thread Paul Bolle
On Thu, 2017-10-19 at 14:31 -0700, Kees Cook wrote: > What I did in many other non-trivial conversions was just add an > explicit pointer back, since that's operationally identical to what > struct timer_list was storing in its .data field. > > i.e. > > add: > > struct cardstate *cs; > > to s

Re: [PATCH 4.4 00/46] 4.4.94-stable review

2017-10-19 Thread Tom Gall
kernel: 4.4.94-rc1 git repo: https://git.linaro.org/lkft/arm64-stable-rc.git git tag: 4.4.94-rc1-hikey-20171019 git commit: 64eacf43d6ff4c9320737af2fe207e5711010f1f git describe: 4.4.94-rc1-hikey-20171019 Test details: https://qa-reports.linaro.org/lkft/linaro-hikey-stable-rc-4.4-oe/build/4.4.94-rc

Re: [PATCH 4.9 00/51] 4.9.58-stable review

2017-10-19 Thread Tom Gall
> On Oct 19, 2017, at 8:48 AM, Greg Kroah-Hartman > wrote: > > This is the start of the stable review cycle for the 4.9.58 release. > There are 51 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. >

Re: [PATCH 18/27] bpf: Restrict kernel image access functions when the kernel is locked down

2017-10-19 Thread Alexei Starovoitov
On Thu, Oct 19, 2017 at 03:52:49PM +0100, David Howells wrote: > From: Chun-Yi Lee > > There are some bpf functions can be used to read kernel memory: > bpf_probe_read, bpf_probe_write_user and bpf_trace_printk. These allow > private keys in kernel memory (e.g. the hibernation image signing key)

Re: [PATCH] clockevents/drivers/cs5535: improve resilience to spurious interrupts

2017-10-19 Thread Thomas Gleixner
On Thu, 19 Oct 2017, David Kozub wrote: > This solves a BUG on ALIX 2c3 where mfgpt_tick is called before > clockevents_config_and_register returns. This caused mfgpt_tick to call a > null function pointer. > > Thanks to Daniel Lezcano and Thomas Gleixner for helping me analyze this > and suggest

Re: [GIT PULL 3/4] ARM: dts: exynos: Pull for v4.15

2017-10-19 Thread Arnd Bergmann
On Sun, Oct 15, 2017 at 9:48 AM, Krzysztof Kozlowski wrote: > > Samsung DTS ARM changes for 4.15 > > 1. Add new board: Hardkernel Odroid HC1. > 2. Fix incomplete Odroid-XU3/4 thermal-zones definition leading to >possible overheat

[PATCH v2] mm: mlock: remove lru_add_drain_all()

2017-10-19 Thread Shakeel Butt
lru_add_drain_all() is not required by mlock() and it will drain everything that has been cached at the time mlock is called. And that is not really related to the memory which will be faulted in (and cached) and mlocked by the syscall itself. Without lru_add_drain_all() the mlocked pages can rema

Re: [PATCH] clockevents/drivers/cs5535: improve resilience to spurious interrupts

2017-10-19 Thread Thomas Gleixner
On Fri, 20 Oct 2017, Daniel Lezcano wrote: > On 19/10/2017 22:57, David Kozub wrote: > > This solves a BUG on ALIX 2c3 where mfgpt_tick is called before > > clockevents_config_and_register returns. This caused mfgpt_tick to call a > > null function pointer. > > > > Thanks to Daniel Lezcano and Th

Re: [PATCH 32/58] isdn/gigaset: Convert timers to use timer_setup()

2017-10-19 Thread Thomas Gleixner
On Thu, 19 Oct 2017, Paul Bolle wrote: > On Thu, 2017-10-19 at 23:31 +0200, Thomas Gleixner wrote: > > bas_gigaset_exit() > > { > > for (i = 0; i < driver->minors; i++) { > > if (gigaset_shutdown(driver->cs + i) < 0) > > > > gigaset_shutdown(cs) > > { > > mutex_lock(&c

Re: [PATCH] media: input: Convert timers to use timer_setup()

2017-10-19 Thread Dmitry Torokhov
On Mon, Oct 16, 2017 at 04:14:43PM -0700, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > One input_dev user hijacks the input_de

Re: [2/2] x86/unwind: Make CONFIG_UNWINDER_ORC=y the default in kconfig for 64-bit

2017-10-19 Thread Andrei Vagin
On Thu, Oct 19, 2017 at 01:16:55PM -0500, Josh Poimboeuf wrote: > On Thu, Oct 19, 2017 at 09:51:04AM -0700, Andrei Vagin wrote: > > Hi, > > > > We run CRIU tests for tip/auto-latest regularly, and a few days ago our > > test job started to detect this warning in a kernel log: > > > > [ 44.23578

Re: [PATCH] Input: tca8418 - enable interrupt after it has been requested

2017-10-19 Thread Dmitry Torokhov
On Mon, Oct 16, 2017 at 05:57:14PM -0400, Damien Riegel wrote: > Currently, enabling keypad interrupts is one of the first operations > done on the keypad, even before the interrupt is requested, so there is > a small time window where the keypad can fire interrupts but the driver > is not yet read

Re: [PATCH 00/27] security, efi: Add kernel lockdown

2017-10-19 Thread David Howells
I've pushed a new version to git that fixes bugs in patches 1 and 2. David

Re: [PATCH] media: input: Convert timers to use timer_setup()

2017-10-19 Thread Kees Cook
On Thu, Oct 19, 2017 at 3:32 PM, Dmitry Torokhov wrote: > On Mon, Oct 16, 2017 at 04:14:43PM -0700, Kees Cook wrote: >> In preparation for unconditionally passing the struct timer_list pointer to >> all timer callbacks, switch to using the new timer_setup() and from_timer() >> to pass the timer po

Re: [PATCH v10 11/15] platform/x86: dell-smbios-smm: test for WSMT

2017-10-19 Thread Darren Hart
On Thu, Oct 19, 2017 at 06:12:09PM +, mario.limoncie...@dell.com wrote: > > -Original Message- > > From: Pali Rohár [mailto:pali.ro...@gmail.com] > > Sent: Thursday, October 19, 2017 1:09 PM > > To: Limonciello, Mario > > Cc: dvh...@infradead.org; Andy Shevchenko ; > > LKML ; platform-

Re: [PATCH] media: input: Convert timers to use timer_setup()

2017-10-19 Thread Dmitry Torokhov
On Thu, Oct 19, 2017 at 03:45:38PM -0700, Kees Cook wrote: > On Thu, Oct 19, 2017 at 3:32 PM, Dmitry Torokhov > wrote: > > On Mon, Oct 16, 2017 at 04:14:43PM -0700, Kees Cook wrote: > >> In preparation for unconditionally passing the struct timer_list pointer to > >> all timer callbacks, switch to

Re: [PATCH 5/9] PCI: host: brcmstb: add dma-ranges for inbound traffic

2017-10-19 Thread Jim Quinlan
On Thu, Oct 19, 2017 at 5:16 AM, Christoph Hellwig wrote: > On Wed, Oct 18, 2017 at 10:41:17AM -0400, Jim Quinlan wrote: >> That's what brcm_to_{pci,cpu} are for -- they keep a list of the >> dma-ranges given in the PCIe DT node, and translate from system memory >> addresses to pci-space addresses

Re: [PATCH 18/27] bpf: Restrict kernel image access functions when the kernel is locked down

2017-10-19 Thread David Howells
Alexei Starovoitov wrote: > > @@ -65,6 +65,11 @@ BPF_CALL_3(bpf_probe_read, void *, dst, u32, size, const > > void *, unsafe_ptr) > > { > > int ret; > > > > + if (kernel_is_locked_down("BPF")) { > > + memset(dst, 0, size); > > + return -EPERM; > > + } > > That does

Re: [PATCH v4 2/6] perf record: Get the first sample time and last sample time

2017-10-19 Thread Jin, Yao
On 10/20/2017 4:25 AM, Arnaldo Carvalho de Melo wrote: Em Thu, Oct 19, 2017 at 05:21:27PM -0300, Arnaldo Carvalho de Melo escreveu: Em Tue, Oct 03, 2017 at 10:22:34PM +0800, Jin Yao escreveu: In perf record, it's walked on all samples yet. So it's very easy to get You're saying that perf re

[PATCH v7 0/3] arm: npcm: add basic support for Nuvoton BMCs

2017-10-19 Thread Brendan Higgins
Addressed comments from: - Rob: http://www.spinics.net/lists/devicetree/msg196376.html Changes since previous update: - Moved all memory mapped nodes to busses. - Map ranges starting at 0 - Moved external clocks to root - No changes to mach-npcm since v5 - No changes to MAINTAINERS sin

[PATCH v7 3/3] MAINTAINERS: Add entry for the Nuvoton NPCM architecture

2017-10-19 Thread Brendan Higgins
Add maintainers and reviewers for the Nuvoton NPCM architecture. Signed-off-by: Brendan Higgins Reviewed-by: Tomer Maimon Reviewed-by: Avi Fishman --- MAINTAINERS | 13 + 1 file changed, 13 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 44cb004c765d..ec0d35384a16 10064

[PATCH v7 1/3] arm: npcm: add basic support for Nuvoton BMCs

2017-10-19 Thread Brendan Higgins
Adds basic support for the Nuvoton NPCM750 BMC. Signed-off-by: Brendan Higgins Reviewed-by: Tomer Maimon Reviewed-by: Avi Fishman Tested-by: Tomer Maimon Tested-by: Avi Fishman --- arch/arm/Kconfig | 2 + arch/arm/Makefile| 1 + arch/arm/mach-npcm/Kconfig | 48 +++

[PATCH v7 2/3] arm: dts: add Nuvoton NPCM750 device tree

2017-10-19 Thread Brendan Higgins
Add a common device tree for all Nuvoton NPCM750 BMCs and a board specific device tree for the NPCM750 (Poleg) evaluation board. Signed-off-by: Brendan Higgins Reviewed-by: Tomer Maimon Reviewed-by: Avi Fishman Reviewed-by: Joel Stanley Tested-by: Tomer Maimon Tested-by: Avi Fishman --- ...

Re: [PATCH v3 07/49] bcache: comment on direct access to bvec table

2017-10-19 Thread Ming Lei
On Thu, Aug 10, 2017 at 04:26:03AM -0700, Christoph Hellwig wrote: > I think all this bcache code needs bigger attention. For one > bio_alloc_pages is only used in bcache, so we should move it in there. Looks a good idea. > > Second the way bio_alloc_pages is currently written looks potentiall

Re: [PATCH v3 09/49] block: comment on bio_iov_iter_get_pages()

2017-10-19 Thread Ming Lei
On Thu, Aug 10, 2017 at 04:28:05AM -0700, Christoph Hellwig wrote: > > + * The hacking way of using bvec table as page pointer array is safe > > + * even after multipage bvec is introduced because that space can be > > + * thought as unused by bio_add_page(). > > I'm not sure what value this comme

[PATCH v2] mtd: slram: use memremap() instead of ioremap()

2017-10-19 Thread Roy Franz
Convert slram to use memremap() to map the memory it uses to back an MTD device, as this is the proper interface for mapping memory. This change enables normal memory to be used to back an MTD device on arm64, as arm64 prevents ioremap() being used on normal memory. Signed-off-by: Roy Franz Acked

Re: [PATCH v3 11/49] btrfs: avoid access to .bi_vcnt directly

2017-10-19 Thread Ming Lei
On Thu, Aug 10, 2017 at 04:29:59AM -0700, Christoph Hellwig wrote: > > +static unsigned int get_bio_pages(struct bio *bio) > > +{ > > + unsigned i; > > + struct bio_vec *bv; > > + > > + bio_for_each_segment_all(bv, bio, i) > > + ; > > + > > + return i; > > +} > > s/get_bio_pages/

[PATCH 0/1] mm:hugetlbfs: Fix hwpoison reserve accounting

2017-10-19 Thread Mike Kravetz
The routine hugetlbfs_error_remove_page() incorrectly calls hugetlb_fix_reserve_counts which will result in bad (negative) reserved huge page counts. The following patch addresses this issue. A follow up question/issue: When a hugetlbfs page is poisoned, it appears as an 'in use' huge page via al

[PATCH 1/1] mm:hugetlbfs: Fix hwpoison reserve accounting

2017-10-19 Thread Mike Kravetz
Calling madvise(MADV_HWPOISON) on a hugetlbfs page will result in bad (negative) reserved huge page counts. This may not happen immediately, but may happen later when the underlying file is removed or filesystem unmounted. For example: AnonHugePages: 0 kB ShmemHugePages:0 kB HugeP

Re: [PATCH 2/9] PCI: host: brcmstb: add DT docs for Brcmstb PCIe device

2017-10-19 Thread Jim Quinlan
On Thu, Oct 19, 2017 at 5:49 PM, Rob Herring wrote: > On Tue, Oct 17, 2017 at 5:42 PM, Jim Quinlan wrote: >> On Tue, Oct 17, 2017 at 4:24 PM, Rob Herring wrote: >>> On Wed, Oct 11, 2017 at 06:34:22PM -0400, Jim Quinlan wrote: The DT bindings description of the Brcmstb PCIe device is describ

Re: RFC(v2): Audit Kernel Container IDs

2017-10-19 Thread Aleksa Sarai
The registration is a pseudo filesystem (proc, since PID tree already exists) write of a u8[16] UUID representing the container ID to a file representing a process that will become the first process in a new container. This write might place restrictions on mount namespaces required to define a c

[GIT PULL] Power management fix for v4.14-rc6

2017-10-19 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-4.14-rc6 with top-most commit c97cc7dbce2fe6f46e137f4b040f915a0181ee85 Revert "tools/power turbostat: stop migrating, unless '-m'" on top of commit 33d930e59a98fa10a0db9f56c7fa2f21a4aef

Re: [PATCH 3/3] mm: oom: show unreclaimable slab info when unreclaimable slabs > user memory

2017-10-19 Thread Yang Shi
On 10/19/17 12:28 AM, Michal Hocko wrote: On Tue 17-10-17 15:39:08, David Rientjes wrote: On Wed, 18 Oct 2017, Yang Shi wrote: Yes, this should catch occurrences of "huge unreclaimable slabs", right? Yes, it sounds so. Although single "huge" unreclaimable slab might not result in excessive

Re: RFC(v2): Audit Kernel Container IDs

2017-10-19 Thread Aleksa Sarai
The registration is a pseudo filesystem (proc, since PID tree already exists) write of a u8[16] UUID representing the container ID to a file representing a process that will become the first process in a new container.  This write might place restrictions on mount namespaces required to define a c

Re: [RESEND PATCH 1/3] completion: Add support for initializing completion with lockdep_map

2017-10-19 Thread Bart Van Assche
On Wed, 2017-10-18 at 18:38 +0900, Byungchul Park wrote: > Sometimes, we want to initialize completions with sparate lockdep maps > to assign lock classes under control. For example, the workqueue code > manages lockdep maps, as it can classify lockdep maps properly. > Provided a function for that

Re: [PATCH V3] selftests/vm: Add tests validating mremap mirror functionality

2017-10-19 Thread Mike Kravetz
On 10/17/2017 10:55 PM, Anshuman Khandual wrote: > This adds two tests to validate mirror functionality with mremap() > system call on shared and private anon mappings. After the commit > dba58d3b8c5 ("mm/mremap: fail map duplication attempts for private > mappings"), any attempt to mirror private

Re: [PATCH v3] of: dynamic: fix memory leak related to properties of __of_node_dup

2017-10-19 Thread Frank Rowand
Hi Lixin, On 10/19/17 02:40, Lixin Wang wrote: > If a node with no properties is dynamically added, then a property is > dynamically added to the node, then the property is dynamically removed, > the result will be node->properties == NULL and node->deadprops != NULL. > > Add a separate function

Re: [PATCH 18/27] bpf: Restrict kernel image access functions when the kernel is locked down

2017-10-19 Thread Alexei Starovoitov
On Thu, Oct 19, 2017 at 11:48:34PM +0100, David Howells wrote: > Alexei Starovoitov wrote: > > > > @@ -65,6 +65,11 @@ BPF_CALL_3(bpf_probe_read, void *, dst, u32, size, > > > const void *, unsafe_ptr) > > > { > > > int ret; > > > > > > + if (kernel_is_locked_down("BPF")) { > > > + m

Re: [PATCH 32/58] isdn/gigaset: Convert timers to use timer_setup()

2017-10-19 Thread Paul Bolle
[CC-ing Linus because I quote him.] On Fri, 2017-10-20 at 00:28 +0200, Thomas Gleixner wrote: > Well, that does not explain why > > drivers->cs + i > > would be corrupted. That would require that this cs -> urb link points at > driver magically and then wreckages that driver data structure

Re: [PATCH v3] of: dynamic: fix memory leak related to properties of __of_node_dup

2017-10-19 Thread frowand . list
From: Frank Rowand This is Lixin's patch v3, reworded for my preferred style. --- If Lixin agrees, Reviewed-by: Frank Rowand drivers/of/dynamic.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/of/dynamic.c b/drivers/of/dynamic.c in

Re: [PATCH v3 20/49] block: introduce bio_for_each_segment_mp()

2017-10-19 Thread Ming Lei
On Thu, Aug 10, 2017 at 05:11:10AM -0700, Christoph Hellwig wrote: > First: as mentioned in the previous patches I really hate the name > scheme with the _sp and _mp postfixes. > > To be clear and understandable we should always name the versions > that iterate over segments *segment* and the ones

[PATCH] cpuidle: ladder: Add per CPU PM QoS resume latency support

2017-10-19 Thread Ramesh Thomas
Individual CPUs may have special requirements to not enter deep idle states. For example, a CPU running real time applications would not want to enter deep idle states to avoid latency impacts. At the same time other CPUs that do not have such a requirement could allow deep idle states to save powe

Re: [PATCH 1/3] printk: Introduce per-console loglevel setting

2017-10-19 Thread Calvin Owens
On 09/28/2017 05:43 PM, Calvin Owens wrote: Not all consoles are created equal: depending on the actual hardware, the latency of a printk() call can vary dramatically. The worst examples are serial consoles, where it can spin for tens of milliseconds banging the UART to emit a message, which can

[PATCH -tip v4] Enable optprobe on preepmtive kernel

2017-10-19 Thread Masami Hiramatsu
This patch enables optprobe even with CONFIG_PREEMPT. The previous patch is https://lkml.org/lkml/2017/9/19/159 . Sorry for taking so long to update. I've update the patch description according to Ingo's comment but the code is same. Thank you, --- Masami Hiramatsu (1): kprobes: Use sync

[PATCH -tip v4] kprobes: Use synchronize_rcu_tasks() for optprobe with CONFIG_PREEMPT

2017-10-19 Thread Masami Hiramatsu
We want to wait for all potentially preempted kprobes trampoline execution to have completed. This guarantees that any freed trampoline memory is not in use by any task in the system anymore. synchronize_rcu_tasks() gives such a guarantee, so use it. Also, this guarantees to wait for all potentiall

Re: [PATCH v3 41/49] xfs: convert to bio_for_each_segment_all_sp()

2017-10-19 Thread Ming Lei
On Tue, Aug 08, 2017 at 09:32:32AM -0700, Darrick J. Wong wrote: > On Tue, Aug 08, 2017 at 04:45:40PM +0800, Ming Lei wrote: > > Sure would be nice to have a changelog explaining why we're doing this. > > > Cc: "Darrick J. Wong" > > Cc: linux-...@vger.kernel.org > > Signed-off-by: Ming Lei > >

Re: [PATCH V8 4/5] libsas: Align SMP req/resp to dma_get_cache_alignment()

2017-10-19 Thread kbuild test robot
Hi Huacai, [auto build test ERROR on linus/master] [also build test ERROR on v4.14-rc5 next-20171018] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Huacai-Chen/dma-mapping-Rework-dma_get_cache_

Re: [PATCH -tip v4] kprobes: Use synchronize_rcu_tasks() for optprobe with CONFIG_PREEMPT

2017-10-19 Thread Paul E. McKenney
On Fri, Oct 20, 2017 at 08:43:39AM +0900, Masami Hiramatsu wrote: > We want to wait for all potentially preempted kprobes trampoline > execution to have completed. This guarantees that any freed > trampoline memory is not in use by any task in the system anymore. > synchronize_rcu_tasks() gives suc

Re: [PATCH v3 37/49] fs/mpage: convert to bio_for_each_segment_all_sp()

2017-10-19 Thread Ming Lei
On Thu, Aug 10, 2017 at 05:16:12AM -0700, Christoph Hellwig wrote: > > struct bio_vec *bv; > > + struct bvec_iter_all bia; > > int i; > > > > - bio_for_each_segment_all(bv, bio, i) { > > + bio_for_each_segment_all_sp(bv, bio, i, bia) { > > struct page *page = bv->bv_page

Re: [PATCH v12 09/11] mm: stop zeroing memory during allocation in vmemmap

2017-10-19 Thread Andrew Morton
On Fri, 13 Oct 2017 13:32:12 -0400 Pavel Tatashin wrote: > vmemmap_alloc_block() will no longer zero the block, so zero memory > at its call sites for everything except struct pages. Struct page memory > is zero'd by struct page initialization. > > Replace allocators in sprase-vmemmap to use t

mmotm 2017-10-19-17-00 uploaded

2017-10-19 Thread akpm
The mm-of-the-moment snapshot 2017-10-19-17-00 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

Re: [PATCH v2] Staging: rtl8188eu: core: rtw_mlme_ext: Use list_for_each_entry_safe

2017-10-19 Thread kbuild test robot
Hi Srishti, [auto build test WARNING on staging/staging-testing] [also build test WARNING on v4.14-rc5 next-20171018] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Srishti-Sharma/Staging-rtl818

Re: [PATCH v2] dev/dax: fix uninitialized variable build warning

2017-10-19 Thread Dan Williams
On Wed, Oct 18, 2017 at 11:21 AM, Ross Zwisler wrote: > Fix this build warning: > > warning: 'phys' may be used uninitialized in this function > [-Wuninitialized] > > As reported here: > > https://lkml.org/lkml/2017/10/16/152 > http://kisskb.ellerman.id.au/kisskb/buildresult/13181373/log/ > > Sign

[PATCH] x86/cpufeatures: Enable new AVX512 cpu features

2017-10-19 Thread Gayatri Kammela
Add a few new AVX512 instruction groups/features for enumeration in /proc/cpuinfo: AVX512_VBMI2, GFNI, VAES, VPCLMULQDQ, AVX512_VNNI, AVX512_BITALG. Clear the flags in fpu_xstate_clear_all_cpu_caps(). CPUID.(EAX=7,ECX=0):ECX[bit 6] AVX512_VBMI2 CPUID.(EAX=7,ECX=0):ECX[bit 8] GFNI CPUID.(EAX=7,E

Re: [PATCH v2] clk: tegra: Use readl_relaxed_poll_timeout_atomic in tegra210_clock_init

2017-10-19 Thread Nicolin Chen
On Thu, Oct 19, 2017 at 11:42:24AM -0700, Nicolin Chen wrote: > On Thu, Oct 19, 2017 at 11:44:22AM +0200, Thierry Reding wrote: > > > > Below is the call trace of tegra210_init_pllu() function: > > > > start_kernel() > > > > -> time_init() > > > > --> of_clk_init() > > > > ---> tegra210_clo

RE: [PATCH 0/9] Intel Processor Trace virtulization enabling

2017-10-19 Thread Kang, Luwei
> On 19/10/2017 07:54, Kang, Luwei wrote: > >>> Get it. I have feedback to hardware architect. I hope it can be applied > >>> but it may need wait a long time. > >> Note that the hardware need not do anything. However it would be > >> nice if the SDM can define a bit _for the hypervisors_ to enfo

Re: swap_info_get: Bad swap offset entry 0200f8a7

2017-10-19 Thread Minchan Kim
Hello, On Sun, Oct 15, 2017 at 05:17:36PM -0700, Christian Kujau wrote: > Hi, > > every now and then (and more frequently now) I receive the following > message on this Atom N270 netbook: > > swap_info_get: Bad swap offset entry 0200f8a7 > > This started to show up a few months ago but appea

Re: [2/2] x86/unwind: Make CONFIG_UNWINDER_ORC=y the default in kconfig for 64-bit

2017-10-19 Thread Andrei Vagin
On Thu, Oct 19, 2017 at 03:35:22PM -0700, Andrei Vagin wrote: > On Thu, Oct 19, 2017 at 01:16:55PM -0500, Josh Poimboeuf wrote: > > On Thu, Oct 19, 2017 at 09:51:04AM -0700, Andrei Vagin wrote: > > > Hi, > > > > > > We run CRIU tests for tip/auto-latest regularly, and a few days ago our > > > test

Re: [lustre-devel] [PATCH 0/6] dcache/namei fixes for lustre

2017-10-19 Thread NeilBrown
On Sun, Aug 20 2017, James Simmons wrote: >> This series is a revised version of two patches I sent >> previously (one of which was sadly broken). >> That patch has been broken into multiple parts for easy >> review. The other is included unchanged as the last of >> this series. >> >> I was draw

Re: [VFS PATCH] constify more dcache.h inlined helpers.

2017-10-19 Thread NeilBrown
On Wed, Aug 02 2017, NeilBrown wrote: > Many of the inlines in dcache.h were changed to accept > const struct pointers in commit f0d3b3ded999 ("constify dcache.c > inlined helpers where possible"). > This patch allows 'const' in a couple that were added since then. > > Signed-off-by: NeilBrown P

Re: [PATCH 1/3] iommu/vt-d: Missing checks for pasid tables if allocation fails

2017-10-19 Thread Lu Baolu
Hi Yi, On 10/19/2017 02:40 PM, Liu, Yi L wrote: > >> -Original Message- >> From: iommu-boun...@lists.linux-foundation.org [mailto:iommu- >> boun...@lists.linux-foundation.org] On Behalf Of Lu Baolu >> Sent: Thursday, October 19, 2017 8:39 AM >> To: j...@8bytes.org; dw...@infradead.org >> C

[PATCH 01/14] lockdep: Add IRQs disabled/enabled assertion

2017-10-19 Thread Frederic Weisbecker
Checking whether IRQs are enabled or disabled is a very common sanity check, however not free of overhead especially on fastpath where such assertion is very common. Lockdep is a good host for such concurrency correctness check and it even already tracks down IRQs disablement state. Just reuse its

[PATCH 07/14] x86: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- arch/x86/en

[PATCH 00/14] lockdep: Add lightweight IRQs disabled/enabled check

2017-10-19 Thread Frederic Weisbecker
Checking whether IRQs are disabled or enabled is often an important sanity check. Now we can be sometimes reluctant to have it on fastpath because reading the flags can be somewhat costly. As suggested by Peter Zijlstra some time ago, this would be a nice lockdep extension: it's the natural concur

[PATCH 09/14] irq/timings: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/irq/

[PATCH 11/14] sched: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/sche

[PATCH 12/14] posix-cpu-timers: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/time

[PATCH 13/14] netpoll: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney Cc: David S. Mil

[PATCH 14/14] rcu: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Lockdep now has an integrated IRQs disabled/enabled sanity check. Just use it instead of the ad-hoc RCU version. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/rcu/tree.c| 16 kernel/rcu/tree_

[PATCH 10/14] irq_work: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/irq_

[PATCH 08/14] perf: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/even

[PATCH 02/14] irq: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/soft

[PATCH 05/14] hrtimer: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/time

[PATCH 03/14] workqueue: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney Cc: Tejun Heo C

[PATCH 06/14] smp: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/smp.

[PATCH 04/14] nohz: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/time

Re: [PATCH v12 09/11] mm: stop zeroing memory during allocation in vmemmap

2017-10-19 Thread Pavel Tatashin
This looks good to me, thank you Andrew. Pavel

Re: [PATCH 3/5] powerpc-pseries: Delete an unnecessary variable initialisation in iommu_pseries_alloc_group()

2017-10-19 Thread David Gibson
On Thu, Oct 19, 2017 at 03:55:59PM +0300, Dan Carpenter wrote: > On Thu, Oct 19, 2017 at 01:37:18PM +0200, Michal Suchánek wrote: > > Hello, > > > > On Wed, 18 Oct 2017 21:24:25 +0200 > > SF Markus Elfring wrote: > > > > > From: Markus Elfring > > > Date: Wed, 18 Oct 2017 19:14:39 +0200 > > >

[PATCH v3] driver core: Move device_links_purge() after bus_remove_device()

2017-10-19 Thread Jeffy Chen
The current ordering of code in device_del() triggers a WARN_ON() in device_links_purge(), because of an unexpected link status. The device_links_unbind_consumers() call in device_release_driver() has to take place before device_links_purge() for the status of all links to be correct, so move the

Re: [PATCH v2] driver core: Move device_links_purge() after bus_remove_device()

2017-10-19 Thread jeffy
Hi Rafael, On 10/19/2017 10:56 PM, Rafael J. Wysocki wrote: Signed-off-by: Rafael J. Wysocki It has not been signed off by me, so you should not have added the line above. Signed-off-by: Jeffy Chen For the patch itself and the changelog *except* for the S-o-b line: Reviewed-by: Rafael

Re: [PATCH v5 04/13] xen/pvcalls: implement socket command and handle events

2017-10-19 Thread Stefano Stabellini
On Tue, 17 Oct 2017, Boris Ostrovsky wrote: > On 10/06/2017 08:30 PM, Stefano Stabellini wrote: > > Send a PVCALLS_SOCKET command to the backend, use the masked > > req_prod_pvt as req_id. This way, req_id is guaranteed to be between 0 > > and PVCALLS_NR_REQ_PER_RING. We already have a slot in the

Re: [2/2] x86/unwind: Make CONFIG_UNWINDER_ORC=y the default in kconfig for 64-bit

2017-10-19 Thread Josh Poimboeuf
On Thu, Oct 19, 2017 at 03:35:22PM -0700, Andrei Vagin wrote: > On Thu, Oct 19, 2017 at 01:16:55PM -0500, Josh Poimboeuf wrote: > > On Thu, Oct 19, 2017 at 09:51:04AM -0700, Andrei Vagin wrote: > > > Hi, > > > > > > We run CRIU tests for tip/auto-latest regularly, and a few days ago our > > > test

Re: [PATCH 0/12] PM / sleep: Driver flags for system suspend/resume

2017-10-19 Thread Rafael J. Wysocki
On Thursday, October 19, 2017 2:21:07 PM CEST Ulf Hansson wrote: > On 19 October 2017 at 00:12, Rafael J. Wysocki wrote: > > On Wednesday, October 18, 2017 4:11:33 PM CEST Ulf Hansson wrote: > >> [...] > >> > >> >> > >> >> The reason why pm_runtime_force_* needs to respects the hierarchy of > >> >

<    6   7   8   9   10   11   12   13   >