Re: Warning from swake_up_all in 4.14.15-rt13 non-RT

2018-03-06 Thread Sebastian Andrzej Siewior
On 2018-03-05 09:08:11 [-0600], Corey Minyard wrote: > Starting with the change > > 8a64547a07980f9d25e962a78c2e10ee82bdb742 fs/dcache: use swait_queue instead > of > waitqueue … > The following change is the obvious reason: > > --- a/kernel/sched/swait.c > +++ b/kernel/sched/swait.c > @@ -69,6

Re: [PATCH 5/7] block: Remove superflous rcu_read_[un]lock_sched() in blk_queue_enter()

2018-03-06 Thread Bart Van Assche
On Tue, 2018-03-06 at 09:33 -0800, Tejun Heo wrote: > 3a0a529971ec ("block, scsi: Make SCSI quiesce and resume work > reliably") added rcu_read_[un]lock_sched() to blk_queue_enter() along > with other changes but it doesn't seem to be doing anything. > > blk_queue_enter() is called with @q - the

Re: [PATCH] perf stat: fix cvs output format

2018-03-06 Thread Andi Kleen
> Here is the output from your own commit: > > 423470,,stalled-cycles-frontend,509102,100.00,65.69,frontend cycles idle > ,,stalled-cycles-backend,0,100.00 > > so line 1 has 7 fields, line 2 has 9 fields, and this is expected? If you had metrics on line 1 it would be correct.

Re: [PATCH] scsi: mpt3sas: clarify mmio pointer types

2018-03-06 Thread Martin K. Petersen
Arnd, > The newly added code mixes up phys_addr_t/resource_size_t with dma_addr_t > and void pointers, as seen from these compiler warning: Applied to 4.17/scsi-queue. Thanks for fixing this up! -- Martin K. Petersen Oracle Linux Engineering

[PATCH v2] kasan, slub: fix handling of kasan_slab_free hook

2018-03-06 Thread Andrey Konovalov
The kasan_slab_free hook's return value denotes whether the reuse of a slab object must be delayed (e.g. when the object is put into memory qurantine). The current way SLUB handles this hook is by ignoring its return value and hardcoding checks similar (but not exactly the same) to the ones

[PATCH] kernel/sys_ni: sort cond_syscall() entries

2018-03-06 Thread Dominik Brodowski
Shuffle the cond_syscall() entries in kernel/sys_ni.c around so that they are kept in the same order as in include/uapi/asm-generic/unistd.h. For better structuring, add the same comments as in that file, but keep a few additional comments and extend the commentary where it seems useful.

[PATCH] Fix partial warnings of checkpatch.pl for drivers/staging/greybus/i2c.c

2018-03-06 Thread Horatiu Vultur
Fix partial warnings of checkpatch.pl for drivers/staging/greybus/i2c.c Signed-off-by: Horatiu Vultur --- drivers/staging/greybus/i2c.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/greybus/i2c.c b/drivers/staging/greybus/i2c.c

[PATCH v8 37/63] mm: Convert add_to_swap_cache to XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox Combine __add_to_swap_cache and add_to_swap_cache into one function since there is no more need to preload. Signed-off-by: Matthew Wilcox --- mm/swap_state.c | 93 ++--- 1

[PATCH v8 38/63] mm: Convert delete_from_swap_cache to XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox Both callers of __delete_from_swap_cache have the swp_entry_t already, so pass that in to make constructing the XA_STATE easier. Signed-off-by: Matthew Wilcox --- include/linux/swap.h | 5 +++-- mm/swap_state.c | 24

[PATCH v8 31/63] page cache: Convert delete_batch to XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox Rename the function from page_cache_tree_delete_batch to just page_cache_delete_batch. Signed-off-by: Matthew Wilcox --- mm/filemap.c | 28 +--- 1 file changed, 13 insertions(+), 15 deletions(-) diff

[PATCH v8 32/63] page cache: Remove stray radix comment

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox Signed-off-by: Matthew Wilcox --- mm/filemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/filemap.c b/mm/filemap.c index 0635e9cdbc06..86c83014c909 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@

[PATCH v8 09/63] xarray: Add the xa_lock to the radix_tree_root

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox This results in no change in structure size on 64-bit machines as it fits in the padding between the gfp_t and the void *. 32-bit machines will grow the structure from 8 to 12 bytes. Almost all radix trees are protected with (at least) a spinlock,

[PATCH v8 12/63] xarray: Change definition of sibling entries

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox Instead of storing a pointer to the slot containing the canonical entry, store the offset of the slot. Produces slightly more efficient code (~300 bytes) and simplifies the implementation. Signed-off-by: Matthew Wilcox ---

[PATCH v8 01/63] mac80211_hwsim: Use DEFINE_IDA

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox This is preferred to opencoding an IDA_INIT. Signed-off-by: Matthew Wilcox --- drivers/net/wireless/mac80211_hwsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mac80211_hwsim.c

Re: Simplifying our RCU models

2018-03-06 Thread Paul E. McKenney
On Tue, Mar 06, 2018 at 09:47:38AM +0100, Ingo Molnar wrote: > > * Paul E. McKenney wrote: > > > > > But if we look at the bigger API picture: > > > > > > > > !PREEMPT_RCU PREEMPT_RCU=y > > > > rcu_read_lock():atomic

Re: [PATCH V2 06/12] vmbus/ring_buffer: remove some redundant helper function.

2018-03-06 Thread Greg KH
On Sun, Mar 04, 2018 at 10:17:16PM -0700, k...@exchange.microsoft.com wrote: > From: "lantianyu1...@gmail.com" That's not a "name" :( Please fix and resend. thanks, greg k-h

Re: [PATCH 1/2] vsprintf: distinguish between (null), (err) and (invalid) pointer derefs

2018-03-06 Thread Adam Borowski
On Tue, Mar 06, 2018 at 09:22:17PM +0300, Alexey Dobriyan wrote: > > +#define BAD_PTR_STRING(x) (!(x) ? "(null)" : IS_ERR(x) ? "(err)" : > > "(invalid)") > > This is getting ridiculous. > > Instead of simply printing a pointer as %08lx or %016llx, not only glibc > (null) stupidity is propagated

Re: [PATCH v6] arm64: Add support for new control bits CTR_EL0.DIC and CTR_EL0.IDC

2018-03-06 Thread Shanker Donthineni
Hi Will, On 03/06/2018 09:23 AM, Will Deacon wrote: > Hi Shanker, > > On Tue, Mar 06, 2018 at 08:47:27AM -0600, Shanker Donthineni wrote: >> On 03/06/2018 07:44 AM, Will Deacon wrote: >>> I think this is a slight asymmetry with the code for the I-side. On the >>> I-side, you hook into

Re: [PATCH] perf stat: fix cvs output format

2018-03-06 Thread Andi Kleen
> My understanding was that at some place there is a if/else > > if (supported counters) > fprintf_something with N fields, all filled in > else > fprintf_empty_fields with != N fields > > So I think this is not about using things like 'a,b,,' but

Re: [PATCH 1/2] mmc: bcm2835: reset host on timeout

2018-03-06 Thread Michal Suchánek
Hello, On Sat, 3 Mar 2018 14:58:45 +0100 (CET) Stefan Wahren wrote: > Hi Michal, > > yesterday i finished my stress tests with Raspberry Pi 3. > > Scenario: > - copy Tumbleweed on SD card > (openSUSE-Tumbleweed-ARM-JeOS-raspberrypi3.aarch64-2018.02.02-Build1.2.raw, >

[PATCH] mm: might_sleep warning

2018-03-06 Thread Pavel Tatashin
Robot reported this issue: https://lkml.org/lkml/2018/2/27/851 That is introduced by: mm: initialize pages on demand during boot The problem is caused by changing static branch value within spin lock. Spin lock disables preemption, and changing static branch value takes mutex lock in its path,

[pci PATCH v3 0/3] Add support for unmanaged SR-IOV

2018-03-06 Thread Alexander Duyck
This series is meant to add support for SR-IOV on devices when the VFs are not managed by the kernel. Examples of recent patches attempting to do this include: virto - https://patchwork.kernel.org/patch/10241225/ pci-stub - https://patchwork.kernel.org/patch/10109935/ vfio -

Re: [PATCH] usb,signal,security: only pass the cred, not the secid, to kill_pid_info_as_cred and security_task_kill

2018-03-06 Thread Casey Schaufler
On 3/6/2018 11:01 AM, Paul Moore wrote: > On Fri, Sep 8, 2017 at 6:09 PM, James Morris wrote: >> On Fri, 8 Sep 2017, Paul Moore wrote: >>> Looks fine to me from a SELinux perspective. If Casey and John are >>> happy with this I can volunteer to pull it into the selinux/next

[PATCH v8 54/63] shmem: Comment fixups

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox Remove the last mentions of radix tree from various comments. Signed-off-by: Matthew Wilcox --- mm/shmem.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mm/shmem.c b/mm/shmem.c index

[PATCH v8 59/63] f2fs: Convert to XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox This is a straightforward conversion. Signed-off-by: Matthew Wilcox --- fs/f2fs/data.c | 3 +-- fs/f2fs/dir.c| 5 + fs/f2fs/inline.c | 6 +- fs/f2fs/node.c | 10 ++ 4 files changed, 5

[PATCH v8 27/63] page cache: Convert hole search to XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox The page cache offers the ability to search for a miss in the previous or next N locations. Rather than teach the XArray about the page cache's definition of a miss, use xas_prev() and xas_next() to search the page array. This should be more

[PATCH v8 26/63] page cache: Rearrange address_space

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox Change i_pages from a radix_tree_root to an xarray, convert the documentation into kernel-doc format and change the order of the elements to pack them better on 64-bit systems. Signed-off-by: Matthew Wilcox ---

[PATCH v8 25/63] xarray: Add MAINTAINERS entry

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox Add myself as XArray and IDR maintainer. Signed-off-by: Matthew Wilcox --- MAINTAINERS | 12 1 file changed, 12 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6d78237066ab..08613d97a74d 100644 ---

Re: [PATCH net-next] modules: allow modprobe load regular elf binaries

2018-03-06 Thread Linus Torvalds
On Tue, Mar 6, 2018 at 12:01 PM, Andy Lutomirski wrote: > > I assume I'm missing some context here, but why does this need to be > handled by the kernel rather than, say, a change to how modprobe > works? Honestly, the less we have to mess with user-mode tooling, the better.

Re: [PATCH v2 00/10] splash screen on the stm32f769 disco board

2018-03-06 Thread Simon Glass
On 2 March 2018 at 08:44, yannick fertre wrote: > > Version 2: > - Replace debug log by pr_error, pr_warn or pr_info. > - Rework bridge between ltdc & dsi panel > - Rework backligh management (with or witout gpio) > - Rework panel otm8009a > - Add new panel raydium rm68200

[GIT PULL 2/4] ARM: exynos: mach for v4.17

2018-03-06 Thread Krzysztof Kozlowski
The following changes since commit 7928b2cbe55b2a410a0f5c1f154610059c57b1b2: Linux 4.16-rc1 (2018-02-11 15:04:29 -0800) are available in the git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-soc-4.17 for you to fetch changes up to

Re: + mm-relax-ptrace-mode-in-process_vm_readv2.patch added to -mm tree

2018-03-06 Thread Alexey Dobriyan
On Tue, Mar 06, 2018 at 08:42:19PM +0300, Alexey Dobriyan wrote: > On Mon, Mar 05, 2018 at 05:02:08PM -0800, Kees Cook wrote: > > On Mon, Mar 5, 2018 at 4:07 PM, wrote: > > > > It is more natural to check for read-from-memory permissions in case of > > >

Re: [PATCH 1/3 RESEND] tpm: add longer timeouts for creation commands.

2018-03-06 Thread Mimi Zohar
On Tue, 2018-03-06 at 08:32 -0800, James Bottomley wrote: > On Tue, 2018-03-06 at 08:06 +, Winkler, Tomas wrote: > > > > > > > > > On Mon, Mar 05, 2018 at 01:09:09PM +, Winkler, Tomas wrote: > > > > > > > > Why you need cover letter?  What are u missing in the patch > > > > description

Re: [PATCH] usb,signal,security: only pass the cred, not the secid, to kill_pid_info_as_cred and security_task_kill

2018-03-06 Thread Paul Moore
On Fri, Sep 8, 2017 at 6:09 PM, James Morris wrote: > On Fri, 8 Sep 2017, Paul Moore wrote: >> Looks fine to me from a SELinux perspective. If Casey and John are >> happy with this I can volunteer to pull it into the selinux/next tree >> (once the merge window closes),

Re: [PATCH 2/5] staging: vc04_services: Remove cache-line-size property.

2018-03-06 Thread Eric Anholt
Stefan Wahren writes: > Hi Eric, > > > Am 05.03.2018 um 21:28 schrieb Eric Anholt: >> This was just a way for the DT-passed value to get out of sync with >> what Linux has configured the ARM for. >> >> Signed-off-by: Eric Anholt >> --- >>

Re: [PATCH 1/3] nfit_test: improve structure offset handling

2018-03-06 Thread Dan Williams
On Mon, Mar 5, 2018 at 10:42 AM, Ross Zwisler wrote: > On Tue, Feb 27, 2018 at 10:29:50AM -0700, Ross Zwisler wrote: >> In nfit_test0_setup() and nfit_test1_setup() we keep an 'offset' value >> which we use to calculate where in our 'nfit_buf' we will place our next

[PATCH v8 63/63] radix tree: Remove unused functions

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox The following functions are (now) unused: - __radix_tree_delete_node - radix_tree_gang_lookup_slot - radix_tree_join - radix_tree_maybe_preload_order - radix_tree_split - radix_tree_split_preload Signed-off-by: Matthew Wilcox

[PATCH v8 45/63] shmem: Convert replace to XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox shmem_radix_tree_replace() is renamed to shmem_xa_replace() and converted to use the XArray API. Signed-off-by: Matthew Wilcox --- mm/shmem.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-)

[PATCH v8 46/63] shmem: Convert shmem_confirm_swap to XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox xa_load has its own RCU locking, so we can eliminate it here. Signed-off-by: Matthew Wilcox --- mm/shmem.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mm/shmem.c b/mm/shmem.c index

[PATCH v8 62/63] page cache: Finish XArray conversion

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox With no more radix tree API users left, we can drop the GFP flags and use xa_init() instead of INIT_RADIX_TREE(). Signed-off-by: Matthew Wilcox --- fs/inode.c | 2 +- mm/swap_state.c | 2 +- 2 files changed, 2

[PATCH v8 40/63] mm: Convert page migration to XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox Signed-off-by: Matthew Wilcox --- mm/migrate.c | 41 - 1 file changed, 16 insertions(+), 25 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index 740b71857898..9a15d27768a0

[PATCH v8 14/63] xarray: Define struct xa_node

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox This is a direct replacement for struct radix_tree_node. A couple of struct members have changed name, so convert those. Use a #define so that radix tree users continue to work without change. Signed-off-by: Matthew Wilcox

[PATCH v8 41/63] mm: Convert huge_memory to XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox Quite a straightforward conversion. Signed-off-by: Matthew Wilcox --- mm/huge_memory.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index

[PATCH v8 39/63] mm: Convert __do_page_cache_readahead to XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox This one is trivial. Signed-off-by: Matthew Wilcox --- mm/readahead.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mm/readahead.c b/mm/readahead.c index 3ff9763b0461..5f528d649d5e 100644 ---

[PATCH v8 16/63] xarray: Add xa_load

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox This first function in the XArray API brings with it a lot of support infrastructure. The advanced API is based around the xa_state which is a more capable version of the radix_tree_iter. As the test-suite demonstrates, it is possible to use the

[PATCH v8 15/63] xarray: Add documentation

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox This is documentation on how to use the XArray, not details about its internal implementation. Signed-off-by: Matthew Wilcox --- Documentation/core-api/index.rst | 1 + Documentation/core-api/xarray.rst | 361

Re: [PATCH net-next] modules: allow modprobe load regular elf binaries

2018-03-06 Thread Andy Lutomirski
On Tue, Mar 6, 2018 at 1:34 AM, Alexei Starovoitov wrote: > As the first step in development of bpfilter project [1] the request_module() > code is extended to allow user mode helpers to be invoked. Idea is that > user mode helpers are built as part of the kernel build and

[PATCH v1] xen: acpi: upload _PSD info for offline CPUs too

2018-03-06 Thread Joao Martins
All uploaded PM data from offline CPUs takes the info from vCPU 0 and changing only the acpi_id. For processors which P-state coordination type is HW_ALL (0xFD) it is OK to upload bogus P-state dependency information (_PSD), because Xen will ignore cpufreq domains existence. Albeit for hardware

Re: [PATCH v2 6/8] [PATCH 6/8] Documentation: hwmon: Add a document for PECI hwmon client driver

2018-03-06 Thread Randy Dunlap
Hi, On 02/21/2018 08:16 AM, Jae Hyun Yoo wrote: > +temp_labelProvides DDR DIMM temperature if this label > indicates > + 'DIMM #'. > +temp_inputProvides current temperature of the DDR DIMM. > + > +Note: > + DIMM temperature group will be

linux-next: Signed-off-by missing for commit in the v4l-dvb tree

2018-03-06 Thread Stephen Rothwell
Hi Mauro, Commit c20ffbfe085f ("media: dvb-usb-cxusb: Geniatech T230C support") is missing a Signed-off-by from its author. -- Cheers, Stephen Rothwell pgpkTsw7_vZOJ.pgp Description: OpenPGP digital signature

[PATCH 3/5] staging: fsl-mc/dpio: Use __leXX types where needed

2018-03-06 Thread Ioana Radulescu
Structures that are mapped to hardware registers should explicitly specify the expected endianness for fields larger than 1 byte. Signed-off-by: Ioana Radulescu --- drivers/staging/fsl-mc/bus/dpio/qbman-portal.c | 16

[PATCH 5/5] staging: fsl-mc/dpio: Remove dead code

2018-03-06 Thread Ioana Radulescu
Function qbman_pull_desc_set_token() is not used at all, so remove it. Signed-off-by: Ioana Radulescu --- drivers/staging/fsl-mc/bus/dpio/qbman-portal.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dpio/qbman-portal.c

[PATCH 0/5] staging: fsl-mc/dpio: Fix sparse warnings

2018-03-06 Thread Ioana Radulescu
Some code cleanup and bug fixes based on warnings reported by sparse when building on x86. Ioana Radulescu (5): staging: fsl-mc/dpio: Fix incorrect cast staging: fsl-mc/dpio: Fix cast truncate warning staging: fsl-mc/dpio: Use __leXX types where needed staging: fsl-mc/dpio: Fix incorrect

[GIT PULL 1/4] soc: samsung: Driver changes for v4.17

2018-03-06 Thread Krzysztof Kozlowski
The following changes since commit 7928b2cbe55b2a410a0f5c1f154610059c57b1b2: Linux 4.16-rc1 (2018-02-11 15:04:29 -0800) are available in the git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-drivers-4.17 for you to fetch changes up to

[GIT PULL 3/4] ARM: dts: exynos: DTS for v4.17

2018-03-06 Thread Krzysztof Kozlowski
The following changes since commit 7928b2cbe55b2a410a0f5c1f154610059c57b1b2: Linux 4.16-rc1 (2018-02-11 15:04:29 -0800) are available in the git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-dt-4.17 for you to fetch changes up to

[GIT PULL 0/4] ARM: exynos: Pull for v4.17

2018-03-06 Thread Krzysztof Kozlowski
Hi, Nothing special, no specific order, no dependency, no conflicts expected. Best regards, Krzysztof

[GIT PULL 4/4] arm64: dts: exynos: DTS for v4.17

2018-03-06 Thread Krzysztof Kozlowski
The following changes since commit 7928b2cbe55b2a410a0f5c1f154610059c57b1b2: Linux 4.16-rc1 (2018-02-11 15:04:29 -0800) are available in the git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-dt64-4.17 for you to fetch changes up to

[PATCH 1/2] vsprintf: distinguish between (null), (err) and (invalid) pointer derefs

2018-03-06 Thread Adam Borowski
Attempting to print an object pointed to by a bad (usually ERR_PTR) pointer is a not so surprising error. Our code handles them inconsistently: * two places print (null) if ptr --- lib/vsprintf.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/vsprintf.c

[PATCH 2/2] vsprintf: don't dereference pointers to the first or last page

2018-03-06 Thread Adam Borowski
As old code to avoid so is inconsistent, let's unify it within a single macro. Signed-off-by: Adam Borowski --- lib/vsprintf.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 1c2c3cc5a321..4914dac03f0a

RE: [PATCH v3 3/6] PCI: hv: serialize the present/eject work items

2018-03-06 Thread Michael Kelley (EOSG)
> -Original Message- > From: Dexuan Cui > Sent: Tuesday, March 6, 2018 10:22 AM > To: bhelg...@google.com; linux-...@vger.kernel.org; KY Srinivasan > ; > Stephen Hemminger ; o...@aepfle.de; > a...@canonical.com; > jasow...@redhat.com > Cc:

RE: [PATCH v3 4/6] PCI: hv: remove hbus->enum_sem

2018-03-06 Thread Michael Kelley (EOSG)
> -Original Message- > From: Dexuan Cui > Sent: Tuesday, March 6, 2018 10:22 AM > To: bhelg...@google.com; linux-...@vger.kernel.org; KY Srinivasan > ; > Stephen Hemminger ; o...@aepfle.de; > a...@canonical.com; > jasow...@redhat.com > Cc:

Re: [PATCH 7/7] RCU, workqueue: Implement rcu_work

2018-03-06 Thread Linus Torvalds
On Tue, Mar 6, 2018 at 9:33 AM, Tejun Heo wrote: > > This patch introduces rcu_work, a workqueue work variant which gets > executed after a RCU grace period, and converts the open coded > bouncing in fs/aio and kernel/cgroup. So I like the concept, but I have two comments: -

RE: [PATCH v3 6/6] PCI: hv: fix 2 hang issues in hv_compose_msi_msg()

2018-03-06 Thread Michael Kelley (EOSG)
> -Original Message- > From: Dexuan Cui > Sent: Tuesday, March 6, 2018 10:22 AM > To: bhelg...@google.com; linux-...@vger.kernel.org; KY Srinivasan > ; > Stephen Hemminger ; o...@aepfle.de; > a...@canonical.com; > jasow...@redhat.com > Cc:

[RESEND PATCHv2 1/2] fs: dcache: Avoid livelock between d_alloc_parallel and __d_add

2018-03-06 Thread Will Deacon
If d_alloc_parallel runs concurrently with __d_add, it is possible for d_alloc_parallel to continuously retry whilst i_dir_seq has been incremented to an odd value by __d_add: CPU0: __d_add n = start_dir_add(dir); cmpxchg(>i_dir_seq, n, n + 1) == n CPU1: d_alloc_parallel

Re: [PATCH] perf stat: fix cvs output format

2018-03-06 Thread Cong Wang
On Tue, Mar 6, 2018 at 9:53 AM, Andi Kleen wrote: >> Here is the output from your own commit: >> >> 423470,,stalled-cycles-frontend,509102,100.00,65.69,frontend cycles >> idle >> ,,stalled-cycles-backend,0,100.00 >> >> so line 1 has 7 fields, line 2 has 9

[PATCH v8 60/63] lustre: Convert to XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox Signed-off-by: Matthew Wilcox --- drivers/staging/lustre/lustre/llite/glimpse.c | 12 +--- drivers/staging/lustre/lustre/mdc/mdc_request.c | 16 2 files changed, 13 insertions(+), 15 deletions(-)

[PATCH v8 61/63] dax: Convert to XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox The DAX code (by its nature) is deeply interwoven with the radix tree infrastructure, doing operations directly on the radix tree slots. Convert the whole file to use XArray concepts; mostly passing around xa_state instead of address_space, index or

[PATCH v8 30/63] page cache: Convert page cache lookups to XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox Introduce page_cache_pin() to factor out the common logic between the various lookup routines: find_get_entry find_get_entries find_get_pages_range find_get_pages_contig find_get_pages_range_tag find_get_entries_tag filemap_map_pages By using the

[PATCH v8 33/63] page cache: Convert filemap_range_has_page to XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox Instead of calling find_get_pages_range() and putting any reference, use xas_find() to iterate over any entries in the range, skipping the shadow/swap entries. Signed-off-by: Matthew Wilcox --- mm/filemap.c | 26

[PATCH v8 28/63] page cache: Add and replace pages using the XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox Use the XArray APIs to add and replace pages in the page cache. This removes two uses of the radix tree preload API and is significantly shorter code. Signed-off-by: Matthew Wilcox --- include/linux/swap.h | 8 ++-

Re: [PATCH] kernel/sys_ni: sort cond_syscall() entries

2018-03-06 Thread Randy Dunlap
On 03/06/2018 10:53 AM, Dominik Brodowski wrote: > diff --git a/kernel/sys_ni.c b/kernel/sys_ni.c > index b5189762d275..44c65e4d2528 100644 > --- a/kernel/sys_ni.c > +++ b/kernel/sys_ni.c > @@ -17,245 +17,403 @@ asmlinkage long sys_ni_syscall(void) > return -ENOSYS; > } > >

Re: [PATCH 6/7] perf auxtrace: Make auxtrace_queues__add_buffer() allocate struct buffer

2018-03-06 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 06, 2018 at 11:13:17AM +0200, Adrian Hunter escreveu: > In preparation for supporting AUX area sampling buffers, > auxtrace_queues__add_buffer() needs to be more generic. To that end, move > memory allocation for struct buffer into it. > > Signed-off-by: Adrian Hunter

Re: [PATCH] perf stat: fix cvs output format

2018-03-06 Thread Ilya Pronin
Speaking from the user's seat. An optional (not just empty) cgroup field is fine as long it consistently appears when requested with -G option. The problem with print_metric_csv() was that in the case of unsupported counters 2 additional empty fields in the output are completely unexpected and not

Re: [PATCH] documentation: add my name to kernel driver statement

2018-03-06 Thread Jonathan Corbet
On Tue, 6 Mar 2018 09:46:28 -0800 Greg Kroah-Hartman wrote: > Jon, can you pick this up or do you need me to forward this to you? I've got it, no worries. jon

Re: [PATCH] crypto: hash.h: Prevent use of req->digest in ahash update

2018-03-06 Thread Tom Lendacky
On 3/6/2018 5:45 AM, Kamil Konieczny wrote: > Prevent improper use of req->digest field in ahash update, init, export and Shouldn't that be req->result (here and below)? Thanks, Tom > import functions in drivers code. A driver should use ahash request context > if it needs to save internal

Re: [PATCH] arm64: dts: rockchip: Fix rk3399-gru-* s2r (pinctrl hogs, wifi reset)

2018-03-06 Thread Marc Zyngier
Hi Doug, On 06/03/18 18:00, Doug Anderson wrote: > Hi, > > On Tue, Mar 6, 2018 at 3:58 AM, Marc Zyngier wrote: >> Hi all, >> >> On 01/03/18 08:43, Heiko Stübner wrote: >>> Am Dienstag, 27. Februar 2018, 21:47:11 CET schrieb Douglas Anderson: Back in the early days

Re: [PATCH v4 14/24] fpga: dfl: fme: add partial reconfiguration sub feature support

2018-03-06 Thread Alan Tull
On Mon, Mar 5, 2018 at 8:08 PM, Wu Hao wrote: > On Mon, Mar 05, 2018 at 04:46:02PM -0600, Alan Tull wrote: >> On Tue, Feb 13, 2018 at 3:24 AM, Wu Hao wrote: >> >> Hi Hao, > > Hi Alan, > > Thanks for the comments. > >> >> We are going to want to be able use

RE: [PATCH v3 2/6] PCI: hv: hv_eject_device_work(): remove the bogus test

2018-03-06 Thread Michael Kelley (EOSG)
> -Original Message- > From: Dexuan Cui > Sent: Tuesday, March 6, 2018 10:22 AM > To: bhelg...@google.com; linux-...@vger.kernel.org; KY Srinivasan > ; > Stephen Hemminger ; o...@aepfle.de; > a...@canonical.com; > jasow...@redhat.com > Cc:

Re: [PATCH v5 1/4] sched/fair: add util_est on top of PELT

2018-03-06 Thread Peter Zijlstra
On Thu, Feb 22, 2018 at 05:01:50PM +, Patrick Bellasi wrote: > +struct util_est { > + unsigned intenqueued; > + unsigned intewma; > +#define UTIL_EST_WEIGHT_SHIFT2 > +}; > + ue = READ_ONCE(p->se.avg.util_est); > +

ext4 ignoring rootfs default mount options

2018-03-06 Thread Lennart Sorensen
While switching a system from using ext3 to ext4 (It's about time) I discovered that setting default options for the filesystem using tune2fs -o doesn't work for the root filesystem when mounted by the kernel itself. Filesystems mounted from userspace with the mount command use the options set

[PATCH v8] PCI: Workaround wrong flags completions for IDT switch

2018-03-06 Thread James Puthukattukaran
The IDT switch incorrectly flags an ACS source violation on a read config request to an end point device on the completion (IDT 89H32H8G3-YC, errata #36) even though the PCI Express spec states that completions are never affected by ACS source violation (PCI Spec 3.1, Section 6.12.1.1). Here's

[PATCH v8 52/63] memfd: Convert shmem_tag_pins to XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox Simplify the locking by taking the spinlock while we walk the tree on the assumption that many acquires and releases of the lock will be worse than holding the lock for a (potentially) long time. We could replicate the same locking behaviour with the

[PATCH v8 50/63] shmem: Convert shmem_free_swap to XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox This is a perfect use for xa_cmpxchg(). Note the use of 0 for GFP flags; we won't be allocating memory. Signed-off-by: Matthew Wilcox --- mm/shmem.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git

[PATCH v8 51/63] shmem: Convert shmem_partial_swap_usage to XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox Simpler code because the xarray takes care of things like the limit and dereferencing the slot. Signed-off-by: Matthew Wilcox --- mm/shmem.c | 18 +++--- 1 file changed, 3 insertions(+), 15 deletions(-) diff

[PATCH v8 49/63] shmem: Convert shmem_alloc_hugepage to XArray

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox xa_find() is a slightly easier API to use than radix_tree_gang_lookup_slot() because it contains its own RCU locking. Signed-off-by: Matthew Wilcox --- mm/shmem.c | 14 -- 1 file changed, 4 insertions(+), 10

[PATCH v8 22/63] xarray: Add xa_destroy

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox This function frees all the internal memory allocated to the xarray and reinitialises it to be empty. Signed-off-by: Matthew Wilcox --- include/linux/xarray.h | 1 + lib/xarray.c | 28

[PATCH v8 23/63] xarray: Add xas_next and xas_prev

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox These two functions move the xas index by one position, and adjust the rest of the iterator state to match it. This is more efficient than calling xas_set() as it keeps the iterator at the leaves of the tree instead of walking the iterator from the

[PATCH v8 03/63] arm64: Turn flush_dcache_mmap_lock into a no-op

2018-03-06 Thread Matthew Wilcox
From: Matthew Wilcox ARM64 doesn't walk the VMA tree in its flush_dcache_page() implementation, so has no need to take the tree_lock. Signed-off-by: Matthew Wilcox Reviewed-by: Will Deacon ---

[RESEND PATCH v3] crypto: add zBeWalgo compression for zram

2018-03-06 Thread Benjamin Warnke
Currently ZRAM uses compression-algorithms from the crypto-api. ZRAM compresses each page individually. As a result the compression algorithm is forced to use a very small sliding window. None of the available compression algorithms is designed to achieve high compression ratios with small inputs.

Re: [PATCH] kasan, slub: fix handling of kasan_slab_free hook

2018-03-06 Thread Andrey Konovalov
On Tue, Mar 6, 2018 at 6:42 PM, Andrey Konovalov wrote: > On Fri, Mar 2, 2018 at 1:10 PM, Andrey Ryabinin > wrote: >> On 02/23/2018 06:53 PM, Andrey Konovalov wrote: >>> The kasan_slab_free hook's return value denotes whether the reuse of a >>>

[PATCH 1/5] staging: fsl-mc/dpio: Fix incorrect cast

2018-03-06 Thread Ioana Radulescu
Move the cast in dpaa2_sg_get_addr() to the right place. Signed-off-by: Ioana Radulescu --- drivers/staging/fsl-mc/include/dpaa2-fd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fsl-mc/include/dpaa2-fd.h

Re: [PATCH] perf stat: fix cvs output format

2018-03-06 Thread Cong Wang
On Tue, Mar 6, 2018 at 9:00 AM, Andi Kleen wrote: > On Mon, Mar 05, 2018 at 10:43:53PM -0800, Cong Wang wrote: >> From: Ilya Pronin >> >> When printing stats in CSV mode, perf stat appends extra CSV >> separators when counter is not supported: >> >> >

Re: [PATCH] pinctrl: intel: Implement intel_gpio_get_direction callback

2018-03-06 Thread Mika Westerberg
On Tue, Mar 06, 2018 at 04:56:05PM +0200, Andy Shevchenko wrote: > On Tue, 2018-03-06 at 14:31 +, Javier Arteaga wrote: > > (Fix Andy's Cc: - apologies) > > > > On 06/03/2018 13:42, Javier Arteaga wrote: > > > Allows querying GPIO direction from the pad config register. > > > If the pad is

[PATCH v3 1/6] PCI: hv: fix a comment typo in _hv_pcifront_read_config()

2018-03-06 Thread Dexuan Cui
No functional change. Signed-off-by: Dexuan Cui Fixes: bdd74440d9e8 ("PCI: hv: Add explicit barriers to config space access") Cc: Vitaly Kuznetsov Cc: sta...@vger.kernel.org Cc: Stephen Hemminger Cc: K. Y. Srinivasan

[PATCH v3 5/6] PCI: hv: hv_pci_devices_present(): only queue a new work when necessary

2018-03-06 Thread Dexuan Cui
If there is a pending work, we just need to add the new dr into the dr_list. This is suggested by Michael Kelley. Signed-off-by: Dexuan Cui Cc: Vitaly Kuznetsov Cc: Jack Morgenstein Cc: sta...@vger.kernel.org Cc: Stephen Hemminger

[PATCH v3 4/6] PCI: hv: remove hbus->enum_sem

2018-03-06 Thread Dexuan Cui
Since we serialize the present/eject work items now, we don't need the semaphore any more. This is suggested by Michael Kelley. Signed-off-by: Dexuan Cui Cc: Vitaly Kuznetsov Cc: Jack Morgenstein Cc: sta...@vger.kernel.org Cc:

Re: [PATCH 1/2] vsprintf: distinguish between (null), (err) and (invalid) pointer derefs

2018-03-06 Thread Alexey Dobriyan
> +#define BAD_PTR_STRING(x) (!(x) ? "(null)" : IS_ERR(x) ? "(err)" : > "(invalid)") This is getting ridiculous. Instead of simply printing a pointer as %08lx or %016llx, not only glibc (null) stupidity is propagated but expanded and "improved". I assure you reading is just as

[PATCH v3 3/6] PCI: hv: serialize the present/eject work items

2018-03-06 Thread Dexuan Cui
When we hot-remove the device, we first receive a PCI_EJECT message and then receive a PCI_BUS_RELATIONS message with bus_rel->device_count == 0. The first message is offloaded to hv_eject_device_work(), and the second is offloaded to pci_devices_present_work(). Both the paths can be running

RE: [PATCH v3 5/6] PCI: hv: hv_pci_devices_present(): only queue a new work when necessary

2018-03-06 Thread Michael Kelley (EOSG)
> -Original Message- > From: Dexuan Cui > Sent: Tuesday, March 6, 2018 10:22 AM > To: bhelg...@google.com; linux-...@vger.kernel.org; KY Srinivasan > ; > Stephen Hemminger ; o...@aepfle.de; > a...@canonical.com; > jasow...@redhat.com > Cc:

RE: [PATCH 5/5] staging: fsl-mc/dpio: Remove dead code

2018-03-06 Thread Ruxandra Ioana Ciocoi Radulescu
> -Original Message- > From: Ruxandra Ioana Ciocoi Radulescu > Sent: Tuesday, March 6, 2018 7:44 PM > To: gre...@linuxfoundation.org > Cc: de...@driverdev.osuosl.org; linux-kernel@vger.kernel.org; Roy Pledge > ; Laurentiu Tudor > Subject:

  1   2   3   4   5   6   7   8   9   10   >