Re: [PATCH v2 1/1] usb: musb: call pm_runtime_{get,put}_sync before reading vbus registers

2018-03-05 Thread Bin Liu
On Mon, Mar 05, 2018 at 08:35:10PM +0200, Ivaylo Dimitrov wrote: > Hi, > > On 5.03.2018 19:38, Bin Liu wrote: > >On Wed, Feb 28, 2018 at 01:59:43PM -0800, Tony Lindgren wrote: > >>* Merlijn Wajer [180227 22:29]: > >>>Without pm_runtime_{get,put}_sync calls in place, reading

Re: "x86/boot/compressed/64: Prepare trampoline memory" breaks boot on Zotac CI-321

2018-03-05 Thread Heiner Kallweit
Am 05.03.2018 um 09:19 schrieb Kirill A. Shutemov: > On Sat, Mar 03, 2018 at 12:46:28PM +0100, Heiner Kallweit wrote: >> Am 03.03.2018 um 11:02 schrieb Ingo Molnar: >>> >>> * Heiner Kallweit wrote: >>> Am 03.03.2018 um 00:50 schrieb Dexuan-Linux Cui: > On Fri, Mar

Re: [RFC, PATCH 18/22] x86/mm: Handle allocation of encrypted pages

2018-03-05 Thread Dave Hansen
On 03/05/2018 08:26 AM, Kirill A. Shutemov wrote: > -#define __alloc_zeroed_user_highpage(movableflags, vma, vaddr) \ > - alloc_page_vma(GFP_HIGHUSER | __GFP_ZERO | movableflags, vma, vaddr) > #define __HAVE_ARCH_ALLOC_ZEROED_USER_HIGHPAGE > +#define __alloc_zeroed_user_highpage(movableflags,

[PATCH] thermal: of: Allow selection of thermal governor in DT

2018-03-05 Thread Amit Kucheria
From: Ram Chandrasekar There is currently no way for the governor to be selected for each thermal zone in devicetree. This results in the default governor being used for all thermal zones even though no such restriction exists in the core code. Add support for

Re: inconsistent lock state with usbnet/asix usb ethernet and xhci

2018-03-05 Thread Eric Dumazet
On Mon, 2018-03-05 at 12:46 +0100, Oliver Neukum wrote: > On Mon, 2018-03-05 at 08:45 +0100, Marek Szyprowski wrote: > > Hi Oliver, > > > > On 2018-02-27 17:07, Oliver Neukum wrote: > > > Am Dienstag, den 27.02.2018, 07:13 -0800 schrieb Eric Dumazet: > > > > On Tue, 2018-02-27 at 07:09 -0800,

[PATCH v11 1/7] powerpc: io.h: move iomap.h include so that it can use readq/writeq defs

2018-03-05 Thread Logan Gunthorpe
Subsequent patches in this series makes use of the readq and writeq defines in iomap.h. However, as is, they get missed on the powerpc platform seeing the include comes before the define. This patch moves the include down to fix this. Signed-off-by: Logan Gunthorpe Acked-by:

[PATCH v11 7/7] ntb: ntb_hw_switchtec: Cleanup 64bit IO defines to use the common header

2018-03-05 Thread Logan Gunthorpe
Clean up the ifdefs which conditionally defined the io{read|write}64 functions in favour of the new common io-64-nonatomic-lo-hi header. Signed-off-by: Logan Gunthorpe Cc: Jon Mason --- drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 30

Re: [PATCH 2/3] tpm: reduce poll sleep time between send() and recv() in tpm_transmit()

2018-03-05 Thread Mimi Zohar
On Mon, 2018-03-05 at 20:01 +0200, Jarkko Sakkinen wrote: > On Mon, Mar 05, 2018 at 12:56:33PM +0200, Jarkko Sakkinen wrote: > > On Fri, Mar 02, 2018 at 12:26:35AM +0530, Nayna Jain wrote: > > > > > > > > > On 03/01/2018 02:52 PM, Jarkko Sakkinen wrote: > > > > On Wed, Feb 28, 2018 at 02:18:27PM

[PATCH 4/7] perf mmap: Using stored 'overwrite' in perf_mmap__consume

2018-03-05 Thread kan . liang
From: Kan Liang The 'overwrite' is set at initialization. It will not be changed. Using it to replace the parameter of perf_mmap__consume(). The parameters will be discarded later. No functional change. Signed-off-by: Kan Liang ---

[PATCH 7/7] perf tools: Refine perf_mmap__read_init

2018-03-05 Thread kan . liang
From: Kan Liang It doesn't need to pass the 'start' and 'end' boilerplate to perf_mmap__read_init(). The data will be stored in the struct perf_mmap. Discard the parameters. Signed-off-by: Kan Liang ---

[PATCH 5/7] perf tools: Refine perf_mmap__consume

2018-03-05 Thread kan . liang
From: Kan Liang It doesn't need to pass the 'overwrite' to perf_mmap__consume(). Discard the parameter. Signed-off-by: Kan Liang --- tools/perf/arch/x86/tests/perf-time-to-tsc.c | 2 +- tools/perf/builtin-kvm.c | 4 ++--

[PATCH 6/7] perf tools: Refine perf_mmap__read_event

2018-03-05 Thread kan . liang
From: Kan Liang It doesn't need to pass the 'overwrite', 'start' and 'end' to perf_mmap__read_event. Discard the parameters. Signed-off-by: Kan Liang --- tools/perf/arch/x86/tests/perf-time-to-tsc.c | 2 +- tools/perf/builtin-kvm.c

Re: [RFC, PATCH 13/22] mm, rmap: Free encrypted pages once mapcount drops to zero

2018-03-05 Thread Dave Hansen
On 03/05/2018 08:26 AM, Kirill A. Shutemov wrote: > @@ -1292,6 +1308,12 @@ static void page_remove_anon_compound_rmap(struct page > *page) > __mod_node_page_state(page_pgdat(page), NR_ANON_MAPPED, -nr); > deferred_split_huge_page(page); > } > + > + anon_vma =

[PATCH 3/7] perf mmap: Using the stored data in perf_mmap__read_event

2018-03-05 Thread kan . liang
From: Kan Liang Using the 'start', 'end' and 'overwrite' which are stored in struct perf_mmap to replace the parameters of perf_mmap__read_event(). The parameters will be discarded later. No functional change. Signed-off-by: Kan Liang ---

Re: RANDSTRUCT structs need linux/compiler_types.h (Was: [nfsd4] potentially hardware breaking regression in 4.14-rc and 4.13.11)

2018-03-05 Thread Kees Cook
On Mon, Mar 5, 2018 at 1:27 AM, Masahiro Yamada wrote: > Sorry for chiming in late. > > I noticed this thread today, > honestly, the commit made me upset. > > > Can I suggest another way to make it less fragile? > __attribute((...)) can be placed after 'struct'. > >

Re: [PATCH v12 02/11] mm, swap: Add infrastructure for saving page metadata on swap

2018-03-05 Thread Dave Hansen
On 02/21/2018 09:15 AM, Khalid Aziz wrote: > If a processor supports special metadata for a page, for example ADI > version tags on SPARC M7, this metadata must be saved when the page is > swapped out. The same metadata must be restored when the page is swapped > back in. This patch adds two new

Re: [PATCH v12 09/11] mm: Allow arch code to override copy_highpage()

2018-03-05 Thread Dave Hansen
On 02/21/2018 09:15 AM, Khalid Aziz wrote: > +#ifndef __HAVE_ARCH_COPY_HIGHPAGE > + > static inline void copy_highpage(struct page *to, struct page *from) > { > char *vfrom, *vto; > @@ -248,4 +250,6 @@ static inline void copy_highpage(struct page *to, struct > page *from) >

Applied "regmap: debugfs: Disambiguate dummy debugfs file name" to the regmap tree

2018-03-05 Thread Mark Brown
The patch regmap: debugfs: Disambiguate dummy debugfs file name has been applied to the regmap tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

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

2018-03-05 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 1/2] checkpatch: add check for tag Co-Developed-by

2018-03-05 Thread Joe Perches
On Mon, 2018-03-05 at 14:58 +1100, Tobin C. Harding wrote: > From: Joe Perches I still think this "Co-Developed-by" stuff is unnecessary. > Recently signature tag Co-Developed-by was added to the > kernel (Documentation/process/5.Posting.rst). checkpatch.pl doesn't know >

Re: [PATCH v12 02/11] mm, swap: Add infrastructure for saving page metadata on swap

2018-03-05 Thread Khalid Aziz
On 03/05/2018 12:20 PM, Dave Hansen wrote: On 02/21/2018 09:15 AM, Khalid Aziz wrote: If a processor supports special metadata for a page, for example ADI version tags on SPARC M7, this metadata must be saved when the page is swapped out. The same metadata must be restored when the page is

Re: [PATCH v12 02/11] mm, swap: Add infrastructure for saving page metadata on swap

2018-03-05 Thread Dave Hansen
On 03/05/2018 11:29 AM, Khalid Aziz wrote: > ADI data is per page data and is held in the spare bits in the RAM. It > is loaded into the cache when data is loaded from RAM and flushed out to > spare bits in the RAM when data is flushed from cache. Sparc allows one > tag for each ADI block size of

Re: Regression in IPMI on 4.15.6

2018-03-05 Thread Corey Minyard
On 03/05/2018 01:31 PM, Corey Minyard wrote: On 03/05/2018 01:07 PM, Laura Abbott wrote: On 03/02/2018 05:46 AM, Corey Minyard wrote: On 02/28/2018 01:07 PM, Corey Minyard wrote: On 02/28/2018 08:17 AM, Corey Minyard wrote: On 02/28/2018 07:53 AM, Corey Minyard wrote: On 02/27/2018 05:55

Re: [PATCH v4 13/24] fpga: region: add compat_id support

2018-03-05 Thread Alan Tull
On Thu, Mar 1, 2018 at 12:17 AM, Wu Hao wrote: > On Wed, Feb 28, 2018 at 04:55:15PM -0600, Alan Tull wrote: >> On Tue, Feb 13, 2018 at 3:24 AM, Wu Hao wrote: >> >> Hi Hao, > > Hi Alan, > > Thanks for the review. > >> >> > This patch introduces a compat_id

Re: usb: musb: "(null)" in sysfs mode file after disabling a gadget (and at other times, system hangs)

2018-03-05 Thread Merlijn Wajer
Hi Bin, On 05/03/18 20:28, Bin Liu wrote: > The musb udc driver sets the state to b_idle without checking a > gadget driver, this should be cleaned up. I have add this in my backlog. > But if this issue doesn't bother you much right now, I will make the > action low priority and address it later

[PATCH 003/103] sched, treewide: Replace hardcoded nice values with MIN_NICE/MAX_NICE

2018-03-05 Thread micky387
From: Dongsheng Yang Replace various -20/+19 hardcoded nice values with MIN_NICE/MAX_NICE. Signed-off-by: Dongsheng Yang Acked-by: Tejun Heo Signed-off-by: Peter Zijlstra Link:

Re: [PATCH] uprobe: add support for overlayfs

2018-03-05 Thread Josef Bacik
On Tue, Feb 27, 2018 at 04:40:14PM -0800, Howard McLauchlan wrote: > uprobes cannot successfully attach to binaries located in a directory > mounted with overlayfs. > > To verify, create directories for mounting overlayfs > (upper,lower,work,merge), move some binary into merge/ and use readelf >

Re: [PATCH RFC v9 0/7] Introduce the STACKLEAK feature and a test for it

2018-03-05 Thread Kees Cook
On Mon, Mar 5, 2018 at 11:42 AM, Dave Hansen wrote: > On 03/05/2018 11:34 AM, Kees Cook wrote: >> Boris, Andy, and Dave (Hansen), you've all looked at this; would you >> be willing to give an Ack on the x86 parts? (Though I do now see a new >> comment from Dave was

Re: [PATCH AUTOSEL for 4.9 124/219] ARM: dts: rockchip: disable arm-global-timer for rk3188

2018-03-05 Thread Sasha Levin
On Mon, Mar 05, 2018 at 02:19:42AM +0300, Alexander Kochetkov wrote: >Hello, Sasha! > >Following 2 patches must be applied together with the patch: >5e0a39d0f727b35c8b7ef56ba0724c8ceb006297 clocksource/drivers/rockchip_timer: >Implement clocksource timer >627988a66aee3c845aa2f1f874a3ddba8adb89d9

Re: [PATCH 1/7] genalloc: track beginning of allocations

2018-03-05 Thread J Freyensee
. . On 2/28/18 12:06 PM, Igor Stoppa wrote: + +/** + * gen_pool_dma_alloc() - allocate special memory from the pool for DMA usage + * @pool: pool to allocate from + * @size: number of bytes to allocate from the pool + * @dma: dma-view physical address return value. Use NULL if unneeded. + * +

Re: [RFC, PATCH 18/22] x86/mm: Handle allocation of encrypted pages

2018-03-05 Thread Dave Hansen
On 03/05/2018 08:26 AM, Kirill A. Shutemov wrote: > kmap_atomic_keyid() would map the page with the specified KeyID. > For now it's dummy implementation that would be replaced later. I think you need to explain the tradeoffs here. We could just change the linear map around, but you don't. Why?

Re: Regression in IPMI on 4.15.6

2018-03-05 Thread Laura Abbott
On 03/02/2018 05:46 AM, Corey Minyard wrote: On 02/28/2018 01:07 PM, Corey Minyard wrote: On 02/28/2018 08:17 AM, Corey Minyard wrote: On 02/28/2018 07:53 AM, Corey Minyard wrote: On 02/27/2018 05:55 PM, Laura Abbott wrote: Hi, Fedora got a bug report of a crash in IPMI on 4.15.6

Re: [RFC, PATCH 19/22] x86/mm: Implement free_encrypt_page()

2018-03-05 Thread Dave Hansen
On 03/05/2018 08:26 AM, Kirill A. Shutemov wrote: > +void free_encrypt_page(struct page *page, int keyid, unsigned int order) > +{ > + int i; > + void *v; > + > + for (i = 0; i < (1 << order); i++) { > + v = kmap_atomic_keyid(page, keyid + i); > + /* See comment

[PATCH v11 3/7] iomap: introduce io{read|write}64_{lo_hi|hi_lo}

2018-03-05 Thread Logan Gunthorpe
In order to provide non-atomic functions for io{read|write}64 that will use readq and writeq when appropriate. We define a number of variants of these functions in the generic iomap that will do non-atomic operations on pio but atomic operations on mmio. These functions are only defined if readq

[PATCH v11 2/7] powerpc: iomap.c: introduce io{read|write}64_{lo_hi|hi_lo}

2018-03-05 Thread Logan Gunthorpe
These functions will be introduced into the generic iomap.c so they can deal with PIO accesses in hi-lo/lo-hi variants. Thus, the powerpc version of iomap.c will need to provide the same functions even though, in this arch, they are identical to the regular io{read|write}64 functions.

[PATCH v11 4/7] io-64-nonatomic: add io{read|write}64[be]{_lo_hi|_hi_lo} macros

2018-03-05 Thread Logan Gunthorpe
This patch adds generic io{read|write}64[be]{_lo_hi|_hi_lo} macros if they are not already defined by the architecture. (As they are provided by the generic iomap library). The patch also points io{read|write}64[be] to the variant specified by the header name. This is because new drivers are

Re: [PATCH v12 08/11] mm: Clear arch specific VM flags on protection change

2018-03-05 Thread Dave Hansen
On 02/21/2018 09:15 AM, Khalid Aziz wrote: > +/* Arch-specific flags to clear when updating VM flags on protection change > */ > +#ifndef VM_ARCH_CLEAR > +# define VM_ARCH_CLEAR VM_NONE > +#endif > +#define VM_FLAGS_CLEAR (ARCH_VM_PKEY_FLAGS | VM_ARCH_CLEAR) Shouldn't this be

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

2018-03-05 Thread Dexuan Cui
1. With the patch "x86/vector/msi: Switch to global reservation mode" (4900be8360), the recent v4.15 and newer kernels always hang for 1-vCPU Hyper-V VM with SR-IOV. This is because when we reach hv_compose_msi_msg() by request_irq() -> request_threaded_irq() -> __setup_irq()->irq_startup() ->

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

2018-03-05 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

Re: [PATCH] Fix partial warnings of checkpatch.pl for ipx_route.c

2018-03-05 Thread Eric Dumazet
On Mon, 2018-03-05 at 20:19 +0100, Horatiu Vultur wrote: > Fix partial warnings of checkpatch.pl for ipx_route.c > > Signed-off-by: Horatiu Vultur > --- >  drivers/staging/ipx/ipx_route.c | 7 --- >  1 file changed, 4 insertions(+), 3 deletions(-) > Please take a look at

Re: [PATCH v5 0/5] Add coupled regulators mechanism

2018-03-05 Thread Fabio Estevam
Hi Maciej, On Mon, Mar 5, 2018 at 12:57 PM, Fabio Estevam <feste...@gmail.com> wrote: > kernelci.org also shows other imx6 boards that cannot boot with > today's linux-next. Here are the completes logs in case they help: https://storage.kernelci.org/next/master/next-

Re: [PATCH 2/7] genalloc: selftest

2018-03-05 Thread J Freyensee
+ +/* + * In case of failure of any of these tests, memory corruption is almost + * guarranteed; allowing the boot to continue means risking to corrupt + * also any filesystem/block device accessed write mode. + * Therefore, BUG_ON() is used, when testing. + */ + + I like the explanation;

Re: [PATCH AUTOSEL for 4.9 005/219] kretprobes: Ensure probe location is at function entry

2018-03-05 Thread Sasha Levin
On Mon, Mar 05, 2018 at 12:32:57PM +0530, Naveen N. Rao wrote: >Hi Sasha, > >Sasha Levin wrote: >>From: "Naveen N. Rao" >> >>[ Upstream commit 90ec5e89e393c76e19afc845d8f88a5dc8315919 ] >> > >Sorry if this is obvious, but why was this patch picked up for

Re: [PATCH RFC v9 4/7] x86/entry: Erase kernel stack in syscall_trace_enter()

2018-03-05 Thread Kees Cook
On Mon, Mar 5, 2018 at 11:40 AM, Dave Hansen wrote: > On 03/03/2018 12:00 PM, Alexander Popov wrote: >> @@ -128,6 +134,7 @@ static long syscall_trace_enter(struct pt_regs *regs) >> >> do_audit_syscall_entry(regs, arch); >> >> + erase_kstack(); >>

Re: [PATCH AUTOSEL for 4.9 002/219] spi/bcm63xx: make spi subsystem aware of message size limits

2018-03-05 Thread Sasha Levin
On Mon, Mar 05, 2018 at 10:23:10AM +, Mark Brown wrote: >On Sat, Mar 03, 2018 at 10:27:56PM +, Sasha Levin wrote: >> From: Jonas Gorski >> >> [ Upstream commit 0135c03df914f0481c61f097c78d37cece84f330 ] > >Why are there so many more patches for v4.9 than for more

Re: [PATCH 0/29] arm meltdown fix backporting review for lts 4.9

2018-03-05 Thread Mark Brown
On Fri, Mar 02, 2018 at 05:54:15PM +0100, Greg KH wrote: > On Fri, Mar 02, 2018 at 05:14:50PM +0800, Alex Shi wrote: > > On 03/01/2018 11:24 PM, Greg KH wrote: > > > And why are you making this patchset up? What is wrong with the patches > > > in the android-common tree for this? > > We believe

Re: [PATCH v8 0/8] livepatch: Atomic replace feature

2018-03-05 Thread Miroslav Benes
On Mon, 5 Mar 2018, Evgenii Shatokhin wrote: > Hi, Hi, > > The atomic replace allows to create cumulative patches. They > > are useful when you maintain many livepatches and want to remove > > one that is lower on the stack. In addition it is very useful when > > more patches touch the same

Re: [RFC/RFT][PATCH 6/7] sched: idle: Predict idle duration before stopping the tick

2018-03-05 Thread Rafael J. Wysocki
On Mon, Mar 5, 2018 at 1:42 PM, Peter Zijlstra wrote: > On Mon, Mar 05, 2018 at 01:07:07PM +0100, Rafael J. Wysocki wrote: >> On Mon, Mar 5, 2018 at 12:50 PM, Rafael J. Wysocki wrote: >> > On Mon, Mar 5, 2018 at 12:45 PM, Peter Zijlstra

Re: [PATCH 01/12] lightnvm: simplify geometry structure.

2018-03-05 Thread Matias Bjørling
On 03/02/2018 04:21 PM, Javier González wrote: Currently, the device geometry is stored redundantly in the nvm_id and nvm_geo structures at a device level. Moreover, when instantiating targets on a specific number of LUNs, these structures are replicated and manually modified to fit the instance

Re: Would you help to tell why async printk solution was not taken to upstream kernel ?

2018-03-05 Thread Petr Mladek
On Mon 2018-03-05 14:56:59, Qixuan.Wu wrote: > Hi Steve, > > On Sun, 04 Mar 2018 23:43:23 +0800 > Steven Rostedt wrote: > > > Yes, people keep bringing up this scenario. > > It would require a single burst of printks to all CPUs. And then no > > more printks after that.

Re: [RESEND PATCH v6 03/14] iommu/rockchip: Request irqs in rk_iommu_probe()

2018-03-05 Thread Tomasz Figa
Hi Jeffy, On Thu, Mar 1, 2018 at 7:18 PM, Jeffy Chen wrote: > Move request_irq to the end of rk_iommu_probe(). > > Suggested-by: Robin Murphy > Signed-off-by: Jeffy Chen > --- > > Changes in v6: None > Changes in v5:

Re: [PATCH] lightnvm: pblk: refactor init/exit sequences

2018-03-05 Thread Javier González
> On 5 Mar 2018, at 14.38, Matias Bjørling wrote: > > On 03/01/2018 08:29 PM, Javier González wrote: >>> On 1 Mar 2018, at 19.49, Matias Bjørling wrote: >>> >>> On 03/01/2018 04:59 PM, Javier González wrote: Refactor init and exit sequences to eliminate

Re: [PATCH 8/9] drm/xen-front: Implement GEM operations

2018-03-05 Thread Oleksandr Andrushchenko
On 03/05/2018 11:32 AM, Daniel Vetter wrote: On Wed, Feb 21, 2018 at 10:03:41AM +0200, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko Implement GEM handling depending on driver mode of operation: depending on the requirements for the

Re: [RFC/RFT][PATCH 6/7] sched: idle: Predict idle duration before stopping the tick

2018-03-05 Thread Peter Zijlstra
On Mon, Mar 05, 2018 at 02:37:25PM +0100, Peter Zijlstra wrote: > On Mon, Mar 05, 2018 at 08:19:15AM -0500, Rik van Riel wrote: > > > Also, I think that at this point you've introduced a problem; by not > > > disabling the tick unconditionally, we'll have extra wakeups due to > > > the (now still

Re: [PATCH] lightnvm: pblk: refactor init/exit sequences

2018-03-05 Thread Matias Bjørling
On 03/05/2018 02:45 PM, Javier González wrote: On 5 Mar 2018, at 14.38, Matias Bjørling wrote: On 03/01/2018 08:29 PM, Javier González wrote: On 1 Mar 2018, at 19.49, Matias Bjørling wrote: On 03/01/2018 04:59 PM, Javier González wrote: Refactor init and

Re: [PATCH] ARM: dts: rockchip: Add dp83867 CLK_OUT muxing

2018-03-05 Thread Heiko Stuebner
Hi Daniel, Am Montag, 5. März 2018, 13:45:11 CET schrieb Daniel Schultz: > The CLK_O_SEL default is synchronous to XI input clock, which is 25 MHz. > Set CLK_O_SEL to channel A transmit clock so we have 125 MHz on CLK_OUT. > > Signed-off-by: Daniel Schultz > --- > > The

[PATCH 28/28] perf mmap: Discard legacy interfaces for mmap read forward

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang Discards legacy interfaces perf_evlist__mmap_read_forward(), perf_evlist__mmap_read() and perf_evlist__mmap_consume(). No tools use them. Signed-off-by: Kan Liang Cc: Andi Kleen Cc: Jiri Olsa

[PATCH 4/6] bus: fsl-mc: remove dma ops setup from driver

2018-03-05 Thread Nipun Gupta
The dma setup for fsl-mc devices is being done from device_add() function. So, no need to call in mc bus driver. Signed-off-by: Nipun Gupta --- drivers/bus/fsl-mc/fsl-mc-bus.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

[PATCH 22/28] perf test: Switch to new perf_mmap__read_event() interface for tp fields

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang The perf test 'syscalls:sys_enter_openat event fields' still use the legacy interface. No functional change. Committer notes: Testing it: # perf test sys_enter_openat 15: syscalls:sys_enter_openat event fields: Ok #

[PATCH 27/28] perf test: Switch to new perf_mmap__read_event() interface for task-exit

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang The perf test 'task-exit' still use the legacy interface. No functional change. Committer notes: Testing it: # perf test exit 21: Number of exit events of a simple workload: Ok # Signed-off-by: Kan Liang

[PATCH 08/28] perf tests: Rename trace+probe_libc_inet_pton to record+probe_libc_inet_pton

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Because the test is no longer using perf trace but perf record instead. Signed-off-by: Jiri Olsa Tested-by: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: David Ahern

[PATCH 26/28] perf test: Switch to new perf_mmap__read_event() interface for switch-tracking

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang The perf test 'switch-tracking' still use the legacy interface. No functional change. Committer testing: # perf test switch 32: Track with sched_switch : Ok # Signed-off-by: Kan Liang

[PATCH 18/28] perf test: Switch to new perf_mmap__read_event() interface for bpf

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang The perf test 'bpf' still use the legacy interface. No functional change. Committer notes: Tested with: # perf test bpf 39: BPF filter: 39.1: Basic BPF filtering : Ok

[PATCH v2 2/5] tpm: migrate tpm2_shutdown() to use struct tpm_buf

2018-03-05 Thread Jarkko Sakkinen
In order to make struct tpm_buf the first class object for constructing TPM commands, migrate tpm2_shutdown() to use it. In addition, removed the klog entry when tpm_transmit_cmd() fails because tpm_tansmit_cmd() already prints an error message. Signed-off-by: Jarkko Sakkinen

[PATCH v2 5/5] tpm: migrate tpm2_get_random() to use struct tpm_buf

2018-03-05 Thread Jarkko Sakkinen
In order to make struct tpm_buf the first class object for constructing TPM commands, migrate tpm2_get_random() to use it. In addition, removed remaining references to struct tpm2_cmd. All of them use it to acquire the length of the response, which can be achieved by using tpm_buf_length().

[PATCH v2 3/5] tpm: migrate tpm2_probe() to use struct tpm_buf

2018-03-05 Thread Jarkko Sakkinen
In order to make struct tpm_buf the first class object for constructing TPM commands, migrate tpm2_probe() to use it. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm2-cmd.c | 27 +++ 1 file changed, 15 insertions(+), 12

Re: [PATCH 1/6] Docs: dt: add fsl-mc iommu-parent device-tree binding

2018-03-05 Thread Robin Murphy
On 05/03/18 14:29, Nipun Gupta wrote: The existing IOMMU bindings cannot be used to specify the relationship between fsl-mc devices and IOMMUs. This patch adds a binding for mapping fsl-mc devices to IOMMUs, using a new iommu-parent property. Given that allowing "msi-parent" for #msi-cells > 1

[PATCH] mtdchar: fix usage of mtd_ooblayout_ecc()

2018-03-05 Thread OuYang ZhiZhong
Section was not properly computed. The value of OOB region definition is always ECC section 0 information in the OOB area, but we want to get all the ECC bytes information, so we should call mtd_ooblayout_ecc(mtd, section++, ) until it returns -ERANGE. This is fixed by using i instead of section.

Re: [PATCH 1/6] tpm: sort objects in the Makefile

2018-03-05 Thread Jason Gunthorpe
On Mon, Mar 05, 2018 at 10:20:12PM +0200, Tomas Winkler wrote: > Make the tpm Makefile a bit more in order by putting > objects in one column and group together tpm2 modules > > Prefer tpm-objs += instead of tpm-y += notation. > > Signed-off-by: Tomas Winkler >

Re: [PATCH v2 1/1] HID: Logitech K290: Add driver for the Logitech K290 USB keyboard

2018-03-05 Thread kbuild test robot
Hi Florent, Thank you for the patch! Yet something to improve: [auto build test ERROR on hid/for-next] [also build test ERROR on v4.16-rc4 next-20180305] [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

Re: [PATCH v12 02/11] mm, swap: Add infrastructure for saving page metadata on swap

2018-03-05 Thread Khalid Aziz
On 03/05/2018 02:04 PM, Dave Hansen wrote: On 03/05/2018 12:28 PM, Khalid Aziz wrote: Do you have a way to tell that data is not being thrown away?  Like if the ADI metadata is different for two different cachelines within a single page? Yes, since access to tagged data is made using pointers

Re: [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity)

2018-03-05 Thread Khalid Aziz
On 03/05/2018 12:22 PM, Dave Hansen wrote: On 02/21/2018 09:15 AM, Khalid Aziz wrote: +#define arch_validate_prot(prot, addr) sparc_validate_prot(prot, addr) +static inline int sparc_validate_prot(unsigned long prot, unsigned long addr) +{ + if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC

Re: [PATCH RFC v9 2/7] x86/entry: Add STACKLEAK erasing the kernel stack at the end of syscalls

2018-03-05 Thread Alexander Popov
On 05.03.2018 23:25, Peter Zijlstra wrote: > On Mon, Mar 05, 2018 at 11:43:19AM -0800, Laura Abbott wrote: >> On 03/05/2018 08:41 AM, Dave Hansen wrote: >>> On 03/03/2018 12:00 PM, Alexander Popov wrote: Documentation/x86/x86_64/mm.txt | 2 + arch/Kconfig | 27

RE: [PATCH 1/6] tpm: sort objects in the Makefile

2018-03-05 Thread Winkler, Tomas
> On Mon, Mar 05, 2018 at 10:20:12PM +0200, Tomas Winkler wrote: > > Make the tpm Makefile a bit more in order by putting objects in one > > column and group together tpm2 modules > > > > Prefer tpm-objs += instead of tpm-y += notation. > > > > Signed-off-by: Tomas Winkler

Re: [PATCH 2/2] docs: add Co-Developed-by docs

2018-03-05 Thread Tobin C. Harding
On Mon, Mar 05, 2018 at 04:11:35AM -0800, Matthew Wilcox wrote: > On Mon, Mar 05, 2018 at 02:58:21PM +1100, Tobin C. Harding wrote: > > -12) When to use Acked-by: and Cc: > > -- > > +12) When to use Acked-by: and Cc:, and Co-Developed-by: > >

Re: [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity)

2018-03-05 Thread Dave Hansen
On 02/21/2018 09:15 AM, Khalid Aziz wrote: > +tag_storage_desc_t *alloc_tag_store(struct mm_struct *mm, > + struct vm_area_struct *vma, > + unsigned long addr) ... > + tags = kzalloc(size, GFP_NOWAIT|__GFP_NOWARN); > + if

[PATCH 11/36] fs: update documentation for __poll_t

2018-03-05 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- Documentation/filesystems/Locking | 2 +- Documentation/filesystems/vfs.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/filesystems/Locking b/Documentation/filesystems/Locking index

[PATCH 02/36] aio: remove an outdated comment in aio_complete

2018-03-05 Thread Christoph Hellwig
These days we don't treat sync iocbs special in the aio completion code as they never use it. Remove the old comment, and move the BUG_ON for a sync iocb to the top of the function. Signed-off-by: Christoph Hellwig Acked-by: Jeff Moyer --- fs/aio.c | 11

Re: [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity)

2018-03-05 Thread Dave Hansen
On 03/05/2018 01:14 PM, Khalid Aziz wrote: > On 03/05/2018 12:22 PM, Dave Hansen wrote: >> On 02/21/2018 09:15 AM, Khalid Aziz wrote: >>> +#define arch_validate_prot(prot, addr) sparc_validate_prot(prot, addr) >>> +static inline int sparc_validate_prot(unsigned long prot, unsigned >>> long addr)

[PATCH 36/36] random: convert to ->poll_mask

2018-03-05 Thread Christoph Hellwig
The big change is that random_read_wait and random_write_wait are merged into a single waitqueue that uses keyed wakeups. Because wait_event_* doesn't know about that this will lead to occassional spurious wakeups in _random_read and add_hwgenerator_randomness, but wait_event_* is designed to

[PATCH 25/36] net/sctp: convert to ->poll_mask

2018-03-05 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/net/sctp/sctp.h | 3 +-- net/sctp/ipv6.c | 2 +- net/sctp/protocol.c | 2 +- net/sctp/socket.c | 4 +--- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h

[PATCH 34/36] eventfd: switch to ->poll_mask

2018-03-05 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/eventfd.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/fs/eventfd.c b/fs/eventfd.c index 012f5bd46dfa..d70b4907f978 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c @@ -101,14 +101,20 @@ static int

[PATCH 33/36] pipe: convert to ->poll_mask

2018-03-05 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/pipe.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/fs/pipe.c b/fs/pipe.c index 7b1954caf388..81937590ea0a 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -509,19 +509,22 @@ static long

[PATCH 31/36] net/rxrpc: convert to ->poll_mask

2018-03-05 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/rxrpc/af_rxrpc.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c index 0c9c18aa7c77..d2440d5c3ce8 100644 --- a/net/rxrpc/af_rxrpc.c +++ b/net/rxrpc/af_rxrpc.c @@

[PATCH 35/36] timerfd: convert to ->poll_mask

2018-03-05 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/timerfd.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/fs/timerfd.c b/fs/timerfd.c index cdad49da3ff7..d84a2bee4f82 100644 --- a/fs/timerfd.c +++ b/fs/timerfd.c @@ -226,21 +226,20 @@ static int

[PATCH 32/36] crypto: af_alg: convert to ->poll_mask

2018-03-05 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- crypto/af_alg.c | 13 +++-- crypto/algif_aead.c | 4 ++-- crypto/algif_skcipher.c | 4 ++-- include/crypto/if_alg.h | 3 +-- 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/crypto/af_alg.c b/crypto/af_alg.c

Re: [BUG] Kernel crash on Allwinner H3 due to sound core changes

2018-03-05 Thread Jernej Škrabec
Hi, Dne petek, 02. marec 2018 ob 13:40:50 CET je Mark Brown napisal(a): > On Thu, Mar 01, 2018 at 11:23:57PM +0100, Jernej Škrabec wrote: > > I removed parts of the code from the sun4i codec driver and interestingly > > it doesn't crash if I remove following lines: > > > > ret =

Re: [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity)

2018-03-05 Thread Dave Hansen
On 03/05/2018 01:14 PM, Khalid Aziz wrote: > Are you suggesting that vma returned by find_vma() could be split or > merged underneath me if I do not hold mmap_sem and thus make the flag > check invalid? If so, that is a good point. This part does make me think that this code hasn't been tested

[PATCH 30/36] net/iucv: convert to ->poll_mask

2018-03-05 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/net/iucv/af_iucv.h | 2 -- net/iucv/af_iucv.c | 7 ++- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/include/net/iucv/af_iucv.h b/include/net/iucv/af_iucv.h index f4c21b5a1242..b0eaeb02d46d 100644 ---

[PATCH 24/36] net/tipc: convert to ->poll_mask

2018-03-05 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/tipc/socket.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/net/tipc/socket.c b/net/tipc/socket.c index b0323ec7971e..1ea1666e8e95 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c @@ -694,10 +694,9

[PATCH 26/36] net/bluetooth: convert to ->poll_mask

2018-03-05 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/net/bluetooth/bluetooth.h | 2 +- net/bluetooth/af_bluetooth.c | 7 ++- net/bluetooth/l2cap_sock.c| 2 +- net/bluetooth/rfcomm/sock.c | 2 +- net/bluetooth/sco.c | 2 +- 5 files changed, 6

[PATCH 27/36] net/caif: convert to ->poll_mask

2018-03-05 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/caif/caif_socket.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/net/caif/caif_socket.c b/net/caif/caif_socket.c index a6fb1b3bcad9..c7991867d622 100644 --- a/net/caif/caif_socket.c +++

[PATCH 28/36] net/nfc: convert to ->poll_mask

2018-03-05 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/nfc/llcp_sock.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/net/nfc/llcp_sock.c b/net/nfc/llcp_sock.c index 376040092142..b6010750e634 100644 --- a/net/nfc/llcp_sock.c +++ b/net/nfc/llcp_sock.c @@ -549,16

[PATCH 29/36] net/phonet: convert to ->poll_mask

2018-03-05 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/phonet/socket.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/net/phonet/socket.c b/net/phonet/socket.c index 28d981512f5f..70ac4539d5b7 100644 --- a/net/phonet/socket.c +++ b/net/phonet/socket.c @@ -341,15

[PATCH 23/36] net/vmw_vsock: convert to ->poll_mask

2018-03-05 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/vmw_vsock/af_vsock.c | 19 ++- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c index e0fc84daed94..b9210329bda8 100644 --- a/net/vmw_vsock/af_vsock.c +++

[PATCH 22/36] net/atm: convert to ->poll_mask

2018-03-05 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/atm/common.c | 11 +++ net/atm/common.h | 2 +- net/atm/pvc.c| 2 +- net/atm/svc.c| 2 +- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/net/atm/common.c b/net/atm/common.c index fc78a0508ae1..1f2af59935db

[PATCH 21/36] net/dccp: convert to ->poll_mask

2018-03-05 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/dccp/dccp.h | 3 +-- net/dccp/ipv4.c | 2 +- net/dccp/ipv6.c | 2 +- net/dccp/proto.c | 13 ++--- 4 files changed, 5 insertions(+), 15 deletions(-) diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h index f91e3816806b..0ea2ee56ac1b

[PATCH 17/36] net: remove sock_no_poll

2018-03-05 Thread Christoph Hellwig
Now that sock_poll handles a NULL ->poll or ->poll_mask there is no need for a stub. Signed-off-by: Christoph Hellwig --- crypto/af_alg.c | 1 - crypto/algif_hash.c | 2 -- crypto/algif_rng.c | 1 - drivers/isdn/mISDN/socket.c | 1 -

Re: [PATCH RFC v9 2/7] x86/entry: Add STACKLEAK erasing the kernel stack at the end of syscalls

2018-03-05 Thread Kees Cook
On Mon, Mar 5, 2018 at 1:21 PM, Alexander Popov wrote: > On 05.03.2018 23:25, Peter Zijlstra wrote: >> On Mon, Mar 05, 2018 at 11:43:19AM -0800, Laura Abbott wrote: >>> On 03/05/2018 08:41 AM, Dave Hansen wrote: On 03/03/2018 12:00 PM, Alexander Popov wrote: >

Re: [PATCH 07/34] x86/entry/32: Restore segments before int registers

2018-03-05 Thread Joerg Roedel
On Mon, Mar 05, 2018 at 12:50:33PM -0800, Linus Torvalds wrote: > On Mon, Mar 5, 2018 at 12:38 PM, Brian Gerst wrote: > > > > There already is a test: single_step_syscall.c > > Ahh, good. So presumably Joerg actually did check it, just didn't even notice > ;) Yeah, sort of.

<    2   3   4   5   6   7   8   9   10   11   >