RE: v4.9-rc3: radeon oops on shutdown

2016-11-07 Thread Deucher, Alexander
> -Original Message- > From: Pavel Machek [mailto:pa...@ucw.cz] > Sent: Monday, November 07, 2016 1:40 PM > To: Deucher, Alexander; Koenig, Christian; dri-de...@lists.freedesktop.org; > kernel list > Subject: v4.9-rc3: radeon oops on shutdown > > Hi! > > On old thinkpad T40p... with v4.9-

Re: [PATCH 7/8] tools lib bpf: fix maps resolution

2016-11-07 Thread Eric Leblond
Hi, On Tue, 2016-11-08 at 02:23 +0800, Wangnan (F) wrote: > Hi Eric, > > Are you still working in this patch set? Sorry to lag on this, I've been taken by a series of other projects. I did not yet reworked it yet but I was planning to do a bit on it this week. > > Now I know why maps section i

Re: task isolation discussion at Linux Plumbers

2016-11-07 Thread Thomas Gleixner
On Mon, 7 Nov 2016, Thomas Gleixner wrote: > > == Missing oneshot_stopped callbacks == > > > > I raised the issue that various clock_event_device sources don't > > always support oneshot_stopped, which can cause an additional > > final interrupt to occur after the timer infrastructure believes the

[PATCH] Move platform device creation earlier in the initialization

2016-11-07 Thread minyard
From: Corey Minyard Some logs are printed out early using smi->dev, but on a platform device that is not created until later. So move the creation of that device structure earlier in the sequence so it can be used for printing. Signed-off-by: Corey Minyard --- Corentin, can you try the attach

[PATCH v3 2/3] ARM64: dts: sun6i: add dma node for a64.

2016-11-07 Thread Hao Zhang
This adds the dma node for sun50i a64. Signed-off-by: Hao Zhang --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index e3c3d7d8..855ae2c 10

[PATCH v3 1/3] Documentation: DT: add dma compatible for sun50i A64 SOC.

2016-11-07 Thread Hao Zhang
This adds documentation of the sun50i a64 dma binding compatible. Signed-off-by: Hao Zhang --- Documentation/devicetree/bindings/dma/sun6i-dma.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/sun6i-dma.txt b/Documentation/devicetree/bindings/dma/sun6

Re: [PATCH v2] USB hub_probe: remove ugly goto-into-compound-statement

2016-11-07 Thread Eugene Korenevsky
On Mon, Nov 07, 2016 at 10:09:17AM +0100, Greg Kroah-Hartman wrote: > > Rework smelling code (goto inside compound statement). Perhaps this is > > legacy. > > Anyway such code is not appropriate for Linux kernel. > > > > Signed-off-by: Eugene Korenevsky > > --- > > drivers/usb/core/hub.c | 24

Re: [PATCH v8 7/7] KVM: x86: virtualize cpuid faulting

2016-11-07 Thread Eduardo Habkost
On Fri, Nov 04, 2016 at 10:57:27PM +0100, Paolo Bonzini wrote: > > > On 04/11/2016 21:34, David Matlack wrote: > > On Mon, Oct 31, 2016 at 6:37 PM, Kyle Huey wrote: > >> + case MSR_PLATFORM_INFO: > >> + /* cpuid faulting is supported */ > >> + msr_info->data = P

Re: [PATCH] sched/rt: RT_RUNTIME_GREED sched feature

2016-11-07 Thread Daniel Bristot de Oliveira
On 11/07/2016 07:30 PM, Steven Rostedt wrote: >> I'm still reviewing the patch, but I have to wonder why bother with making >> it a scheduler feature? >> > >> > The SCHED_FIFO definition allows a fifo thread to starve others >> > because a fifo task will run until it yields. Throttling was adde

[PATCH v3 3/3] ARM: dmaengine: sun6i: share the dma driver with sun50i

2016-11-07 Thread Hao Zhang
According to the datasheet, the dma of A64 support 8/16/32/64 bits so, we can add the condition of device compatible in convert_buswidth function and other place to determine the device whether is for A64, and then accept the 8 bytes bus width to it. Signed-off-by: Hao Zhang --- drivers/dma/sun6

Re: [PATCH 22/25] x86/mcheck: Do the init in one place

2016-11-07 Thread Borislav Petkov
On Thu, Nov 03, 2016 at 03:50:18PM +0100, Sebastian Andrzej Siewior wrote: > Part of the init (memory allocation and so on) is done > in mcheck_cpu_init(). While moving the the allocation to > mcheck_init_device() (where the hotplug calls are initialized) it > becomes necessary to move the callback

v4.9-rc3: radeon oops on shutdown

2016-11-07 Thread Pavel Machek
Hi! On old thinkpad T40p... with v4.9-rc3+ I'm getting radeon oops on shutdown. Seems repeatable. Unable to handle kernel NULL pointer dereference at 78c. IP: .. radeon_connector_unregister ... trace: ? drm_connector_unregister.part.5 drm_connector_unregister_all Best regards,

[PATCH 2/7] genirq/affinity: Handle pre/post vectors in irq_calc_affinity_vectors()

2016-11-07 Thread Christoph Hellwig
From: Christogh Hellwig Only calculate the affinity for the main I/O vectors, and skip the pre or post vectors specified by struct irq_affinity. Also remove the irq_affinity cpumask argument that has never been used. If we ever need it in the future we can pass it through struct irq_affinity. S

[PATCH 3/7] genirq/affinity: Handle pre/post vectors in irq_create_affinity_masks()

2016-11-07 Thread Christoph Hellwig
From: Christogh Hellwig Only calculate the affinity for the main I/O vectors, and skip the pre or post vectors specified by struct irq_affinity. Also remove the irq_affinity cpumask argument that has never been used. If we ever need it in the future we can pass it through struct irq_affinity. S

[PATCH 4/7] pci/msi: Propagate irq affinity description through the MSI code

2016-11-07 Thread Christoph Hellwig
From: Christogh Hellwig No API change yet, just pass it down all the way from pci_alloc_irq_vectors to the core MSI code. Signed-off-by: Christogh Hellwig --- drivers/pci/msi.c | 62 +-- 1 file changed, 33 insertions(+), 29 deletions(-) diff

Re: [PATCH] sched/rt: RT_RUNTIME_GREED sched feature

2016-11-07 Thread Clark Williams
On Mon, 7 Nov 2016 13:30:46 -0500 Steven Rostedt wrote: > On Mon, 7 Nov 2016 12:22:21 -0600 > Clark Williams wrote: > > > I'm still reviewing the patch, but I have to wonder why bother with making > > it a scheduler feature? > > > > The SCHED_FIFO definition allows a fifo thread to starve oth

Re: [Intel-wired-lan] [PATCH] igb: drop field "tail" of struct igb_ring

2016-11-07 Thread Alexander Duyck
On Mon, Nov 7, 2016 at 4:44 AM, Cao jin wrote: > Under certain condition, I find guest will oops on writel() in > igb_configure_tx_ring(), because hw->hw_address is NULL. While other > register access won't oops kernel because they use wr32/rd32 which have > a defense against NULL pointer. The oop

Re: [PATCH] sched/rt: RT_RUNTIME_GREED sched feature

2016-11-07 Thread Daniel Bristot de Oliveira
On 11/07/2016 07:32 PM, Steven Rostedt wrote: >> Excellent this would improve the situation with deadlocks as a result of >> > cgroup_locks not being released due to lack of workqueue processing. > ?? What deadlocks do you see? I mean, can you show the situation that > throttling RT tasks will ca

[PATCH 7/7] blk-mq: add a first_vec argument to blk_mq_pci_map_queues

2016-11-07 Thread Christoph Hellwig
This allows skipping the first N IRQ vectors in case they are used for control or admin interrupts. Signed-off-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- block/blk-mq-pci.c | 6 -- drivers/nvme/host/pci.c| 2 +- include/linux/blk-mq-pci.h | 3 ++- 3 files changed, 7

Re: [PATCH v8 3/3] fpga: Add support for Lattice iCE40 FPGAs

2016-11-07 Thread Joel Holdsworth
Hi Marek, Thanks again for your comments. On 07/11/16 11:01, Marek Vasut wrote: On 11/07/2016 03:49 AM, Joel Holdsworth wrote: The Lattice iCE40 is a family of FPGAs with a minimalistic architecture and very regular structure, designed for low-cost, high-volume consumer and system application

[PATCH 1/7] genirq/affinity: Introduce struct irq_affinity

2016-11-07 Thread Christoph Hellwig
From: Christogh Hellwig Some drivers (various network and RDMA adapter for example) have a MSI-X vector layout where most of the vectors are used for I/O queues and should have CPU affinity assigned to them, but some (usually 1 but sometimes more) at the beginning or end are used for low-performa

[PATCH 5/7] pci/msi: Provide pci_alloc_irq_vectors_affinity()

2016-11-07 Thread Christoph Hellwig
From: Christogh Hellwig This is a variant of pci_alloc_irq_vectors() that allows passing a struct irq_affinity to provide fine-grainded IRQ affinity control. For now this means being able to exclude vectors at the beginning or end of the MSI vector space, but it could also be used for any other q

support for partial irq affinity assignment

2016-11-07 Thread Christoph Hellwig
This series adds support for automatic interrupt assignment to devices that have a few vectors that are set aside for admin or config purposes and thus should not fall into the general per-cpu assginment pool. The first patch adds that support to the core IRQ and PCI/msi code, and the second is a

[PATCH 6/7] pci: Remove the irq_affinity mask from struct pci_dev

2016-11-07 Thread Christoph Hellwig
This has never been used, and now is totally unreferenced. Nuke it. Signed-off-by: Christoph Hellwig --- include/linux/pci.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index 7090f5f..f2ba6ac 100644 --- a/include/linux/pci.h +++ b/include/linux/p

[PATCH] ARC: tweak semantics of userspace cmpxchg assist

2016-11-07 Thread Vineet Gupta
The original code only used to return errno to indicate if cmpxchg succeeded. It was not returning the "previous" value which typical cmpxhg callers are interested in to build their slowpaths or retry loops. Given user preemption in syscall return path etc, it is not wise to check this in userspace

Re: [PATCH v2] memcg: Prevent memcg caches to be both OFF_SLAB & OBJFREELIST_SLAB

2016-11-07 Thread Thomas Garnier
On Thu, Nov 3, 2016 at 1:33 PM, Christoph Lameter wrote: > On Wed, 2 Nov 2016, David Rientjes wrote: > >> > Christoph on the first version advised removing invalid flags on the >> > caller and checking they are correct in kmem_cache_create. The memcg >> > path putting the wrong flags is through cr

Re: [PATCH RESEND] phy: exynos-mipi-video: simplify check for coupled phy status

2016-11-07 Thread Javier Martinez Canillas
Hello Marek, On 11/07/2016 07:48 AM, Marek Szyprowski wrote: > There is no need to access regmap of coupled phy to check its state - such > information is already in the phy device itself, so use it directly. This > let us to avoid possible access to registers of the device in the disabled > power

[PATCH v3 1/2] USB hub_probe: rework ugly goto-into-compound-statement

2016-11-07 Thread Eugene Korenevsky
Rework smelling code (goto inside compound statement). Perhaps this is legacy. Anyway such code is not appropriate for Linux kernel. Signed-off-by: Eugene Korenevsky --- drivers/usb/core/hub.c | 33 - 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a

Re: [PATCH] ARC: [plat-eznps] remove IPI clear from SMP operations

2016-11-07 Thread Vineet Gupta
On 11/06/2016 11:34 PM, Noam Camus wrote: > From: Noam Camus > > Generic IRQ mechanism is already acknowledge the IPI IRQ. > Doing this once more time in IPI handler is not needed. Changelog can be improved ! Generic IRQ mechanism can't ack the irq. The NPQ irqchip driver does this for all irqs

Re: [PATCH 22/25] x86/mcheck: Do the init in one place

2016-11-07 Thread Luck, Tony
On Mon, Nov 07, 2016 at 07:45:32PM +0100, Borislav Petkov wrote: > On Thu, Nov 03, 2016 at 03:50:18PM +0100, Sebastian Andrzej Siewior wrote: > > Part of the init (memory allocation and so on) is done > > in mcheck_cpu_init(). While moving the the allocation to > > mcheck_init_device() (where the h

Re: [PATCH] arm/vdso: introduce vdso_mremap hook

2016-11-07 Thread Dmitry Safonov
On 11/07/2016 08:00 PM, Christopher Covington wrote: Hi Dmitry, On 11/01/2016 01:22 PM, Dmitry Safonov wrote: Add vdso_mremap hook which will fix context.vdso pointer after mremap() on vDSO vma. This is needed for correct landing after syscall execution. Primary goal of this is for CRIU on ar

[PATCH v3 2/2] USB hub_probe: put initialization before usage

2016-11-07 Thread Eugene Korenevsky
Minor optimization: move initialization immediately before usage. This gives a chance for more accurate register allocation by the compiler. Signed-off-by: Eugene Korenevsky --- drivers/usb/core/hub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/core/hub.c b/dr

Re: [PATCH] arm/vdso: introduce vdso_mremap hook

2016-11-07 Thread Dmitry Safonov
On 11/07/2016 09:27 PM, Russell King - ARM Linux wrote: On Tue, Nov 01, 2016 at 08:22:14PM +0300, Dmitry Safonov wrote: diff --git a/arch/arm/kernel/vdso.c b/arch/arm/kernel/vdso.c index 53cf86cf2d1a..d1001f87c2f6 100644 --- a/arch/arm/kernel/vdso.c +++ b/arch/arm/kernel/vdso.c @@ -54,8 +54,11 @

[PATCH] MIPS: R2-on-R6 emulation bugfix of BLEZL and BGTZL instructions

2016-11-07 Thread Leonid Yegoshin
MIPS R2 emulation doesn't take into account that BLEZL and BGTZL instructions require register RT = 0. If it is not zero it can be some legitimate MIPS R6 instruction. Problem happens after emulation optimization then emulation routine tries to pipeline emulation and after emulation of one instruc

Re: [PATCH 01/11] staging: wlan-ng: fix line style issue in macro WLAN_GET_FC_FSTYPE

2016-11-07 Thread Joe Perches
On Mon, 2016-11-07 at 18:55 +0100, Sergio Paracuellos wrote: > This patch fix the following checkpatch.pl script warning: > WARNING: line over 80 characters > > It also add spaces between or operators inside the macro to > comply with the standard kernel coding style. [] > diff --git a/drivers/sta

[PATCH v7 10/11] scsi: ufs: retrieve rpmb rw size

2016-11-07 Thread Tomas Winkler
Retrieve maximum number of RPMB frames that can be in a single request. Currently the limitations is provided only for writes via reliable_wr_cnt API. V7: New in the series Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin --- drivers/scsi/ufs/ufs.h| 6 ++ drivers/scsi/ufs

[PATCH v7 08/11] mmc: block: register RPMB partition with the RPMB subsystem

2016-11-07 Thread Tomas Winkler
Register eMMC RPMB partition with the RPMB subsystem and provide implementation for the RPMB access operations abstracting actual multi step process. V2: resend V3: commit message fix V4: Kconfig: use select RPMB to ensure valid configuration Switch back to main area after RPMB access V5: Reva

[PATCH v7 09/11] scsi: ufs: connect to RPMB subsystem

2016-11-07 Thread Tomas Winkler
Register UFS RPMB LUN with the RPMB subsystem and provide implementation for the RPMB access operations. RPMB partition is accessed via a sequence of security protocol in and security protocol out commands with UFS specific parameters. This multi step process is abstracted into 4 basic RPMB command

[PATCH v7 07/11] tools rpmb: add RPBM access tool

2016-11-07 Thread Tomas Winkler
Add simple RPMB host testing tool. It can be used to program key, write and read data block, and retrieve write counter. V2: resend V3: fix missing objtool V4: add verbose option V5: 1. Adjust to the new API. 2. Exercise both request and sequence ioctls. V6: 1. Add includes to openssl/rand.h a

[PATCH v7 11/11] char: rpmb: Document Replay Protected Memory Block (RPMB) subsystem

2016-11-07 Thread Tomas Winkler
Add rpmb documentatin in sphinx format. V7: new in the series Signed-off-by: Tomas Winkler --- Documentation/index.rst | 1 + Documentation/rpmb/conf.py | 5 ++ Documentation/rpmb/index.rst | 18 ++ Documentation/rpmb/introduction.rst | 1

[PATCH v7 06/11] char: rpmb: add RPMB simulation device

2016-11-07 Thread Tomas Winkler
The RPMB partition simulation device is a virtual device that provides simulation of the RPMB protocol and use kernel memory as storage. Be aware it doesn't promise any real security. This driver is suitable only for testing of the RPMB subsystem or RPMB applications prior to RPMB key provisioning

Re: [PATCH v7 09/11] scsi: ufs: connect to RPMB subsystem

2016-11-07 Thread Christoph Hellwig
On Mon, Nov 07, 2016 at 09:53:12PM +0200, Tomas Winkler wrote: > Register UFS RPMB LUN with the RPMB subsystem and provide > implementation for the RPMB access operations. RPMB partition is > accessed via a sequence of security protocol in and security protocol > out commands with UFS specific para

[PATCH v7 04/11] char: rpmb: add device attributes

2016-11-07 Thread Tomas Winkler
Add attribute type that displays underlay storage type technology EMMC, UFS, and attribute id, that displays underlay storage device id. For EMMC this would be content of CID and for UFS serial number from the device descriptor. V2: resend V3: set kernel version to 4.7 V4: update target date to Ma

[PATCH v7 05/11] char: rpmb: provide a user space interface

2016-11-07 Thread Tomas Winkler
The user space API is achieved via two synchronous IOCTLs. Simplified one, RPMB_IOC_REQ_CMD, were read result cycles is performed by the framework on behalf the user and second, RPMB_IOC_SEQ_CMD where the whole RPMB sequence including RESULT_READ is supplied by the caller. The latter is intended fo

[PATCH v7 01/11] rpmb: add Replay Protected Memory Block (RPMB) subsystem

2016-11-07 Thread Tomas Winkler
Few storage technologies such is EMMC, UFS, and NVMe support RPMB hardware partition with common protocol and frame layout. The RPMB partition cannot be accessed via standard block layer, but by a set of specific commands: WRITE, READ, GET_WRITE_COUNTER, and PROGRAM_KEY. Such a partition provides a

[PATCH v7 03/11] rpmb: add sysfs-class ABI documentation

2016-11-07 Thread Tomas Winkler
V2: resend V3: add more verbose description V4: resend V5: adjust date and kernel version V6: adjust date and kernel version V7: adjust date and kernel version Signed-off-by: Tomas Winkler --- Documentation/ABI/testing/sysfs-class-rpmb | 20 MAINTAINERS

Re: [PATCH v8 2/3] Documentation: Add binding document for Lattice iCE40 FPGA manager

2016-11-07 Thread Joel Holdsworth
+ cdone-gpios = <&gpio 24 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio 22 GPIO_ACTIVE_LOW>; Wouldn't it make more sense to have "gpios" and "gpio-names" ? That scales better imo, although in this case we cannot really talk about scaling. I don't believe that would b

[PATCH v7 00/11] char:rpmb: Replay Protected Memory Block (RPMB) subsystem

2016-11-07 Thread Tomas Winkler
Few storage technologies such is EMMC, UFS, and NVMe support RPMB hardware partition with common protocol and frame layout. The RPMB partition cannot be accessed via standard block layer, but by a set of specific commands: WRITE, READ, GET_WRITE_COUNTER, and PROGRAM_KEY. Such a partition provides a

Re: [PATCH v8 3/3] fpga: Add support for Lattice iCE40 FPGAs

2016-11-07 Thread Joel Holdsworth
Hi Moritz - thanks for your comments. An example of such a device is the icoBoard; a RaspberryPI HAT which features an iCE40HX8K with a 1 or 8 MBit SRAM and ports for Digilent-compatible PMOD modules. A PMOD module may contain a device with which the kernel communicates, via the FPGA. Persona

[PATCH v7 02/11] rpmb: enable emmc specific read data fixup

2016-11-07 Thread Tomas Winkler
For eMMC the block count of the RPMB read operation is not indicated in the original RPMB Data Read Request packet. This might be different then the implementation of other protocol standards. This patch implements a fixup for this behavior. V6: new in the series V7: resend Signed-off-by: Tomas W

Re: [PATCH] rcu: update: make RCU_EXPEDITE_BOOT default

2016-11-07 Thread Paul E. McKenney
On Mon, Nov 07, 2016 at 10:08:32AM -0800, Josh Triplett wrote: > On Mon, Nov 07, 2016 at 10:05:13AM -0800, Paul E. McKenney wrote: > > On Mon, Nov 07, 2016 at 09:35:46AM -0800, Josh Triplett wrote: > > > On Mon, Nov 07, 2016 at 06:30:30PM +0100, Sebastian Andrzej Siewior wrote: > > > > On 2016-11-0

Re: [PATCH] poly1305: generic C can be faster on chips with slow unaligned access

2016-11-07 Thread Jason A. Donenfeld
On Mon, Nov 7, 2016 at 7:26 PM, Eric Biggers wrote: > > I was not referring to any users in particular, only what users could do. As > an > example, if you did crypto_shash_update() with 32, 15, then 17 bytes, and the > underlying algorithm is poly1305-generic, the last block would end up > misa

Re: [PATCH v3] PM / devfreq: Restart previous governor if new governor fails to start

2016-11-07 Thread Saravana Kannan
On 10/26/2016 05:06 PM, Chanwoo Choi wrote: Hi, On 2016년 10월 27일 04:17, Saravana Kannan wrote: If the new governor fails to start, switch back to old governor so that the devfreq state is not left in some weird limbo. Signed-off-by: Saravana Kannan --- * Fix NULL deref for real this time. * A

Re: [PATCH 7/8] ARM64: dts: meson-gxl-p23x: Add SD/SDIO/MMC and PWM nodes

2016-11-07 Thread Kevin Hilman
Neil Armstrong writes: > Add SD/SDIO/MMC nodes and PWM 32768Hz clock configuration to provide > storage and WiFi functionality on the p23x boards. Just curious... what storage functionality are you referring to here? Kevin > Signed-off-by: Neil Armstrong > --- > .../boot/dts/amlogic/meson-gx

[PATCH] usb: renesas_usbhs: simplify list handling

2016-11-07 Thread Nicholas Mc Guire
The current code is effectively equivalent to list_first_entry_or_null() so simply switch and simplify the code. Fixes: 6acb95d4e070 ("usb: renesas_usbhs: modify packet queue control method") Signed-off-by: Nicholas Mc Guire --- Found by simple coccinelle scanner Compile tested with: multi_v7_de

[PATCH] usb: dwc2: gadget: simplify list handling

2016-11-07 Thread Nicholas Mc Guire
The current code is effectively equivalent to list_first_entry_or_null() so simply switch and simplify the code. Fixes: 9c39ddc60ee9 ("USB: s3c-hsotg: Fix stall condition processing") Signed-off-by: Nicholas Mc Guire --- Found by simple coccinelle scanner Compile tested with: x86_64_defconfig +

[PATCH] staging: lustre: o2iblnd: use bool assignment to true/false

2016-11-07 Thread Nicholas Hanley
Replace 0 with false in tx_pages_mapped = 0 to be consistent with the rest of the lustre code. Signed-off-by: Nicholas Hanley --- drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lnet/klnds/o2iblnd/o2ib

Re: [RFC] proc: don't show kernel-internal mnt_id in fdinfo (if possible)

2016-11-07 Thread Dmitry Safonov
On 11/07/2016 08:06 PM, Eric W. Biederman wrote: Dmitry Safonov writes: Some kernel special fs could be mounted by userspace, let's show userspace mnt_id in those cases. You are asking the kernel to lie to userspace in the case when the truth in inconvenient. That seems blantantly wrong. I

[PATCH 6/6] mm: workingset: restore refault tracking for single-page files

2016-11-07 Thread Johannes Weiner
Shadow entries in the page cache used to be accounted behind the radix tree implementation's back in the upper bits of node->count, and the radix tree code extending a single-entry tree with a shadow entry in root->rnode would corrupt that counter. As a result, we could not put shadow entries at in

[PATCH 0/6] mm: workingset: radix tree subtleties & single-page file refaults

2016-11-07 Thread Johannes Weiner
This is another revision of the radix tree / workingset patches based on feedback from Linus and Jan. Thanks for your input. This is a follow-up to d3798ae8c6f3 ("mm: filemap: don't plant shadow entries without radix tree node"). That patch fixed an issue that was caused mainly by the page cache s

[PATCH 2/6] mm: workingset: turn shadow node shrinker bugs into warnings

2016-11-07 Thread Johannes Weiner
When the shadow page shrinker tries to reclaim a radix tree node but finds it in an unexpected state - it should contain no pages, and non-zero shadow entries - there is no need to kill the executing task or even the entire system. Warn about the invalid state, then leave that tree node be. Simply

[PATCH 1/6] mm: khugepaged: fix radix tree node leak in shmem collapse error path

2016-11-07 Thread Johannes Weiner
The radix tree counts valid entries in each tree node. Entries stored in the tree cannot be removed by simpling storing NULL in the slot or the internal counters will be off and the node never gets freed again. When collapsing a shmem page fails, restore the holes that were filled with radix_tree_

[PATCH 5/6] mm: workingset: switch shadow entry tracking to radix tree exceptional counting

2016-11-07 Thread Johannes Weiner
Currently, we track the shadow entries in the page cache in the upper bits of the radix_tree_node->count, behind the back of the radix tree implementation. Because the radix tree code has no awareness of them, we rely on random subtleties throughout the implementation (such as the node->count != 1

[PATCH 4/6] lib: radix-tree: check accounting of existing slot replacement users

2016-11-07 Thread Johannes Weiner
The bug in khugepaged (fixed in the first patch of this series) shows that radix tree slot replacement is fragile; and it will become more so when not only NULL<->!NULL transitions need to be accounted but transitions from and to exceptional entries as well. We need checks. Re-implement radix_tree

[PATCH 3/6] lib: radix-tree: native accounting of exceptional entries

2016-11-07 Thread Johannes Weiner
The way the page cache is sneaking shadow entries of evicted pages into the radix tree past the node entry accounting and tracking them manually in the upper bits of node->count is fraught with problems. These shadow entries are marked in the tree as exceptional entries, which are a native concept

Re: 'kbuild' merge before 4.9-rc1 breaks build and boot

2016-11-07 Thread Vince Weaver
On Thu, 27 Oct 2016, Peter Wu wrote: > I can confirm Olivers issue, the current mainline kernel fails to boot > on kernels with CONFIG_MODVERSIONS=y. Bisection points to: > > commit 784d5699eddc55878627da20d3fe0c8542e2f1a2 > Author: Al Viro > Date: Mon Jan 11 11:04:34 2016 -0500 >

Re: [PATCHv7 07/11] i2c: match dt-style device names from sysfs interface

2016-11-07 Thread Javier Martinez Canillas
Hello Kieran, On 11/07/2016 09:47 AM, Kieran Bingham wrote: > A user can choose to instantiate a device on an i2c bus using the sysfs > interface by providing a string and address to match and communicate > with the device on the bus. Presently this string is only matched > against the old i2c dev

Re: Makefile race in 4.9-rc3 (generated/autoksyms.h: No such file or directory)

2016-11-07 Thread Randy Dunlap
[adding linux-kbuild and Michal] [trying again] On 10/31/16 13:46, Ken Moffat wrote: > I just tried to build 4.9 (rc3) for the first time (x86_64, i7 haswell) > After making my choices in make oldconfig, make -j8 failed in > less than 2 sec. > >CC scripts/mod/empty.o > HOSTCC scripts

Re: [PATCHv7 09/11] mfd: 88pm860x: Move over to new I2C device .probe() call

2016-11-07 Thread Javier Martinez Canillas
Hello Kieran, On 11/07/2016 09:47 AM, Kieran Bingham wrote: > From: Lee Jones > > As part of an effort to rid the mostly unused second parameter for I2C > related .probe() functions and to conform to other existing frameworks > we're moving over to a temporary replacement .probe() call-back. >

[PATCH v2] poly1305: generic C can be faster on chips with slow unaligned access

2016-11-07 Thread Jason A. Donenfeld
By using the unaligned access helpers, we drastically improve performance on small MIPS routers that have to go through the exception fix-up handler for these unaligned accesses. Signed-off-by: Jason A. Donenfeld --- crypto/poly1305_generic.c | 12 ++-- 1 file changed, 6 insertions(+), 6

BUSINESS REQUEST……….

2016-11-07 Thread Dalami Musa
Greetings, I am a banker with Bank of Africa (BOA) Ouagadougou Burkina Faso. I am in a better position to transfer about $22.3 million US Dollars into a foreign account. If you are willing and capable to work with me to receive this fund into a personal or company's account, I will give you th

Re: [PATCH] usb: dwc2: gadget: simplify list handling

2016-11-07 Thread John Youn
On 11/7/2016 11:06 AM, Nicholas Mc Guire wrote: > The current code is effectively equivalent to list_first_entry_or_null() > so simply switch and simplify the code. > > Fixes: 9c39ddc60ee9 ("USB: s3c-hsotg: Fix stall condition processing") > Signed-off-by: Nicholas Mc Guire > --- > Found by simpl

Re: [PATCH 2/2] swiotlb: Add swiotlb=nobounce debug option

2016-11-07 Thread Geert Uytterhoeven
Hi Konrad, On Mon, Oct 31, 2016 at 6:52 PM, Konrad Rzeszutek Wilk wrote: > On Mon, Oct 31, 2016 at 04:45:04PM +0100, Geert Uytterhoeven wrote: >> On architectures like arm64, swiotlb is tied intimately to the core >> architecture DMA support. In addition, ZONE_DMA cannot be disabled. >> >> To aid

Re: [PATCH] sched/rt: RT_RUNTIME_GREED sched feature

2016-11-07 Thread Steven Rostedt
On Mon, 7 Nov 2016 19:49:03 +0100 Daniel Bristot de Oliveira wrote: > On 11/07/2016 07:32 PM, Steven Rostedt wrote: > >> Excellent this would improve the situation with deadlocks as a result of > >> > cgroup_locks not being released due to lack of workqueue processing. > > ?? What deadlocks d

Re: task isolation discussion at Linux Plumbers

2016-11-07 Thread Rik van Riel
On Mon, 2016-11-07 at 19:16 +, Will Deacon wrote: > On Mon, Nov 07, 2016 at 02:12:13PM -0500, Rik van Riel wrote: > > > > On Mon, 2016-11-07 at 19:36 +0100, Thomas Gleixner wrote: > > > > > > On Mon, 7 Nov 2016, Thomas Gleixner wrote: > > > > > > > > > > > > > > > > > > > > > > > == Missi

Re: task isolation discussion at Linux Plumbers

2016-11-07 Thread Will Deacon
On Mon, Nov 07, 2016 at 02:12:13PM -0500, Rik van Riel wrote: > On Mon, 2016-11-07 at 19:36 +0100, Thomas Gleixner wrote: > > On Mon, 7 Nov 2016, Thomas Gleixner wrote: > > > > > > > > > > > == Missing oneshot_stopped callbacks == > > > > > > > > I raised the issue that various clock_event_devic

Re: [PATCH 2/2] swiotlb: Add swiotlb=nobounce debug option

2016-11-07 Thread Konrad Rzeszutek Wilk
On Mon, Nov 07, 2016 at 07:57:11PM +0100, Geert Uytterhoeven wrote: > Hi Konrad, > > On Mon, Oct 31, 2016 at 6:52 PM, Konrad Rzeszutek Wilk > wrote: > > On Mon, Oct 31, 2016 at 04:45:04PM +0100, Geert Uytterhoeven wrote: > >> On architectures like arm64, swiotlb is tied intimately to the core > >

Re: [PATCHv7 10/11] mfd: as3722: Rid driver of superfluous I2C device ID structure

2016-11-07 Thread Javier Martinez Canillas
Hello Kieran, On 11/07/2016 09:47 AM, Kieran Bingham wrote: > From: Lee Jones > > Also remove unused second probe() parameter 'i2c_device_id'. > > Acked-by: Grant Likely > Signed-off-by: Lee Jones > Signed-off-by: Kieran Bingham > > --- > Changes since v4 > - Rename .probe2 to probe_new >

Re: [PATCH] Fix: disable sys_membarrier when nohz_full is enabled

2016-11-07 Thread Paul E. McKenney
On Mon, Nov 07, 2016 at 05:08:59PM +, Mathieu Desnoyers wrote: > - On Nov 3, 2016, at 1:49 PM, Paul E. McKenney paul...@linux.vnet.ibm.com > wrote: > > > On Thu, Nov 03, 2016 at 10:29:28AM -0600, Mathieu Desnoyers wrote: > >> Userspace applications should be allowed to expect the membarri

Re: task isolation discussion at Linux Plumbers

2016-11-07 Thread Rik van Riel
On Mon, 2016-11-07 at 19:36 +0100, Thomas Gleixner wrote: > On Mon, 7 Nov 2016, Thomas Gleixner wrote: > > > > > > > > == Missing oneshot_stopped callbacks == > > > > > > I raised the issue that various clock_event_device sources don't > > > always support oneshot_stopped, which can cause an add

Re: [PATCHv7 08/11] i2c: match vendorless strings on the internal string length

2016-11-07 Thread Javier Martinez Canillas
Hello Kieran, On 11/07/2016 09:47 AM, Kieran Bingham wrote: > If a user provides a shortened string to match a device to the sysfs i2c > interface it will match on the first string that contains that string > prefix. > > for example: > echo a 0x68 > /sys/bus/i2c/devices/i2c-2/new_device > will

net/tcp: warning in tcp_recvmsg

2016-11-07 Thread Andrey Konovalov
Hi, I've got the following error report while running the syzkaller fuzzer: [ cut here ] WARNING: CPU: 1 PID: 9957 at net/ipv4/tcp.c:1766 tcp_recvmsg+0x19d7/0x26e0 net/ipv4/tcp.c:1765 Modules linked in: CPU: 1 PID: 9957 Comm: syz-executor Not tainted 4.9.0-rc4+ #352 Hardwa

Re: [PATCH] poly1305: generic C can be faster on chips with slow unaligned access

2016-11-07 Thread Eric Biggers
On Mon, Nov 07, 2016 at 08:02:35PM +0100, Jason A. Donenfeld wrote: > On Mon, Nov 7, 2016 at 7:26 PM, Eric Biggers wrote: > > > > I was not referring to any users in particular, only what users could do. > > As an > > example, if you did crypto_shash_update() with 32, 15, then 17 bytes, and > >

RE: [PATCH v7 09/11] scsi: ufs: connect to RPMB subsystem

2016-11-07 Thread Winkler, Tomas
> > On Mon, Nov 07, 2016 at 09:53:12PM +0200, Tomas Winkler wrote: > > Register UFS RPMB LUN with the RPMB subsystem and provide > > implementation for the RPMB access operations. RPMB partition is > > accessed via a sequence of security protocol in and security protocol > > out commands with UFS

Re: [PATCH v2] memcg: Prevent memcg caches to be both OFF_SLAB & OBJFREELIST_SLAB

2016-11-07 Thread Christoph Lameter
On Mon, 7 Nov 2016, Thomas Garnier wrote: > I am not sure that is possible. kmem_cache_create currently check for > possible alias, I assume that it goes against what memcg tries to do. What does aliasing have to do with this? The aliases must have the same flags otherwise the caches would not ha

Re: [PATCH] sched/rt: RT_RUNTIME_GREED sched feature

2016-11-07 Thread Christoph Lameter
On Mon, 7 Nov 2016, Steven Rostedt wrote: > On Mon, 7 Nov 2016 10:55:38 -0600 (CST) > Christoph Lameter wrote: > > > On Mon, 7 Nov 2016, Daniel Bristot de Oliveira wrote: > > > > > With these two options set, the user will guarantee some runtime > > > for non-rt-tasks on all CPUs, while keeping r

Re: BUG? genirq: irq 14 uses trigger mode 8; requested 0

2016-11-07 Thread Thomas Gleixner
On Mon, 7 Nov 2016, Thomas Gleixner wrote: > No. We don't want a dummy set_type to paper over the issue. As Mika > correctly figured out that the ioapic is already configured, but it does > not propagate it to the irq descriptor. That wants to be fixed. I'll have a > look. Actually that's pointles

Re: [PATCH v3] soc: qcom: Add SoC info driver

2016-11-07 Thread Bjorn Andersson
On Mon 07 Nov 06:35 PST 2016, Imran Khan wrote: > On 11/3/2016 12:00 AM, Bjorn Andersson wrote: > Thanks Bjorn for your review comments. I have taken into account > most of these in the subsequent patch set. For a few of the comments > I want to discuss further, so please see the same inline and

Re: [PATCH v11 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-07 Thread Alex Williamson
On Sat, 5 Nov 2016 02:40:39 +0530 Kirti Wankhede wrote: > Added two new callback functions to struct vfio_iommu_driver_ops. Backend > IOMMU module that supports pining and unpinning pages for mdev devices > should provide these functions. > Added APIs for pining and unpining pages to VFIO module.

Re: [PATCH] poly1305: generic C can be faster on chips with slow unaligned access

2016-11-07 Thread Jason A. Donenfeld
On Mon, Nov 7, 2016 at 8:25 PM, Eric Biggers wrote: > No it does *not* buffer all incoming blocks, which is why the source pointer > can > fall out of alignment. Yes, I actually tested this. In fact this situation > is > even hit, in both possible places, in the self-tests. Urgh! v3 coming ri

[PATCH v3] poly1305: generic C can be faster on chips with slow unaligned access

2016-11-07 Thread Jason A. Donenfeld
By using the unaligned access helpers, we drastically improve performance on small MIPS routers that have to go through the exception fix-up handler for these unaligned accesses. Signed-off-by: Jason A. Donenfeld --- crypto/poly1305_generic.c | 33 ++--- 1 file change

ftrace module init race/bug

2016-11-07 Thread Alexei Starovoitov
Hi Steven, I'm debugging the following spew: [ 7139.111213] WARNING: CPU: 8 PID: 856649 at kernel/trace/ftrace.c:2747 ftrace_shutdown+0x263/0x270 [ 7139.753185] 881fc59eba40 814717d1 [ 7139.817019] 881fc59eba80 81076e4

Re: [BUG 4.4.26] bio->bi_bdev == NULL in raid6 return_io()

2016-11-07 Thread Shaohua Li
On Sat, Nov 05, 2016 at 01:48:45PM +0300, Konstantin Khlebnikov wrote: > return_io() resolves request_queue even if trace point isn't active: > > static inline struct request_queue *bdev_get_queue(struct block_device *bdev) > { > return bdev->bd_disk->queue;/* this is never NULL */ > } >

[PATCH] tile: handle RO_AFTER_INIT_DATA

2016-11-07 Thread Chris Metcalf
This is the minimal change to handle RO_AFTER_INIT_DATA. The tile architecture already marks RO_DATA as read-only in the kernel, so grouping RO_AFTER_INIT_DATA with RO_DATA, as is done by default, means the kernel faults in init when it tries to write to RO_AFTER_INIT_DATA. For now, just move it p

Re: [kernel-hardening] Re: [PATCHv4 0/4] WX checking for arm64

2016-11-07 Thread Mark Rutland
On Mon, Nov 07, 2016 at 03:38:02PM +, Mark Rutland wrote: > On Sun, Oct 30, 2016 at 03:03:07PM +, Catalin Marinas wrote: > > On Thu, Oct 27, 2016 at 09:27:30AM -0700, Laura Abbott wrote: > > > Laura Abbott (4): > > > arm64: dump: Make ptdump debugfs a separate option > > > arm64: dump:

[PATCH 0/2] qla2xxx: fix errors in PCI device remove with ongoing I/O

2016-11-07 Thread Mauricio Faria de Oliveira
This patchset addresses a couple of errors that might happen during PCI device remove (e.g., PCI hotplug, PowerVM DLPAR), which prevent the successful removal and re-addition of the adapter to the system, and cause an oops and/or invalid DMA access (triggers an EEH event). It allowed several cycle

Re: [PATCH v2] memcg: Prevent memcg caches to be both OFF_SLAB & OBJFREELIST_SLAB

2016-11-07 Thread Thomas Garnier
On Mon, Nov 7, 2016 at 11:28 AM, Christoph Lameter wrote: > On Mon, 7 Nov 2016, Thomas Garnier wrote: > >> I am not sure that is possible. kmem_cache_create currently check for >> possible alias, I assume that it goes against what memcg tries to do. > > What does aliasing have to do with this? The

Re: [PATCH] sched/rt: RT_RUNTIME_GREED sched feature

2016-11-07 Thread Christoph Lameter
On Mon, 7 Nov 2016, Steven Rostedt wrote: > On Mon, 7 Nov 2016 13:30:15 -0600 (CST) > Christoph Lameter wrote: > > > SCHED_RR tasks alternately running on on cpu can cause endless deferral of > > kworker threads. With the global effect of the OS processing reserved > > it may be the case that the

Re: [PATCH v3 1/3] Documentation: DT: add dma compatible for sun50i A64 SOC.

2016-11-07 Thread Maxime Ripard
On Tue, Nov 08, 2016 at 02:14:57AM +0800, Hao Zhang wrote: > This adds documentation of the sun50i a64 dma binding compatible. > > Signed-off-by: Hao Zhang Acked-by: Maxime Ripard Thanks, Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com

[PATCH 2/2] qla2xxx: fix invalid DMA access after command aborts in PCI device remove

2016-11-07 Thread Mauricio Faria de Oliveira
If a command is aborted in the kernel but not in the adapter, it might be considered complete and its DMA memory released, but it is still alive in the adapter, which will trigger an invalid DMA access upon its completion (in the DMA operations to deliver the command response to the driver). On po

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