Re: [PATCH 4/7] dt-bindings: sdm845-pinctrl: add wakeup interrupt parent for GPIO

2019-01-09 Thread Rob Herring
On Wed, Jan 9, 2019 at 11:31 AM Lina Iyer wrote: > > On Tue, Jan 08 2019 at 07:49 -0700, Rob Herring wrote: > >On Mon, Jan 7, 2019 at 12:51 PM Lina Iyer wrote: > >> > >> On Fri, Dec 28 2018 at 17:07 -0700, Rob Herring wrote: > >> >On Wed, Dec 19, 2018 at 03:11:02PM -0700, Lina Iyer wrote: > >>

Re: [PATCH v2] ARM: dts: omap3-gta04: Fix graph_port warning

2019-01-09 Thread Rob Herring
On Wed, Jan 9, 2019 at 1:02 PM H. Nikolaus Schaller wrote: > > From: Tony Lindgren > > We're currently getting a warning with make dtbs: > > arch/arm/boot/dts/omap3-gta04.dtsi:720.7-727.4: Warning (graph_port): > /ocp@6800/dss@4805/encoder@48050c0 0/port: graph node unit > address error,

Re: [PATCH 4.19 000/170] 4.19.14-stable review

2019-01-09 Thread Guenter Roeck
On Wed, Jan 09, 2019 at 03:38:11PM +0100, Greg Kroah-Hartman wrote: > On Tue, Jan 08, 2019 at 03:07:31PM -0800, Guenter Roeck wrote: > > On Mon, Jan 07, 2019 at 01:30:27PM +0100, Greg Kroah-Hartman wrote: > > > This is the start of the stable review cycle for the 4.19.14 release. > > > There are

Re: [PATCH v2 2/2] clk: Add Fixed MMIO clock driver

2019-01-09 Thread Stephen Boyd
Quoting Jan Kotas (2018-12-13 04:49:29) > This patch adds a driver for Fixed MMIO clock. > The driver reads a clock frequency value from a single 32-bit memory > mapped register and registers it as a fixed rate clock. > > It can be enabled with COMMON_CLK_FIXED_MMIO Kconfig option. > >

Re: [PATCH v2 2/2] clk: Add Fixed MMIO clock driver

2019-01-09 Thread Stephen Boyd
Quoting Jan Kotas (2018-12-13 04:49:29) > This patch adds a driver for Fixed MMIO clock. > The driver reads a clock frequency value from a single 32-bit memory > mapped register and registers it as a fixed rate clock. > > It can be enabled with COMMON_CLK_FIXED_MMIO Kconfig option. > >

Re: [PATCH v2 1/2] dt-bindings: clk: Add bindings for Fixed MMIO clock

2019-01-09 Thread Stephen Boyd
Quoting Jan Kotas (2018-12-13 04:49:28) > This patch adds a DT binding documentation for Fixed > Memory Mapped IO clocks. > > Signed-off-by: Jan Kotas > --- Applied to clk-next

Re: [PATCH v1 1/2] vfio:iommu: Use capabilities do report IOMMU informations

2019-01-09 Thread Alex Williamson
On Wed, 9 Jan 2019 18:07:19 +0100 Pierre Morel wrote: > On 09/01/2019 16:37, Alex Williamson wrote: > > On Wed, 9 Jan 2019 13:41:53 +0100 > > Pierre Morel wrote: > > > >> We add a new flag, VFIO_IOMMU_INFO_CAPABILITIES, inside the > >> vfio_iommu_type1_info to specify the support for

Re: [PATCH 1/5 v2] PM / hibernate: Create snapshot keys handler

2019-01-09 Thread James Bottomley
On Wed, 2019-01-09 at 10:34 -0800, Andy Lutomirski wrote: > > > On Jan 8, 2019, at 10:49 PM, James Bottomley > > senpartnership.com> wrote: > > > > > > On Tue, 2019-01-08 at 17:43 -0800, Andy Lutomirski wrote: > > > [Adding Jarkko because this stuff relates to the TPM.] > > > Anyway, if we're

Re: [PATCH v4] clk: qcom: smd: Add support for MSM8998 rpm clocks

2019-01-09 Thread Stephen Boyd
Quoting Jeffrey Hugo (2018-12-17 18:15:36) > Add rpm smd clocks, PMIC and bus clocks which are required on MSM8998 > for clients to vote on. > > Signed-off-by: Jeffrey Hugo > --- Applied to clk-next

[PATCH v11 00/15] tracing: Hist trigger snapshot and onchange additions

2019-01-09 Thread Tom Zanussi
From: Tom Zanussi Hi, This is v11 of the hist trigger snapshot and onchange additions patchset. It doesn't add anything new - it's just a rebase of v10 on top of the latest ftrace/core with conflicts due to the new str_has_prefix() fixed. Thanks, Tom v10->v11 changes: - Updated to use

[PATCH v11 01/15] tracing: Refactor hist trigger action code

2019-01-09 Thread Tom Zanussi
From: Tom Zanussi The hist trigger action code currently implements two essentially hard-coded pairs of 'actions' - onmax(), which tracks a variable and saves some event fields when a max is hit, and onmatch(), which is hard-coded to generate a synthetic event. These hardcoded pairs (track

[PATCH v11 06/15] tracing: Add hist trigger snapshot() action

2019-01-09 Thread Tom Zanussi
From: Tom Zanussi Add support for hist:handlerXXX($var).snapshot(), which will take a snapshot of the current trace buffer whenever handlerXXX is hit. As a first user, this also adds snapshot() action support for the onmax() handler i.e. hist:onmax($var).snapshot(). Also, the hist trigger key

[PATCH v11 09/15] tracing: Add hist trigger onchange() handler Documentation

2019-01-09 Thread Tom Zanussi
From: Tom Zanussi Add Documentation for the hist:onchange($var) handler. Signed-off-by: Tom Zanussi --- Documentation/trace/histogram.rst | 98 +++ 1 file changed, 98 insertions(+) diff --git a/Documentation/trace/histogram.rst

[PATCH v11 03/15] tracing: Split up onmatch action data

2019-01-09 Thread Tom Zanussi
From: Tom Zanussi Currently, the onmatch action data binds the onmatch action to data related to synthetic event generation. Since we want to allow the onmatch handler to potentially invoke a different action, and because we expect other handlers to generate synthetic events, we need to

[PATCH v11 14/15] tracing: Add alternative synthetic event trace action test case

2019-01-09 Thread Tom Zanussi
From: Tom Zanussi Add a test case for the alternative trace( --- .../inter-event/trigger-trace-action-hist.tc | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-trace-action-hist.tc diff

[PATCH v11 15/15] tracing: Add hist trigger action 'expected fail' test case

2019-01-09 Thread Tom Zanussi
From: Tom Zanussi Add a test case verifying that basic action combinations fail as expected. Signed-off-by: Tom Zanussi --- .../inter-event/trigger-action-hist-xfail.tc | 30 ++ 1 file changed, 30 insertions(+) create mode 100644

[PATCH v11 13/15] tracing: Add hist trigger onchange() handler test case

2019-01-09 Thread Tom Zanussi
From: Tom Zanussi Add a test case verifying the basic functionality of the hist:onchange($var) handler. Signed-off-by: Tom Zanussi Acked-by: Masami Hiramatsu --- .../inter-event/trigger-onchange-action-hist.tc| 28 ++ 1 file changed, 28 insertions(+) create mode

[PATCH v11 11/15] tracing: Add SPDX license GPL-2.0 license identifier to inter-event testcases

2019-01-09 Thread Tom Zanussi
From: Tom Zanussi Apparently this directory was missed in the license cleanup process - add the missing identifiers to the trigger/inter-event test cases. Signed-off-by: Tom Zanussi --- .../ftrace/test.d/trigger/inter-event/trigger-extended-error-support.tc | 1 +

[PATCH v11 12/15] tracing: Add hist trigger snapshot() action test case

2019-01-09 Thread Tom Zanussi
From: Tom Zanussi Add a test case verifying the basic functionality of the hist:snapshot() action. Signed-off-by: Tom Zanussi Acked-by: Masami Hiramatsu --- .../inter-event/trigger-snapshot-action-hist.tc| 43 ++ 1 file changed, 43 insertions(+) create mode 100644

Path your photos?

2019-01-09 Thread Jane
Do you have photos for editing? We asked this because we see your photos on your website. We mainly supply service for photos cut out , clipping path, and retouching. You may just send us a photo, we can provide you test editing to check quality. Thanks, Jane

[PATCH v11 10/15] tracing: Add alternative synthetic event trace action syntax

2019-01-09 Thread Tom Zanussi
From: Tom Zanussi Add a 'trace(synthetic_event_name, params)' alternative to synthetic_event_name(params). Currently, the syntax used for generating synthetic events is to invoke synthetic_event_name(params) i.e. use the synthetic event name as a function call. Users requested a new form that

[PATCH v11 08/15] tracing: Add hist trigger onchange() handler

2019-01-09 Thread Tom Zanussi
From: Tom Zanussi Add support for a hist:onchange($var) handler, similar to the onmax() handler but triggering whenever there's any change in $var, not just a max. Signed-off-by: Tom Zanussi --- kernel/trace/trace.c | 3 ++- kernel/trace/trace_events_hist.c | 58

[PATCH v11 05/15] tracing: Add conditional snapshot

2019-01-09 Thread Tom Zanussi
From: Tom Zanussi Currently, tracing snapshots are context-free - they capture the ring buffer contents at the time the tracing_snapshot() function was invoked, and nothing else. Additionally, they're always taken unconditionally - the calling code can decide whether or not to take a snapshot,

Path your photos?

2019-01-09 Thread Jane
Do you have photos for editing? We asked this because we see your photos on your website. We mainly supply service for photos cut out , clipping path, and retouching. You may just send us a photo, we can provide you test editing to check quality. Thanks, Jane

[PATCH v11 07/15] tracing: Add hist trigger snapshot() action Documentation

2019-01-09 Thread Tom Zanussi
From: Tom Zanussi Add Documentation for the hist:handlerXXX($var).snapshot() action. Signed-off-by: Tom Zanussi --- Documentation/trace/histogram.rst | 110 ++ 1 file changed, 110 insertions(+) diff --git a/Documentation/trace/histogram.rst

[PATCH v11 02/15] tracing: Make hist trigger Documentation better reflect actions/handlers

2019-01-09 Thread Tom Zanussi
From: Tom Zanussi The action/handler code refactoring didn't change the action/handler syntax, but did generalize it - the Documentation should reflect that. Signed-off-by: Tom Zanussi --- Documentation/trace/histogram.rst | 56 ++- 1 file changed, 43

[PATCH v11 04/15] tracing: Generalize hist trigger onmax and save action

2019-01-09 Thread Tom Zanussi
From: Tom Zanussi The action refactor code allowed actions and handlers to be separated, but the existing onmax handler and save action code is still not flexible enough to handle arbitrary coupling. This change generalizes them and in the process makes additional handlers and actions easier to

[PATCH 0/3] doc: networking: integrate scaling document into doc tree

2019-01-09 Thread Otto Sabart
These patches integrate scaling document into documentation tree. There are no semantic changes. Otto Sabart (3): doc: networking: prepare scaling document for conversion into RST doc: networking: convert scaling doc into RST doc: networking: add scaling doc into index file

[PATCH v10 0/2] Add pixel format for 10 bits YUV video

2019-01-09 Thread Randy Li
As the requirement from: P010 fourcc format support - Was: Re: Kernel error "Unknown pixelformat 0x" occurs when I start capture video I don't know which device would support the P010, P012, P016 video pixel format, but Rockchip would support that NV12_10LE40 and a patch for that driver

[PATCH 2/3] doc: networking: convert scaling doc into RST

2019-01-09 Thread Otto Sabart
Just rename the scaling file to be found by Sphinx. There are no references to "scaling.txt" file. Whole kernel tree was checked using: $ grep -r "scaling\.txt" Signed-off-by: Otto Sabart --- Documentation/networking/{scaling.txt => scaling.rst} | 0 1 file changed, 0 insertions(+), 0

[PATCH v10 2/2] drm/fourcc: add a 10bits fully packed variant of NV12

2019-01-09 Thread Randy Li
This pixel format is a fully packed and 10bits variant of NV12. A luma pixel would take 10bits in memory, without any filled bits between pixels in a stride. Signed-off-by: Randy Li --- drivers/gpu/drm/drm_fourcc.c | 4 include/uapi/drm/drm_fourcc.h | 8 2 files changed, 12

[PATCH 1/3] doc: networking: prepare scaling document for conversion into RST

2019-01-09 Thread Otto Sabart
Add markups which are necessary for successful conversion into reStructuredText. There are no semantic changes. Signed-off-by: Otto Sabart --- Documentation/networking/scaling.txt | 131 +-- 1 file changed, 85 insertions(+), 46 deletions(-) diff --git

[PATCH v10 1/2] drm/fourcc: Add new P010, P016 video format

2019-01-09 Thread Randy Li
P010 is a planar 4:2:0 YUV with interleaved UV plane, 10 bits per channel video format. P012 is a planar 4:2:0 YUV 12 bits per channel P016 is a planar 4:2:0 YUV with interleaved UV plane, 16 bits per channel video format. V3: Added P012 and fixed cpp for P010. V4: format definition refined per

[PATCH 3/3] doc: networking: add scaling doc into index file

2019-01-09 Thread Otto Sabart
Add reference to scaling document into main table of contents in network documentation. Signed-off-by: Otto Sabart --- Documentation/networking/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/networking/index.rst b/Documentation/networking/index.rst index

Re: [PATCH v2 0/4] /proc/stat: Reduce irqs counting performance overhead

2019-01-09 Thread Matthew Wilcox
On Wed, Jan 09, 2019 at 01:54:36PM -0500, Waiman Long wrote: > If you read patch 4, you can see that quite a bit of CPU cycles was > spent looking up the radix tree to locate the IRQ descriptor for each of > the interrupts. Those overhead will still be there even if I use percpu > counters. So

Re: [GIT PULL] csky fixup for linux-5.0-rc1

2019-01-09 Thread Konstantin Ryabitsev
On Wed, Jan 09, 2019 at 10:40:20AM -0800, Linus Torvalds wrote: > Side note: I do wish people would use the proper _public_ access. I'm wondering if this largely happens due to people's insteadOf rules. We've established that git-request-pull will quietly substitute URLs in the emails it

Re: [PATCH] lkdtm: Add a tests for NULL pointer dereference

2019-01-09 Thread Kees Cook
On Wed, Jan 9, 2019 at 7:16 AM Kees Cook wrote: > > On Tue, Jan 8, 2019 at 10:31 PM Christophe Leroy > wrote: > > > > > > > > Le 09/01/2019 à 02:14, Kees Cook a écrit : > > > On Fri, Dec 14, 2018 at 7:26 AM Christophe Leroy > > > wrote: > > >> > > >> Introduce lkdtm tests for NULL pointer

Re: [PATCH 1/2] dt: bindings: lp5024: Introduce the lp5024 and lp5018 RGB driver

2019-01-09 Thread Jacek Anaszewski
Hi Dan, On 1/8/19 10:22 PM, Dan Murphy wrote: On 1/8/19 3:16 PM, Jacek Anaszewski wrote: On 1/8/19 9:53 PM, Dan Murphy wrote: Jacek On 1/8/19 2:33 PM, Jacek Anaszewski wrote: Dan, On 12/19/18 5:26 PM, Dan Murphy wrote: Introduce the bindings for the Texas Instruments LP5024 and the LP5018

[GIT PULL] lkdtm updates for -next

2019-01-09 Thread Kees Cook
Hi Greg, Please pull these lkdtm changes for next (into, I assume, your drivers-misc tree). Thanks! -Kees The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c: Linux 5.0-rc1 (2019-01-06 17:08:20 -0800) are available in the Git repository at:

Re: [PATCH 1/5 v2] PM / hibernate: Create snapshot keys handler

2019-01-09 Thread Andy Lutomirski
On Wed, Jan 9, 2019 at 11:46 AM James Bottomley wrote: > > On Wed, 2019-01-09 at 10:34 -0800, Andy Lutomirski wrote: > > > > On Jan 8, 2019, at 10:49 PM, James Bottomley > > > senpartnership.com> wrote: > > > > > > If so, then a signature that the kernel would have prevented user > > code

Re: [PATCH v2 0/4] /proc/stat: Reduce irqs counting performance overhead

2019-01-09 Thread Waiman Long
On 01/09/2019 02:59 PM, Matthew Wilcox wrote: > On Wed, Jan 09, 2019 at 01:54:36PM -0500, Waiman Long wrote: >> If you read patch 4, you can see that quite a bit of CPU cycles was >> spent looking up the radix tree to locate the IRQ descriptor for each of >> the interrupts. Those overhead will

[PATCH] mm: shuffle GFP_* flags

2019-01-09 Thread Alexey Dobriyan
GFP_KERNEL is one of the most used constant but on archs like arm with fixed length instruction some constants are more equal than the others. Constants with tightly packed bits can be injected directly into instruction stream: 0: e3a00d33mov r0, #3264 ; 0xcc0

[PATCH 0/2] Cleanup ARM arches to use common memblocks_present

2019-01-09 Thread Logan Gunthorpe
Hey, We've recently added a new memblocks_present() helper macro to clean up some common code with ARM and code we are adding in RISC-V. The commit that added the helper is: 9def36e0fa9a ("mm/sparse: add common helper to mark all memblocks present") This series includes two patches to switch

[PATCH 2/2] arm64: mm: make use of new memblocks_present() helper

2019-01-09 Thread Logan Gunthorpe
Cleanup the arm64_memory_present() function seeing it's very similar to other arches. memblocks_present() is a direct replacement of arm64_memory_present() Signed-off-by: Logan Gunthorpe Acked-by: Catalin Marinas Cc: Will Deacon --- arch/arm64/mm/init.c | 20 +--- 1 file

[PATCH 1/2] ARM: mm: make use of new memblocks_present() helper

2019-01-09 Thread Logan Gunthorpe
Cleanup the arm_memory_present() function seeing it's very similar to other arches. The new memblocks_present() helper checks for node ids which the arm version did not. However, this is equivalent seeing HAVE_MEMBLOCK_NODE_MAP should be false in this arch and therefore memblock_get_region_node()

[PATCH] powerpc/8xx: fix setting of pagetable for Abatron BDI debug tool.

2019-01-09 Thread Christophe Leroy
Commit 8c8c10b90d88 ("powerpc/8xx: fix handling of early NULL pointer dereference") moved the loading of r6 earlier in the code. As some functions are called inbetween, r6 needs to be loaded again with the address of swapper_pg_dir in order to set PTE pointers for the Abatron BDI. Fixes:

[RFC] Use plan9 C extensions

2019-01-09 Thread Matthew Wilcox
While replacing idr_alloc_cyclic(), I've come across a situation in which being able to depend on -fplan9-extensions is going to lead to nicer code in the users. For cyclic allocations, we need to keep a 'next' value somewhere. The IDR had a moderately large root, so they didn't mind the cost

Re: [PATCH v3 1/4] drm/vc4: Wait for display list synchronization when completing commit

2019-01-09 Thread Daniel Vetter
On Wed, Jan 09, 2019 at 05:52:20PM +0100, Paul Kocialkowski wrote: > Hi Daniel, > > On Tue, 2019-01-08 at 19:21 +0100, Daniel Vetter wrote: > > On Tue, Jan 8, 2019 at 3:51 PM Paul Kocialkowski > > wrote: > > > During an atomic commit, the HVS is configured with a display list > > > for the

[PATCH v4 1/2] sh: mm: make use of new memblocks_present() helper

2019-01-09 Thread Logan Gunthorpe
Cleanup the open coded for_each_memblock() loop that is equivalent to the new memblocks_present() helper. Signed-off-by: Logan Gunthorpe Cc: Yoshinori Sato Cc: Rich Felker Cc: Dan Williams Cc: Rob Herring --- arch/sh/mm/init.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-)

[PATCH v4 0/2] [PATCH v2 0/6] sparsemem support for RISC-V

2019-01-09 Thread Logan Gunthorpe
This patchset implements sparsemem on RISC-V. The first couple patches from the previous version have been merged into v4.20 and the ARM patches have been sent separately to the ARM maintainers. These are the RISC-V patches only. This is the first small step in supporting P2P on RISC-V. --

[PATCH v4 2/2] RISC-V: Implement sparsemem

2019-01-09 Thread Logan Gunthorpe
This patch implements sparsemem support for risc-v which helps pave the way for memory hotplug and eventually P2P support. We introduce Kconfig options for virtual and physical address bits which are used to calculate the size of the vmemmap and set the MAX_PHYSMEM_BITS. The vmemmap is located

Re: [RFC v3 PATCH 0/5] mm: memcontrol: do memory reclaim when offlining

2019-01-09 Thread Yang Shi
On 1/9/19 11:32 AM, Johannes Weiner wrote: On Thu, Jan 10, 2019 at 03:14:40AM +0800, Yang Shi wrote: We have some usecases which create and remove memcgs very frequently, and the tasks in the memcg may just access the files which are unlikely accessed by anyone else. So, we prefer

Re: [PATCH v7 1/5] dt-bindings: leds: Add pattern initialization from Device Tree

2019-01-09 Thread Jacek Anaszewski
Hi Krzysztof, Thank you for the update. Patch set looks good to me. Now we're missing only ack from Rob for this patch. Best regards, Jacek Anaszewski On 1/9/19 3:44 PM, Krzysztof Kozlowski wrote: Document new led-pattern property for initialization of LED triggers. The property format is

Re: [PATCH v8 4/4] clk: meson: add sub MMC clock controller driver

2019-01-09 Thread Stephen Boyd
Quoting Jianxin Pan (2018-12-17 08:24:10) > diff --git a/drivers/clk/meson/mmc-clkc.c b/drivers/clk/meson/mmc-clkc.c > new file mode 100644 > index 000..2582a98 > --- /dev/null > +++ b/drivers/clk/meson/mmc-clkc.c > @@ -0,0 +1,304 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + *

One more step for your photos

2019-01-09 Thread Jane
Do you have photos for editing? We asked this because we see your photos on your website. We mainly supply service for photos cut out , clipping path, and retouching. You may just send us a photo, we can provide you test editing to check quality. Thanks, Jane

Re: [PATCH] media: s5p-jpeg: Correct step and max values for V4L2_CID_JPEG_RESTART_INTERVAL

2019-01-09 Thread Jacek Anaszewski
Hi Paweł, Thank you for the patch. On 1/9/19 7:00 PM, Paweł Chmiel wrote: This commit corrects max and step values for v4l2 control for V4L2_CID_JPEG_RESTART_INTERVAL. Max should be 0x and step should be 1. It was found by using v4l2-compliance tool and checking result of

Re: [PATCH v3] loop: drop caches if offset or block_size are changed

2019-01-09 Thread Bart Van Assche
On Tue, 2018-12-18 at 14:41 -0800, Jaegeuk Kim wrote: > [ ... ] Please post new versions of a patch as a new e-mail thread instead of as a reply to a previous e-mail. > [ ... ] > > if (lo->lo_offset != info->lo_offset || > lo->lo_sizelimit != info->lo_sizelimit) { > +

Re: [PATCH v2 15/15] drm/bochs: reserve bo for pin/unpin

2019-01-09 Thread Gerd Hoffmann
Hi, > > If I understand things correctly it is valid to set all import/export > > callbacks (prime_handle_to_fd, prime_fd_to_handle, > > gem_prime_get_sg_table, gem_prime_import_sg_table) to NULL when not > > supporting dma-buf import/export and still advertise DRIVER_PRIME to > > indicate the

[PATCH] xfs: silence lockdep false positives when freezing

2019-01-09 Thread Qian Cai
Easy to reproduce: 1. run LTP oom02 workload to let kswapd acquire this locking order: fs_reclaim -> sb_internal. # grep -i fs_reclaim -C 3 /proc/lockdep_chains | grep -C 5 sb_internal [826b9172] >s_umount_key#27 [5fa8b2ac] sb_pagefaults [33f1247e] sb_internal

[PATCH][re-post] vmbus: fix subchannel removal

2019-01-09 Thread Dexuan Cui
The changes to split ring allocation from open/close, broke the cleanup of subchannels. This resulted in problems using uio on network devices because the subchannel was left behind when the network device was unbound. The cause was in the disconnect logic which used list splice to move the

Re: [RFC PATCH 1/3] can: m_can: Create m_can core to leverage common code

2019-01-09 Thread Dan Murphy
Wolfgang On 11/3/18 5:45 AM, Wolfgang Grandegger wrote: > Hello Dan, > > Am 31.10.2018 um 21:15 schrieb Dan Murphy: >> Wolfgang >> >> Thanks for the review >> >> On 10/27/2018 09:19 AM, Wolfgang Grandegger wrote: >>> Hello Dan, >>> >>> for the RFC, could you please just do the necessary changes

Re: [PATCH] xfs: silence lockdep false positives when freezing

2019-01-09 Thread Dave Chinner
On Wed, Jan 09, 2019 at 03:53:29PM -0500, Qian Cai wrote: > Easy to reproduce: > > 1. run LTP oom02 workload to let kswapd acquire this locking order: >fs_reclaim -> sb_internal. > > # grep -i fs_reclaim -C 3 /proc/lockdep_chains | grep -C 5 sb_internal > [826b9172] >s_umount_key#27

[PATCH v6 16/16] lockdep tests: Test dynamic key registration

2019-01-09 Thread Bart Van Assche
Make sure that the lockdep_register_key() and lockdep_unregister_key() code is tested when running the lockdep tests. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- tools/lib/lockdep/include/liblockdep/common.h | 2 ++

[PATCH v6 01/16] locking/lockdep: Fix reported required memory size

2019-01-09 Thread Bart Van Assche
Change the sizeof(array element time) * (array size) expressions into sizeof(array). This fixes the size computations of the classhash_table[] and chainhash_table[] arrays. Commit a63f38cc4ccf ("locking/lockdep: Convert hash tables to hlists") namely changed the type of the elements of that array

[PATCH v6 09/16] locking/lockdep: Reuse list entries that are no longer in use

2019-01-09 Thread Bart Van Assche
Instead of abandoning elements of list_entries[] that are no longer in use, make alloc_list_entry() reuse array elements that have been freed. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 48

[PATCH v6 10/16] locking/lockdep: Introduce lockdep_next_lockchain() and lock_chain_count()

2019-01-09 Thread Bart Van Assche
This patch does not change any functionality but makes the next patch in this series easier to read. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 16 +++- kernel/locking/lockdep_internals.h | 3 ++-

[PATCH v6 00/16] locking/lockdep: Add support for dynamic keys

2019-01-09 Thread Bart Van Assche
Hi Peter and Ingo, A known shortcoming of the current lockdep implementation is that it requires lock keys to be allocated statically. This forces certain unrelated synchronization objects to share keys and this key sharing can cause false positive deadlock reports. This patch series adds support

[PATCH v6 14/16] locking/lockdep: Add support for dynamic keys

2019-01-09 Thread Bart Van Assche
A shortcoming of the current lockdep implementation is that it requires lock keys to be allocated statically. That forces certain lock objects to share lock keys. Since lock dependency analysis groups lock objects per key sharing lock keys can cause false positive lockdep reports. Make it possible

[PATCH v6 15/16] kernel/workqueue: Use dynamic lockdep keys for workqueues

2019-01-09 Thread Bart Van Assche
Commit 87915adc3f0a ("workqueue: re-add lockdep dependencies for flushing") improved deadlock checking in the workqueue implementation. Unfortunately that patch also introduced a few false positive lockdep complaints. This patch suppresses these false positives by allocating the workqueue mutex

[PATCH v6 05/16] locking/lockdep: Initialize the locks_before and locks_after lists earlier

2019-01-09 Thread Bart Van Assche
This patch does not change any functionality. A later patch will reuse lock classes that have been freed. In combination with that patch this patch wil have the effect of initializing lock class order lists once instead of every time a lock class structure is reinitialized. Cc: Peter Zijlstra

[PATCH v6 13/16] locking/lockdep: Verify whether lock objects are small enough to be used as class keys

2019-01-09 Thread Bart Van Assche
Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index acf61dbb8b30..72cff86829e6 100644 ---

[PATCH v6 12/16] locking/lockdep: Check data structure consistency

2019-01-09 Thread Bart Van Assche
Debugging lockdep data structure inconsistencies is challenging. Add code that verifies data structure consistency at runtime. That code is disabled by default because it is very CPU intensive. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche ---

[PATCH v6 02/16] locking/lockdep: Avoid that add_chain_cache() adds an invalid chain to the cache

2019-01-09 Thread Bart Van Assche
Make sure that add_chain_cache() returns 0 and does not modify the chain hash if nr_chain_hlocks == MAX_LOCKDEP_CHAIN_HLOCKS before this function is called. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 11 +-- 1

[PATCH v6 08/16] locking/lockdep: Free lock classes that are no longer in use

2019-01-09 Thread Bart Van Assche
Instead of leaving lock classes that are no longer in use in the lock_classes array, reuse entries from that array that are no longer in use. Maintain a linked list of free lock classes with list head 'free_lock_class'. Initialize that list from inside register_lock_class() instead of from inside

[PATCH v6 11/16] locking/lockdep: Reuse lock chains that have been freed

2019-01-09 Thread Bart Van Assche
A previous patch introduced a lock chain leak. Fix that leak by reusing lock chains that have been freed. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 62 ++-- 1 file changed, 34

[PATCH v6 07/16] locking/lockdep: Make it easy to detect whether or not inside a selftest

2019-01-09 Thread Bart Van Assche
The patch that frees unused lock classes will modify the behavior of lockdep_free_key_range() and lockdep_reset_lock() depending on whether or not these functions are called from the context of the lockdep selftests. Hence make it easy to detect whether or not lockdep code is called from the

[PATCH v6 03/16] locking/lockdep: Make zap_class() remove all matching lock order entries

2019-01-09 Thread Bart Van Assche
Make sure that all lock order entries that refer to a class are removed from the list_entries[] array when a kernel module is unloaded. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- include/linux/lockdep.h | 1 + kernel/locking/lockdep.c | 19

[PATCH v6 04/16] locking/lockdep: Reorder struct lock_class members

2019-01-09 Thread Bart Van Assche
This patch does not change any functionality but makes the patch that frees lock classes that are no longer in use easier to read. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- include/linux/lockdep.h | 14 +++--- 1 file changed, 7

[PATCH v6 06/16] locking/lockdep: Split lockdep_free_key_range() and lockdep_reset_lock()

2019-01-09 Thread Bart Van Assche
This patch does not change the behavior of these functions but makes the patch that frees unused lock classes easier to read. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 74 +--- 1 file

[PATCH RFC memory-model 0/6] LKMM updates

2019-01-09 Thread Paul E. McKenney
Hello! This series contains updates for the Linux-kernel memory model: 1-3.Add SRCU support, courtesy of Alan Stern. 4. Update README for adding of SRCU support. 5. Update memory-barriers.txt on enforcing heavy ordering for port-I/O accesses, courtesy of Will Deacon.

[PATCH RFC LKMM 5/7] docs/memory-barriers.txt: Enforce heavy ordering for port I/O accesses

2019-01-09 Thread Paul E. McKenney
From: Will Deacon David Laight explains: | A long time ago there was a document from Intel that said that | inb/outb weren't necessarily synchronised wrt memory accesses. | (Might be P-pro era). However no processors actually behaved that | way and more recent docs say that inb/outb are

[PATCH RFC LKMM 3/7] tools/memory-model: Add SRCU support

2019-01-09 Thread Paul E. McKenney
From: Alan Stern Add support for SRCU. Herd creates srcu events and linux-kernel.def associates them with three possible annotations (srcu-lock, srcu-unlock, and sync-srcu) corresponding to the API routines srcu_read_lock(), srcu_read_unlock(), and synchronize_srcu(). The linux-kernel.bell

[PATCH RFC LKMM 1/7] tools/memory-model: Rename some RCU relations

2019-01-09 Thread Paul E. McKenney
From: Alan Stern In preparation for adding support for SRCU, rename "crit" to "rcu-rscs", rename "rscs" to "rcu-rscsi", and remove the restriction to only the outermost level of nesting. The name change is needed for disambiguating RCU read-side critical sections from SRCU read-side critical

[PATCH RFC LKMM 2/7] tools/memory-model: Refactor some RCU relations

2019-01-09 Thread Paul E. McKenney
From: Alan Stern In preparation for adding support for SRCU, refactor the definitions of rcu-fence, rcu-rscsi, rcu-link, and rb by moving the po and po? terms from the first two to the second two. An rcu-gp relation is added; it is equivalent to gp with the po and po? terms removed. This is

[PATCH RFC LKMM 4/7] tools/memory-model: Update README for addition of SRCU

2019-01-09 Thread Paul E. McKenney
This commit updates the section on LKMM limitations to no longer say that SRCU is not modeled, but instead describe how LKMM's modeling of SRCU departs from the Linux-kernel implementation. TL;DR: There is no known valid use case that cares about the Linux kernel's ability to have partially

[PATCH RFC LKMM 6/7] tools/memory-model: Update Documentation/explanation.txt to include SRCU support

2019-01-09 Thread Paul E. McKenney
From: Alan Stern The recent commit adding support for SRCU to the Linux Kernel Memory Model ended up changing the names and meanings of several relations. This patch updates the explanation.txt documentation file to reflect those changes. It also revises the statement of the RCU Guarantee to a

[PATCH RFC LKMM 7/7] tools/memory-model: Dynamically check SRCU lock-to-unlock matching

2019-01-09 Thread Paul E. McKenney
From: Luc Maranget This commit checks that the return value of srcu_read_lock() is passed to the matching srcu_read_unlock(), where "matching" is determined by nesting. This check operates as follows: 1. srcu_read_lock() creates an integer token, which is stored into the generated

Re: [PATCH v2 0/7] drm: Remove drm_mode_object dependency from drm_display_mode

2019-01-09 Thread Daniel Vetter
On Thu, Dec 20, 2018 at 10:24:27AM -0200, Shayenne Moura wrote: > This patch serie removes drm_mode_object dependency from > drm_display_mode struct. This is part of KMS cleanup. > > Shayenne Moura (7): > drm: msm: Cleanup drm_display_mode print str > drm: omapdrm: Cleanup drm_display_mode

Re: General protection fault in `switch_mm_irqs_off()`

2019-01-09 Thread Borislav Petkov
On Wed, Jan 09, 2019 at 05:34:11PM +0100, Paul Menzel wrote: > Is there a way to trace the value of `boot_cpu_data` from > `arch/x86/include/asm/cpufeature.h` with some Linux Kernel magic? > > #define boot_cpu_has(bit) cpu_has(_cpu_data, bit) > > Or is rebuilding with print statements

Re: [PATCH 1/2] dt: bindings: lp5024: Introduce the lp5024 and lp5018 RGB driver

2019-01-09 Thread Dan Murphy
On 1/9/19 2:12 PM, Jacek Anaszewski wrote: > Hi Dan, > > On 1/8/19 10:22 PM, Dan Murphy wrote: >> On 1/8/19 3:16 PM, Jacek Anaszewski wrote: >>> On 1/8/19 9:53 PM, Dan Murphy wrote: Jacek On 1/8/19 2:33 PM, Jacek Anaszewski wrote: > Dan, > > On 12/19/18 5:26 PM, Dan

Re: [PATCH] xfs: silence lockdep false positives when freezing

2019-01-09 Thread Qian Cai
On Thu, 2019-01-10 at 08:01 +1100, Dave Chinner wrote: > On Wed, Jan 09, 2019 at 03:53:29PM -0500, Qian Cai wrote: > > Easy to reproduce: > > > > 1. run LTP oom02 workload to let kswapd acquire this locking order: > >    fs_reclaim -> sb_internal. > > > >  # grep -i fs_reclaim -C 3

Re: [PATCH] hv_netvsc: fix typos in code comments

2019-01-09 Thread Dexuan-Linux Cui
On Thu, Jan 3, 2019 at 4:13 PM Haiyang Zhang wrote: > > From: Adrian Vladu > > Sent: Thursday, January 3, 2019 2:43 PM > > To: linux-kernel@vger.kernel.org > > Cc: Adrian Vladu ; KY Srinivasan > > ; Haiyang Zhang ; Stephen > > Hemminger ; Sasha Levin ; > > David S. Miller ; apilotti > > > >

[PATCH tip/core/rcu 0/12] RCU flavor consolidation cleanups for v5.1

2019-01-09 Thread Paul E. McKenney
Hello! This series contains additional cleanups for RCU flavor consolidation: 1-2.Replace scheduler _sched() APIs with _rcu() counterparts. 3. Renaming and commenting changes due to only one rcuo kthread per CPU. 4. Make expedited IPI handler return after handling

[PATCH tip/core/rcu 12/12] rcu: Discard separate per-CPU callback counts

2019-01-09 Thread Paul E. McKenney
Back when there were multiple flavors of RCU, it was necessary to separately count lazy and non-lazy callbacks for each CPU. These counts were used in CONFIG_RCU_FAST_NO_HZ kernels to determine how long a newly idle CPU should be allowed to sleep before handling its RCU callbacks. But now that

[PATCH tip/core/rcu 09/12] rcu: Consolidate PREEMPT and !PREEMPT synchronize_rcu_expedited()

2019-01-09 Thread Paul E. McKenney
The CONFIG_PREEMPT=n and CONFIG_PREEMPT=y implementations of synchronize_rcu_expedited() are quite similar, and with small modifications to rcu_blocking_is_gp() can be made identical. This commit therefore makes this change in order to save a few lines of code and to reduce the amount of

[PATCH tip/core/rcu 11/12] rcu: Inline _synchronize_rcu_expedited() into synchronize_rcu_expedited()

2019-01-09 Thread Paul E. McKenney
Now that _synchronize_rcu_expedited() has only one caller, and given that this is a tail call, this commit inlines _synchronize_rcu_expedited() into synchronize_rcu_expedited(). Signed-off-by: Paul E. McKenney --- kernel/rcu/tree_exp.h | 81 +++ 1 file

[PATCH tip/core/rcu 07/12] rcu: Inline rcu_kthread_do_work() into its sole remaining caller

2019-01-09 Thread Paul E. McKenney
The rcu_kthread_do_work() function has a single-line body and only one remaining caller. This commit therefore saves a few lines of code by inlining rcu_kthread_do_work() into its sole remaining caller. Signed-off-by: Paul E. McKenney --- kernel/rcu/tree_plugin.h | 7 +-- 1 file changed, 1

[PATCH tip/core/rcu 01/12] sched: Replace call_rcu_sched() with call_rcu()

2019-01-09 Thread Paul E. McKenney
Now that call_rcu()'s callback is not invoked until after all preempt-disable regions of code have completed (in addition to explicitly marked RCU read-side critical sections), call_rcu() can be used in place of call_rcu_sched(). This commit therefore makes that change. While in the area, this

[PATCH tip/core/rcu 10/12] rcu: Consolidate PREEMPT and !PREEMPT synchronize_rcu()

2019-01-09 Thread Paul E. McKenney
Now that rcu_blocking_is_gp() makes the correct immediate-return decision for both PREEMPT and !PREEMPT, a single implementation of synchronize_rcu() will work correctly under both configurations. This commit therefore eliminates a few lines of code by consolidating the two implementations of

[PATCH tip/core/rcu 08/12] rcu: Determine expedited-GP IPI handler at build time

2019-01-09 Thread Paul E. McKenney
Back when there could be multiple RCU flavors running in the same kernel at the same time, it was necessary to specify the expedited grace-period IPI handler at runtime. Now that there is only one RCU flavor, the IPI handler can be determined at build time. There is therefore no longer any

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