Re: [PATCH v2] drm/i915: Flush untouched framebuffers before display on !llc

2017-01-12 Thread Chris Wilson
On Mon, Jan 09, 2017 at 11:19:32AM +, Chris Wilson wrote: > On a non-llc system, the objects are created with .cache_level = > CACHE_NONE and so the transition to uncached for scanout is a no-op. > However, if the object was never written to, it will still be in the CPU > domain (having been ze

Re: [PATCH] tcp: fix tcp_fastopen unaligned access complaints on sparc

2017-01-12 Thread David Miller
From: Shannon Nelson Date: Thu, 12 Jan 2017 12:56:08 -0800 > > > On 1/12/2017 12:41 PM, David Miller wrote: >> From: Shannon Nelson >> Date: Thu, 12 Jan 2017 12:30:38 -0800 >> >>> On 1/12/2017 12:25 PM, Eric Dumazet wrote: On Thu, 2017-01-12 at 13:15 -0700, Rob Gardner wrote: > >

Re: [PATCH 04/10] blk-mq: un-export blk_mq_free_hctx_request()

2017-01-12 Thread Bart Van Assche
On Wed, 2017-01-11 at 14:39 -0700, Jens Axboe wrote: > It's only used in blk-mq, kill it from the main exported header > and kill the symbol export as well. Reviewed-by: Bart Van Assche

Re: [PATCH 1/4] efi/x86: make efi_memmap_reserve only insert into boot mem areas

2017-01-12 Thread Dave Young
On 01/12/17 at 04:15pm, Ard Biesheuvel wrote: > Hello Dave, > > On 12 January 2017 at 09:41, Dave Young wrote: > > There are memory ranges like below when I testing early efi_mem_reserve: > > > > efi: mem62: [Reserved | | | | | | | | | | | | ] > > range=[0x000

Re: [PATCH 05/10] blk-mq: export some helpers we need to the scheduling framework

2017-01-12 Thread Bart Van Assche
On Wed, 2017-01-11 at 14:39 -0700, Jens Axboe wrote: > [ ... ] Reviewed-by: Bart Van Assche

Re: [PATCH net-next v2 05/10] drivers: base: Add device_find_class()

2017-01-12 Thread David Miller
From: Florian Fainelli Date: Wed, 11 Jan 2017 19:41:16 -0800 > Add a helper function to lookup a device reference given a class name. > This is a preliminary patch to remove adhoc code from net/dsa/dsa.c and > make it more generic. > > Signed-off-by: Florian Fainelli > --- > drivers/base/core.

Re: [PATCH 06/10] blk-mq-tag: cleanup the normal/reserved tag allocation

2017-01-12 Thread Bart Van Assche
On Wed, 2017-01-11 at 14:39 -0700, Jens Axboe wrote: > This is in preparation for having another tag set available. Cleanup > the parameters, and allow passing in of tags fo blk_mq_put_tag(). It seems like an 'r' is missing from the description ("tags fo")? Anyway: Reviewed-by: Bart Van Assche

[PATCH] sd: Cleaned up comment references to @sdp argument explanation.

2017-01-12 Thread John Pittman
In sd.c there are two comment references to 'struct scsi_device *sdp' as an argument. One of the references has a typo and the other should be a reference to 'struct device *dev' instead. Fixed by correcting the typo in the first and changing the explanation in the second. Signed-off-by: John Pi

[PATCH] frv: pci-frv: fix build warning

2017-01-12 Thread Sudip Mukherjee
The build of frv defconfig gives warning: arch/frv/mb93090-mb00/pci-frv.c:176:5: warning: ignoring return value of 'pci_assign_resource', declared with attribute warn_unused_result Just print an error message to silence the warning. We can not do much here on error. Signe

Re: [PATCH v8 2/5] i2c: Add STM32F4 I2C driver

2017-01-12 Thread M'boumba Cedric Madianga
2017-01-12 22:10 GMT+01:00 Uwe Kleine-König : > On Thu, Jan 12, 2017 at 09:58:23PM +0100, M'boumba Cedric Madianga wrote: >> 2017-01-12 18:49 GMT+01:00 Uwe Kleine-König : >> > On Thu, Jan 12, 2017 at 02:47:42PM +0100, M'boumba Cedric Madianga wrote: >> >> 2017-01-12 13:03 GMT+01:00 Uwe Kleine-König

Re: [PATCH 07/10] blk-mq: abstract out helpers for allocating/freeing tag maps

2017-01-12 Thread Bart Van Assche
On Wed, 2017-01-11 at 14:40 -0700, Jens Axboe wrote: > @@ -2392,12 +2425,12 @@ int blk_mq_alloc_tag_set(struct blk_mq_tag_set *set) > if (set->nr_hw_queues > nr_cpu_ids) > set->nr_hw_queues = nr_cpu_ids; > > + ret = -ENOMEM; > set->tags = kzalloc_node(nr_cpu_ids * si

Re: [PATCH 1/4] efi/x86: make efi_memmap_reserve only insert into boot mem areas

2017-01-12 Thread Dave Young
On 01/12/17 at 12:15pm, Nicolai Stange wrote: > Hi Dave, > > On Thu, Jan 12 2017, Dave Young wrote: > > > efi_mem_reserve cares only about boot services regions and maybe loader > > areas. > > So add a new argument to efi_memmap_insert for this purpose. > > Please see below. > > > > --- linux

Re: [RFC] [PATCH] audit: log 32-bit socketcalls

2017-01-12 Thread Paul Moore
On Thu, Jan 12, 2017 at 7:36 AM, Richard Guy Briggs wrote: > 32-bit socketcalls were not being logged by audit on x86_64 systems. > Log them. > > See: https://github.com/linux-audit/audit-kernel/issues/14 > > Signed-off-by: Richard Guy Briggs > --- > net/compat.c | 18 -- > 1 f

Re: [RESEND] spi: davinci: Allow device tree devices to use DMA

2017-01-12 Thread Kevin Hilman
David Lechner writes: > This allows SPI devices specified in a device tree to use DMA when the > master controller. Enabling DMA for spi-davinci isn't quite ready yet since this driver is blindly using dma_map_single() on addresses passed in. MTD seems to use vmalloc'd buffers, which cannot be

Re: [PATCH] partially revert "xen: Remove event channel notification through Xen PCI platform device"

2017-01-12 Thread Stefano Stabellini
On Thu, 12 Jan 2017, Boris Ostrovsky wrote: > On 01/11/2017 06:36 PM, Stefano Stabellini wrote: > > The following commit: > > > > commit 72a9b186292d98494f26cfd24a1621796209 > > Author: KarimAllah Ahmed > > Date: Fri Aug 26 23:55:36 2016 +0200 > > > > xen: Remove event channel notificati

Re: [PATCH 2/4] efi/x86: move efi bgrt init code to early init code

2017-01-12 Thread Dave Young
On 01/12/17 at 04:20pm, Ard Biesheuvel wrote: > On 12 January 2017 at 09:41, Dave Young wrote: > > Before invoking the arch specific handler, efi_mem_reserve() reserves > > the given memory region through memblock. > > > > efi_bgrt_init will call efi_mem_reserve after mm_init(), at that time > > m

Re: [PATCH] tcp: fix tcp_fastopen unaligned access complaints on sparc

2017-01-12 Thread Eric Dumazet
On Thu, 2017-01-12 at 16:18 -0500, David Miller wrote: > From: Shannon Nelson > Date: Thu, 12 Jan 2017 12:56:08 -0800 > > > > > > > On 1/12/2017 12:41 PM, David Miller wrote: > >> From: Shannon Nelson > >> Date: Thu, 12 Jan 2017 12:30:38 -0800 > >> > >>> On 1/12/2017 12:25 PM, Eric Dumazet wro

Re: [PATCH] partially revert "xen: Remove event channel notification through Xen PCI platform device"

2017-01-12 Thread Boris Ostrovsky
On 01/12/2017 04:33 PM, Stefano Stabellini wrote: > On Thu, 12 Jan 2017, Boris Ostrovsky wrote: >> On 01/11/2017 06:36 PM, Stefano Stabellini wrote: >>> The following commit: >>> >>> commit 72a9b186292d98494f26cfd24a1621796209 >>> Author: KarimAllah Ahmed >>> Date: Fri Aug 26 23:55:36 2016 +

Re: [PATCH] tpm_tis: override reported C and D timeouts for Atmel 3203

2017-01-12 Thread Maciej S. Szmigiero
On 12.01.2017 21:20, Jarkko Sakkinen wrote: > On Thu, Jan 12, 2017 at 09:09:33PM +0100, Maciej S. Szmigiero wrote: >> Hi Jason, >> >> On 12.01.2017 19:42, Jason Gunthorpe wrote: (..) >>> Can you also add a check for 0 timeouts in the core code and print a >>> FW_BUG :\ >> >> Hmm, I dug in history o

[PATCH] virtio_mmio: expose header to userspace

2017-01-12 Thread Michael S. Tsirkin
It's handy for userspace emulators like QEMU. Signed-off-by: Michael S. Tsirkin --- drivers/virtio/virtio_mmio.c | 2 +- include/{ => uapi}/linux/virtio_mmio.h | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename include/{ => uapi}/linux/virtio_mmio.h (100%) diff --git a/driver

Re: [PATCH -next] soc: ti: wkup_m3_ipc: Fix error return code in wkup_m3_ipc_probe()

2017-01-12 Thread Tony Lindgren
* Wei Yongjun [170112 06:55]: > From: Wei Yongjun > > Fix to return a negative error code from the kthread_run() error > handling case instead of 0, as done elsewhere in this function. > > Fixes: cdd5de500b2c ("soc: ti: Add wkup_m3_ipc driver") > Signed-off-by: Wei Yongjun > --- > drivers/soc

[PATCH v2] partially revert "xen: Remove event channel notification through Xen PCI platform device"

2017-01-12 Thread Stefano Stabellini
The following commit: commit 72a9b186292d98494f26cfd24a1621796209 Author: KarimAllah Ahmed Date: Fri Aug 26 23:55:36 2016 +0200 xen: Remove event channel notification through Xen PCI platform device broke Linux when booting as Dom0 on Xen in a nested Xen environment (Xen installed ins

Re: [PATCH 2/4] efi/x86: move efi bgrt init code to early init code

2017-01-12 Thread Dave Young
On 01/12/17 at 12:54pm, Nicolai Stange wrote: > On Thu, Jan 12 2017, Dave Young wrote: > > > -void __init efi_bgrt_init(void) > > +void __init efi_bgrt_init(struct acpi_table_header *table) > > { > > - acpi_status status; > > void *image; > > struct bmp_header bmp_header; > > > >

Re: x86-64: Maintain 16-byte stack alignment

2017-01-12 Thread Linus Torvalds
On Thu, Jan 12, 2017 at 12:55 PM, Josh Poimboeuf wrote: > > - Who's going to run sparse all the time to catch unauthorized users of > __aligned__(16)? Well, considering that we apparently only have a small handful of existing users without anybody having ever run any tool at all, I don't think

Re: [PATCH] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-01-12 Thread Jean-Jacques Hiblot
2017-01-12 1:19 GMT+01:00 Abel Vesa : > On Tue, Jan 10, 2017 at 04:51:12PM +0100, Petr Mladek wrote: >> On Thu 2016-12-08 22:46:55, Abel Vesa wrote: >> > On Thu, Dec 08, 2016 at 09:46:35PM +, Abel Vesa wrote: >> > > From: Jean-Jacques Hiblot >> > > >> > > From: Jean-Jacques Hiblot >> > >> > >

Re: [PATCH 3/4] efi/x86: move efi_print_memmap to drivers/firmware/efi/memmap.c

2017-01-12 Thread Dave Young
On 01/12/17 at 01:08pm, Nicolai Stange wrote: > On Thu, Jan 12 2017, Dave Young wrote: > > > Signed-off-by: Dave Young > > --- > > arch/x86/platform/efi/efi.c | 16 > > drivers/firmware/efi/memmap.c | 16 > > 2 files changed, 16 insertions(+), 16 deletions

Re: [PATCH v4 0/4] Introduce the initify gcc plugin

2017-01-12 Thread Emese Revfy
On Tue, 10 Jan 2017 17:09:31 -0800 Kees Cook wrote: > WARNING: vmlinux.o(.text+0x1087e7): Section mismatch in reference from > the function rebind_subsystems() to the variable > .init.rodata.str:__func__.4400 > The function rebind_subsystems() references > the variable __initconst __func__.4400.

Re: [PATCH v2] x86, locking/spinlocks: Remove paravirt_ticketlocks_enabled

2017-01-12 Thread Boris Ostrovsky
> diff --git a/arch/x86/xen/spinlock.c b/arch/x86/xen/spinlock.c > index e8a9ea7..25a7c43 100644 > --- a/arch/x86/xen/spinlock.c > +++ b/arch/x86/xen/spinlock.c > @@ -141,25 +141,6 @@ void __init xen_init_spinlocks(void) > pv_lock_ops.vcpu_is_preempted = PV_CALLEE_SAVE(xen_vcpu_stolen); > }

Re: [PATCH 08/10] blk-mq-sched: add framework for MQ capable IO schedulers

2017-01-12 Thread Bart Van Assche
On Wed, 2017-01-11 at 14:40 -0700, Jens Axboe wrote: > @@ -451,11 +456,11 @@ void blk_insert_flush(struct request *rq) >* processed directly without going through flush machinery. Queue >* for normal execution. >*/ > - if ((policy & REQ_FSEQ_DATA) && > - !(polic

Re: [PATCH 1/4] staging: android/ion: Fix line over 80 characters

2017-01-12 Thread Bogdan Purcareata
On Thu, Jan 12, 2017 at 11:56 AM, Greg KH wrote: > On Thu, Jan 12, 2017 at 12:32:26PM +0300, Dan Carpenter wrote: >> On Thu, Jan 12, 2017 at 09:54:16AM +0200, Bogdan Purcareata wrote: >> > Signed-off-by: Bogdan Purcareata >> >> All staging patches need a changelog, no matter how trivial. > > s/st

Re: [PATCH] usb: dwc3: core: Disable USB2.0 phy suspend when dwc3 acts as host role

2017-01-12 Thread John Youn
On 1/11/2017 11:51 PM, Felipe Balbi wrote: > > Hi, > > Baolin Wang writes: >>> Baolin Wang writes: When dwc3 controller acts as host role with attaching slow speed device (like mouse or keypad). Then if we plugged out the slow speed device, it will timeout to run the deconfigurat

Re: [PATCH] tcp: fix tcp_fastopen unaligned access complaints on sparc

2017-01-12 Thread David Miller
From: Eric Dumazet Date: Thu, 12 Jan 2017 13:36:30 -0800 > val should be an union, so that proper alignment is enforced by one > member. Sure, annotating the type so that it is aligned correctly makes sense.

Re: [PATCH] net: thunderx: acpi: fix LMAC initialization

2017-01-12 Thread David Miller
From: Vadim Lomovtsev Date: Thu, 12 Jan 2017 07:28:06 -0800 > While probing BGX we requesting appropriate QLM for it's configuration > and get LMAC count by that request. Then, while reading configured > MAC values from SSDT table we need to save them in proper mapping: > BGX[i]->lmac[j].mac =

Re: [Question] New mmap64 syscall?

2017-01-12 Thread Pavel Machek
On Thu 2017-01-12 17:13:25, Florian Weimer wrote: > On 01/03/2017 09:54 PM, Pavel Machek wrote: > >...actually, with strace and batched interface, it will be impossible > >to see what is going on because of races. So I'm not sure if I like > >the batched interface at all... > > I'm not sure if I u

Re: [PATCH 09/10] mq-deadline: add blk-mq adaptation of the deadline IO scheduler

2017-01-12 Thread Bart Van Assche
On Wed, 2017-01-11 at 14:40 -0700, Jens Axboe wrote: > This is basically identical to deadline-iosched, except it registers > as a MQ capable scheduler. This is still a single queue design. Reviewed-by: Bart Van Assche

Re: [PATCH 07/10] blk-mq: abstract out helpers for allocating/freeing tag maps

2017-01-12 Thread Jens Axboe
On Thu, Jan 12 2017, Bart Van Assche wrote: > On Wed, 2017-01-11 at 14:40 -0700, Jens Axboe wrote: > > @@ -2392,12 +2425,12 @@ int blk_mq_alloc_tag_set(struct blk_mq_tag_set *set) > > if (set->nr_hw_queues > nr_cpu_ids) > > set->nr_hw_queues = nr_cpu_ids; > > > > + ret = -ENOMEM

[PATCH v2 00/18] FSI device driver introduction

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Introduction of the IBM 'Flexible Support Interface' (FSI) bus device driver. FSI is a high fan out serial bus consisting of a clock and a serial data line capable of running at speeds up to 166 MHz. This set provides the basic framework to add FSI extensions to the Linux bus

Re: [PATCH 10/10] blk-mq-sched: allow setting of default IO scheduler

2017-01-12 Thread Bart Van Assche
On Wed, 2017-01-11 at 14:40 -0700, Jens Axboe wrote: > Add Kconfig entries to manage what devices get assigned an MQ > scheduler, and add a blk-mq flag for drivers to opt out of scheduling. > The latter is useful for admin type queues that still allocate a blk-mq > queue and tag set, but aren't use

Re: [PATCH] tcp: fix tcp_fastopen unaligned access complaints on sparc

2017-01-12 Thread Shannon Nelson
On 1/12/2017 1:47 PM, David Miller wrote: From: Eric Dumazet Date: Thu, 12 Jan 2017 13:36:30 -0800 val should be an union, so that proper alignment is enforced by one member. Sure, annotating the type so that it is aligned correctly makes sense. ... and we should change the offending po

Re: [PATCH] tcp: fix tcp_fastopen unaligned access complaints on sparc

2017-01-12 Thread David Miller
From: Shannon Nelson Date: Thu, 12 Jan 2017 13:58:10 -0800 > > > On 1/12/2017 1:47 PM, David Miller wrote: >> From: Eric Dumazet >> Date: Thu, 12 Jan 2017 13:36:30 -0800 >> >>> val should be an union, so that proper alignment is enforced by one >>> member. >> >> Sure, annotating the type so th

[PATCH v2 3/4] staging: android/ion: Align comment mark

2017-01-12 Thread Bogdan Purcareata
Fix missing space right before multiple line comment closing. Signed-off-by: Bogdan Purcareata --- v1 -> v2 - add changelog drivers/staging/android/ion/ion_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_priv.h b/drivers/staging/androi

[PATCH v2 2/4] staging: android/ion: Don't use return in void function

2017-01-12 Thread Bogdan Purcareata
Return statements are superfluous in void functions, and checkpatch complains about them too. Remove offending return. Signed-off-by: Bogdan Purcareata --- v1 -> v2 - add changelog drivers/staging/android/ion/ion_of.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/android/i

[PATCH v2 4/4] staging: android/ion: Use variable names in header

2017-01-12 Thread Bogdan Purcareata
Populate header function signatures with variable names as well, not just variable types. Signed-off-by: Bogdan Purcareata --- v1 -> v2: - fix CHECK report from checkpatch drivers/staging/android/ion/ion_priv.h | 38 +- 1 file changed, 19 insertions(+), 19 deleti

Re: [PATCH v2] PCI: thunder-pem: Add support for cn81xx and cn83xx SoCs.

2017-01-12 Thread Bjorn Helgaas
On Wed, Jan 11, 2017 at 11:22:11AM -0800, David Daney wrote: > From: David Daney > > The pci-thunder-pem driver was initially developed for cn88xx SoCs. > The cn81xx and cn83xx members of the same family of SoCs has a > slightly different configuration of interrupt resources in the PEM > hardware

[PATCH v2 1/4] staging: android/ion: Split function call

2017-01-12 Thread Bogdan Purcareata
Fix checkpatch error of line exceeding 80 characters. Signed-off-by: Bogdan Purcareata --- v1 -> v2: - add changelog - fix CHECK reports from checkpatch drivers/staging/android/ion/ion-ioctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion-

[PATCH] tpm_tis: rename TPM_TIS_ITPM_POSSIBLE to TPM_TIS_ITPM_WORKAROUND

2017-01-12 Thread Maciej S. Szmigiero
Rename TPM_TIS_ITPM_POSSIBLE to TPM_TIS_ITPM_WORKAROUND since it gives a better idea what this flag actually does. Suggested-by: Jason Gunthorpe Signed-off-by: Maciej S. Szmigiero --- This needs "tpm_tis: fix iTPM probe via probe_itpm() function" applied first. drivers/char/tpm/tpm_tis.c

Re: [PATCH] clk: stm32f4: avoid uninitialized variable access

2017-01-12 Thread Stephen Boyd
On 01/11, Arnd Bergmann wrote: > The failure path in the newly added function tries to free an > uninitialized pointer: > > drivers/clk/clk-stm32f4.c: In function 'stm32f4_rcc_init': > drivers/clk/clk-stm32f4.c:1106:4: error: 'gate' may be used uninitialized in > this function [-Werror=maybe-unin

Re: [PATCH 08/10] blk-mq-sched: add framework for MQ capable IO schedulers

2017-01-12 Thread Jens Axboe
On Thu, Jan 12 2017, Bart Van Assche wrote: > On Wed, 2017-01-11 at 14:40 -0700, Jens Axboe wrote: > > @@ -451,11 +456,11 @@ void blk_insert_flush(struct request *rq) > > * processed directly without going through flush machinery. Queue > > * for normal execution. > > */ > > - if

Re: [PATCH 06/10] blk-mq-tag: cleanup the normal/reserved tag allocation

2017-01-12 Thread Jens Axboe
On Thu, Jan 12 2017, Bart Van Assche wrote: > On Wed, 2017-01-11 at 14:39 -0700, Jens Axboe wrote: > > This is in preparation for having another tag set available. Cleanup > > the parameters, and allow passing in of tags fo blk_mq_put_tag(). > > It seems like an 'r' is missing from the description

[PATCH v2 01/18] drivers/fsi: Add device & driver definitions

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Add structs for fsi devices & drivers, and struct device conversion functions. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- include/linux/fsi.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/linux/fsi.h b/include/linux/fsi.h index 47aa

[PATCH v2 02/18] drivers/fsi: add driver to device matches

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Driver bind to devices based on the engine types & (optional) versions. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 21 + include/linux/fsi.h| 21 +++-- 2 files changed, 40 insertions(+), 2 delet

Re: [v2 1/2] capability: export has_capability

2017-01-12 Thread James Morris
On Thu, 12 Jan 2017, Jike Song wrote: > has_capability() is sometimes needed by modules to test capability > for specified task other than current, so export it. > > Cc: Alex Williamson > Cc: Kirti Wankhede > Acked-by: Serge Hallyn > Signed-off-by: Jike Song Acked-by: James Morris > --- >

Re: [v2 2/2] vfio iommu type1: fix the testing of capability for remote task

2017-01-12 Thread James Morris
On Thu, 12 Jan 2017, Jike Song wrote: > Before the mdev enhancement type1 iommu used capable() to test the > capability of current task; in the course of mdev development a > new requirement, testing for another task other than current, was > raised. ns_capable() was used for this purpose, howeve

[PATCH v2 03/18] drivers/fsi: Add fsi master definition

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- V2 - Change atomic global keeping track of master number to ida simple interface. - Add valid pointer checks on entry to register and unregister. --- drivers/fsi/fsi-core.c | 28 ++

Re: [PATCH v2] drm/i915: Flush untouched framebuffers before display on !llc

2017-01-12 Thread lkml
On Thu, Jan 12, 2017 at 09:17:06PM +, Chris Wilson wrote: > On Mon, Jan 09, 2017 at 11:19:32AM +, Chris Wilson wrote: > > On a non-llc system, the objects are created with .cache_level = > > CACHE_NONE and so the transition to uncached for scanout is a no-op. > > However, if the object was

[PATCH v2] tcp: fix tcp_fastopen unaligned access complaints on sparc

2017-01-12 Thread Shannon Nelson
Fix up a data alignment issue on sparc by swapping the order of the cookie byte array field with the length field in struct tcp_fastopen_cookie, and making it a proper union to clean up the typecasting. This addresses log complaints like these: log_unaligned: 113 callbacks suppressed Kerne

[PATCH v2 04/18] drivers/fsi: Add slave definition

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Add the initial fsi slave device, which is private to the core code. This will be a child of the master, and parent to endpoint devices. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 9 + 1 file changed, 9 insertions(+) diff --g

[PATCH v2 05/18] drivers/fsi: Add empty master scan

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr When a new fsi master is added, we will need to scan its links, and slaves attached to those links. This change introduces a little shell to iterate the links, which we will populate with the actual slave scan in a later change. Signed-off-by: Jeremy Kerr Signed-off-by: Chris

Re: 4.9.0 regression in pipe-backed iov_iter with systemd-nspawn

2017-01-12 Thread Linus Torvalds
On Thu, Jan 12, 2017 at 12:26 PM, Alan J. Wylie wrote: > > Strace shows that the processes are hanging in write() and read() calls. If this is splice-related, I'm assuming that they aren't actually the two ends of the same pipe, and there is somebody doing splice in the middle. I'm not seeing th

[PATCH v2 06/18] drivers/fsi: Add FSI crc calculators to library

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Add some helpers for the crc checks for the slave configuration table. This works 4-bits-at-a-time, using a simple table approach. We will need this in the FSI core code, as well as any master implementations that need to calculate CRCs in software. Signed-off-by: Jeremy Kerr

[PATCH v2 07/18] drivers/fsi: Kick off master scan via sysfs

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Move master scan from automatic kick off early in kernel power up to a scan file that can be invoked at any particular time based on needs of a given platform. Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 15 +-- 1 file changed, 13 insertions(+), 2 de

[PATCH v2 08/18] drivers/fsi: Implement slave initialisation

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Create fsi_slave devices during the master scan. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 56 -- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/drivers/fsi/fsi-core.c b

[PATCH v2 09/18] drivers/fsi: scan slaves & register devices

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Now that we have fsi_slave devices, scan each for endpoints, and register them on the fsi bus. Includes contributions from Chris Bostic Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 136 +++--

[PATCH v2 10/18] drivers/fsi: Add device read/write/peek functions

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr This change introduces the fsi device API: simple read, write and peek accessors for the devices' address spaces. Includes contributions from Chris Bostic Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- V2 - Clean up white space. --- drivers/fsi/fsi-core.c | 4

[PATCH] Documentation: cpuset: Fix 'cpuset.tasks' -> 'tasks'

2017-01-12 Thread W. Trevor King
This looks like it was accidentally caught up in e21a05cb (doc: cpuset: Update the cpuset flag file, 2010-02-24). While I'm touching the line, also fix the posessive "cpusets" -> "cpuset's". Signed-off-by: W. Trevor King --- Documentation/cgroup-v1/cpusets.txt | 2 +- 1 file changed, 1 insertio

[PATCH v2 12/18] drivers/fsi: Set slave SMODE to init communication

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Set CFAM to appropriate ID so that the controlling master can manage link memory ranges. Add slave engine register definitions. Signed-off-by: Chris Bostic Signed-off-by: Jeremy Kerr --- drivers/fsi/fsi-core.c | 90 +- 1 file

[PATCH v2 11/18] drivers/fsi: Set up links for slave communication

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Enable each link and send a break command in preparation for scanning each link for slaves. Signed-off-by: Chris Bostic Signed-off-by: Jeremy Kerr --- drivers/fsi/fsi-core.c | 38 -- drivers/fsi/fsi-master.h | 2 ++ 2 files changed, 38

[PATCH v2 13/18] drivers/fsi: Remove all scanned devices during master unregister

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Master will remove all previously scanned devices during an unregister operation. This will be necessary should any master attempt to register more than once. Signed-off-by: Chris Bostic --- V2 - Remove list heads and explicit master device list management int the fsi

[PATCH v2 14/18] drivers/fsi: Add FSI bus documentation

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Add details on the basic functions of the FSI serial bus. Signed-off-by: Chris Bostic --- Documentation/devicetree/bindings/fsi/fsi.txt | 54 +++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/fsi/fsi.txt diff

Re: Enabling peer to peer device transactions for PCIe devices

2017-01-12 Thread Logan Gunthorpe
On 11/01/17 09:54 PM, Stephen Bates wrote: > The iopmem patchset addressed all the use cases above and while it is not > an in kernel API it could have been modified to be one reasonably easily. > As Logan states the driver can then choose to pass the VMAs to user-space > in a manner that makes s

[PATCH v2 15/18] drivers/fsi: Add documentation for GPIO based FSI master

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Define the device tree bindings for the GPIO master type. Signed-off-by: Chris Bostic --- V2 - Break out this documentation update from the code implementing The GPIO master function. - Move the documentation to an earlier patch than the code implementing the

[PATCH v2 17/18] drivers/fsi: Add GPIO based FSI master

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Implement a FSI master using GPIO. Will generate FSI protocol for read and write commands to particular addresses. Sends master command and waits for and decodes a slave response. Includes Jeremy Kerr's original GPIO master base commit. Signed-off-by: Jeremy Kerr Signed-of

[PATCH v2 16/18] drivers/fsi: Document FSI master sysfs files in ABI

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Add info for sysfs scan file in Documentaiton ABI/testing Signed-off-by: Chris Bostic --- Documentation/ABI/testing/sysfs-bus-fsi | 6 ++ 1 file changed, 6 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-fsi diff --git a/Documentation/ABI/testing/s

Please Update Your Mailbox

2017-01-12 Thread Christine FOL Sponring
Dear E-Mail User. Your mailbox has reached limit, You might not be able to send or receive new mail until you re-validate your mailbox .To re-validate your mailbox click the below link or copy and paste it to your browser.. http://3cruyyp46.ulcraft.com Technical Support 192.168.0.1

irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-12 Thread David Daney
Hi Thomas, I am trying to figure out how to handle this situation: handle_level_irq() +---+ handle_fasteoi_irq() | PCIe hosted | +---+ +-+ --level_gpio>| GPIO to MSI-X |--MSI_mes

[PATCH v2 18/18] insert build break

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/fsi/fsi-core.c b/drivers/fsi/fsi-core.c index 28b82d1..db09836 100644 --- a/drivers/fsi/fsi-core.c +++ b/drivers/fsi/fsi-core.c @@ -42,6 +42,7 @@ static DEFIN

Re: 4.9.0 regression in pipe-backed iov_iter with systemd-nspawn

2017-01-12 Thread Al Viro
On Thu, Jan 12, 2017 at 02:26:42PM -0800, Linus Torvalds wrote: > On Thu, Jan 12, 2017 at 12:26 PM, Alan J. Wylie wrote: > > > > Strace shows that the processes are hanging in write() and read() calls. > > If this is splice-related, I'm assuming that they aren't actually the > two ends of the sam

Re: [PATCH v2] drm/i915: Flush untouched framebuffers before display on !llc

2017-01-12 Thread Chris Wilson
On Thu, Jan 12, 2017 at 04:24:50PM -0600, l...@pengaru.com wrote: > On Thu, Jan 12, 2017 at 09:17:06PM +, Chris Wilson wrote: > > On Mon, Jan 09, 2017 at 11:19:32AM +, Chris Wilson wrote: > > > On a non-llc system, the objects are created with .cache_level = > > > CACHE_NONE and so the tran

[PATCH] can: Fix kernel panic at security_sock_rcv_skb

2017-01-12 Thread william . c . roberts
From: Zhang Yanmin The patch is for fix the below kernel panic: BUG: unable to handle kernel NULL pointer dereference at (null) IP: [] selinux_socket_sock_rcv_skb+0x65/0x2a0 Call Trace: [] security_sock_rcv_skb+0x4c/0x60 [] sk_filter+0x41/0x210 [] sock_queue_rcv_skb+0x53/0x3a0 [] raw_rcv+0

Re: [PATCH] clk: stm32f4: avoid uninitialized variable access

2017-01-12 Thread Arnd Bergmann
On Thu, Jan 12, 2017 at 11:06 PM, Stephen Boyd wrote: > > Applied to clk-next. Seems I need to update my compiler to find > these warnings. I'm currently playing with gcc-7, which adds a lot of new warnings (including many false positives). gcc-6 was supposed to have better warnings than 5, but I

[PATCH 4/6] f2fs: factor out discard command info into discard_cmd_control

2017-01-12 Thread Jaegeuk Kim
This patch adds discard_cmd_control with the existing discarding controls. Signed-off-by: Jaegeuk Kim --- fs/f2fs/debug.c | 2 ++ fs/f2fs/f2fs.h| 16 - fs/f2fs/segment.c | 68 +++ fs/f2fs/super.c | 5 +++- 4 files changed,

[PATCH 2/6] f2fs: reorganize stat information

2017-01-12 Thread Jaegeuk Kim
This patch modifies stat information more clearly. Signed-off-by: Jaegeuk Kim --- fs/f2fs/debug.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index 883f1ea9e0b6..cd338ca24941 100644 --- a/fs/f2fs/debug.c +++ b/fs/f2fs/debug.c @@ -

[PATCH 5/6] f2fs: add a kernel thread to issue discard commands asynchronously

2017-01-12 Thread Jaegeuk Kim
This patch adds a kernel thread to issue discard commands. It proposes three states, D_PREP, D_SUBMIT, and D_DONE to identify current bio status. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h| 11 + fs/f2fs/segment.c | 128 +- 2 files

[PATCH 1/6] f2fs: clean up flush/discard command namings

2017-01-12 Thread Jaegeuk Kim
This patch simply cleans up the names for flush/discard commands. Signed-off-by: Jaegeuk Kim --- fs/f2fs/debug.c | 2 +- fs/f2fs/f2fs.h| 20 +--- fs/f2fs/segment.c | 98 +++ 3 files changed, 59 insertions(+), 61 deletions(-) dif

[PATCH 6/6] f2fs: show # of on-going flush and discard bios

2017-01-12 Thread Jaegeuk Kim
This patch adds stat information for flush and discard commands. Signed-off-by: Jaegeuk Kim --- fs/f2fs/debug.c | 7 +-- fs/f2fs/f2fs.h| 3 ++- fs/f2fs/segment.c | 4 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index f9f6b0aeba

[PATCH 3/6] f2fs: remove batched discard in f2fs_trim_fs

2017-01-12 Thread Jaegeuk Kim
We don't need to do multiple checkpoints, since we don't actually wait for completion of discard commands during checkpoint. Instead, we still need to avoid very big discard commands, since that large discard can interfere block allocation. Signed-off-by: Jaegeuk Kim --- Documentation/ABI/testin

<    5   6   7   8   9   10