[PATCH v2 1/1] mm: initialize pages on demand during boot

2018-02-08 Thread Pavel Tatashin
Deferred page initialization allows the boot cpu to initialize a small subset of the system's pages early in boot, with other cpus doing the rest later on. It is, however, problematic to know how many pages the kernel needs during boot. Different modules and kernel parameters may change the requi

[PATCH v2 0/1] initialize pages on demand during boot

2018-02-08 Thread Pavel Tatashin
Change log: v1 - v2: Added Tested-by: Masayoshi Mizuma Answering Andrew Morton's questions: > Presumably this fixes some real-world problem which someone has observed? Yes, linked below. > Please describe that problem for us in lavish detail. This change helps for three reasons: 1. In

Re: [RFC 05/12] KVM/VMX: Use the new host mapping API for mapping nested vmptr

2018-02-08 Thread KarimAllah Ahmed
On 02/05/2018 11:15 PM, Jim Mattson wrote: On Mon, Feb 5, 2018 at 10:49 AM KarimAllah Ahmed wrote: @@ -7410,19 +7410,17 @@ static int handle_vmon(struct kvm_vcpu *vcpu) return kvm_skip_emulated_instruction(vcpu); } - page = kvm_vcpu_gpa_to_page(vcpu, vmptr

[PATCH] x86/microcode: Check if any new features are present after a microcode reload.

2018-02-08 Thread Ashok Raj
When microcode is loaded later after system boot, new microcode could enumerate new features. It might not be possible to use these new features unless they are loaded during early boot via initrd or from the BIOS in some cases. This patch attempts to simply check if there are any differences in f

Re: [RFC] Warn the user when they could overflow mapcount

2018-02-08 Thread Matthew Wilcox
On Thu, Feb 08, 2018 at 01:05:33PM -0500, Daniel Micay wrote: > The standard map_max_count / pid_max are very low and there are many > situations where either or both need to be raised. [snip good reasons] > I do think the default value in the documentation should be fixed but > if there's a clea

Re: linux-next: manual merge of the tip tree with Linus' tree

2018-02-08 Thread Will Deacon
On Thu, Feb 08, 2018 at 08:03:50AM +0100, Ingo Molnar wrote: > > * Will Deacon wrote: > > > For the sake of avoiding the conflict, can we just drop it for now, please? > > Yeah, so I resolved the conflict by merging the (already upstream) bits and > Linus > pulled that resolution. From now on

Re: [PATCH RFC] x86: KASAN: Sanitize unauthorized irq stack access

2018-02-08 Thread Matthew Wilcox
On Thu, Feb 08, 2018 at 11:20:26AM -0600, Josh Poimboeuf wrote: > The patch description is confusing. It talks about "crappy drivers irq > handlers when they access wrong memory on the stack". But if I > understand correctly, the patch doesn't actually protect against that > case, because irq han

Re: linux-next: manual merge of the tip tree with Linus' tree

2018-02-08 Thread Mathieu Desnoyers
- On Feb 8, 2018, at 1:56 PM, Will Deacon will.dea...@arm.com wrote: > On Thu, Feb 08, 2018 at 08:03:50AM +0100, Ingo Molnar wrote: >> >> * Will Deacon wrote: >> >> > For the sake of avoiding the conflict, can we just drop it for now, please? >> >> Yeah, so I resolved the conflict by mergi

[PATCH] khungtaskd: Kick stuck processes

2018-02-08 Thread Chris Wilson
After spotting a stuck process, and having decided not to panic, give the task a kick to see if that helps it to recover (e.g. to paper over a missed wake up). References: https://bugs.freedesktop.org/show_bug.cgi?id=104009 References: https://bugs.freedesktop.org/show_bug.cgi?id=104682 Signed-off

[PATCH] mm/swap.c: make functions and their kernel-doc agree (again)

2018-02-08 Thread Mike Rapoport
There was a conflict between the commit e02a9f048ef7 ("mm/swap.c: make functions and their kernel-doc agree") and the commit f144c390f905 ("mm: docs: fix parameter names mismatch") that both tried to fix mismatch betweeen pagevec_lookup_entries() parameter names and their description. Since nr_ent

[PATCH] mm/zpool: zpool_evictable: fix mismatch in parameter name and kernel-doc

2018-02-08 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- mm/zpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/zpool.c b/mm/zpool.c index f8cb83e7699b..9d53a1ef8f1e 100644 --- a/mm/zpool.c +++ b/mm/zpool.c @@ -360,7 +360,7 @@ u64 zpool_get_total_size(struct zpool *zpool) /** * zpool_evic

Re: [PATCH] mm/migrate: Rename various page allocation helper functions

2018-02-08 Thread Hugh Dickins
On Thu, 8 Feb 2018, Anshuman Khandual wrote: > On 02/04/2018 12:28 PM, Anshuman Khandual wrote: > > Allocation helper functions for migrate_pages() remmain scattered with > > similar names making them really confusing. Rename these functions based > > on type of the intended migration. Function all

Re: [V9fs-developer] [PATCH] 9p/trans_virtio: discard zero-length reply

2018-02-08 Thread Michael S. Tsirkin
OK, I've queued it. On Thu, Feb 08, 2018 at 06:52:32PM +0100, Greg Kurz wrote: > Ping ? > > Michael, > > Since this is virtio code and you have acked the QEMU part of the fix already, > would you be kind enough to take this through your tree ? > > Cheers, > > -- > Greg > > On Mon, 22 Jan 2018

Re: [PATCH v4 2/5] dmaengine: mediatek: Add MediaTek High-Speed DMA controller for MT7622 and MT7623 SoC

2018-02-08 Thread Randy Dunlap
On 02/08/2018 09:58 AM, sean.w...@mediatek.com wrote: > From: Sean Wang > > MediaTek High-Speed DMA controller (HSDMA) on MT7622 and MT7623 SoC has > a single ring is dedicated to memory-to-memory transfer through ring based > descriptor management. > > Even though there is only one physical rin

Re: [PATCH] mm/swap.c: make functions and their kernel-doc agree (again)

2018-02-08 Thread Randy Dunlap
On 02/08/2018 11:09 AM, Mike Rapoport wrote: > There was a conflict between the commit e02a9f048ef7 ("mm/swap.c: make > functions and their kernel-doc agree") and the commit f144c390f905 ("mm: > docs: fix parameter names mismatch") that both tried to fix mismatch > betweeen pagevec_lookup_entries()

Re: [PATCH] mm/zpool: zpool_evictable: fix mismatch in parameter name and kernel-doc

2018-02-08 Thread Randy Dunlap
On 02/08/2018 11:09 AM, Mike Rapoport wrote: > Signed-off-by: Mike Rapoport > --- > mm/zpool.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/zpool.c b/mm/zpool.c > index f8cb83e7699b..9d53a1ef8f1e 100644 > --- a/mm/zpool.c > +++ b/mm/zpool.c > @@ -360,7 +360,7 @@ u6

net: thunder: change q_len's type to handle max ring size

2018-02-08 Thread Dean Nelson
The Cavium thunder nicvf driver supports rx/tx rings of up to 65536 entries per. The number of entires are stored in the q_len member of struct q_desc_mem. The problem is that q_len being a u16, results in 65536 becoming 0. In getting pointers to descriptors in the rings, the driver uses q_len min

Re: [PATCH v2 1/3] sched: Stop nohz stats when decayed

2018-02-08 Thread Valentin Schneider
On 02/08/2018 01:36 PM, Vincent Guittot wrote: > On 8 February 2018 at 13:46, Valentin Schneider > wrote: >> On 02/06/2018 07:23 PM, Vincent Guittot wrote: >>> [...] >>> @@ -7826,8 +7842,8 @@ static inline void update_sg_lb_stats(struct lb_env >>> *env, >>> for_each_cpu_and(i, sched_group_s

Re: [PATCH] coresight replicator: set default y after Kconfig rename

2018-02-08 Thread Kim Phillips
On Thu, 8 Feb 2018 18:01:21 + Suzuki K Poulose wrote: > On 08/02/18 17:22, Kim Phillips wrote: > > On Thu, 8 Feb 2018 08:59:30 -0700 > > Mathieu Poirier wrote: > > > >> On 7 February 2018 at 14:03, Kim Phillips wrote: > >>> Commit 1c8859848dbb ("coresight replicator: Cleanup programmable >

Re: [PATCH] coresight replicator: set default y after Kconfig rename

2018-02-08 Thread Kim Phillips
On Thu, 8 Feb 2018 16:13:16 + Robin Murphy wrote: > On 07/02/18 21:03, Kim Phillips wrote: > > Commit 1c8859848dbb ("coresight replicator: Cleanup programmable > > replicator naming") changed the Kconfig symbol name from > > QCOM_REPLICATOR, which, whilst not in the single arm64 defconfig, >

Re: [v3] ARM: dts: imx: Add support for Advantech DMS-BA16

2018-02-08 Thread Yung-Ching LIN
Hi Shawn, Thanks for pointing out the issues. Please see my inline comments below. On Thu, Feb 8, 2018 at 1:03 AM, Shawn Guo wrote: > On Wed, Feb 07, 2018 at 03:17:04AM +0800, Ken Lin wrote: >> Add support for Advantech DMS-BA16 board, which uses >> the Advantech BA-16 module. >> >> Signed-off-b

Re: [PATCH v28 4/4] virtio-balloon: VIRTIO_BALLOON_F_PAGE_POISON

2018-02-08 Thread Michael S. Tsirkin
On Thu, Feb 08, 2018 at 05:50:20PM +0800, Wei Wang wrote: > The VIRTIO_BALLOON_F_PAGE_POISON feature bit is used to indicate if the > guest is using page poisoning. Guest writes to the poison_val config > field to tell host about the page poisoning value in use. > > Signed-off-by: Wei Wang > Sugg

Re: [PATCH v28 3/4] mm/page_poison: add a function to expose page poison val to kernel modules

2018-02-08 Thread Michael S. Tsirkin
On Thu, Feb 08, 2018 at 05:50:19PM +0800, Wei Wang wrote: > Move the PAGE_POISON value to page_poison.c and add a function to enable > callers from a kernel module to get the poison value if the page poisoning > feature is in use. This also avoids callers directly checking PAGE_POISON > regardless

Re: [PATCH v28 4/4] virtio-balloon: VIRTIO_BALLOON_F_PAGE_POISON

2018-02-08 Thread Michael S. Tsirkin
On Thu, Feb 08, 2018 at 05:50:20PM +0800, Wei Wang wrote: > The VIRTIO_BALLOON_F_PAGE_POISON feature bit is used to indicate if the > guest is using page poisoning. Guest writes to the poison_val config > field to tell host about the page poisoning value in use. > > Signed-off-by: Wei Wang > Sugg

Re: [PATCH net 1/1 v4] rtnetlink: require unique netns identifier

2018-02-08 Thread David Miller
From: Christian Brauner Date: Wed, 7 Feb 2018 13:53:20 +0100 > Since we've added support for IFLA_IF_NETNSID for RTM_{DEL,GET,SET,NEW}LINK > it is possible for userspace to send us requests with three different > properties to identify a target network namespace. This affects at least > RTM_{NEW

Re: [RFC] Warn the user when they could overflow mapcount

2018-02-08 Thread Daniel Micay
I don't think the kernel can get away with the current approach. Object sizes and counts on 64-bit should be 64-bit unless there's a verifiable reason they can get away with 32-bit. Having it use leak memory isn't okay, just much less bad than vulnerabilities exploitable beyond just denial of servi

Re: [PATCH] cramfs: better MTD dependency expression

2018-02-08 Thread Linus Torvalds
On Wed, Feb 7, 2018 at 7:08 PM, Nicolas Pitre wrote: > > Viro once told me that my cramfs pull requests could go either to him or > to you. I have only this one patch at the moment, and since it depends > on a commit that recently appeared in your tree I'm therefore sending it > directly to you.

[PATCH] ia64: fix build failure with CONFIG_SWIOTLB

2018-02-08 Thread Corentin Labbe
arch/ia64/kernel/pci-swiotlb.c is removed in commit 4fac8076df85 ("ia64: clean up swiotlb support") but pci-swiotlb.o is still present in Makefile, and so build fail when CONFIG_SWIOTLB is enabled. Fix the build failure by removing pci-swiotlb.o from makefile Fixes: 4fac8076df85 ("ia64: clean up

Re: [RFC] Warn the user when they could overflow mapcount

2018-02-08 Thread Matthew Wilcox
On Thu, Feb 08, 2018 at 02:33:58PM -0500, Daniel Micay wrote: > I don't think the kernel can get away with the current approach. > Object sizes and counts on 64-bit should be 64-bit unless there's a > verifiable reason they can get away with 32-bit. Having it use leak > memory isn't okay, just much

Re: [linus:master] BUILD REGRESSION a2e5790d841658485d642196dbb0927303d6c22f

2018-02-08 Thread Peter Zijlstra
On Thu, Feb 08, 2018 at 10:15:30AM -0800, Linus Torvalds wrote: > On Thu, Feb 8, 2018 at 10:03 AM, Peter Zijlstra wrote: > > > > But yes, for our purposes UD2 is perfectly fine too, it will just mess > > up the people doing bringup and the like. > > Oh, we'll inconvenience people inside Intel? >

Re: [RFC] Warn the user when they could overflow mapcount

2018-02-08 Thread Daniel Micay
I guess it could saturate and then switch to tracking the count via an object pointer -> count mapping with a global lock? Whatever the solution is should probably be a generic one since it's a recurring issue.

Re: [PATCH] x86/microcode: Check if any new features are present after a microcode reload.

2018-02-08 Thread Borislav Petkov
On Thu, Feb 08, 2018 at 10:53:06AM -0800, Ashok Raj wrote: > When microcode is loaded later after system boot, new microcode could > enumerate > new features. It might not be possible to use these new features unless they > are > loaded during early boot via initrd or from the BIOS in some cases.

[PATCH v2 1/2] drivers: qcom: add command DB driver

2018-02-08 Thread Lina Iyer
From: Mahesh Sivasubramanian Command DB is a simple database in the shared memory of QCOM SoCs, that provides information regarding shared resources. Some shared resources in the SoC have properties that are probed dynamically at boot by the remote processor. The information pertaining to the SoC

[PATCH v2 0/2] drivers/qcom: add Command DB support

2018-02-08 Thread Lina Iyer
Changes in [v2]: - Use reserved memory regions instead of regs in DT - Code cleanup suggested by Bjorn and Stephen - Remove unused structures and functions. - Update function names from _get_ to _read_ - Add documentation These patches add support for reading a shared memory database in the newer

[PATCH v2 2/2] dt-bindings: introduce Command DB for QCOM SoCs

2018-02-08 Thread Lina Iyer
From: Mahesh Sivasubramanian Command DB provides information on shared resources like clocks, regulators etc., probed at boot by the remote subsytem and made available in shared memory. Cc: devicet...@vger.kernel.org Signed-off-by: Mahesh Sivasubramanian Signed-off-by: Lina Iyer --- .../devic

Re: [PATCH] coresight replicator: set default y after Kconfig rename

2018-02-08 Thread Randy Dunlap
On 02/08/2018 11:23 AM, Kim Phillips wrote: > On Thu, 8 Feb 2018 16:13:16 + > Robin Murphy wrote: > >> On 07/02/18 21:03, Kim Phillips wrote: >>> Commit 1c8859848dbb ("coresight replicator: Cleanup programmable >>> replicator naming") changed the Kconfig symbol name from >>> QCOM_REPLICATOR,

Re: [PATCH v28 0/4] Virtio-balloon: support free page reporting

2018-02-08 Thread Michael S. Tsirkin
On Thu, Feb 08, 2018 at 05:50:16PM +0800, Wei Wang wrote: > This patch series is separated from the previous "Virtio-balloon > Enhancement" series. The new feature, VIRTIO_BALLOON_F_FREE_PAGE_HINT, > implemented by this series enables the virtio-balloon driver to report > hints of guest free page

Re: [PATCH 7/8] docs: kernel-doc: Finish moving STATE_* code out of process_file()

2018-02-08 Thread Jonathan Corbet
On Thu, 8 Feb 2018 13:29:53 +1100 "Tobin C. Harding" wrote: > It doesn't appear to be introduced by you but the brace positions are > non-uniform in this patch. > > if > { > ... > } > else > { > ... > } > > instead of > > if { > ... > } else { > eee > } True, that's worth fixing up wh

Re: [PATCH] cramfs: better MTD dependency expression

2018-02-08 Thread Randy Dunlap
On 02/08/2018 11:38 AM, Linus Torvalds wrote: > On Wed, Feb 7, 2018 at 7:08 PM, Nicolas Pitre > wrote: >> >> Viro once told me that my cramfs pull requests could go either to him or >> to you. I have only this one patch at the moment, and since it depends >> on a commit that recently appeared in

Re: [linus:master] BUILD REGRESSION a2e5790d841658485d642196dbb0927303d6c22f

2018-02-08 Thread Linus Torvalds
On Thu, Feb 8, 2018 at 11:44 AM, Peter Zijlstra wrote: > > OK, here's the patch.. It leaves the UD0 in traps.c such that people > could recompile their kernel with a simple change. Ack, that seems about the best we can do. Linus

Re: [GIT PULL tools] Linux kernel memory model

2018-02-08 Thread Peter Zijlstra
On Thu, Feb 08, 2018 at 06:41:06PM +, Patrick Bellasi wrote: > Hi Paul, > thanks to you and all the involved guys for this useful tool. > > I give it a try today and found that by installing herd7 by just > following the instruction in herdtools7/INSTALL.md, and precisely > installing it via:

Re: [PATCH v2 1/1] mm: initialize pages on demand during boot

2018-02-08 Thread Andrew Morton
On Thu, 8 Feb 2018 13:45:55 -0500 Pavel Tatashin wrote: > Deferred page initialization allows the boot cpu to initialize a small > subset of the system's pages early in boot, with other cpus doing the rest > later on. > > It is, however, problematic to know how many pages the kernel needs duri

Re: [RFC PATCH v2 1/5] dt-bindings: add bindings for USB physical connector

2018-02-08 Thread Rob Herring
On Thu, Feb 08, 2018 at 10:27:54AM +0100, Andrzej Hajda wrote: > On 07.02.2018 22:43, Rob Herring wrote: > > On Mon, Feb 05, 2018 at 10:06:35AM +0100, Andrzej Hajda wrote: > >> On 05.02.2018 07:08, Rob Herring wrote: > >>> On Wed, Jan 31, 2018 at 02:44:31PM +0100, Andrzej Hajda wrote: > These

Re: [PATCH] atm: he: use 64-bit arithmetic instead of 32-bit

2018-02-08 Thread David Miller
From: "Gustavo A. R. Silva" Date: Wed, 7 Feb 2018 10:17:29 -0600 > Add suffix ULL to constants 272, 204, 136 and 68 in order to give the > compiler complete information about the proper arithmetic to use. > Notice that these constants are used in contexts that expect > expressions of type unsigne

Re: [PATCH v2 1/2] net, can, ifi: fix "write buffer full" error

2018-02-08 Thread Marek Vasut
On 02/08/2018 03:46 PM, Marc Kleine-Budde wrote: > On 02/08/2018 07:47 AM, Heiko Schocher wrote: >> the driver reads in the ISR first the IRQpending register, >> and clears after that in a write *all* bits in it. >> >> It could happen that the isr register raise bits between >> this 2 register acce

[PATCH] ASoC: rt5645: Introduce mapping for ACPI-defined GPIO

2018-02-08 Thread Carlo Caione
From: Carlo Caione On at least one notebook (ECS EF20EA) the 'hp-detect' GPIO is defined in the DSDT table by the ACPI GpioIo resources in _CRS. Add this mapping to the rt5645 driver to enable the jack detection also on non-DT platforms. Method (_CRS, 0, NotSerialized) { Name (SBUF, ResourceTe

Re: [PATCH] cramfs: better MTD dependency expression

2018-02-08 Thread Nicolas Pitre
On Thu, 8 Feb 2018, Linus Torvalds wrote: > On Wed, Feb 7, 2018 at 7:08 PM, Nicolas Pitre > wrote: > > > > Viro once told me that my cramfs pull requests could go either to him or > > to you. I have only this one patch at the moment, and since it depends > > on a commit that recently appeared in

Re: [PATCH] net: Extra '_get' in declaration of arch_get_platform_mac_address

2018-02-08 Thread David Miller
From: Mathieu Malaterre Date: Wed, 7 Feb 2018 20:35:00 +0100 > In commit c7f5d105495a ("net: Add eth_platform_get_mac_address() helper."), > two declarations were added: > > int eth_platform_get_mac_address(struct device *dev, u8 *mac_addr); > unsigned char *arch_get_platform_get_mac_addres

Re: [RFC PATCH 2/4] softirq: Per vector deferment to workqueue

2018-02-08 Thread Dmitry Safonov
On Thu, 2018-02-08 at 13:45 -0500, David Miller wrote: > From: Sebastian Andrzej Siewior > Date: Thu, 8 Feb 2018 18:44:52 +0100 > > > May I instead suggest to stick to ksoftirqd? So you run in softirq > > context (after return from IRQ) and if takes too long, you offload > the > > vector to ksoft

Re: [PATCH v2 2/6] pinctrl: sunxi: add support for the Allwinner H6 main pin controller

2018-02-08 Thread Rob Herring
On Sat, Feb 03, 2018 at 11:49:38PM +0800, Icenowy Zheng wrote: > The Allwinner H6 SoC has two pin controllers, one main controller > (called CPUX-PORT in user manual) and one controller in CPUs power > domain (called CPUS-PORT in user manual). > > This commit introduces support for the main pin co

Re: [PATCH] net: Whitelist the skbuff_head_cache "cb" field

2018-02-08 Thread David Miller
From: Kees Cook Date: Wed, 7 Feb 2018 17:44:38 -0800 > Most callers of put_cmsg() use a "sizeof(foo)" for the length argument. > Within put_cmsg(), a copy_to_user() call is made with a dynamic size, as a > result of the cmsg header calculations. This means that hardened usercopy > will examine th

Re: [PATCH 0/7] afs: Fixes and dynamic root

2018-02-08 Thread Linus Torvalds
On Thu, Feb 8, 2018 at 8:16 AM, David Howells wrote: > > > The patches can be found here also: > > > http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=afs-next > > tagged thusly: > > afs-next-20180208 Please just write this

Re: [PATCH v2] mm: hwpoison: disable memory error handling on 1GB hugepage

2018-02-08 Thread Andrew Morton
On Thu, 08 Feb 2018 12:30:45 + Punit Agrawal wrote: > > > > So I don't think that the above test result means that errors are properly > > handled, and the proposed patch should help for arm64. > > Although, the deviation of pud_huge() avoids a kernel crash the code > would be easier to main

Re: [PATCH v2 4/6] clk: sunxi-ng: add support for the Allwinner H6 CCU

2018-02-08 Thread Rob Herring
On Sat, Feb 03, 2018 at 11:49:40PM +0800, Icenowy Zheng wrote: > The Allwinner H6 SoC has a CCU which has been largely rearranged. > > Add support for it in the sunxi-ng CCU framework. > > Signed-off-by: Icenowy Zheng > --- > Changes in v2: > - Exported APB1 bus clock for PIO. > - Switch to SPDX

Re: [PATCH 1/2] dt-bindings: thermal: add binding for MT7622 SoC

2018-02-08 Thread Rob Herring
On Mon, Feb 05, 2018 at 04:11:51PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > Add devicetree bindings for MediaTek MT7622 thermal controller > > Signed-off-by: Sean Wang > Signed-off-by: Shunli Wang > --- > Documentation/devicetree/bindings/thermal/mediatek-thermal.txt | 1 + >

Re: [RFC] Warn the user when they could overflow mapcount

2018-02-08 Thread Matthew Wilcox
On Thu, Feb 08, 2018 at 02:48:52PM -0500, Daniel Micay wrote: > I guess it could saturate and then switch to tracking the count via an > object pointer -> count mapping with a global lock? Whatever the > solution is should probably be a generic one since it's a recurring > issue. I was thinking of

Re: [PATCH V3 2/2] thermal: imx: add i.MX7 thermal sensor support

2018-02-08 Thread Rob Herring
On Mon, Feb 05, 2018 at 04:12:27PM +0800, Anson Huang wrote: > This patch adds i.MX7 thermal sensor support, most > of the i.MX7 thermal sensor functions are same with > i.MX6 except the registers offset/layout, so we move > those registers offset/layout definitions to soc data > structure. > > i.

Re: [RFC PATCH 2/4] softirq: Per vector deferment to workqueue

2018-02-08 Thread David Miller
From: Dmitry Safonov Date: Thu, 08 Feb 2018 20:14:55 + > On Thu, 2018-02-08 at 13:45 -0500, David Miller wrote: >> From: Sebastian Andrzej Siewior >> Date: Thu, 8 Feb 2018 18:44:52 +0100 >> >> > May I instead suggest to stick to ksoftirqd? So you run in softirq >> > context (after return fr

Re: [PATCH] mpls, nospec: Sanitize array index in mpls_label_ok()

2018-02-08 Thread David Miller
From: Dan Williams Date: Wed, 07 Feb 2018 22:34:24 -0800 > mpls_label_ok() validates that the 'platform_label' array index from a > userspace netlink message payload is valid. Under speculation the > mpls_label_ok() result may not resolve in the CPU pipeline until after > the index is used to acc

Re: [RFC PATCH 2/4] softirq: Per vector deferment to workqueue

2018-02-08 Thread Dmitry Safonov
On Thu, 2018-02-08 at 15:22 -0500, David Miller wrote: > From: Dmitry Safonov > Date: Thu, 08 Feb 2018 20:14:55 + > > > On Thu, 2018-02-08 at 13:45 -0500, David Miller wrote: > >> From: Sebastian Andrzej Siewior > >> Date: Thu, 8 Feb 2018 18:44:52 +0100 > >> > >> > May I instead suggest to

Re: [linus:master] BUILD REGRESSION a2e5790d841658485d642196dbb0927303d6c22f

2018-02-08 Thread Borislav Petkov
On Thu, Feb 08, 2018 at 08:44:06PM +0100, Peter Zijlstra wrote: > /* > - * Since some emulators terminate on UD2, we cannot use it for WARN. > - * Since various instruction decoders disagree on the length of UD1, > - * we cannot use it either. So use UD0 for WARN. > + * Despite that some emulators

Re: pull-request: wireless-drivers-next 2018-02-08

2018-02-08 Thread David Miller
From: Kalle Valo Date: Thu, 08 Feb 2018 19:54:15 +0200 > first set of fixes for 4.16, unusually many when the merge window hasn't > even closed yet. Especially the ssb fix is important so I hope there's > still time to get this to 4.16-rc1. As you can see from the diffstat > there's one PCI id ad

Re: net: thunder: change q_len's type to handle max ring size

2018-02-08 Thread David Miller
From: Dean Nelson Date: > The Cavium thunder nicvf driver supports rx/tx rings of up to 65536 entries > per. > The number of entires are stored in the q_len member of struct q_desc_mem. The > problem is that q_len being a u16, results in 65536 becoming 0. > > In getting pointers to descriptors

Re: [PATCH 2/2] drm/sun4i: Handle DRM_MODE_FLAG_**SYNC_POSITIVE correctly

2018-02-08 Thread Maxime Ripard
On Wed, Feb 07, 2018 at 01:49:59PM +0100, Giulio Benetti wrote: > Hi, > > Il 07/02/2018 11:39, Maxime Ripard ha scritto: > > On Wed, Jan 24, 2018 at 08:37:28PM +0100, Giulio Benetti wrote: > > Also, how was it tested? This seems quite weird that we haven't caught > > that one sooner, and I

[PATCH 0/3] drm/amd/powerplay/hwmgr: Adjustments for eight function implementations

2018-02-08 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 8 Feb 2018 21:37:42 +0100 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation in three functions Adjust layout for source code from five if statements D

[PATCH 1/3] drm/amd/powerplay/hwmgr: Delete an error message for a failed memory allocation in three functions

2018-02-08 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 8 Feb 2018 20:32:39 +0100 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 4 +--- drivers/gpu/

[PATCH 2/3] drm/amd/powerplay/hwmgr: Adjust layout for source code from five if statements

2018-02-08 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 8 Feb 2018 21:01:24 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: Comparisons should place the constant on the right side of the test WARNING: else is not generally useful after a break or return Thus fix the affected sourc

[PATCH 3/3] drm/amd/powerplay/hwmgr: Delete an unnecessary return statement in three functions

2018-02-08 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 8 Feb 2018 21:10:58 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: void function return statements are not generally useful Thus remove such a statement in the affected functions. Signed-off-by: Markus Elfring --- drivers

Re: [PATCH v2 1/2] drivers: qcom: add command DB driver

2018-02-08 Thread Jordan Crouse
On Thu, Feb 08, 2018 at 12:51:53PM -0700, Lina Iyer wrote: > From: Mahesh Sivasubramanian > > Command DB is a simple database in the shared memory of QCOM SoCs, that > provides information regarding shared resources. Some shared resources > in the SoC have properties that are probed dynamically a

Re: [PATCH 07/20] riscv: Remove ARCH_WANT_OPTIONAL_GPIOLIB select

2018-02-08 Thread Palmer Dabbelt
On Sun, 04 Feb 2018 17:30:57 PST (-0800), ulfali...@gmail.com wrote: On Mon, Feb 5, 2018 at 2:21 AM, Ulf Magnusson wrote: The ARCH_WANT_OPTIONAL_GPIOLIB symbol was removed in commit 65053e1a7743 ("gpio: delete ARCH_[WANTS_OPTIONAL|REQUIRE]_GPIOLIB"). GPIOLIB should just be selected explicitly i

Re: [PATCH v7 00/24] Speculative page faults

2018-02-08 Thread Andrew Morton
On Tue, 6 Feb 2018 17:49:46 +0100 Laurent Dufour wrote: > This is a port on kernel 4.15 of the work done by Peter Zijlstra to > handle page fault without holding the mm semaphore [1]. > > The idea is to try to handle user space page faults without holding the > mmap_sem. This should allow bett

[PATCH v3 3/4] amdgpu/dc/dml: Support clang option for stack alignment

2018-02-08 Thread Matthias Kaehlcke
DML uses the compiler option -mpreferred-stack-boundary=4 to configure a stack alignment of 16 bytes. Clang uses the option -mstack-alignment instead, which expects as parameter the alignment in bytes, and not a power of two like -mpreferred-stack-boundary. Probe for both compiler options and use

[PATCH v3 2/4] amdgpu/dc/calcs: Consolidate redundant CFLAGS

2018-02-08 Thread Matthias Kaehlcke
Use a variable for common CFLAGS instead of specifying the same flags for every source file. Signed-off-by: Matthias Kaehlcke --- Changes in v3: - patch added drivers/gpu/drm/amd/display/dc/calcs/Makefile | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/dr

[PATCH v3 1/4] amdgpu/dc/dml: Consolidate redundant CFLAGS

2018-02-08 Thread Matthias Kaehlcke
Use a variable for common CFLAGS instead of specifying the same flags for every source file. Signed-off-by: Matthias Kaehlcke --- Changes in v3: - Use variable for compiler options instead of subdir-ccflags-y drivers/gpu/drm/amd/display/dc/dml/Makefile | 17 + 1 file changed, 9

[PATCH v3 4/4] amdgpu/dc/calcs: Support clang option for stack alignment

2018-02-08 Thread Matthias Kaehlcke
calcs uses the compiler option -mpreferred-stack-boundary=4 to configure a stack alignment of 16 bytes. Clang uses the option -mstack-alignment instead, which expects as parameter the alignment in bytes, and not a power of two like -mpreferred-stack-boundary. Probe for both compiler options and us

Re: [BUG] x86 : i486 reporting to be vulnerable to Meltdown/Spectre_V1/Spectre_V2

2018-02-08 Thread Alan Cox
> > Also worth nothing that the difference between the cpu and memory > > speeds is much lower - so far fewer instructions could be speculatively > > executed while waiting a cache miss. But they also have more instructions that take a lot of clocks and are easier to stall - eg by doing things lik

Re: [PATCH] led: core: Fix race on software blink cancellation

2018-02-08 Thread Jacek Anaszewski
Any comments? I'd like to have some acks before applying this patch. Adding more people showing recently interest in the LED subsystem related development. Thanks, Jacek Anaszewski On 01/17/2018 10:12 PM, Jacek Anaszewski wrote: > Commit d23a22a74fde ("leds: delay led_set_brightness if stopping

Re: [PATCH] net: Whitelist the skbuff_head_cache "cb" field

2018-02-08 Thread Kees Cook
On Fri, Feb 9, 2018 at 7:16 AM, David Miller wrote: > From: Kees Cook > Date: Wed, 7 Feb 2018 17:44:38 -0800 > >> Most callers of put_cmsg() use a "sizeof(foo)" for the length argument. >> Within put_cmsg(), a copy_to_user() call is made with a dynamic size, as a >> result of the cmsg header calc

Re: [PATCH v3 4/4] amdgpu/dc/calcs: Support clang option for stack alignment

2018-02-08 Thread Harry Wentland
On 2018-02-08 03:53 PM, Matthias Kaehlcke wrote: > calcs uses the compiler option -mpreferred-stack-boundary=4 to configure > a stack alignment of 16 bytes. Clang uses the option -mstack-alignment > instead, which expects as parameter the alignment in bytes, and not a > power of two like -mpreferre

Re: [PATCH] net: Whitelist the skbuff_head_cache "cb" field

2018-02-08 Thread David Miller
From: Kees Cook Date: Fri, 9 Feb 2018 08:01:12 +1100 > Cool, thanks. And just to be clear, if it's not already obvious, this > patch needs kmem_cache_create_usercopy() which just landed in Linus's > tree last week, in case you've not merged yet. Understood, and 'net' has it.

Re: [PATCH] coresight replicator: set default y after Kconfig rename

2018-02-08 Thread Kim Phillips
On Thu, 8 Feb 2018 11:53:44 -0800 Randy Dunlap wrote: > On 02/08/2018 11:23 AM, Kim Phillips wrote: > > On Thu, 8 Feb 2018 16:13:16 + > > Robin Murphy wrote: > > > >> On 07/02/18 21:03, Kim Phillips wrote: > >>> Commit 1c8859848dbb ("coresight replicator: Cleanup programmable > >>> replicat

Re: [PATCH v2 1/2] drivers: qcom: add command DB driver

2018-02-08 Thread Lina Iyer
On Thu, Feb 08 2018 at 20:48 +, Jordan Crouse wrote: On Thu, Feb 08, 2018 at 12:51:53PM -0700, Lina Iyer wrote: From: Mahesh Sivasubramanian Command DB is a simple database in the shared memory of QCOM SoCs, that provides information regarding shared resources. Some shared resources in the

Re: [BUG] x86 : i486 reporting to be vulnerable to Meltdown/Spectre_V1/Spectre_V2

2018-02-08 Thread Alan Cox
On Thu, 8 Feb 2018 16:22:40 +0100 Arnd Bergmann wrote: > On Thu, Feb 8, 2018 at 2:49 PM, Alan Cox wrote: > >> What about Pentium II and 3? I'm using 5 such machines (and also a Pentium > >> MMX). I've tried a spectre test before and it wasn't reading anything > >> useful. > >> Don't know about

[PATCH v5 0/2] irqchip: qcom: add support for PDC interrupt controller

2018-02-08 Thread Lina Iyer
Changes since v4: - Code clean up as suggested by Marc On newer Qualcomm Techonologies Inc's SoCs like the SDM845, the GIC is in a power domain that can be powered off when not needed. Interrupts that need to be sensed even when the GIC is powered off, are routed through an interrupt controller in

[PATCH v5 2/2] dt-bindings/interrupt-controller: pdc: descibe PDC device binding

2018-02-08 Thread Lina Iyer
From: Archana Sathyakumar Add device binding documentation for the PDC Interrupt controller on QCOM SoC's like the SDM845. The interrupt-controller can be used to sense edge low interrupts and wakeup interrupts when the GIC is non-operational. Cc: devicet...@vger.kernel.org Signed-off-by: Archan

[PATCH v5 1/2] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-08 Thread Lina Iyer
>From : Archana Sathyakumar The Power Domain Controller (PDC) on QTI SoCs like SDM845 houses an interrupt controller along with other domain control functions to handle interrupt related functions like handle falling edge or active low which are not detected at the GIC and handle wakeup interrupt

[PATCH] mm: Free CMA pages to the buddy allocator instead of per-cpu-pagelists

2018-02-08 Thread Alexey Skidanov
The current code frees pages to the per-cpu-pagelists (pcp) according to their migrate type. The exception is isolated pages that are freed directly to the buddy allocator. The pages are marked as isolate to indicate the buddy allocator that they are not supposed to be allocated as opposite to the

Re: [PATCH 02/14] kconfig: do not write choice values when their dependency becomes n

2018-02-08 Thread Ulf Magnusson
On Thu, Feb 8, 2018 at 3:46 AM, Ulf Magnusson wrote: > On Thu, Feb 8, 2018 at 3:42 AM, Masahiro Yamada > wrote: >> 2018-02-08 7:55 GMT+09:00 Ulf Magnusson : >>> On Tue, Feb 06, 2018 at 09:34:42AM +0900, Masahiro Yamada wrote: "# CONFIG_... is not set" for choice values are wrongly written in

Re: [PATCH 2/3] Documentation: bindings: add usb3-host-disable and usb3-host-port for Rockchip USB Type-C PHY

2018-02-08 Thread Enric Balletbo Serra
Hi Rob, 2018-02-08 18:52 GMT+01:00 Rob Herring : > On Thu, Feb 8, 2018 at 9:20 AM, Enric Balletbo i Serra > wrote: >> From: William wu >> >> rockchip,usb3-host-disable is the register of type-c phy disable usb3 host >> rockchip,usb3-host-port is the register of type-c phy usb3 port number >> >>

Re: [PATCH v4 5/7] power: supply: Add 'connected_type' property and supporting code

2018-02-08 Thread Sebastian Reichel
Hi, On Tue, Jan 02, 2018 at 03:50:53PM +, Adam Thomson wrote: > This commit adds the 'connected_type' property to represent supplies > which can report a number of different types of supply based on a > connection event. > > Examples of this already exist in drivers whereby the existing 'type

Re: [PATCH 2/2] mmc: Add mmc_force_detect_change_begin / _end functions

2018-02-08 Thread Ulf Hansson
On 8 February 2018 at 15:59, Quentin Schulz wrote: > Hi Ulf, > > On Wed, Aug 30, 2017 at 03:43:49PM +0200, Ulf Hansson wrote: >> On 30 August 2017 at 14:44, Hans de Goede wrote: >> > Hi, >> > >> > >> > On 21-07-17 16:35, Quentin Schulz wrote: >> >> >> >> From: Hans de Goede >> >> >> >> Some sdio

[PATCH] drm/amdkfd: Delete an error message for a failed memory allocation in kfd_topology_init()

2018-02-08 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 8 Feb 2018 22:23:57 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 1 - 1 file changed, 1 dele

Re: [PATCH v2 1/2] net, can, ifi: fix "write buffer full" error

2018-02-08 Thread Marc Kleine-Budde
On 02/08/2018 08:22 PM, Marek Vasut wrote: > On 02/08/2018 03:46 PM, Marc Kleine-Budde wrote: >> On 02/08/2018 07:47 AM, Heiko Schocher wrote: >>> the driver reads in the ISR first the IRQpending register, >>> and clears after that in a write *all* bits in it. >>> >>> It could happen that the isr r

[patch] kvm: suppress KVM_SET_GSI_ROUTING allocation failure

2018-02-08 Thread David Rientjes
The KVM_SET_GSI_ROUTING ioctl does a vmalloc() of sizeof(struct kvm_irq_routing_entry) multiplied by a user-supplied value. This can be up to 4096 entries on architectures such as arm64 and s390 (and the upper bound may be increased on s390 eventually). This can produce a vmalloc allocation failur

[RFC] Limit mappings to ten per page per process

2018-02-08 Thread Matthew Wilcox
On Thu, Feb 08, 2018 at 12:21:00PM -0800, Matthew Wilcox wrote: > Now that I think about it, though, perhaps the simplest solution is not > to worry about checking whether _mapcount has saturated, and instead when > adding a new mmap, check whether this task already has it mapped 10 times. > If so,

Re: [PATCH v3 4/4] amdgpu/dc/calcs: Support clang option for stack alignment

2018-02-08 Thread Harry Wentland
On 2018-02-08 04:03 PM, Harry Wentland wrote: > On 2018-02-08 03:53 PM, Matthias Kaehlcke wrote: >> calcs uses the compiler option -mpreferred-stack-boundary=4 to configure >> a stack alignment of 16 bytes. Clang uses the option -mstack-alignment >> instead, which expects as parameter the alignment

Re: [PATCH] power: reset: Add Spreadtrum SC27xx PMIC power off support

2018-02-08 Thread Sebastian Reichel
Hi Baolin, On Mon, Jan 15, 2018 at 03:58:57PM +0800, Baolin Wang wrote: > On Spreadtrum platform, we need power off system through external SC27xx > series PMICs including the SC2720, SC2721, SC2723, SC2730 and SC2731 chips. > Thus this patch adds SC27xx series PMICs power-off support. > > Signed

Re: [BUG] x86 : i486 reporting to be vulnerable to Meltdown/Spectre_V1/Spectre_V2

2018-02-08 Thread Arnd Bergmann
On Thu, Feb 8, 2018 at 6:27 PM, tedheadster wrote: > On Thu, Feb 8, 2018 at 12:02 PM, David Laight wrote: >> From: Arnd Bergmann >>> Sent: 08 February 2018 15:23 >> ... >>> The Winchip is what eventually turned into the VIA Nano, which does >>> have speculative execution, but I don't think the ea

Re: [PATCH] led: core: Fix race on software blink cancellation

2018-02-08 Thread Pavel Machek
Hi! > Any comments? I'd like to have some acks before applying > this patch. I can't say I like it. > > Commit d23a22a74fde ("leds: delay led_set_brightness if stopping > > soft-blink") > > made a modifications to the LED core allowing for led_set_brightness() to be > > called from hard-irq con

Re: [PATCH 2/2] drm: adv7511: Add support for i2c_new_secondary_device

2018-02-08 Thread Laurent Pinchart
Hi Kieran, On Thursday, 8 February 2018 01:30:43 EET Kieran Bingham wrote: > On 07/02/18 21:59, Laurent Pinchart wrote: > > On Wednesday, 7 February 2018 17:14:09 EET Kieran Bingham wrote: > >> On 29/01/18 10:26, Laurent Pinchart wrote: > >>> On Monday, 22 January 2018 14:50:00 EET Kieran Bingham

<    1   2   3   4   5   6   7   8   >