[PATCH v3 1/5] dt-bindings: interrupt-controller: Add Realtek RTD1295

2017-10-17 Thread Andreas Färber
Add binding for Realtek RTD1295 IRQ mux. Acked-by: Rob Herring Signed-off-by: Andreas Färber --- v2 -> v3: * Renamed non-iso irq mux to "misc" for clarity v1 -> v2: * Dropped reference to common interrupt.txt bindings (Rob) .../interrupt-controller/realtek,rtd119x-mux.txt | 23

[PATCH v3 3/5] arm64: dts: realtek: Add irq mux to RTD129x

2017-10-17 Thread Andreas Färber
Update UART nodes with interrupts. Signed-off-by: Andreas Färber --- v2 -> v3: * Added nodes to rtd129x.dtsi instead of rtd1295.dtsi * Adopted misc compatible string * Renamed node label from irq_mux to misc_irq_mux for clarity v1 -> v2: * Rebased arch/arm64/boot/dts/realtek/rtd129x.dt

[PATCH v3 5/5] irqchip: rtd119x: Add RTD1195 definitions

2017-10-17 Thread Andreas Färber
Add compatible strings and bit definitions for Realtek RTD1195 SoC. Signed-off-by: Andreas Färber --- v3: New drivers/irqchip/irq-rtd119x-mux.c | 99 ++- 1 file changed, 98 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-rtd119x-mux.c b/driv

[PATCH v3 0/5] arm64: Realtek RTD1195/RTD1295 IRQ mux

2017-10-17 Thread Andreas Färber
Hello, This series adds two IRQ muxes for the Realtek RTD1295 and RTD1195 SoCs. The implementation is based on register offsets seen in the vendor DT, split up into two separate nodes, as well as code from QNAP's rtk119x and Synology's RTD1293/96 GPL code dumps. v3 does various cleanups, renames

[PATCH v7 0/2] PCI: quirks: Cavium ThunderX ACS quirk update

2017-10-17 Thread Vadim Lomovtsev
From: Vadim Lomovtsev version 7: - update patch description accordingly to review comments; - split for two patches: for ACS mask change and device id match change; - remove macro #define of ACS flags, put it back to quirk function; - remove '__inline_' from device id matching function; - wrap co

[PATCH v7 1/2] PCI: quirks: Set Cavium ACS capability quirk flags to assert RR/CR/SV/UF.

2017-10-17 Thread Vadim Lomovtsev
From: Vadim Lomovtsev The Cavium ThunderX (CN8XXX) family PCIe Root Ports has limited PCI capabilities in terms of no ACS support advertisement. However, the RTL internally implements similar protection as if ACS had completion/request redirection, upstream forwarding and validation features enab

[PATCH v7 2/2] PCI: quirks: Apply Cavium ThunderX ACS quirk only to Root Ports

2017-10-17 Thread Vadim Lomovtsev
From: Vadim Lomovtsev This commit changes the Cavium PCI ACS quirk appliance only to Cavium CN8xxx PICe Root Ports. Current quirk implementation doesn't take into account PCIe Root Ports which needs to be quirked. So the pci device id check mask is updated accordingly to CN8xxx device identifica

Re: New Linux accelerators discussion list [was: Re: Fostering linux community collaboration on hardware accelerators]

2017-10-17 Thread Jonathan Cameron
On Tue, 17 Oct 2017 11:00:40 +1100 Andrew Donnellan wrote: > On 17/10/17 01:07, Jonathan Cameron wrote: > > > > > >>> So as ever with a linux community focusing on a particular topic, the > >>> obvious solution is a mailing list. There are a number of options on how > >>> do this. > >>> > >>>

[PATCH v3 4/5] dt-bindings: interrupt-controller: Document RTD1195

2017-10-17 Thread Andreas Färber
Add compatible strings for Realtek RTD1195. Signed-off-by: Andreas Färber --- v3: New Could be squashed into 1/5 if acked. .../devicetree/bindings/interrupt-controller/realtek,rtd119x-mux.txt| 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/interr

Re: [PATCH 00/11] KASan for arm

2017-10-17 Thread Liuwenliang (Lamb)
On 10/17/2017 7:40 PM, Abbott Liu wrote: >On Wed, Oct 11, 2017 at 03:10:56PM -0700, Laura Abbott wrote: >The decompressor does not link with the standard C library, so it >needs to provide implementations of standard C library functionality >where required. That means, if we have any memset() user

Re: [PATCH 1/9] drm/panel: simple: add a macro for defining display modes in a simpler and less error prone way

2017-10-17 Thread Thierry Reding
On Tue, Oct 17, 2017 at 02:13:37PM +0200, Lothar Waßmann wrote: > Hi, > > On Tue, 17 Oct 2017 14:08:18 +0200 Thierry Reding wrote: > > On Wed, Oct 11, 2017 at 01:23:33PM +0200, Lothar Waßmann wrote: > > > Create a macro that eases the definition of display mode parameters by > > > accecpting the p

Re: stable-rc build: 9 warnings 0 failures (stable-rc/v3.18.75-20-g4ffe554)

2017-10-17 Thread Takashi Iwai
On Tue, 17 Oct 2017 14:46:53 +0200, Arnd Bergmann wrote: > > On Tue, Oct 17, 2017 at 12:22 PM, Olof's autobuilder wrote: > > Warnings: > > > > 9 sound/usb/mixer.c:2161:27: warning: passing argument 1 of > > 'snd_usb_mixer_disconnect' from incompatible pointer type > > [-Wincompatible-poin

Re: [PATCH 3/4] char/tpm: Improve a size determination in nine functions

2017-10-17 Thread Mimi Zohar
On Tue, 2017-10-17 at 11:50 +, alexander.stef...@infineon.com wrote: > > > Replace the specification of data structures by pointer dereferences > > > as the parameter for the operator "sizeof" to make the corresponding > > > size > > > determination a bit safer according to the Linux coding sty

Re: [PATCH] reduce the time of finding symbols for module

2017-10-17 Thread Ruslan Bilovol
Hi, On 10/13/2017 04:18 PM, Torsten Duwe wrote: On Fri, Oct 13, 2017 at 03:54:46PM +0300, Ruslan Bilovol wrote: Hi Li, On Wed, Mar 29, 2017 at 4:50 AM, Li Bin wrote: Hi, [snip] Yeah, from 2014, we started to work on livepatch support on aarch64, and in May 2015, we pushed the solution to

Re: [PATCH 2/4] arm64: prevent instrumentation of LL/SC atomics

2017-10-17 Thread Mark Rutland
On Tue, Oct 17, 2017 at 12:38:14PM +0100, Will Deacon wrote: > On Tue, Oct 17, 2017 at 12:10:33PM +0100, Mark Rutland wrote: > > On Tue, Oct 17, 2017 at 11:58:58AM +0100, Will Deacon wrote: > > > On Tue, Oct 17, 2017 at 11:54:54AM +0100, Mark Rutland wrote: > > > > On Tue, Oct 17, 2017 at 11:03:15A

Re: [PATCH 3/9] drm/panel: simple: make it possible to override LCD bus format

2017-10-17 Thread Thierry Reding
On Tue, Oct 17, 2017 at 02:44:23PM +0200, Lothar Waßmann wrote: > Hi, > > On Tue, 17 Oct 2017 14:12:40 +0200 Thierry Reding wrote: > > On Wed, Oct 11, 2017 at 01:23:35PM +0200, Lothar Waßmann wrote: > > > The baseboards for the Ka-Ro electronics series of i.MX modules > > > use a 24bit LCD interfa

Re: New Linux accelerators discussion list [was: Re: Fostering linux community collaboration on hardware accelerators]

2017-10-17 Thread Jonathan Cameron
+ linux-accelerat...@lists.ozlabs.org Seems sensible to have this email actually go to the new list so at least it appears in the archive. Sorry all, I should have thought of this before pressing send, Jonathan On Tue, 17 Oct 2017 13:48:10 +0100 Jonathan Cameron wrote: > On Tue, 17 Oct 2017 1

Re: [PATCH 1/2] fs, elf: drop MAP_FIXED usage from elf_map

2017-10-17 Thread Michal Hocko
On Tue 17-10-17 20:26:14, Baoquan He wrote: > Hi Michal, > > Earlier I posted a patchset to clean up these in a different way, but > patches sent to your below mail address are all rejected. > > : host mail.kerne.org[104.131.33.237] said: 454 4.1.1 > : Recipient address rejected: User unknown

Re: [PATCH 3/4] char/tpm: Improve a size determination in nine functions

2017-10-17 Thread Julia Lawall
On Tue, 17 Oct 2017, Mimi Zohar wrote: > On Tue, 2017-10-17 at 11:50 +, alexander.stef...@infineon.com > wrote: > > > > Replace the specification of data structures by pointer dereferences > > > > as the parameter for the operator "sizeof" to make the corresponding > > > > size > > > > deter

Re: [PATCH] perf vendor events arm64: Add hip08 implementation defined PMU core events

2017-10-17 Thread Will Deacon
Hi Shaokun, Thanks for the patch. One comment below. On Tue, Oct 17, 2017 at 03:01:39PM +0800, Shaokun Zhang wrote: > This is a short list of useful implementation defined PMU events of > hip08, other supported events are not listed in this JSON file. > > This patch is dependent on Cavium's patc

Re: linux-next: manual merge of the net-next tree with the net tree

2017-10-17 Thread Mark Brown
On Tue, Oct 17, 2017 at 02:30:29PM +0300, Sergei Shtylyov wrote: > > diff --cc drivers/net/dsa/mv88e6060.c > > index f123ed57630d,6173be889d95.. > > --- a/drivers/net/dsa/mv88e6060.c > > +++ b/drivers/net/dsa/mv88e6060.c >Your mail ends here. Yes, that's the resulting diff. sig

Re: [RESEND][PATCH 1/4] of: platform: populate /firmware/ node from of_platform_default_populate_init()

2017-10-17 Thread Rob Herring
On Thu, Sep 28, 2017 at 5:45 AM, Sudeep Holla wrote: > Since "/firmware" does not have its own "compatible" property as it's > just collection of nodes representing firmware interface, it's sub-nodes > are not populated during system initialization. > > Currently different firmware drivers search

Re: [PATCH 1/2] mm: drop migrate type checks from has_unmovable_pages

2017-10-17 Thread Vlastimil Babka
On 10/13/2017 02:00 PM, Michal Hocko wrote: > From: Michal Hocko > > Michael has noticed that the memory offline tries to migrate kernel code > pages when doing > echo 0 > /sys/devices/system/memory/memory0/online > > The current implementation will fail the operation after several failed > pag

Re: [PATCH 3/4] char/tpm: Improve a size determination in nine functions

2017-10-17 Thread Andy Shevchenko
On Tue, 2017-10-17 at 08:52 -0400, Mimi Zohar wrote: > On Tue, 2017-10-17 at 11:50 +, alexander.stef...@infineon.com > wrote: > > > > Replace the specification of data structures by pointer > > > > dereferences > > > > as the parameter for the operator "sizeof" to make the > > > > corresponding

[PATCH v4 5/5] reset: zx2967: use the reset-simple driver

2017-10-17 Thread Philipp Zabel
The reset-simple driver can be used without changes. Signed-off-by: Philipp Zabel Reviewed-by: Alexandru Gagniuc --- MAINTAINERS | 1 - drivers/reset/Kconfig| 10 + drivers/reset/Makefile | 1 - drivers/reset/reset-simple.c | 2 + drivers/reset/reset-zx2967

[PATCH v4 0/5] Unify simple reset drivers

2017-10-17 Thread Philipp Zabel
Hi, This series introduces common reset ops for simple reset controllers. "Simple" in this context means that they allow to directly control reset lines by setting and clearing bits in a single register or in a contiguous register range that is exclusive to the reset controller. Parts of the sunx

Re: [PATCH 2/2] mm, page_alloc: fail has_unmovable_pages when seeing reserved pages

2017-10-17 Thread Vlastimil Babka
On 10/13/2017 02:07 PM, Michal Hocko wrote: > On Fri 13-10-17 14:04:08, Vlastimil Babka wrote: >> On 10/13/2017 02:00 PM, Michal Hocko wrote: >>> From: Michal Hocko >>> >>> Reserved pages should be completely ignored by the core mm because they >>> have a special meaning for their owners. has_unmo

Re: [PATCH 04/11] Define the virtual space of KASan's shadow region

2017-10-17 Thread Liuwenliang (Lamb)
On 10/17/2017 8:45 PM, Abbott Liu wrote: >What I said was > >'if the value of TASK_SIZE fits its 12-bit immediate field' > >and your value of TASK_SIZE is 0xb6e0, which cannot be decomposed in the >right way. > >If you build with KASAN disabled, it will generate a mov instruction instead. Tha

[PATCH v4 4/5] reset: stm32: use the reset-simple driver

2017-10-17 Thread Philipp Zabel
The reset-simple driver can be used without changes. Signed-off-by: Philipp Zabel Acked-by: Gabriel Fernandez --- drivers/reset/Kconfig| 11 ++--- drivers/reset/Makefile | 1 - drivers/reset/reset-simple.c | 1 + drivers/reset/reset-stm32.c | 108

[PATCH v4 1/5] reset: add reset-simple to unify socfpga, stm32, sunxi, and zx2967

2017-10-17 Thread Philipp Zabel
Copy reusable parts from the sunxi driver, to add a driver for simple reset controllers with reset lines that can be controlled by toggling bits in exclusive, contiguous register ranges using read-modify-write cycles under a spinlock. The following patches will replace compatible reset drivers wit

[PATCH v4 2/5] reset: sunxi: use reset-simple driver

2017-10-17 Thread Philipp Zabel
Use the newly created copies in the reset-simple driver to replace the sunxi platform driver code and reset operations. The separate sunxi driver still remains to register the early reset controllers, but it reuses the reset operations in reset-simple. Signed-off-by: Philipp Zabel Reviewed-by: Al

[PATCH v4 3/5] reset: socfpga: use the reset-simple driver

2017-10-17 Thread Philipp Zabel
Add reset line status readback, inverted status support, and socfpga device tree quirks to the simple reset driver, and use it to replace the socfpga driver. Signed-off-by: Philipp Zabel --- Changes since v3: - Rebased onto reset/next - Only warn about missing altr,modrst-offset property on soc

Re: [PATCH 2/9] drm/panel: simple: simplify display_mode definitions by using macro

2017-10-17 Thread Lothar Waßmann
Hi, On Tue, 17 Oct 2017 14:09:37 +0200 Thierry Reding wrote: > On Wed, Oct 11, 2017 at 01:23:34PM +0200, Lothar Waßmann wrote: > > Use the newly defined macro to generate the display_mode data entries > > for all panels. This reduces the code size significantly and makes the > > code more readable

Re: [PATCH] reduce the time of finding symbols for module

2017-10-17 Thread Torsten Duwe
On Tue, Oct 17, 2017 at 03:44:21PM +0300, Ruslan Bilovol wrote: > On 10/13/2017 04:18 PM, Torsten Duwe wrote: > > > > I also have the coresponding kernel patch(es) here. IIRC I already sent > > tham to LKML. I'll re-send them once there are more gcc's with > > -fpatchable-function-entry > > suppo

Re: [PATCH] video: fbdev: pxa3xx_gcu: Use setup_timer and mod_timer

2017-10-17 Thread Bartlomiej Zolnierkiewicz
On Friday, September 29, 2017 01:46:31 AM Himanshu Jha wrote: > Use setup_timer and mod_timer API instead of structure assignments. > > This is done using Coccinelle and semantic patch used > for this as follows: > > @@ > expression x,y,z,a,b; > @@ > > -init_timer (&x); > +setup_timer (&x, y, z

Re: [PATCH 2/9] drm/panel: simple: simplify display_mode definitions by using macro

2017-10-17 Thread Thierry Reding
On Tue, Oct 17, 2017 at 03:05:16PM +0200, Lothar Waßmann wrote: > Hi, > > On Tue, 17 Oct 2017 14:09:37 +0200 Thierry Reding wrote: > > On Wed, Oct 11, 2017 at 01:23:34PM +0200, Lothar Waßmann wrote: > > > Use the newly defined macro to generate the display_mode data entries > > > for all panels. T

Re: [Xen-devel] [PATCH 11/13] x86/paravirt: Add paravirt alternatives infrastructure

2017-10-17 Thread Brian Gerst
On Mon, Oct 16, 2017 at 2:18 PM, Boris Ostrovsky wrote: > On 10/12/2017 03:53 PM, Boris Ostrovsky wrote: >> On 10/12/2017 03:27 PM, Andrew Cooper wrote: >>> On 12/10/17 20:11, Boris Ostrovsky wrote: There is also another problem: [1.312425] general protection fault: [#1] SM

Re: [PATCH 1/1] drivers:video: use setup_timer

2017-10-17 Thread Bartlomiej Zolnierkiewicz
Hi, On Thursday, September 21, 2017 04:35:31 PM Allen Pais wrote: > Use setup_timer function instead of initializing timer with the > function and data fields. > > Signed-off-by: Allen Pais Thanks for the patch but I've ended applying a bit more complete one from Himanshu Jha: https:/

Re: [PATCH v9 00/20] simplify crypto wait for async op

2017-10-17 Thread Herbert Xu
On Tue, Oct 17, 2017 at 02:55:21PM +0300, Gilad Ben-Yossef wrote: > > Would you mind if we used ENOSPC instead of E2BIG? > > "No space left on device" seems more appropriate than > "Argument list too long". It's fine by me. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~he

Re: [f2fs-dev] [PATCH] f2fs: return error number for quota_write

2017-10-17 Thread Chao Yu
On 2017/10/17 7:04, Jaegeuk Kim wrote: > On 10/16, Chao Yu wrote: >> Hi Jaegeuk, >> >> On 2017/10/13 7:15, Jaegeuk Kim wrote: >>> This patch returns an error number to quota_write in order for quota to >>> handle >>> it correctly. >> >> We should return error number like __generic_file_write_ite

[PATCH v3 0/2] staging: atomisp: memory allocation cleanups

2017-10-17 Thread Aishwarya Pant
Patch series performs minor code cleanups using coccinelle to simplify memory allocation tests and remove redundant OOM log messages. Changes in v3: Rebase changes over atomisp-next branch of the media tree Changes in v2: Rebase and re-send patches Aishwarya Pant (2): staging: atomisp2: cleanup

Re: next/master build: 214 builds: 29 failed, 185 passed, 29 errors, 68 warnings (next-20171016)

2017-10-17 Thread David Sterba
On Tue, Oct 17, 2017 at 11:00:04AM +0200, Arnd Bergmann wrote: > > 2 fs/btrfs/tree-checker.c:186:4: warning: format '%lu' expects argument of > > type 'long unsigned int', but argument 6 has type 'unsigned int' [-Wformat=] > > 1 fs/btrfs/tree-checker.c:186:70: warning: format '%lu' expects argumen

[PATCH v3 1/2] staging: atomisp2: cleanup null check on memory allocation

2017-10-17 Thread Aishwarya Pant
For memory allocation functions that fail with a NULL return value, it is preferred to use the (!x) test in place of (x == NULL). Changes in atomisp2/css2400/sh_css.c were done by hand. Done with the help of the following cocci script: @@ type T; T* p; statement s,s1; @@ p = \(devm_kzalloc\|d

[PATCH v3 2/2] staging: atomisp: cleanup out of memory messages

2017-10-17 Thread Aishwarya Pant
Logging of explicit out of memory messages is redundant since memory allocation failures produce a backtrace. Done with the help of the following cocci script: @@ expression ex, ret; statement s; constant char[] c; constant err; identifier f, l; @@ ex = \(kmalloc\|kmalloc_array\|kzalloc\|kcalloc

Re: [f2fs-dev] [PATCH] f2fs: avoid stale fi->gdirty_list pointer

2017-10-17 Thread Chao Yu
On 2017/10/17 7:06, Jaegeuk Kim wrote: > On 10/16, Chao Yu wrote: >> On 2017/10/13 10:14, Jaegeuk Kim wrote: >>> When doing fault injection test, f2fs_evict_inode() didn't remove >>> gdirty_list >>> which incurs a kernel panic due to wrong pointer access. >>> >>> Signed-off-by: Jaegeuk Kim >> >>

Re: [PATCH 2/9] drm/panel: simple: simplify display_mode definitions by using macro

2017-10-17 Thread Lothar Waßmann
Hi, On Tue, 17 Oct 2017 15:08:31 +0200 Thierry Reding wrote: > On Tue, Oct 17, 2017 at 03:05:16PM +0200, Lothar Waßmann wrote: > > Hi, > > > > On Tue, 17 Oct 2017 14:09:37 +0200 Thierry Reding wrote: > > > On Wed, Oct 11, 2017 at 01:23:34PM +0200, Lothar Waßmann wrote: > > > > Use the newly defin

[PATCH 0/3] iio: adc: stm32: Add support for differential channels

2017-10-17 Thread Fabrice Gasnier
Add support for differential channels that can be found on STM32H7 ADC: - Introduce new DT property 'st,adc-diff-channels'. - Slightly rework single-ended channels definition in stm32-adc driver. - Add support for differential channels to stm32-adc driver. Fabrice Gasnier (3): dt-bindings: iio:

[PATCH 3/3] iio: adc: stm32: add support for differential channels

2017-10-17 Thread Fabrice Gasnier
STM32H7 ADC channels can be configured either as single ended or differential with 'st,adc-channels' or 'st,adc-diff-channels' (positive and negative input pair: , ...). Differential channels have different offset and scale, from spec: raw value = (full_scale / 2) * (1 + (vinp - vinn) / vref). Add

[PATCH 1/3] dt-bindings: iio: adc: stm32: add support for diff channels

2017-10-17 Thread Fabrice Gasnier
STM32H7 ADC channels may be configured either as single-ended or differential. Add 'st,adc-diff-channels' property to support differential channels. Differential channels are defined as a pair of positive and negative inputs: vinp & vinn. Signed-off-by: Fabrice Gasnier --- Documentation/devicetr

[PATCH 2/3] iio: adc: stm32: remove const channel names definition

2017-10-17 Thread Fabrice Gasnier
Remove const array that defines channels. Build channels definition at probe time, when initializing channels (only for requested ones). This will ease adding differential channels support. Signed-off-by: Fabrice Gasnier --- drivers/iio/adc/stm32-adc.c | 66 ++

Re: [PATCH] i2c: stm32: Fixes multibyte transfer for STM32F4 I2C controller

2017-10-17 Thread Pierre Yves MORDRET
On 10/12/2017 11:55 AM, Radosław Pietrzyk wrote: > It looks like there is a use case when IRQ handler is delayed a bit > and the logic in the driver does not work. What is the real root cause > I don't know. > As far as I know on this STM32 F4 platform there is some trouble with timer events th

Re: [PATCH 4.13 00/53] 4.13.8-stable review

2017-10-17 Thread Greg Kroah-Hartman
On Mon, Oct 16, 2017 at 05:25:45PM -0700, Guenter Roeck wrote: > On 10/16/2017 09:15 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.13.8 release. > > There are 53 patches in this series, all will be posted as a response > > to this one. If anyone has any i

Re: [RFC PATCH 3/3] mm/map_contig: Add mmap(MAP_CONTIG) support

2017-10-17 Thread Michal Nazarewicz
On Tue, Oct 17 2017, Guy Shattah wrote: > Are you going to be OK with kernel API which implements contiguous > memory allocation? Possibly with mmap style? Many drivers could > utilize it instead of having their own weird and possibly non-standard > way to allocate contiguous memory. Such API wo

Re: [PATCH 3.18 00/19] 3.18.76-stable review

2017-10-17 Thread Greg Kroah-Hartman
On Mon, Oct 16, 2017 at 04:20:30PM -0700, kernelci.org bot wrote: > stable-rc/linux-3.18.y boot: 39 boots: 3 failed, 36 passed > (v3.18.75-20-g4ffe55402429) > > Full Boot Summary: > https://kernelci.org/boot/all/job/stable-rc/branch/linux-3.18.y/kernel/v3.18.75-20-g4ffe55402429/ > Full Build Sum

Re: [PATCH 1/2] fs, elf: drop MAP_FIXED usage from elf_map

2017-10-17 Thread Baoquan He
On 10/17/17 at 02:56pm, Michal Hocko wrote: > On Tue 17-10-17 20:26:14, Baoquan He wrote: > > Hi Michal, > > > > Earlier I posted a patchset to clean up these in a different way, but > > patches sent to your below mail address are all rejected. > > > > : host mail.kerne.org[104.131.33.237] said:

Re: [bug report & help] arm64: ltp testcase "migrate_pages01" failed

2017-10-17 Thread Yisheng Xie
Hi Will, On 2017/10/17 17:23, Will Deacon wrote: > On Tue, Oct 17, 2017 at 10:58:53AM +0800, Tan Xiaojun wrote: >> I'm not sure if this is the problem on arm64 numa. What do you think ? >> By the way, this testcase can be successful in any case on x86. > > To be honest, this isn't a particularly

Re: [PATCH v3 1/7] ACPI/PPTT: Add Processor Properties Topology Table parsing

2017-10-17 Thread Tomasz Nowicki
Hi Jeremy, I did second round of review and have some more comments, please see below: On 12.10.2017 21:48, Jeremy Linton wrote: ACPI 6.2 adds a new table, which describes how processing units are related to each other in tree like fashion. Caches are also sprinkled throughout the tree and desc

Re: [PATCH] usb/gadget/snps_udc_core: Convert timers to use timer_setup()

2017-10-17 Thread Michal Nazarewicz
On Mon, Oct 16 2017, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > If the probe fails, udc_remove() will not be called, so there

Re: [PATCH 01/12] PM / core: Add NEVER_SKIP and SMART_PREPARE driver flags

2017-10-17 Thread Greg Kroah-Hartman
On Tue, Oct 17, 2017 at 12:07:37AM +0200, Rafael J. Wysocki wrote: > On Monday, October 16, 2017 8:31:22 AM CEST Greg Kroah-Hartman wrote: > > On Mon, Oct 16, 2017 at 03:29:02AM +0200, Rafael J. Wysocki wrote: > > > +static inline void dev_pm_set_driver_flags(struct device *dev, unsigned > > > int

Re: [PATCH] kobject: record and send PREV_SEQNUM with uevents

2017-10-17 Thread Greg KH
On Tue, Oct 17, 2017 at 12:04:41PM +0200, Peter Rajnoha wrote: > On 10/16/2017 04:49 PM, Greg KH wrote: > > On Mon, Oct 16, 2017 at 04:00:26PM +0200, Peter Rajnoha wrote: > >> On 10/16/2017 03:55 PM, Greg KH wrote: > >>> On Mon, Oct 16, 2017 at 02:35:44PM +0200, Peter Rajnoha wrote: > Record l

Re: [PATCH v4 2/5] reset: sunxi: use reset-simple driver

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 9:03 PM, Philipp Zabel wrote: > Use the newly created copies in the reset-simple driver to replace the > sunxi platform driver code and reset operations. The separate sunxi > driver still remains to register the early reset controllers, but it > reuses the reset operations

Re: [PATCH v4 1/5] reset: add reset-simple to unify socfpga, stm32, sunxi, and zx2967

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 9:03 PM, Philipp Zabel wrote: > Copy reusable parts from the sunxi driver, to add a driver for simple > reset controllers with reset lines that can be controlled by toggling > bits in exclusive, contiguous register ranges using read-modify-write > cycles under a spinlock. >

[PATCH] MIPS: Boston: Fix earlycon baud rate selection

2017-10-17 Thread Matt Redfearn
During set up of the early console, the earlycon driver will attempt to configure a baud rate, if one is set in the earlycon structure. Previously, of_setup_earlycon left this field as 0, ignoring any baud rate selected by the DT. Commit 31cb9a8575ca ("earlycon: initialise baud field of earlycon de

[PATCH] perf tools: Fix crash on buildid-list with namespace

2017-10-17 Thread Namhyung Kim
Thomas reported that perf buildid-list gets a segfault due to NULL pointer when he ran it on a data with namespace events. It was because the buildid_id__mark_dso_hit_ops lacks the namespace event handler and perf_too__fill_default() didn't set it. Program received signal SIGSEGV, Segmentation

Re: [PATCH v2] printk: hash addresses printed with %p

2017-10-17 Thread Steven Rostedt
On Tue, 17 Oct 2017 15:52:51 +1100 "Tobin C. Harding" wrote: > Currently there are many places in the kernel where addresses are being > printed using an unadorned %p. Kernel pointers should be printed using > %pK allowing some control via the kptr_restrict sysctl. Exposing addresses > gives atta

Re: [PATCH 1/2] fs, elf: drop MAP_FIXED usage from elf_map

2017-10-17 Thread Michal Hocko
On Tue 17-10-17 21:22:46, Baoquan He wrote: [...] > And as I said before, then we will still have the > ungraceful 'mapping total'|'unmapping the rest' method. yes I haven't touched this part and I guess you are right it can be removed now, but this was not my primary concern to adddress so there

Re: [f2fs-dev] [PATCH] f2fs: handle error case when adding xattr entry

2017-10-17 Thread Chao Yu
On 2017/10/17 7:06, Jaegeuk Kim wrote: > This patch fixes recovering incomplete xattr entries remaining in inline xattr > and xattr block, caused by any kind of errors. > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/xattr.c | 48 > 1 file changed,

Re: [PATCH 01/11] Initialize the mapping of KASan shadow memory

2017-10-17 Thread Liuwenliang (Lamb)
2017.10.12 05:42 AM Russell King - ARM Linux [mailto:li...@armlinux.org.uk] wrote: >> Please don't make this "exclusive" just conditionally call >> kasan_early_init(), remove the call to start_kernel from >> kasan_early_init and keep the call to start_kernel here. >iow: > >#ifdef CONFIG_KASAN

Re: [Part1 PATCH v6 16/17] X86/KVM: Decrypt shared per-cpu variables when SEV is active

2017-10-17 Thread Borislav Petkov
On Tue, Oct 17, 2017 at 06:54:52AM -0500, Brijesh Singh wrote: > Will do. Do you want me to send v7 with that addressed. Because this > require changes in 3 patches (PATCH 14, 16, 17) Just send me those three first as a reply to the thread so that I can test the whole queue everywhere. Or even bet

Re: [f2fs-dev] [PATCH] f2fs: use extra parenthesis around assignment/condition

2017-10-17 Thread Chao Yu
On 2017/10/17 17:07, Arnd Bergmann wrote: > gcc warns that writing a while() loop with an assignment as the condition > looks suspiciously like a comparison, and suggests a workaround: > > fs/f2fs/checkpoint.c: In function 'sync_meta_pages': > fs/f2fs/checkpoint.c:321:9: error: suggest parentheses

Re: [PATCH v4 pci 0/2] PCI/MSI: pci-xgene-msi: Enable MSI support in ACPI boot for X-Gene v1

2017-10-17 Thread Lorenzo Pieralisi
Hi Khuong, On Mon, Oct 16, 2017 at 02:19:50PM -0700, Khuong Dinh wrote: > Hi Lorenzo, > Do you have any comments for this patch? I'd have some comments but given that there are related issues with ACPI probe ordering that Marc is trying to solve on his side - I will work with him to see if we c

Re: [PATCH 1/2] fs, elf: drop MAP_FIXED usage from elf_map

2017-10-17 Thread Baoquan He
On 10/17/17 at 03:33pm, Michal Hocko wrote: > On Tue 17-10-17 21:22:46, Baoquan He wrote: > [...] > > And as I said before, then we will still have the > > ungraceful 'mapping total'|'unmapping the rest' method. > > yes I haven't touched this part and I guess you are right it can be > removed now,

[PATCH v1] dmaengine: stm32_mdma: activate pack/unpack feature

2017-10-17 Thread Pierre-Yves MORDRET
If source and destination bus width differs pack/unpack MDMA feature has to be activated for alignment. This pack/unpack feature implies to have both source/destination address and buffer length aligned on bus width. Fixes: a4ffb13c8946 ("dmaengine: Add STM32 MDMA driver") Signed-off-by: Pierre-Yv

Re: [RFC PATCH for 4.15 14/14] Restartable sequences: Provide self-tests

2017-10-17 Thread Mathieu Desnoyers
- On Oct 17, 2017, at 6:36 AM, Michael Ellerman m...@ellerman.id.au wrote: > Mathieu Desnoyers writes: > >> Hi Michael, >> >> With your changes integrated, both rseq and cpu-opv selftests fail to >> build if I pass e.g. -j32 to make. >> >> cd tools/testing/selftests/cpu-opv >> >> efficios@co

Re: [RFC PATCH for 4.15 14/14] Restartable sequences: Provide self-tests

2017-10-17 Thread Mathieu Desnoyers
- On Oct 17, 2017, at 6:38 AM, Michael Ellerman m...@ellerman.id.au wrote: > Mathieu Desnoyers writes: > >> - On Oct 15, 2017, at 10:51 PM, Michael Ellerman m...@ellerman.id.au >> wrote: >> >>> Mathieu Desnoyers writes: >>> Implements two basic tests of RSEQ functionality, and on

Re: [PATCH] ACPI / APEI: Convert timers to use timer_setup()

2017-10-17 Thread Tyler Baicar
On 10/16/2017 7:21 PM, Kees Cook wrote: In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "Rafael J. Wysocki" Cc: Len Brown Cc: Tony Luck Cc: Borisla

[PATCH v7 1/4] arm64: kvm: route synchronous external abort exceptions to EL2

2017-10-17 Thread Dongjiu Geng
ARMv8.2 adds a new bit HCR_EL2.TEA which controls to route synchronous external aborts to EL2, and adds a trap control bit HCR_EL2.TERR which controls to trap all Non-secure EL1&0 error record accesses to EL2. This patch enables the two bits for the guest OS. when an synchronous abort is generated

[PATCH v7 2/4] arm64: kvm: Introduce KVM_ARM_SET_SERROR_ESR ioctl

2017-10-17 Thread Dongjiu Geng
On ARM64 SError syndrome value is specific to the model being emulated for the guest and user space needs a way to tell the kernel this value. userspace can specify different value to affect guest OS error recovery behaviour. We make this API ARM-specific as we haven't yet reached a consensus for

Re: [PATCH v3 2/2] livepatch: add atomic replace

2017-10-17 Thread Miroslav Benes
On Tue, 17 Oct 2017, Miroslav Benes wrote: > On Tue, 10 Oct 2017, Jason Baron wrote: > > > > > > > On 10/06/2017 06:32 PM, Josh Poimboeuf wrote: > > > On Wed, Sep 27, 2017 at 11:41:30PM -0400, Jason Baron wrote: > > >> Since 'atomic replace' has completely replaced all previous livepatch > > >>

Re: [PATCH -mm] mm, swap: Fix race between swap count continuation operations

2017-10-17 Thread Huang, Ying
Michal Hocko writes: > On Tue 17-10-17 16:13:20, Huang, Ying wrote: >> From: Huang Ying >> >> One page may store a set of entries of the >> sis->swap_map (swap_info_struct->swap_map) in multiple swap clusters. >> If some of the entries has sis->swap_map[offset] > SWAP_MAP_MAX, >> multiple pages

Re: [PATCH] i2c: stm32: Fixes multibyte transfer for STM32F4 I2C controller

2017-10-17 Thread Radosław Pietrzyk
I can try of course but it means that any IRQ delay may cause the same problem so the question is whether the driver should be vulnerable to such use cases. 2017-10-17 15:18 GMT+02:00 Pierre Yves MORDRET : > > > On 10/12/2017 11:55 AM, Radosław Pietrzyk wrote: >> It looks like there is a use case

[PATCH v7 0/4] Add RAS virtualization support

2017-10-17 Thread Dongjiu Geng
In the firmware-first RAS solution, corrupt data is detected in a memory location when guest OS application software executing at EL0 or guest OS kernel El1 software are reading from the memory. The memory node records errors into an accessible system registers. Because SCR_EL3.EA is 1, then CPU w

[PATCH v7 4/4] arm64: kvm: handle SEI notification for guest

2017-10-17 Thread Dongjiu Geng
when KVM received SError, it firstly classified the error according to [ESR_ELx.AET]. If the SEI is Uncategorized or IMPLEMENTATION DEFINED directly inject virtual SError with IMPLEMENTATION DEFINED syndrome. If the SError error is not propagated, then let host to handle it. Because usually the ad

[PATCH v7 3/4] arm64: kvm: Set Virtual SError Exception Syndrome for guest

2017-10-17 Thread Dongjiu Geng
RAS Extension add a VSESR_EL2 register which can provides the syndrome value reported to software on taking a virtual SError interrupt exception. This patch supports to specify this Syndrome. In the RAS Extensions we can not set all-zero syndrome value for SError, which means 'RAS error: Uncategor

[ANNOUNCE] v4.11.12-rt16

2017-10-17 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v4.11.12-rt16 patch set. Changes since v4.11.12-rt15: - Paul Gortmaker reported, that the unstable-TSC fixup on x86 need one additional patch from upstream. - Apparmor is protecting per-CPU variables with preempt-disable resulting in "slee

Re: [PATCH -mm] mm, pagemap: Fix soft dirty marking for PMD migration entry

2017-10-17 Thread Huang, Ying
Zi Yan writes: > Huang, Ying wrote: >> "Kirill A. Shutemov" writes: >> >>> On Tue, Oct 17, 2017 at 04:18:18PM +0800, Huang, Ying wrote: From: Huang Ying Now, when the page table is walked in the implementation of /proc//pagemap, pmd_soft_dirty() is used for both the PMD hug

Re: [PATCH 4/4] arm64: vdso: remove pointless gcov option

2017-10-17 Thread Mark Rutland
On Mon, Oct 16, 2017 at 02:24:40PM +0100, Mark Rutland wrote: > The arm64 VDSO Makefile explicitly disables gcov; a practice we seem to > have inherited from other VDSO Makefiles. > > The arm64 VDSO is written entirely in assembly, so this is not > necessary. Further, if the VDSO were written in C

Re: [PATCH] video: fbdev: mxsfb: fix pixelclock polarity

2017-10-17 Thread Bartlomiej Zolnierkiewicz
Hi, Stefan/Shawn: Should I merge this patch? It seems to be still needed: https://www.spinics.net/lists/linux-fbdev/msg23112.html Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics On Friday, May 06, 2016 01:29:59 PM Stefan Agner wrote: > Hi Shawn, >

Re: [PATCH v3 2/5] irqchip: Add Realtek RTD1295 mux driver

2017-10-17 Thread Thomas Gleixner
On Tue, 17 Oct 2017, Andreas Färber wrote: > + > +struct rtd119x_irq_mux_info { > + unsigned isr_offset; > + unsigned umsk_isr_offset; > + unsigned scpu_int_en_offset; > + const u32 *isr_to_scpu_int_en_mask; Please use 'unsigned int' instead of the shorthand 'unsigned' and while at

[PATCH RESEND v2] arm/arm64: KVM: set right LR register value for 32 bit guest when inject abort

2017-10-17 Thread Dongjiu Geng
When a exception is trapped to EL2, hardware uses ELR_ELx to hold the current fault instruction address. If KVM wants to inject a abort to 32 bit guest, it needs to set the LR register for the guest to emulate this abort happened in the guest. Because ARM32 architecture is pipelined execution, so

Re: [Xen-devel] [PATCH 11/13] x86/paravirt: Add paravirt alternatives infrastructure

2017-10-17 Thread Boris Ostrovsky
On 10/17/2017 01:24 AM, Josh Poimboeuf wrote: > On Mon, Oct 16, 2017 at 02:18:48PM -0400, Boris Ostrovsky wrote: >> On 10/12/2017 03:53 PM, Boris Ostrovsky wrote: >>> On 10/12/2017 03:27 PM, Andrew Cooper wrote: On 12/10/17 20:11, Boris Ostrovsky wrote: > There is also another problem: >>>

Re: [PATCH v3 2/4] Add fp argument to print functions

2017-10-17 Thread Arnaldo Carvalho de Melo
Em Thu, Oct 12, 2017 at 02:23:58AM +0800, ufo19890607 escreveu: > From: yuzhoujian > > This patch will add the fp argument to all the print functions so that they > can use different > file pointer to print on the screen or dump in the file. > > Changes since v2: > - none > > Changes since v1:

[PATCH] fat: remove redundant assignment of 0 to slots

2017-10-17 Thread Colin King
From: Colin Ian King The variable slots is being assigned a value of zero that is never read, slots is being updated again a few lines later. Remove this redundant assignment. Cleans clang warning: Value stored to 'slots' is never read Signed-off-by: Colin Ian King --- fs/fat/dir.c | 1 - 1 fi

Re: [PATCH] arm64: KVM: set right LR register value for 32 bit guest when inject abort

2017-10-17 Thread gengdongjiu
Hi Christoffer On 2017/10/17 3:59, Christoffer Dall wrote: > On Mon, Oct 16, 2017 at 04:10:01PM +, gengdongjiu wrote: >> Hi Marc, >> >>> >>> Please also update the 32bit code accordingly, as it looks broken too. >> >> I have updated the 32 bit code according, in my hand, there is no arm32 host

Re: [PATCH] of: dynamic: fix memory leak related to properties of __of_node_dup

2017-10-17 Thread Rob Herring
On Fri, Oct 13, 2017 at 7:59 PM, Frank Rowand wrote: > On 10/13/17 13:47, Rob Herring wrote: >> On Thu, Oct 12, 2017 at 8:42 PM, alawang wrote: >>> It is possible a node was dynamically allocated but without any >>> property. The properies will be got from devices and added to the >>> node when d

Re: [PATCH] perf tools: Fix crash on buildid-list with namespace

2017-10-17 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 17, 2017 at 10:29:00PM +0900, Namhyung Kim escreveu: > Thomas reported that perf buildid-list gets a segfault due to NULL > pointer when he ran it on a data with namespace events. It was because > the buildid_id__mark_dso_hit_ops lacks the namespace event handler and > perf_too__fill_d

Re: [Xen-devel] [PATCH 11/13] x86/paravirt: Add paravirt alternatives infrastructure

2017-10-17 Thread Boris Ostrovsky
On 10/17/2017 09:10 AM, Brian Gerst wrote: > On Mon, Oct 16, 2017 at 2:18 PM, Boris Ostrovsky > wrote: >> >> Replacing the macro with >> >> #define PV_INDIRECT(addr) *addr // well, it's not so much >> indirect anymore >> >> makes things work. Or maybe it can be adjusted top be kept truly in

Re: [PATCH v5 1/2] acpi: apei: remove the unused dead-code for SEA/NMI notification type

2017-10-17 Thread Tyler Baicar
On 10/17/2017 4:02 AM, Dongjiu Geng wrote: For the SEA notification, the two functions ghes_sea_add() and ghes_sea_remove() are only called when CONFIG_ACPI_APEI_SEA is defined. If not, it will return errors in the ghes_probe() and not continue. If the probe is failed, the ghes_sea_remove() also

Re: [PATCH] of: overlay: fix memory leak related to duplicated property

2017-10-17 Thread Rob Herring
On Mon, Oct 16, 2017 at 4:54 AM, Lixin Wang wrote: > From: alawang > > Function of_changeset_add_property or of_changeset_update_property may > fails. In this case the property just allocated is never deallocated. > > Signed-off-by: Lixin Wang > --- > drivers/of/overlay.c | 15 +++ >

Re: [PATCH 3.18 08/19] ALSA: usb-audio: Kill stray URB at exiting

2017-10-17 Thread Greg Kroah-Hartman
On Mon, Oct 16, 2017 at 08:50:02PM +0200, Takashi Iwai wrote: > On Mon, 16 Oct 2017 18:11:59 +0200, > Greg Kroah-Hartman wrote: > > > > 3.18-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Takashi Iwai > > > > commit 124751d5e63c

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