Re: [PATCH net-next v2] net: sched: don't disable bh when accessing action idr

2018-05-23 Thread Vlad Buslov
On Wed 23 May 2018 at 01:10, Cong Wang wrote: > On Mon, May 21, 2018 at 1:03 PM, Vlad Buslov wrote: >> Initial net_device implementation used ingress_lock spinlock to synchronize >> ingress path of device. This lock was used in both process and bh context. >> In some code paths action map lock w

Re: [PATCH v7 2/3] powerpc/mm: Only read faulting instruction when necessary in do_page_fault()

2018-05-23 Thread Christophe LEROY
Le 23/05/2018 à 08:29, Nicholas Piggin a écrit : On Tue, 22 May 2018 16:50:55 +0200 Christophe LEROY wrote: Le 22/05/2018 à 16:38, Nicholas Piggin a écrit : On Tue, 22 May 2018 16:02:56 +0200 (CEST) Christophe Leroy wrote: Commit a7a9dcd882a67 ("powerpc: Avoid taking a data miss on ev

Re: [PATCH rdma-next 2/5] RDMA/hns: Modify uar allocation algorithm to avoid bitmap exhaust

2018-05-23 Thread Leon Romanovsky
On Wed, May 23, 2018 at 02:49:35PM +0800, Wei Hu (Xavier) wrote: > > > On 2018/5/23 14:05, Leon Romanovsky wrote: > > On Thu, May 17, 2018 at 04:02:50PM +0800, Wei Hu (Xavier) wrote: > >> This patch modified uar allocation algorithm in hns_roce_uar_alloc > >> function to avoid bitmap exhaust. > >>

[PATCH v8] powerpc/mm: Only read faulting instruction when necessary in do_page_fault()

2018-05-23 Thread Christophe Leroy
Commit a7a9dcd882a67 ("powerpc: Avoid taking a data miss on every userspace instruction miss") has shown that limiting the read of faulting instruction to likely cases improves performance. This patch goes further into this direction by limiting the read of the faulting instruction to the only cas

[PATCH] netfilter: uapi: includes linux/types.h

2018-05-23 Thread YueHaibing
gcc-7.3.0 report following warning: ./usr/include/linux/netfilter/nf_osf.h:27: found __[us]{8,16,32,64} type without #include includes linux/types.h to fix it. Signed-off-by: YueHaibing --- include/uapi/linux/netfilter/nf_osf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uap

[PATCH] powerpc/mm: Use instruction symbolic names in store_updates_sp()

2018-05-23 Thread Christophe Leroy
Use symbolic names defined in asm/ppc-opcode.h instead of hardcoded values. Signed-off-by: Christophe Leroy --- Resending as inpependant of the do_page_fault() stuff arch/powerpc/include/asm/ppc-opcode.h | 1 + arch/powerpc/mm/fault.c | 26 +- 2 files cha

Re: [PATCH v5 1/3] ARM: dts: tegra: Remove skeleton.dtsi and fix DTC warnings for /memory

2018-05-23 Thread Krzysztof Kozlowski
On Thu, May 17, 2018 at 1:39 PM, Stefan Agner wrote: > On 17.05.2018 09:45, Krzysztof Kozlowski wrote: >> Remove the usage of skeleton.dtsi and add necessary properties to /memory >> node to fix the DTC warnings: >> >> arch/arm/boot/dts/tegra20-harmony.dtb: Warning (unit_address_vs_reg): >>

Re: [PATCH] kdump: add default crashkernel reserve kernel config options

2018-05-23 Thread Dave Young
[snip] > > > > +config CRASHKERNEL_DEFAULT_THRESHOLD_MB > > + int "System memory size threshold for kdump memory default reserving" > > + depends on CRASH_CORE > > + default 0 > > + help > > + CRASHKERNEL_DEFAULT_MB is used as default crashkernel value if > > + the system memory

Re: [PATCH rdma-next 2/5] RDMA/hns: Modify uar allocation algorithm to avoid bitmap exhaust

2018-05-23 Thread Wei Hu (Xavier)
On 2018/5/23 15:00, Leon Romanovsky wrote: > On Wed, May 23, 2018 at 02:49:35PM +0800, Wei Hu (Xavier) wrote: >> >> On 2018/5/23 14:05, Leon Romanovsky wrote: >>> On Thu, May 17, 2018 at 04:02:50PM +0800, Wei Hu (Xavier) wrote: This patch modified uar allocation algorithm in hns_roce_uar_all

Re: WARNING and PANIC in irq_matrix_free

2018-05-23 Thread Tariq Toukan
On 19/05/2018 2:20 PM, Thomas Gleixner wrote: On Fri, 18 May 2018, Dmitry Safonov wrote: I'm not entirely sure that it's the same fault, but at least backtrace looks resembling. Yes, it's similar, but not the same issue. I'll stare are the code ... Thanks, tglx We still see the

Re: [PATCH v4 1/2] xen/PVH: Set up GS segment for stack canary

2018-05-23 Thread Jan Beulich
>>> On 22.05.18 at 19:10, wrote: > On 05/22/2018 12:32 PM, Jan Beulich wrote: > On 22.05.18 at 18:20, wrote: >>> We are loading virtual address for $canary so we will always have EDX >>> set to 0x. Isn't that what we want? >> Oh, that's rather confusing - we're still running on the lo

Re: [RFC V4 PATCH 7/8] vhost: packed ring support

2018-05-23 Thread Wei Xu
On Wed, May 23, 2018 at 09:39:28AM +0800, Jason Wang wrote: > > > On 2018年05月23日 00:54, Wei Xu wrote: > >On Wed, May 16, 2018 at 08:32:20PM +0800, Jason Wang wrote: > >>Signed-off-by: Jason Wang > >>--- > >> drivers/vhost/net.c | 3 +- > >> drivers/vhost/vhost.c | 539 > >>

Re: [PATCH v8] powerpc/mm: Only read faulting instruction when necessary in do_page_fault()

2018-05-23 Thread Nicholas Piggin
On Wed, 23 May 2018 09:01:19 +0200 (CEST) Christophe Leroy wrote: > Commit a7a9dcd882a67 ("powerpc: Avoid taking a data miss on every > userspace instruction miss") has shown that limiting the read of > faulting instruction to likely cases improves performance. > > This patch goes further into t

Re: [PATCH 1/2] rtc: st-lpc: fix possible race condition

2018-05-23 Thread Patrice CHOTARD
Hi Alexandre On 05/20/2018 02:33 PM, Alexandre Belloni wrote: > The IRQ is requested before the struct rtc is allocated and registered, but > this struct is used in the IRQ handler. This may lead to a NULL pointer > dereference. > > Switch to devm_rtc_allocate_device/rtc_register_device to alloca

Re: [PATCH] irqchip: gpcv2: remove unnecessary functions

2018-05-23 Thread Marc Zyngier
On Wed, 23 May 2018 07:23:00 +0100, Anson Huang wrote: > > GPC is in always-on domain, it never lost its > content during suspend/resume, so no need to > do save/restore for it during suspend/resume. > > Signed-off-by: Anson Huang > --- > drivers/irqchip/irq-imx-gpcv2.c | 41 >

Re: [PATCH rdma-next 2/5] RDMA/hns: Modify uar allocation algorithm to avoid bitmap exhaust

2018-05-23 Thread Leon Romanovsky
On Wed, May 23, 2018 at 03:12:45PM +0800, Wei Hu (Xavier) wrote: > > > On 2018/5/23 15:00, Leon Romanovsky wrote: > > On Wed, May 23, 2018 at 02:49:35PM +0800, Wei Hu (Xavier) wrote: > >> > >> On 2018/5/23 14:05, Leon Romanovsky wrote: > >>> On Thu, May 17, 2018 at 04:02:50PM +0800, Wei Hu (Xavier)

Re: [PATCH v2] rtc: st-lpc: add range

2018-05-23 Thread Patrice CHOTARD
Hi Alexandre On 05/21/2018 10:49 PM, Alexandre Belloni wrote: > The RTC has a 64 bit counter. > > Signed-off-by: Alexandre Belloni > --- > drivers/rtc/rtc-st-lpc.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/rtc/rtc-st-lpc.c b/drivers/rtc/rtc-st-lpc.c > index 2f1ef2c28

Re: [PATCH v6 2/6] dt-bindings: Add the rzn1-clocks.h file

2018-05-23 Thread Geert Uytterhoeven
Hi Michel, On Wed, May 23, 2018 at 8:44 AM, M P wrote: > On Tue, 22 May 2018 at 19:44, Geert Uytterhoeven > wrote: >> On Tue, May 22, 2018 at 12:01 PM, Michel Pollet >> wrote: >> > This adds the constants necessary to use the renesas,rzn1-clocks driver. >> > >> > Signed-off-by: Michel Pollet

Re: [PATCH][V2] net/mlx4: fix spelling mistake: "Inrerface" -> "Interface" and rephrase message

2018-05-23 Thread Tariq Toukan
On 22/05/2018 6:42 PM, Colin King wrote: From: Colin Ian King Trivial fix to spelling mistake in mlx4_dbg debug message and also change the phrasing of the message so that is is more readable Signed-off-by: Colin Ian King --- V2: rephrase message, as helpfully suggested by Tariq Toukan ---

lening

2018-05-23 Thread Funding Trusts Finance
Goede dag, We zijn Funding Trusts Finance verstrekt leningen per postadvertentie. Wij bieden verschillende soorten leningen of projectleningen (korte en lange termijnleningen, persoonlijke leningen, leningen aan bedrijven enz.) Met een rentetarief van 3%. We verstrekken leningen aan

Re: [PATCH v8] powerpc/mm: Only read faulting instruction when necessary in do_page_fault()

2018-05-23 Thread Christophe LEROY
Le 23/05/2018 à 09:17, Nicholas Piggin a écrit : On Wed, 23 May 2018 09:01:19 +0200 (CEST) Christophe Leroy wrote: Commit a7a9dcd882a67 ("powerpc: Avoid taking a data miss on every userspace instruction miss") has shown that limiting the read of faulting instruction to likely cases improves

lening

2018-05-23 Thread Funding Trusts Finance
Goede dag, We zijn Funding Trusts Finance verstrekt leningen per postadvertentie. Wij bieden verschillende soorten leningen of projectleningen (korte en lange termijnleningen, persoonlijke leningen, leningen aan bedrijven enz.) Met een rentetarief van 3%. We verstrekken leningen aan

Re: [PATCH net-next v2] net: sched: don't disable bh when accessing action idr

2018-05-23 Thread Jiri Pirko
Mon, May 21, 2018 at 10:03:04PM CEST, vla...@mellanox.com wrote: >Initial net_device implementation used ingress_lock spinlock to synchronize >ingress path of device. This lock was used in both process and bh context. >In some code paths action map lock was obtained while holding ingress_lock. >Com

RE: [PATCH] irqchip: gpcv2: remove unnecessary functions

2018-05-23 Thread Anson Huang
Hi, Marc Anson Huang Best Regards! > -Original Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: Wednesday, May 23, 2018 3:23 PM > To: Anson Huang > Cc: t...@linutronix.de; ja...@lakedaemon.net; dl-linux-imx > ; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] irqch

Re: [PATCH v2 02/16] arm64: dts: marvell: fix CP110 ICU node size

2018-05-23 Thread Gregory CLEMENT
Hi Miquel, On mar., mai 22 2018, Miquel Raynal wrote: > ICU size in CP110 is not 0x10 but at least 0x440 bytes long (from the > specification). > > Fixes: 6ef84a827c37 ("arm64: dts: marvell: enable GICP and ICU on Armada > 7K/8K") > Cc: sta...@vger.kernel.org > Signed-off-by: Miquel Raynal >

Re: [RFC PATCH 5/5] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-05-23 Thread Vinod
On 22-05-18, 23:58, Bjorn Andersson wrote: > On Tue 22 May 23:05 PDT 2018, Vinod wrote: > > > On 22-05-18, 22:20, Bjorn Andersson wrote: > > > > > +static int q6v5_wcss_reset(struct q6v5_wcss *wcss) > > > +{ > > > + int ret; > > > + u32 val; > > > + int i; > > > + > > > + /* Assert resets, stop c

[PATCH] userfaultfd: prevent non-cooperative events vs mcopy_atomic races

2018-05-23 Thread Mike Rapoport
If a process monitored with userfaultfd changes it's memory mappings or forks() at the same time as uffd monitor fills the process memory with UFFDIO_COPY, the actual creation of page table entries and copying of the data in mcopy_atomic may happen either before of after the memory mapping modifica

[PATCH v7 1/5] drm/rockchip: add transfer function for cdn-dp

2018-05-23 Thread Lin Huang
From: Chris Zhong We may support training outside firmware, so we need support dpcd read/write to get the message or do some setting with display. Signed-off-by: Chris Zhong Signed-off-by: Lin Huang Reviewed-by: Sean Paul Reviewed-by: Enric Balletbo --- Changes in v2: - update patch followin

[PATCH v7 4/5] phy: rockchip-typec: support variable phy config value

2018-05-23 Thread Lin Huang
the phy config values used to fix in dp firmware, but some boards need change these values to do training and get the better eye diagram result. So support that in phy driver. Signed-off-by: Chris Zhong Signed-off-by: Lin Huang --- Changes in v2: - update patch following Enric suggest Changes in

[PATCH v7 3/5] soc: rockchip: split rockchip_typec_phy struct to separate header

2018-05-23 Thread Lin Huang
we may use rockchip_phy_typec struct in other driver, so split it to separate header. Signed-off-by: Lin Huang --- Changes in v2: - None Changes in v3: - None Changes in v4: - None Changes in v5: - None Changes in v6: - new patch here Changes in v7: - move new element to next patch drivers/phy/

[PATCH v7 5/5] drm/rockchip: support dp training outside dp firmware

2018-05-23 Thread Lin Huang
DP firmware uses fixed phy config values to do training, but some boards need to adjust these values to fit for their unique hardware design. So get phy config values from dts and use software link training instead of relying on firmware, if software training fail, keep firmware training as a fallb

[PATCH v7 2/5] Documentation: dt-bindings: phy: add phy_config for Rockchip USB Type-C PHY

2018-05-23 Thread Lin Huang
If want to do training outside DP Firmware, need phy voltage swing and pre_emphasis value. Signed-off-by: Lin Huang Reviewed-by: Rob Herring --- Changes in v2: - None Changes in v3: - modify property description and add this property to Example Changes in v4: - None Changes in v5: - None Change

Re: INFO: task hung in xlog_grant_head_check

2018-05-23 Thread Darrick J. Wong
On Tue, May 22, 2018 at 03:52:08PM -0700, Eric Biggers wrote: > On Wed, May 23, 2018 at 08:26:20AM +1000, Dave Chinner wrote: > > On Tue, May 22, 2018 at 08:31:08AM -0400, Brian Foster wrote: > > > On Mon, May 21, 2018 at 10:55:02AM -0700, syzbot wrote: > > > > Hello, > > > > > > > > syzbot found

[PATCH] livepatch: Remove not longer valid limitations from the documentation

2018-05-23 Thread Petr Mladek
Semantic changes are possible since the commit d83a7cb375eec21f04 ("livepatch: change to a per-task consistency model"). Also data structures can be patched since the commit 439e7271dc2b63de37 ("livepatch: introduce shadow variable API"). It is a high time we removed these limitations from the do

[PATCH v4 3/3] powerpc/lib: optimise PPC32 memcmp

2018-05-23 Thread Christophe Leroy
At the time being, memcmp() compares two chunks of memory byte per byte. This patch optimises the comparison by comparing word by word. A small benchmark performed on an 8xx comparing two chuncks of 512 bytes performed 10 times gives: Before : 5852274 TB ticks After: 1488638 TB ticks Thi

Re: [PATCH 19/33] thermal: db8500: use match_string() helper

2018-05-23 Thread Yisheng Xie
Hi Andy, On 2018/5/22 6:00, Andy Shevchenko wrote: > On Mon, May 21, 2018 at 2:57 PM, Yisheng Xie wrote: >> match_string() returns the index of an array for a matching string, >> which can be used intead of open coded variant. > >> + i = match_string((const char **)trip_point->cdev_name, >

Re: [PATCH] netfilter: uapi: includes linux/types.h

2018-05-23 Thread Pablo Neira Ayuso
On Wed, May 23, 2018 at 03:03:26PM +0800, YueHaibing wrote: > gcc-7.3.0 report following warning: > ./usr/include/linux/netfilter/nf_osf.h:27: found __[us]{8,16,32,64} type > without #include > > includes linux/types.h to fix it. Thanks. There's already a fix for this in the nf-next queue. co

Re: [PATCH 04/10] vfio: ccw: replace IO_REQ event with SSCH_REQ event

2018-05-23 Thread Pierre Morel
On 22/05/2018 17:41, Cornelia Huck wrote: On Fri, 4 May 2018 13:02:36 +0200 Pierre Morel wrote: On 04/05/2018 03:19, Dong Jia Shi wrote: * Pierre Morel [2018-05-03 16:26:29 +0200]: On 02/05/2018 09:46, Dong Jia Shi wrote: * Cornelia Huck [2018-04-30 17:33:05 +0200]: On Thu, 26 Apr

Re: [PATCH 3/5] watchdog: sp805: set WDOG_HW_RUNNING when appropriate

2018-05-23 Thread Scott Branden
On 18-05-22 04:24 PM, Ray Jui wrote: Hi Guenter, On 5/22/2018 1:54 PM, Guenter Roeck wrote: On Tue, May 22, 2018 at 11:47:18AM -0700, Ray Jui wrote: If the watchdog hardware is already enabled during the boot process, when the Linux watchdog driver loads, it should reset the watchdog and tel

Re: [PATCH V2 3/3] ARM: dts: imx7: correct enet ipg clock

2018-05-23 Thread Stefan Agner
On 18.05.2018 03:01, Anson Huang wrote: > ENET "ipg" clock should be IMX7D_ENETx_IPG_ROOT_CLK > rather than IMX7D_ENET_AXI_ROOT_CLK which is for ENET bus > clock. > > Based on Andy Duan's patch from the NXP kernel tree. > > Signed-off-by: Anson Huang Reviewed-by: Stefan Agner -- Stefan > ---

Re: [PATCH V3] powercap/drivers/idle_injection: Add an idle injection framework

2018-05-23 Thread Daniel Lezcano
On 23/05/2018 07:41, Viresh Kumar wrote: > On 22-05-18, 15:42, Daniel Lezcano wrote: >> On 21/05/2018 12:32, Viresh Kumar wrote: >>> On 18-05-18, 16:50, Daniel Lezcano wrote: Initially, the cpu_cooling device for ARM was changed by adding a new policy inserting idle cycles. The intel_powe

Re: [PATCH V4 34/38] x86/intel_rdt: Create debugfs files for pseudo-locking testing

2018-05-23 Thread Greg KH
On Tue, May 22, 2018 at 02:02:37PM -0700, Reinette Chatre wrote: > Hi Greg, > > Thank you very much for taking a look. > > On 5/22/2018 12:43 PM, Greg KH wrote: > > On Tue, May 22, 2018 at 04:29:22AM -0700, Reinette Chatre wrote: > >> @@ -149,6 +151,9 @@ struct pseudo_lock_region { > >>unsign

Re: [PATCH v8] powerpc/mm: Only read faulting instruction when necessary in do_page_fault()

2018-05-23 Thread Nicholas Piggin
On Wed, 23 May 2018 09:31:33 +0200 Christophe LEROY wrote: > Le 23/05/2018 à 09:17, Nicholas Piggin a écrit : > > On Wed, 23 May 2018 09:01:19 +0200 (CEST) > > Christophe Leroy wrote: > > > >> @@ -264,8 +266,30 @@ static bool bad_stack_expansion(struct pt_regs *regs, > >> unsigned long addr

Re: [PATCH 2/4] clocksource: timer-imx-gpt: Switch to SPDX identifier

2018-05-23 Thread Daniel Lezcano
On 23/05/2018 01:05, Fabio Estevam wrote: > From: Fabio Estevam > > Adopt the SPDX license identifier headers to ease license compliance > management. > > Signed-off-by: Fabio Estevam > --- > drivers/clocksource/timer-imx-gpt.c | 26 ++ > 1 file changed, 6 insertions(+)

Re: [PATCH 4/5] acpi/processor: Fix the return value of acpi_processor_ids_walk()

2018-05-23 Thread Rafael J. Wysocki
On Wed, May 23, 2018 at 3:34 AM, Dou Liyang wrote: > At 05/22/2018 09:47 AM, Dou Liyang wrote: >> >> >> >> At 05/19/2018 11:06 PM, Thomas Gleixner wrote: >>> >>> On Tue, 20 Mar 2018, Dou Liyang wrote: >>> ACPI driver should make sure all the processor IDs in their ACPI Namespace are

Re: [PATCH v2 1/5] gpio: syscon: allow fetching syscon from parent node

2018-05-23 Thread Linus Walleij
On Fri, May 18, 2018 at 5:52 AM, wrote: > From: Heiko Stuebner > > Syscon nodes can be a simple-mfd and the syscon-users then be declared > as children of this node. That way the parent-child structure can be > better represented for devices that are fully embedded in the syscon. > > Therefore

Re: [PATCH] mm: save two stranding bit in gfp_mask

2018-05-23 Thread kbuild test robot
Hi Shakeel, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on mmotm/master] [also build test WARNING on v4.17-rc6] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commit

Re: [PATCH v3 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-05-23 Thread Radu Pirea
On 05/17/2018 08:04 AM, Mark Brown wrote: On Fri, May 11, 2018 at 01:38:21PM +0300, Radu Pirea wrote: +config SPI_AT91_USART +tristate "Atmel USART Controller as SPI" + depends on HAS_DMA + depends on (ARCH_AT91 || COMPILE_TEST) +select MFD_AT91_USART + help

Re: [PATCH 04/10] vfio: ccw: replace IO_REQ event with SSCH_REQ event

2018-05-23 Thread Cornelia Huck
On Wed, 23 May 2018 09:50:00 +0200 Pierre Morel wrote: > On 22/05/2018 17:41, Cornelia Huck wrote: > > On Fri, 4 May 2018 13:02:36 +0200 > > Pierre Morel wrote: > > > >> On 04/05/2018 03:19, Dong Jia Shi wrote: > >>> * Pierre Morel [2018-05-03 16:26:29 +0200]: > >>> > On 02/05/201

Re: [PATCH] PCI / PM: Do not clear state_saved for devices that remain suspended

2018-05-23 Thread Rafael J. Wysocki
On Wed, May 23, 2018 at 12:01 AM, Bjorn Helgaas wrote: > On Fri, May 18, 2018 at 10:17:42AM +0200, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki >> >> The state_saved flag should not be cleared in pci_pm_suspend() if the >> given device is going to remain suspended, or the device's config >

Re: [PATCH v1] MIPS: PCI: Use dev_printk() when possible

2018-05-23 Thread James Hogan
On Tue, May 22, 2018 at 08:11:42AM -0500, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > Use the pci_info() and pci_err() wrappers for dev_printk() when possible. > > Signed-off-by: Bjorn Helgaas > --- > arch/mips/pci/pci-legacy.c |7 ++- > 1 file changed, 2 insertions(+), 5 deletions(

Re: [PATCH v2] schedutil: Allow cpufreq requests to be made even when kthread kicked

2018-05-23 Thread Rafael J. Wysocki
On Wed, May 23, 2018 at 12:09 AM, Joel Fernandes wrote: > On Tue, May 22, 2018 at 04:04:15PM +0530, Viresh Kumar wrote: >> Okay, me and Rafael were discussing this patch, locking and races around >> this. >> >> On 18-05-18, 11:55, Joel Fernandes (Google.) wrote: >> > diff --git a/kernel/sched/cpu

Re: [PATCH v3] arm64: allwinner: a64: Add Amarula A64-Relic initial support

2018-05-23 Thread Maxime Ripard
On Wed, May 23, 2018 at 11:44:56AM +0530, Jagan Teki wrote: > On Tue, May 22, 2018 at 8:00 PM, Maxime Ripard > wrote: > > On Tue, May 22, 2018 at 06:52:28PM +0530, Jagan Teki wrote: > >> Amarula A64-Relic is Allwinner A64 based IoT device, which support > >> - Allwinner A64 Cortex-A53 > >> - Mali-

Re: [PATCH] mm: save two stranding bit in gfp_mask

2018-05-23 Thread Michal Hocko
On Wed 23-05-18 16:08:28, kbuild test robot wrote: > Hi Shakeel, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on mmotm/master] > [also build test WARNING on v4.17-rc6] > [if your patch is applied to the wrong git tree, please drop us a note to > help im

Re: [PATCH v6 2/6] dt-bindings: Add the rzn1-clocks.h file

2018-05-23 Thread M P
Morning Geert, On Wed, 23 May 2018 at 08:26, Geert Uytterhoeven wrote: > Hi Michel, > On Wed, May 23, 2018 at 8:44 AM, M P wrote: > > On Tue, 22 May 2018 at 19:44, Geert Uytterhoeven > > wrote: > >> On Tue, May 22, 2018 at 12:01 PM, Michel Pollet > >> wrote: > >> > This adds the constants ne

Re: [PATCH 04/10] vfio: ccw: replace IO_REQ event with SSCH_REQ event

2018-05-23 Thread Pierre Morel
On 22/05/2018 17:38, Cornelia Huck wrote: [still backlog processing...] On Thu, 3 May 2018 14:06:51 +0200 Pierre Morel wrote: On 30/04/2018 17:30, Cornelia Huck wrote: On Wed, 25 Apr 2018 15:52:19 +0200 Pierre Morel wrote: On 25/04/2018 10:41, Cornelia Huck wrote: On Thu, 19 Apr 2018 1

linux-kernel@vger.kernel.org

2018-05-23 Thread Peter Zijlstra
On Tue, May 22, 2018 at 02:31:42PM -0700, Linus Torvalds wrote: > On Tue, May 22, 2018 at 2:17 PM Peter Zijlstra wrote: > > > qrwlock is a fair lock and should not exhibit writer starvation. > > We actually have a special rule to make it *not* be fair, in that > interrupts are allowed to take th

Re: [PATCH v5 1/3] ARM: dts: tegra: Remove skeleton.dtsi and fix DTC warnings for /memory

2018-05-23 Thread Stefan Agner
On 23.05.2018 09:05, Krzysztof Kozlowski wrote: > On Thu, May 17, 2018 at 1:39 PM, Stefan Agner wrote: >> On 17.05.2018 09:45, Krzysztof Kozlowski wrote: >>> Remove the usage of skeleton.dtsi and add necessary properties to /memory >>> node to fix the DTC warnings: >>> >>> arch/arm/boot/dts/te

Re: [PATCH 2/5] PCI/AER: Add sysfs stats for AER capable devices

2018-05-23 Thread Greg Kroah-Hartman
On Tue, May 22, 2018 at 03:28:02PM -0700, Rajat Jain wrote: > Add the following AER sysfs stats to represent the counters for each > kind of error as seen by the device: > > dev_total_cor_errs > dev_total_fatal_errs > dev_total_nonfatal_errs You need Documentation/ABI/ updates for new sysfs files

Re: [PATCH 5/5] Documentation/PCI: Add details of PCI AER statistics

2018-05-23 Thread Greg Kroah-Hartman
On Tue, May 22, 2018 at 03:28:05PM -0700, Rajat Jain wrote: > Add the PCI AER statistics details to > Documentation/PCI/pcieaer-howto.txt > > Signed-off-by: Rajat Jain > --- > Documentation/PCI/pcieaer-howto.txt | 35 + > 1 file changed, 35 insertions(+) > > diff --g

Re: [PATCH RFC] schedutil: Address the r/w ordering race in kthread

2018-05-23 Thread Rafael J. Wysocki
On Wed, May 23, 2018 at 1:50 AM, Joel Fernandes (Google) wrote: > Currently there is a race in schedutil code for slow-switch single-CPU > systems. Fix it by enforcing ordering the write to work_in_progress to > happen before the read of next_freq. > > Kthread

Re: [alsa-devel] [RFC/RFT PATCH] ASoC: topology: Improve backwards compatibility with v4 topology files

2018-05-23 Thread Mark Brown
On Tue, May 22, 2018 at 02:59:35PM -0500, Pierre-Louis Bossart wrote: > I am also not convinced by the notion that maintaining topology files is > only a userspace/distro issue. This would mean some distros will have access > to the required topology files, possibly enabling DSP processing > capab

Re: [PATCH 2/5] PCI/AER: Add sysfs stats for AER capable devices

2018-05-23 Thread Greg Kroah-Hartman
On Tue, May 22, 2018 at 03:28:02PM -0700, Rajat Jain wrote: > +#define aer_stats_aggregate_attr(field) > \ > + static ssize_t \ > + field##_show(struct device *dev, struct device_attribute *attr,

Re: [PATCH 3/5] PCP/AER: Add sysfs attributes to provide breakdown of AERs

2018-05-23 Thread Greg Kroah-Hartman
On Tue, May 22, 2018 at 03:28:03PM -0700, Rajat Jain wrote: > Add sysfs attributes to provide breakdown of the AERs seen, > into different type of correctable or uncorrectable errors: > > dev_breakdown_correctable > dev_breakdown_uncorrectable > > Signed-off-by: Rajat Jain > --- > drivers/pci/p

Re: [PATCH 6/6] scsi: Check sense buffer size at build time

2018-05-23 Thread Sergei Shtylyov
Hello! On 5/22/2018 9:15 PM, Kees Cook wrote: To avoid introducing problems like those fixed in commit f7068114d45e ("sr: pass down correctly sized SCSI sense buffer"), this creates a macro wrapper for scsi_execute() that verifies the size of the sense buffer similar to what was done for comman

[PATCH -mm -V3 00/21] mm, THP, swap: Swapout/swapin THP in one piece

2018-05-23 Thread Huang, Ying
From: Huang Ying Hi, Andrew, could you help me to check whether the overall design is reasonable? Hi, Hugh, Shaohua, Minchan and Rik, could you help me to review the swap part of the patchset? Especially [02/21], [03/21], [04/21], [05/21], [06/21], [07/21], [08/21], [09/21], [10/21], [11/21], [

[PATCH -mm -V3 04/21] mm, THP, swap: Support PMD swap mapping in swapcache_free_cluster()

2018-05-23 Thread Huang, Ying
From: Huang Ying Previously, during swapout, all PMD page mapping will be split and replaced with PTE swap mapping. And when clearing the SWAP_HAS_CACHE flag for the huge swap cluster in swapcache_free_cluster(), the huge swap cluster will be split. Now, during swapout, the PMD page mapping wil

[PATCH -mm -V3 07/21] mm, THP, swap: Support PMD swap mapping in split_swap_cluster()

2018-05-23 Thread Huang, Ying
From: Huang Ying When splitting a THP in swap cache or failing to allocate a THP when swapin a huge swap cluster, the huge swap cluster will be split. In addition to clear the huge flag of the swap cluster, the PMD swap mapping count recorded in cluster_count() will be set to 0. But we will not

[PATCH -mm -V3 16/21] mm, THP, swap: Free PMD swap mapping when zap_huge_pmd()

2018-05-23 Thread Huang, Ying
From: Huang Ying For a PMD swap mapping, zap_huge_pmd() will clear the PMD and call free_swap_and_cache() to decrease the swap reference count and maybe free or split the huge swap cluster and the THP in swap cache. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc

Re: [PATCH 1/5] PCI/AER: Define and allocate aer_stats structure for AER capable devices

2018-05-23 Thread Greg Kroah-Hartman
On Tue, May 22, 2018 at 03:28:01PM -0700, Rajat Jain wrote: > --- /dev/null > +++ b/drivers/pci/pcie/aer/aerdrv_stats.c > @@ -0,0 +1,64 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (C) 2018 Google Inc, All Rights Reserved. > + * Rajat Jain (raja...@google.com) Google has the c

[PATCH -mm -V3 15/21] mm, THP, swap: Support to copy PMD swap mapping when fork()

2018-05-23 Thread Huang, Ying
From: Huang Ying During fork, the page table need to be copied from parent to child. A PMD swap mapping need to be copied too and the swap reference count need to be increased. When the huge swap cluster has been split already, we need to split the PMD swap mapping and fallback to PTE copying.

[PATCH -mm -V3 10/21] mm, THP, swap: Support to count THP swapin and its fallback

2018-05-23 Thread Huang, Ying
From: Huang Ying 2 new /proc/vmstat fields are added, "thp_swapin" and "thp_swapin_fallback" to count swapin a THP from swap device as a whole and fallback to normal page swapin. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Michal Hocko Cc: Johannes Weiner

[PATCH -mm -V3 13/21] mm, THP, swap: Support PMD swap mapping in madvise_free()

2018-05-23 Thread Huang, Ying
From: Huang Ying When madvise_free() found a PMD swap mapping, if only part of the huge swap cluster is operated on, the PMD swap mapping will be split and fallback to PTE swap mapping processing. Otherwise, if all huge swap cluster is operated on, free_swap_and_cache() will be called to decreas

[PATCH -mm -V3 20/21] mm, THP, swap: create PMD swap mapping when unmap the THP

2018-05-23 Thread Huang, Ying
From: Huang Ying This is the final step of the THP swapin support. When reclaiming a anonymous THP, after allocating the huge swap cluster and add the THP into swap cache, the PMD page mapping will be changed to the mapping to the swap space. Previously, the PMD page mapping will be split befor

[PATCH -mm -V3 18/21] mm, THP, swap: Support PMD swap mapping in mincore()

2018-05-23 Thread Huang, Ying
From: Huang Ying During mincore(), for PMD swap mapping, swap cache will be looked up. If the resulting page isn't compound page, the PMD swap mapping will be split and fallback to PTE swap mapping processing. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Mich

[PATCH -mm -V3 19/21] mm, THP, swap: Support PMD swap mapping in common path

2018-05-23 Thread Huang, Ying
From: Huang Ying Original code is only for PMD migration entry, it is revised to support PMD swap mapping. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Michal Hocko Cc: Johannes Weiner Cc: Shaohua Li Cc: Hugh Dickins Cc: Minchan Kim Cc: Rik van Riel Cc:

[PATCH -mm -V3 21/21] mm, THP: Avoid to split THP when reclaim MADV_FREE THP

2018-05-23 Thread Huang, Ying
From: Huang Ying Previously, to reclaim MADV_FREE THP, the THP will be split firstly, then reclaim each sub-pages. This wastes cycles to split THP and unmap and free each sub-pages, and split THP even if it has been written since MADV_FREE. We have to do this because MADV_FREE THP reclaiming sh

[PATCH -mm -V3 17/21] mm, THP, swap: Support PMD swap mapping for MADV_WILLNEED

2018-05-23 Thread Huang, Ying
From: Huang Ying During MADV_WILLNEED, for a PMD swap mapping, if THP swapin is enabled for the VMA, the whole swap cluster will be swapin. Otherwise, the huge swap cluster and the PMD swap mapping will be split and fallback to PTE swap mapping. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shut

Re: [PATCH v3 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings

2018-05-23 Thread Mark Brown
On Tue, May 22, 2018 at 05:08:45PM -0700, Doug Anderson wrote: > So one client's vote for a voltage continues to be in effect even if > that client votes to have the regulator disabled? That seems > fundamentally broken in RPMh. I guess my take would be to work around It's arguable either way -

Re: [PATCH v6] gpio: dwapb: Add support for 1 interrupt per port A GPIO

2018-05-23 Thread Linus Walleij
On Fri, May 11, 2018 at 10:31 AM, Phil Edworthy wrote: > The DesignWare GPIO IP can be configured for either 1 interrupt or 1 > per GPIO in port A, but the driver currently only supports 1 interrupt. > See the DesignWare DW_apb_gpio Databook description of the > 'GPIO_INTR_IO' parameter. > > This

[PATCH -mm -V3 14/21] mm, cgroup, THP, swap: Support to move swap account for PMD swap mapping

2018-05-23 Thread Huang, Ying
From: Huang Ying Previously the huge swap cluster will be split after the THP is swapout. Now, to support to swapin the THP as a whole, the huge swap cluster will not be split after the THP is reclaimed. So in memcg, we need to move the swap account for PMD swap mappings in the process's page t

[PATCH -mm -V3 12/21] mm, THP, swap: Support PMD swap mapping in swapoff

2018-05-23 Thread Huang, Ying
From: Huang Ying During swapoff, for a huge swap cluster, we need to allocate a THP, read its contents into the THP and unuse the PMD and PTE swap mappings to it. If failed to allocate a THP, the huge swap cluster will be split. During unuse, if it is found that the swap cluster mapped by a PMD

Re: [PATCH v3 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-05-23 Thread Mark Brown
On Wed, May 23, 2018 at 11:10:28AM +0300, Radu Pirea wrote: > On 05/17/2018 08:04 AM, Mark Brown wrote: > > > +// SPDX-License-Identifier: GPL-2.0 > > > +/* > > > + * Driver for AT91 USART Controllers as SPI > > > + * > > > + * Copyright (C) 2018 Microchip Technology Inc. > > Make the entire bloc

[PATCH -mm -V3 11/21] mm, THP, swap: Add sysfs interface to configure THP swapin

2018-05-23 Thread Huang, Ying
From: Huang Ying Swapin a THP as a whole isn't desirable at some situations. For example, for random access pattern, swapin a THP as a whole will inflate the reading greatly. So a sysfs interface: /sys/kernel/mm/transparent_hugepage/swapin_enabled is added to configure it. Three options as fol

[PATCH -mm -V3 06/21] mm, THP, swap: Support PMD swap mapping when splitting huge PMD

2018-05-23 Thread Huang, Ying
From: Huang Ying A huge PMD need to be split when zap a part of the PMD mapping etc. If the PMD mapping is a swap mapping, we need to split it too. This patch implemented the support for this. This is similar as splitting the PMD page mapping, except we need to decrease the PMD swap mapping cou

[PATCH -mm -V3 09/21] mm, THP, swap: Swapin a THP as a whole

2018-05-23 Thread Huang, Ying
From: Huang Ying With this patch, when page fault handler find a PMD swap mapping, it will swap in a THP as a whole. This avoids the overhead of splitting/collapsing before/after the THP swapping. And improves the swap performance greatly for reduced page fault count etc. do_huge_pmd_swap_page

[PATCH -mm -V3 08/21] mm, THP, swap: Support to read a huge swap cluster for swapin a THP

2018-05-23 Thread Huang, Ying
From: Huang Ying To swapin a THP as a whole, we need to read a huge swap cluster from the swap device. This patch revised the __read_swap_cache_async() and its callers and callees to support this. If __read_swap_cache_async() find the swap cluster of the specified swap entry is huge, it will tr

[PATCH -mm -V3 05/21] mm, THP, swap: Support PMD swap mapping in free_swap_and_cache()/swap_free()

2018-05-23 Thread Huang, Ying
From: Huang Ying When a PMD swap mapping is removed from a huge swap cluster, for example, unmap a memory range mapped with PMD swap mapping, etc, free_swap_and_cache() will be called to decrease the reference count to the huge swap cluster. free_swap_and_cache() may also free or split the huge

[PATCH -mm -V3 02/21] mm, THP, swap: Make CONFIG_THP_SWAP depends on CONFIG_SWAP

2018-05-23 Thread Huang, Ying
From: Huang Ying It's unreasonable to optimize swapping for THP without basic swapping support. And this will cause build errors when THP_SWAP functions are defined in swapfile.c and called elsewhere. The comments are fixed too to reflect the latest progress. Signed-off-by: "Huang, Ying" Cc:

Re: [PATCH v2 1/5] dt-bindings: pinctrl: Add gpio bindings for Actions S900 SoC

2018-05-23 Thread Linus Walleij
On Sun, May 20, 2018 at 7:17 AM, Manivannan Sadhasivam wrote: > Add gpio bindings for Actions Semi S900 SoC. > > Signed-off-by: Manivannan Sadhasivam Patch applied with Rob's review tag. Yours, Linus Walleij

[PATCH -mm -V3 03/21] mm, THP, swap: Support PMD swap mapping in swap_duplicate()

2018-05-23 Thread Huang, Ying
From: Huang Ying To support to swapin the THP as a whole, we need to create PMD swap mapping during swapout, and maintain PMD swap mapping count. This patch implements the support to increase the PMD swap mapping count (for swapout, fork, etc.) and set SWAP_HAS_CACHE flag (for swapin, etc.) for

[PATCH -mm -V3 01/21] mm, THP, swap: Enable PMD swap operations for CONFIG_THP_SWAP

2018-05-23 Thread Huang, Ying
From: Huang Ying Previously, the PMD swap operations are only enabled for CONFIG_ARCH_ENABLE_THP_MIGRATION. Because they are only used by the THP migration support. We will support PMD swap mapping to the huge swap cluster and swapin the THP as a whole. That will be enabled via CONFIG_THP_SWAP

Re: [PATCH v5 1/3] ARM: dts: tegra: Remove skeleton.dtsi and fix DTC warnings for /memory

2018-05-23 Thread Krzysztof Kozlowski
On Wed, May 23, 2018 at 10:22 AM, Stefan Agner wrote: > On 23.05.2018 09:05, Krzysztof Kozlowski wrote: >> On Thu, May 17, 2018 at 1:39 PM, Stefan Agner wrote: >>> On 17.05.2018 09:45, Krzysztof Kozlowski wrote: >>> Could we not add >>> >>> memory { device_type = "memory"; }; >>> >>> in t

Re: [PATCH v2 2/5] arm64: dts: actions: Add gpio properties to pinctrl node for S900

2018-05-23 Thread Linus Walleij
On Sun, May 20, 2018 at 7:17 AM, Manivannan Sadhasivam wrote: > Add gpio properties to pinctrl node for Actions Semi S900 SoC. > > Signed-off-by: Manivannan Sadhasivam Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH v2 3/5] arm64: dts: actions: Add gpio line names to Bubblegum-96 board

2018-05-23 Thread Linus Walleij
On Sun, May 20, 2018 at 7:17 AM, Manivannan Sadhasivam wrote: > Add gpio line names to Actions Semi S900 based Bubblegum-96 board. > > Signed-off-by: Manivannan Sadhasivam Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH v2 4/5] pinctrl: actions: Add gpio support for Actions S900 SoC

2018-05-23 Thread Linus Walleij
On Sun, May 20, 2018 at 7:17 AM, Manivannan Sadhasivam wrote: > Add gpio support to pinctrl driver for Actions Semi S900 SoC. > > Signed-off-by: Manivannan Sadhasivam > Reviewed-by: Andy Shevchenko Patch applied for v4.18 so we get some rotation in linux-next! Yours, Linus Walleij

Re: [PATCH/RFC] ARM: dts: r8a7791: Move enable-method to CPU nodes

2018-05-23 Thread Simon Horman
On Tue, May 22, 2018 at 03:29:25PM +0200, Geert Uytterhoeven wrote: > According to Documentation/devicetree/bindings/arm/cpus.txt, the > "enable-method" property should be a property of the individual CPU > nodes, not of the parent "cpus" node. However, on R-Car M2-W (and on > several other arm32

Re: [PATCH v2 5/5] MAINTAINERS: Add Actions Semi S900 pinctrl entries

2018-05-23 Thread Linus Walleij
On Sun, May 20, 2018 at 7:17 AM, Manivannan Sadhasivam wrote: > Add S900 pinctrl entries under ARCH_ACTIONS > > Signed-off-by: Manivannan Sadhasivam Patch applied tentatively so we have some maintenance entry for this. Andreas expressed concerns about the driver earlier, so he might want it sp

Re: [PATCHv4 06/10] arm64: add basic pointer authentication support

2018-05-23 Thread Suzuki K Poulose
Hi Mark, On 03/05/18 14:20, Mark Rutland wrote: This patch adds basic support for pointer authentication, allowing userspace to make use of APIAKey. The kernel maintains an APIAKey value for each process (shared by all threads within), which is initialised to a random value at exec() time. To

[PATCH] pinctrl: armada-37xx: Fix spurious irq management

2018-05-23 Thread Gregory CLEMENT
From: Terry Zhou Until now, if we found spurious irq in irq_handler, we only updated the status in register but not the status in the code. Due to this the system will got stuck dues to the infinite loop [gregory.clem...@bootlin.com: update comment and add fix and stable tags] Fixes: 30ac0d3b070

  1   2   3   4   5   6   7   8   9   10   >