Re: [PATCH v2 02/18] clk: intel: Add clock driver for Intel MIPS SoCs

2018-08-28 Thread Zhu, Yi Xin
On 8/28/2018 3:09 AM, Stephen Boyd wrote: Quoting yixin zhu (2018-08-08 01:52:20) On 8/8/2018 1:50 PM, Stephen Boyd wrote: Quoting Songjun Wu (2018-08-02 20:02:21) + struct clk *clk; + int idx; + + for (idx = 0; idx < nr_clks; idx++, osc++) { + if (!osc->dt_fr

[PATCH] ARM: configs: add generic resistive touchscreen

2018-08-28 Thread Eugen Hristev
Add generic resistive touchscreen CONFIG_TOUCHSCREEN_ADC to defconfigs Signed-off-by: Eugen Hristev --- arch/arm/configs/multi_v7_defconfig | 1 + arch/arm/configs/sama5_defconfig| 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/mul

Re: [PATCH] dt-binding: arm/cpus.txt: fix dynamic-power-coefficient unit

2018-08-28 Thread Vincent Guittot
On Tue, 28 Aug 2018 at 16:42, Punit Agrawal wrote: > > Vincent Guittot writes: > > > Hi Amit, > > > > On Wed, 22 Aug 2018 at 12:11, Punit Agrawal wrote: > >> > >> Hi Vincent, > >> > >> Thanks for the patch. One comment about the choice of units below. > >> > >> Vincent Guittot writes: > >> > >>

[PATCH] spi: tegra20-slink: explicitly enable/disable clock

2018-08-28 Thread Marcel Ziswiler
From: Marcel Ziswiler Depending on the SPI instance one may get an interrupt storm upon requesting resp. interrupt unless the clock is explicitly enabled beforehand. This has been observed trying to bring up instance 4 on T20. Signed-off-by: Marcel Ziswiler --- drivers/spi/spi-tegra20-slink.

Re: [PATCH 1/4] iio: gyro: add support for fxas21002c

2018-08-28 Thread Afonso Bordado
On Mon, 2018-08-27 at 18:08 +0100, Jonathan Cameron wrote: > On Sat, 25 Aug 2018 22:19:07 +0100 > Afonso Bordado wrote: > > > FXAS21002C is a 3 axis gyroscope with integrated temperature sensor > > > > Signed-off-by: Afonso Bordado > > Hi, > > Driver is pretty clean so only a few minor commen

Re: [PATCH 2/4] iio: gyro: add device tree support for fxas21002c

2018-08-28 Thread Afonso Bordado
On Mon, 2018-08-27 at 18:13 +0100, Jonathan Cameron wrote: > On Sat, 25 Aug 2018 22:19:08 +0100 > Afonso Bordado wrote: > > > This patch adds device tree support for the fxas21002c driver, > > including > > bindings. > > > > Signed-off-by: Afonso Bordado > > Now, the devicetree bindings should

Re: [PATCH] autofs - fix autofs_sbi() does not check super block type

2018-08-28 Thread Ian Kent
On Mon, 2018-08-27 at 02:03 +0100, Al Viro wrote: > On Mon, Aug 20, 2018 at 04:37:09PM +0800, Ian Kent wrote: > > The autofs_sbi() inline function does not check the super block > > magic number to verify it has been given an autofs super block. > > IMO it's the wrong way to fix it. The one and o

Deadlock in md

2018-08-28 Thread Daniel Santos
I have not rebooted my system since recovering my data off of an old raid5 array with an external journal which broke after a crash in write-back mode (https://www.spinics.net/lists/raid/msg61331.html) and I noticed this in my kernel log.  I had the array assembled in read-only mode without a journ

Re: [PATCH 10/25] ubifs: add helper functions for authentication support

2018-08-28 Thread Sascha Hauer
Hi Richard, On Mon, Aug 27, 2018 at 02:50:37PM +0200, Richard Weinberger wrote: > Am Mittwoch, 4. Juli 2018, 14:41:22 CEST schrieb Sascha Hauer: > > This patch adds the various helper functions needed for authentication > > support. We need functions to hash nodes, to embed HMACs into a node and >

[PATCH] perf util: Fix bad memory access in trace info.

2018-08-28 Thread cphlipot0
From: Chris Phlipot In the write to the output_fd in the error condition of record_saved_cmdline(), we are writing 8 bytes from a memory location on the stack that contains a primitive that is only 4 bytes in size. Change the primitive to 8 bytes in size to match the size of the write in order to

[PATCH v2 1/2] iio: adc: sc27xx: Add raw data support

2018-08-28 Thread Baolin Wang
The headset device will use channel 20 of ADC controller to detect events, but it needs the raw ADC data to do conversion according to its own formula. Thus we should configure the channel mask separately and configure channel 20 as IIO_CHAN_INFO_RAW, as well as adding raw data read support. Sign

[PATCH v2 2/2] iio: adc: sc27xx: Add ADC scale calibration

2018-08-28 Thread Baolin Wang
This patch adds support to read calibration values from the eFuse controller to calibrate the ADC channel scales, which can make ADC sample data more accurate. Signed-off-by: Baolin Wang --- Changes from v1: - Use nvmem_cell_read() instead of nvmem_cell_read_u32(). --- .../bindings/iio/adc/sprd

[GIT PULL] arch/nios2 update for v4.19-rc2

2018-08-28 Thread Ley Foon Tan
Hi Linus There is one arch/nios2 update for v4.19-rc2. Please consider pulling. Regards Ley Foon The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3:   Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) are available in the git repository at:   git://git.kernel.org/pub/scm/lin

[PATCH] KVM: LAPIC: Fix pv ipis out-of-bounds access

2018-08-28 Thread Wanpeng Li
From: Wanpeng Li Dan Carpenter reported that the untrusted data returns from kvm_register_read() results in the following static checker warning: arch/x86/kvm/lapic.c:576 kvm_pv_send_ipi() error: buffer underflow 'map->phys_map' 's32min-s32max' KVM guest can easily trigger this by executing

[PATCH] KVM: LAPIC: Fix pv ipis out-of-bounds access

2018-08-28 Thread Wanpeng Li
From: Wanpeng Li Dan Carpenter reported that the untrusted data returns from kvm_register_read() results in the following static checker warning: arch/x86/kvm/lapic.c:576 kvm_pv_send_ipi() error: buffer underflow 'map->phys_map' 's32min-s32max' KVM guest can easily trigger this by executing

[PATCH 2/2] ARM: imx_v6_v7_defconfig: select CONFIG_ARM_CPUIDLE by default

2018-08-28 Thread Anson Huang
Some i.MX platforms like i.MX7S/D uses generic ARM cpuidle driver and psci method to support cpuidle feature, select CONFIG_ARM_CPUIDLE by default for such platforms. Signed-off-by: Anson Huang --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/

[PATCH 1/2] ARM: dts: imx7s: enable cpuidle driver

2018-08-28 Thread Anson Huang
Enable cpuidle for i.MX7S/D using generic ARM cpuidle driver, below 2 idle states enabled: 1. ARM WFI; 2. SoC WAIT mode. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx7d.dtsi | 1 + arch/arm/boot/dts/imx7s.dtsi | 14 ++ 2 files changed, 15 insertions(+) diff --git a/arch/arm

Re: [PATCH v2 1/4] genirq: Provide basic NMI management for interrupt lines

2018-08-28 Thread kbuild test robot
Hi Julien, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.19-rc1 next-20180828] [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

Re: [PATCH 2/4] tty: Hold tty_ldisc_lock() during tty_reopen()

2018-08-28 Thread Sergey Senozhatsky
Hi, Cc-ing Benjamin on this. On (08/29/18 03:23), Dmitry Safonov wrote: > BUG: unable to handle kernel paging request at 2260 > IP: [..] n_tty_receive_buf_common+0x5f/0x86d > Workqueue: events_unbound flush_to_ldisc > Call Trace: > [..] n_tty_receive_buf2 > [..] tty_ldisc_receive_bu

Re: [PATCH] clk: x86: Set default parent to 48Mhz

2018-08-28 Thread Agrawal, Akshu
On 8/29/2018 3:59 AM, Stephen Boyd wrote: > Quoting Akshu Agrawal (2018-08-20 23:51:57) >> System clk provided in ST soc can be set to: >> 48Mhz, non-spread >> 25Mhz, spread >> To get accurate rate, we need it to set it at non-spread >> option which is 48Mhz. >> >> Signed-off-by: Akshu Agrawal

Re: [PATCH] cpuidle: menu: Retain tick when shallow state is selected

2018-08-28 Thread Rafael J. Wysocki
On Sunday, August 26, 2018 9:37:09 PM CEST Doug Smythies wrote: > On 2018.08.25 04:22 Rafael J. Wysocki wrote: > > On Fri, Aug 24, 2018 at 5:52 PM Doug Smythies wrote: > >> On 2018.08.24 02:44 Rafael J. Wysocki wrote: > >>> On Tuesday, August 21, 2018 10:44:10 AM CEST Rafael J. Wysocki wrote: > >>

[PATCH] proc/kcore: fix invalid memory access in multi-page read optimization

2018-08-28 Thread Dominique Martinet
The 'm' kcore_list item can point to kclist_head, and it is incorrect to look at m->addr / m->size in this case. There is no choice but to run through the list of entries for every address if we did not find any entry in the previous iteration Fixes: bf991c2231117 ("proc/kcore: optimize multiple p

Re: [PATCH 3/3] dmaengine: xilinx_dma: Fix 64-bit simple CDMA transfer

2018-08-28 Thread Vinod
On 28-08-18, 14:03, Radhey Shyam Pandey wrote: > > On 27-07-18, 16:20, Radhey Shyam Pandey wrote: > > > In AXI CDMA simple mode also pass MSB bits of source and destination > > > address to xilinx_write function. This fixes simple CDMA operation > > > mode using 64-bit addressing. > > > > > > Signe

Re: [PATCH v2] x86/nmi: Fix some races in NMI uaccess

2018-08-28 Thread Andy Lutomirski
On Tue, Aug 28, 2018 at 10:56 AM, Rik van Riel wrote: > On Mon, 27 Aug 2018 16:04:16 -0700 > Andy Lutomirski wrote: > >> The 0day bot is still chewing on this, but I've tested it a bit locally >> and it seems to do the right thing. > > Hi Andy, > > the version of the patch below should fix the bu

Re: Flushing user entries for kernel mappings in x86

2018-08-28 Thread Andy Lutomirski
On Tue, Aug 28, 2018 at 6:46 PM, Nadav Amit wrote: > Hello Andy, > > Is there a reason for __flush_tlb_one_kernel() to flush the PTE not only in > the kernel address space, but also in the user one (as part of > __flush_tlb_one_user)? [ I obviously regard the case when PTI is on ]. In most cases,

linux-next: Tree for Aug 29

2018-08-28 Thread Stephen Rothwell
Hi all, Changes since 20180828: Removed tree: libata (merged into the block tree) Dropped trees: xarray, ida (temporarily) The spi tree gained a build failure so I used the version from next-20180828. Non-merge commits (relative to Linus' tree): 875 1002 files changed, 29529 inser

[PATCH v2] arm64: dts: ls1043a: Add configure-gfladj property to USB3 node

2018-08-28 Thread Yinbo Zhu
From: Rajesh Bhagat Add "configure-gfladj" boolean property to USB3 node. This property is used to determine whether frame length adjustment is required or not Signed-off-by: Rajesh Bhagat Signed-off-by: Ran Wang Signed-off-by: Yinbo Zhu --- Change in v2: Modified some word mi

Re: [PATCH v2 4/4] irqdesc: Add domain handler for NMIs

2018-08-28 Thread kbuild test robot
Hi Julien, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.19-rc1 next-20180828] [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

[PATCH] arm64: dts: rockchip: perfection vop property define for px30

2018-08-28 Thread Sandy Huang
Add display ports for display-subsystem and add reset property for vop node, if missing this two define, drm driver can't probe sucess. Signed-off-by: Sandy Huang --- arch/arm64/boot/dts/rockchip/px30.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/roc

[PATCH v3] PCI: dwc: fix scheduling while atomic issues

2018-08-28 Thread Jisheng Zhang
When programming inbound/outbound atu, we call usleep_range() after each checking PCIE_ATU_ENABLE bit. Unfortunately, the atu programming can be called in atomic context: inbound atu programming could be called through pci_epc_write_header() =>dw_pcie_ep_write_header() =>dw_pcie_prog_inbound

RE: [PATCH V3 0/4] clk: new APIs to handle all available clocks

2018-08-28 Thread Stephen Boyd
Quoting A.s. Dong (2018-08-16 19:33:52) > Hi Stephen, > > Do you want me to resend this series for review? > It seems have been pending for quite a long time. > > Thor just pinged me for its status as he wants to use it. > I was waiting for someone to try them out or review them. Good that it h

Re: [PATCH resend] uapi/linux/keyctl.h: don't use C++ reserved keyword as a struct member name

2018-08-28 Thread Greg KH
On Tue, Aug 28, 2018 at 04:34:04PM -0700, Randy Dunlap wrote: > From: Randy Dunlap > > Since this header is in "include/uapi/linux/", apparently people > want to use it in userspace programs -- even in C++ ones. > However, the header uses a C++ reserved keyword ("private"), > so change that to "d

[RFC] perf script: callchain handling is not useful

2018-08-28 Thread Stephane Eranian
Hi, I am doing the following simple collection with callchain and load profiling: $ perf record -g -d -e cpu/event=0xd0,umask=0x81/pp my_test_program But when I type: $ perf script -F ip,addr 9d4821346878 9d58df25 9d58e054 9d5965bb fff

[PATCH 3/4] tty: Lock tty pair in tty_init_dev()

2018-08-28 Thread Dmitry Safonov
It's safe to not lock both here - done to silence attempt lockdep assert in tty_ldisc_open(), which will be added with following patch. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Signed-off-by: Dmitry Safonov --- drivers/tty/tty_io.c| 5 ++--- drivers/tty/tty_ldisc.c | 6 ++ include/linux/t

[PATCH 0/4] tty: Hold write ldisc sem in tty_reopen()

2018-08-28 Thread Dmitry Safonov
Two fixes for potential and real issues. Looks worth to have in stables as we've hit it on v4.9 stable. And for linux-next - adding lockdep asserts for line discipline changing code, verifying that write ldisc sem will be held forthwith. I couldn't verify that holding write lock fixes the issue as

[PATCH 4/4] tty/lockdep: Add ldisc_sem asserts

2018-08-28 Thread Dmitry Safonov
It should nicely document that each change to line discipline should held write semaphor. Otherwise potential reader will have a good time. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Signed-off-by: Dmitry Safonov --- drivers/tty/tty_ldisc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/

[PATCH 2/4] tty: Hold tty_ldisc_lock() during tty_reopen()

2018-08-28 Thread Dmitry Safonov
tty_ldisc_reinit() doesn't race with neither tty_ldisc_hangup() nor set_ldisc() nor tty_ldisc_release() as they use tty lock. But it races with anyone who expects line discipline to be the same after hoding read semaphore in tty_ldisc_ref(). We've seen the following crash on v4.9.108 stable: BUG:

[PATCH 1/4] tty: Drop tty->count on tty_reopen() failure

2018-08-28 Thread Dmitry Safonov
In case of tty_ldisc_reinit() failure, tty->count should be decremented back, otherwise we will never release_tty(). Never seen it in the real life, but it seems not really hard to hit. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: sta...@vger.kernel.org Signed-off-by: Dmitry Safonov --- drivers/t

[PATCH 1/2] x86/mm/KASLR: Fix the wrong calculation of kalsr region initial size

2018-08-28 Thread Baoquan He
In memory KASLR, __PHYSICAL_MASK_SHIFT is taken to calculate the initial size of the direct mapping region. This is right in the old code where __PHYSICAL_MASK_SHIFT was equal to MAX_PHYSMEM_BITS, 46bit, and only 4-level mode was supported. Later, in commit: b83ce5ee91471d ("x86/mm/64: Make __PHYS

[PATCH 2/2] x86/mm/KASLR: Adjust the vmemmap size according to paging mode

2018-08-28 Thread Baoquan He
Vmemmap area has different base and size depending on paging mode. Now we just hardcode its size as 1TB in memory KASLR, it's not right for 5-level paging mode. Adjust it according to paging mode and use it during memory KASLR. Signed-off-by: Baoquan He --- arch/x86/include/asm/pgtable_64_types

Re: [PATCH] pinctrl: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Chen-Yu Tsai
On Tue, Aug 28, 2018 at 9:55 AM Rob Herring wrote: > > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Linus Walleij > Cc: Dong Aisheng > Cc: Fabio Estevam > Cc: Shawn Guo > Cc: Stefan Agner > Cc: Pengut

Re: [PATCH] pinctrl: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Sean Wang
On Mon, 2018-08-27 at 20:52 -0500, Rob Herring wrote: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Linus Walleij > Cc: Dong Aisheng > Cc: Fabio Estevam > Cc: Shawn Guo > Cc: Stefan Agner > Cc: Pengu

Re: linux-next: build warnings from the build of Linus' tree

2018-08-28 Thread Greentime Hu
Arnd Bergmann 於 2018年8月24日 週五 下午8:48寫道: > > On Fri, Aug 24, 2018 at 10:23 AM Masami Hiramatsu wrote: > > > > On Fri, 24 Aug 2018 13:32:06 +1000 > > Stephen Rothwell wrote: > > > > > Hi all, > > > > > > After merging the origin tree, today's linux-next build (powerpc > > > allyesconfig) produced

RE: Re: [PATCH] devfreq: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread MyungJoo Ham
> Dear Rob, > > On 2018년 08월 28일 10:52, Rob Herring wrote: > > In preparation to remove the node name pointer from struct device_node, > > convert printf users to use the %pOFn format specifier. > > > > Cc: Chanwoo Choi > > Cc: MyungJoo Ham > > Cc: Kyungmin Park > > Cc: Kukjin Kim > > Cc: Krz

Re: [PATCH] x86/speculation/l1tf: fix off-by-one error when warning that system has too much RAM

2018-08-28 Thread Christopher Snowhill
On 08/23/2018 07:22 PM, Andre Tomt wrote: > On 23. aug. 2018 17:44, Andi Kleen wrote: >> On Thu, Aug 23, 2018 at 03:44:18PM +0200, Vlastimil Babka wrote: >>> Two users have reported [1] that they have an "extremely unlikely" >>> system >>> with more than MAX_PA/2 memory and L1TF mitigation is not

[PATCH] ARM: dts: imx7d-sdb: enable gpio buttons as wakeup source

2018-08-28 Thread Anson Huang
This patch enables i.MX7D SDB board's below GPIO buttons as wakeup sources: S1(FUNC1): KEY_VOLUMEUP S3(FUNC2): KEY_VOLUMEDOWN Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx7d-sdb.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/

Flushing user entries for kernel mappings in x86

2018-08-28 Thread Nadav Amit
Hello Andy, Is there a reason for __flush_tlb_one_kernel() to flush the PTE not only in the kernel address space, but also in the user one (as part of __flush_tlb_one_user)? [ I obviously regard the case when PTI is on ]. Thanks, Nadav

Re: linux-next: build failure after merge of the spi tree

2018-08-28 Thread Baolin Wang
^~ > > (and many more) > > Caused by commit > > e7d973a31c24 ("spi: sprd: Add SPI driver for Spreadtrum SC9860") > > I have used the spi tree from next-20180828 for today. You missed one patch (spi: Introduce one new field to set word delay), could you ap

RE: [PATCH 2/2] ARM: dts: imx6sll: add gpio clocks

2018-08-28 Thread Anson Huang
Hi, Shawn I saw v4.19-rc1 is created, can you please apply this patch? Anson Huang Best Regards! > -Original Message- > From: Shawn Guo > Sent: Thursday, July 12, 2018 10:52 AM > To: Anson Huang > Cc: s.ha...@pengutronix.de; ker...@pengutronix.de; Fabio Estevam > ; robh...@kern

Re: [PATCH v3] modules_install: make missing $DEPMOD a warning instead of an error

2018-08-28 Thread Masahiro Yamada
Hi Randy 2018-08-29 4:55 GMT+09:00 Randy Dunlap : > On 08/23/2018 09:20 PM, Masahiro Yamada wrote: >> Hi Randy, >> >> >> 2018-08-24 3:13 GMT+09:00 Randy Dunlap : >>> From: Randy Dunlap >>> >>> When $DEPMOD is not found, only print a warning instead of exiting >>> with an error message and error s

Re: [PATCH v8 4/8] media: platform: Add Cedrus VPU decoder driver

2018-08-28 Thread Ezequiel Garcia
On Tue, 2018-08-28 at 09:34 +0200, Paul Kocialkowski wrote: > This introduces the Cedrus VPU driver that supports the VPU found in > Allwinner SoCs, also known as Video Engine. It is implemented through > a v4l2 m2m decoder device and a media device (used for media requests). > So far, it only supp

Re: [PATCH v2 2/3] dt-bindings: net: dsa: Document B53 SRAB interrupts and registers

2018-08-28 Thread Rob Herring
On Tue, Aug 28, 2018 at 10:54:19AM -0700, Florian Fainelli wrote: > Document the Broadcom roboswitch Switch Register Access Block interrupt > lines and additional register base addresses for port mux configuration > and SGMII status/configuration registers. > > Signed-off-by: Florian Fainelli > -

Re: [PATCH] riscv: Drop setup_initrd

2018-08-28 Thread Palmer Dabbelt
On Tue, 28 Aug 2018 17:36:28 PDT (-0700), li...@roeck-us.net wrote: On 08/28/2018 05:09 PM, Palmer Dabbelt wrote: On Tue, 28 Aug 2018 15:12:38 PDT (-0700), li...@roeck-us.net wrote: On Tue, Aug 28, 2018 at 03:03:00PM -0700, Palmer Dabbelt wrote: On Tue, 28 Aug 2018 14:59:59 PDT (-0700), li...@

Re: [PATCH v2 4/6] dt-bindings: remoteproc: Add PDC reset binding for Q6V5 PIL

2018-08-28 Thread Rob Herring
On Fri, 24 Aug 2018 18:48:58 +0530, Sibi Sankar wrote: > Add additional pdc_reset binding required for Q6V5 Modem PIL on > SDM845 SoCs. > > Signed-off-by: Sibi Sankar > --- > Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt | 4 > 1 file changed, 4 insertions(+) > Reviewed-by: R

[PATCH v3 3/4] drivers: edac: Add EDAC driver support for QCOM SoCs

2018-08-28 Thread Venkata Narendra Kumar Gutta
From: Channagoud Kadabi Add error reporting driver for Single Bit Errors (SBEs) and Double Bit Errors (DBEs). As of now, this driver supports error reporting for Last Level Cache Controller (LLCC) of Tag RAM and Data RAM. Interrupts are triggered when the errors happen in the cache, the driver ha

Re: [PATCH v2 1/6] dt-bindings: reset: Add PDC Global binding for SDM845 SoCs

2018-08-28 Thread Rob Herring
On Fri, 24 Aug 2018 18:48:55 +0530, Sibi Sankar wrote: > Add PDC Global(Power Domain Controller) binding for SDM845 SoCs. > > Signed-off-by: Sibi Sankar > --- > .../bindings/reset/qcom,pdc-global.txt| 52 +++ > include/dt-bindings/reset/qcom,sdm845-pdc.h | 20 +++ >

[PATCH v3 4/4] dt-bindings: msm: Update documentation of qcom,llcc

2018-08-28 Thread Venkata Narendra Kumar Gutta
Add reg-names and interrupts for LLCC documentation and the usage examples. llcc broadcast base is added in addition to llcc base, which is used for llcc broadcast writes. Signed-off-by: Venkata Narendra Kumar Gutta --- .../devicetree/bindings/arm/msm/qcom,llcc.txt | 19 +

[PATCH v3 2/4] drivers: soc: Add support to register LLCC EDAC driver

2018-08-28 Thread Venkata Narendra Kumar Gutta
Cache error reporting controller detects and reports single and double bit errors on Last Level Cache Controller (LLCC) cache. Add required support to register LLCC EDAC driver as platform driver, from LLCC driver. Signed-off-by: Venkata Narendra Kumar Gutta --- drivers/soc/qcom/llcc-slice.c

[PATCH v3 1/4] drivers: soc: Add broadcast base for Last Level Cache Controller (LLCC)

2018-08-28 Thread Venkata Narendra Kumar Gutta
Currently, broadcast base is set to end of the LLCC banks, which may not be correct always. As the number of banks may vary for each chipset and the broadcast base could be at a different address as well. This info depends on the chipset, so get the broadcast base info from the device tree (DT). Ad

[PATCH v3 0/4] Add EDAC driver for QCOM SoCs

2018-08-28 Thread Venkata Narendra Kumar Gutta
This series implements EDAC driver for QCOM SoCs. As of now, this driver supports EDAC for Last Level Cache Controller (LLCC). LLCC EDAC driver is to detect and report single and double bit errors on Last Level Cache Controller (LLCC) cache. Interrupts are triggered when the errors happen in the ca

Re: [PATCH v2 1/2] dt-bindings: PCI: meson: add DT bindings for Amlogic Meson PCIe controller

2018-08-28 Thread Rob Herring
On Mon, Aug 27, 2018 at 04:55:20PM +0800, Hanjie Lin wrote: > > > On 2018/8/24 16:22, Jerome Brunet wrote: > > On Fri, 2018-08-24 at 15:36 +0800, Hanjie Lin wrote: > >> From: Yue Wang > >> > >> The Amlogic Meson PCIe host controller is based on the Synopsys DesignWare > >> PCI core. This patch a

Re: [PATCH] riscv: Drop setup_initrd

2018-08-28 Thread Guenter Roeck
On 08/28/2018 05:09 PM, Palmer Dabbelt wrote: On Tue, 28 Aug 2018 15:12:38 PDT (-0700), li...@roeck-us.net wrote: On Tue, Aug 28, 2018 at 03:03:00PM -0700, Palmer Dabbelt wrote: On Tue, 28 Aug 2018 14:59:59 PDT (-0700), li...@roeck-us.net wrote: >On Tue, Aug 28, 2018 at 11:46:09PM +0200, Andrea

Re: [PATCH v2 3/4] dt-bindings: clock: Add jz4725b-cgu.h header

2018-08-28 Thread Rob Herring
On Thu, 23 Aug 2018 15:17:43 +0200, Paul Cercueil wrote: > This will be used from the devicetree bindings to specify the clocks > that should be obtained from the jz4725b-cgu driver. > > Signed-off-by: Paul Cercueil > --- > > Notes: > No change > > include/dt-bindings/clock/jz4725b-cgu.h |

Re: [PATCH v2 2/4] dt-bindings: clock: ingenic: Explicitly list compatible strings

2018-08-28 Thread Rob Herring
On Thu, 23 Aug 2018 15:17:42 +0200, Paul Cercueil wrote: > This is better than letting the other developers wondering what are the > supported strings. > > Signed-off-by: Paul Cercueil > --- > > Notes: > New patch > > Documentation/devicetree/bindings/clock/ingenic,cgu.txt | 7 +-- > 1

Re: [PATCH V2 2/2] dt-bindings: arm: add missing compatible for i.MX boards

2018-08-28 Thread Rob Herring
On Thu, 23 Aug 2018 16:41:14 +0800, Anson Huang wrote: > This patch adds missing compatible for i.MX boards. > > Signed-off-by: Anson Huang > --- > Documentation/devicetree/bindings/arm/fsl.txt | 40 > +++ > 1 file changed, 40 insertions(+) > Reviewed-by: Rob Herring

Re: [PATCH v2 2/3] ata: libahci_platform: add reset control support

2018-08-28 Thread Rob Herring
On Wed, Aug 22, 2018 at 09:13:02PM +0900, Kunihiko Hayashi wrote: > Add support to get and control a list of resets for the device > as optional and shared. These resets must be kept de-asserted until > the device is enabled. > > This is specified as shared because some SoCs like UniPhier series >

[PATCH v2] riscv: Do not overwrite initrd_start and initrd_end

2018-08-28 Thread Guenter Roeck
setup_initrd() overwrites initrd_start and initrd_end if __initramfs_size is larger than 0, which is always true even if there is no embedded initramfs. This prevents booting qemu with "-initrd" parameter. Overwriting initrd_start and initrd_end is not necessary since __initramfs_start and __initra

linux-next: build failure after merge of the spi tree

2018-08-28 Thread Stephen Rothwell
c:462:29: error: 'struct spi_transfer' has no member named 'word_delay' word_delay = clamp_t(u16, t->word_delay, SPRD_SPI_MIN_DELAY_CYCLE, ^~ (and many more) Caused by commit e7d973a31c24 ("spi: sprd: Add SPI driver for Spreadtrum SC9860&quo

Re: [PATCH v2 1/8] dt-bindings: pinctrl: Update pinctrl-ingenic for JZ4725B and GPIO merge

2018-08-28 Thread Rob Herring
On Tue, Aug 21, 2018 at 06:42:29PM +0200, Paul Cercueil wrote: > The pinctrl-ingenic driver now supports the JZ4725B SoC. > > Furthermore, the gpio-ingenic driver was dropped and the pinctrl-ingenic > driver is now responsible for providing the GPIO functionality. Driver changes aren't really val

Re: [PATCH v3 2/2] dt-bindings/interrupt-controller: pdc: fix example to match actual bindings

2018-08-28 Thread Rob Herring
On Fri, 24 Aug 2018 13:11:11 -0600, Lina Iyer wrote: > The PDC map should use the GIC SPI port and not the vector. GIC > internally adds 32 to SPI hwirq numbers. > > Fixes: 1ae8862e27e ("dt-bindings/interrupt-controller: pdc: Describe PDC > device binding") > Signed-off-by: Lina Iyer > --- > ..

Re: [PATCH V3] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-08-28 Thread Rob Herring
On Fri, Aug 24, 2018 at 04:12:15PM +0530, Dilip Kota wrote: > From: Girish Mahadevan > > This driver supports GENI based SPI Controller in the Qualcomm SOCs. The > Qualcomm Generic Interface (GENI) is a programmable module supporting a > wide range of serial interfaces including SPI. This driver

Re: [PATCH 0/2] Build fixes for liblockdep

2018-08-28 Thread Sasha Levin
On Wed, Aug 29, 2018 at 12:56:57AM +0100, Ben Hutchings wrote: >In addition to the patch I recently sent for lockdep itself, the >following fixes are also needed to make liblockdep build. Thanks Ben. I've already sent patches similar to this as well as a MAINTAINERS update a few weeks ago to Ingo,

Re: [PATCH] riscv: Drop setup_initrd

2018-08-28 Thread Palmer Dabbelt
On Tue, 28 Aug 2018 15:12:38 PDT (-0700), li...@roeck-us.net wrote: On Tue, Aug 28, 2018 at 03:03:00PM -0700, Palmer Dabbelt wrote: On Tue, 28 Aug 2018 14:59:59 PDT (-0700), li...@roeck-us.net wrote: >On Tue, Aug 28, 2018 at 11:46:09PM +0200, Andreas Schwab wrote: >>On Aug 28 2018, Guenter Roeck

Re: [PATCH v3 2/7] x86: inline kprobe_exceptions_notify() into do_general_protection()

2018-08-28 Thread Masami Hiramatsu
On Tue, 28 Aug 2018 22:14:16 +0200 Jann Horn wrote: > The opaque plumbing of #GP from do_general_protection() through > notify_die() into kprobe_exceptions_notify() makes it hard to understand > what's going on. OK, this seems reasonable optimization, since kprobe_exceptions_notify only handles

Re: [PATCH 0/3] tools/lib/lockdep: fixes for v4.19

2018-08-28 Thread Sasha Levin
Ping? On Mon, Aug 13, 2018 at 07:05:36PM +, Sasha Levin wrote: >Hi Ingo, > >Please pull the following minor fixes for liblockdep. > >Also available at: > > git://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux.git > liblockdep-fixes > >Sasha Levin (3): > tools/lib/lockdep: update

Re: [PATCH 0/2] Build fixes for liblockdep

2018-08-28 Thread Ben Hutchings
Also, please update your address in MAINTAINERS. Ben. On Wed, Aug 29, 2018 at 12:56:56AM +0100, Ben Hutchings wrote: > In addition to the patch I recently sent for lockdep itself, the > following fixes are also needed to make liblockdep build. > > Ben. > > Bastian Blank (1): > liblockdep: Stu

[PATCH 2/2] liblockdep: Stub task_struct::state

2018-08-28 Thread Ben Hutchings
lockdep_print_held_locks() now checks task_struct::state. Define it so that all tasks are assumed to be running, since we have no reasonble way to tell in user-space. Fixes: 8cc05c71ba5f ("locking/lockdep: Move sanity check to inside ...") Signed-off-by: Ben Hutchings --- tools/include/linux/lo

[PATCH 1/2] liblockdep: Stub NMI watchdog reset

2018-08-28 Thread Ben Hutchings
From: Bastian Blank lockdep.c now includes and requires touch_nmi_watchdog(), so provide those for liblockdep. Fixes: 88f1c87de11a ("locking/lockdep: Avoid triggering hardlockup from ...") [bwh: Write a longer description] Signed-off-by: Ben Hutchings --- tools/include/linux/nmi.h | 12 ++

[PATCH 0/2] Build fixes for liblockdep

2018-08-28 Thread Ben Hutchings
In addition to the patch I recently sent for lockdep itself, the following fixes are also needed to make liblockdep build. Ben. Bastian Blank (1): liblockdep: Stub NMI watchdog reset Ben Hutchings (1): liblockdep: Stub task_struct::state tools/include/linux/lockdep.h | 4 tools/inclu

Re: [PATCH 01/10] cramfs: Convert to use vmf_insert_mixed

2018-08-28 Thread Nicolas Pitre
On Tue, 28 Aug 2018, Matthew Wilcox wrote: > On Tue, Aug 28, 2018 at 01:49:25PM -0400, Nicolas Pitre wrote: > > On Tue, 28 Aug 2018, Matthew Wilcox wrote: > > > - ret = vm_insert_mixed(vma, vma->vm_start + off, pfn); > > > + vmf = vmf_insert_mixed(vma, vma->vm_start

[PATCH 2/2] liblockdep: Stub task_struct::state

2018-08-28 Thread Ben Hutchings
lockdep_print_held_locks() now checks task_struct::state. Define it so that all tasks are assumed to be running, since we have no reasonble way to tell in user-space. Fixes: 8cc05c71ba5f ("locking/lockdep: Move sanity check to inside ...") Signed-off-by: Ben Hutchings --- tools/include/linux/lo

[PATCH 1/2] liblockdep: Stub NMI watchdog reset

2018-08-28 Thread Ben Hutchings
From: Bastian Blank lockdep.c now includes and requires touch_nmi_watchdog(), so provide those for liblockdep. Fixes: 88f1c87de11a ("locking/lockdep: Avoid triggering hardlockup from ...") [bwh: Write a longer description] Signed-off-by: Ben Hutchings --- tools/include/linux/nmi.h | 12 ++

[PATCH 0/2] Build fixes for liblockdep

2018-08-28 Thread Ben Hutchings
In addition to the patch I recently sent for lockdep itself, the following fixes are also needed to make liblockdep build. Ben. Bastian Blank (1): liblockdep: Stub NMI watchdog reset Ben Hutchings (1): liblockdep: Stub task_struct::state tools/include/linux/lockdep.h | 4 tools/inclu

[PATCH resend] uapi/linux/keyctl.h: don't use C++ reserved keyword as a struct member name

2018-08-28 Thread Randy Dunlap
From: Randy Dunlap Since this header is in "include/uapi/linux/", apparently people want to use it in userspace programs -- even in C++ ones. However, the header uses a C++ reserved keyword ("private"), so change that to "dh_private" instead to allow the header file to be used in C++ userspace.

Re: [PATCH v3 1/7] x86: refactor kprobes_fault() like kprobe_exceptions_notify()

2018-08-28 Thread Masami Hiramatsu
On Tue, 28 Aug 2018 22:14:15 +0200 Jann Horn wrote: > This is an extension of commit b506a9d08bae ("x86: code clarification patch > to Kprobes arch code"). As that commit explains, even though > kprobe_running() can't be called with preemption enabled, you don't have to > disable preemption - if

Re: Tagged pointers in the XArray

2018-08-28 Thread Gao Xiang
Hi, On 2018/8/29 6:27, Matthew Wilcox wrote: > I find myself caught between two traditions. > > On the one hand, the radix tree has been calling the page cache dirty & > writeback bits "tags" for over a decade. > > On the other hand, using some of the bits _in a pointer_ as a tag has been > common

[4.14.66-rt40] [report][cpuhotplug] BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:974

2018-08-28 Thread Grygorii Strashko
Hi I can see below back traces during secondary CPUs initialization (boot) on TI's AM6 SoC (ARM64 4 CPUs) with debug options enabled it happens without CONFIG_NUMA=n (log 1) and with CONFIG_NUMA=y. This is TI branch, there are no RT specific changes. I've also found the similar issue was report

Re: [PATCH 2/2] scripts: add kmemleak2pprof.py for slab usage analysis

2018-08-28 Thread Andrew Morton
On Tue, 28 Aug 2018 12:39:14 +0200 Vincent Whitchurch wrote: > Add a script which converts /sys/kernel/debug/kmemleak_all to the pprof > format, which can be used for analysing memory usage. See > https://github.com/google/pprof. Why is this better than /proc/slabinfo? > $ ./kmemleak2pprof.p

Re: Tagged pointers in the XArray

2018-08-28 Thread Randy Dunlap
On 08/28/2018 04:03 PM, Matthew Wilcox wrote: > On Tue, Aug 28, 2018 at 03:39:01PM -0700, Randy Dunlap wrote: >> Just a question, please... >> >> On 08/28/2018 03:27 PM, Matthew Wilcox wrote: >>> >>> diff --git a/include/linux/xarray.h b/include/linux/xarray.h >>> index c74556ea4258..d1b383f3063f 1

[GIT PULL] Thermal-SoC management updates for v4.19-rc2

2018-08-28 Thread Eduardo Valentin
Hello Linus, Please consider pulling from git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal fixes to receive Thermal-SoC Management updates for v4.19-rc2 with top-most 152395fd03d4ce1e535a75cdbf58105e50587611: thermal: of-thermal: disable passive polling when thermal

Re: Tagged pointers in the XArray

2018-08-28 Thread Matthew Wilcox
On Tue, Aug 28, 2018 at 03:39:01PM -0700, Randy Dunlap wrote: > Just a question, please... > > On 08/28/2018 03:27 PM, Matthew Wilcox wrote: > > > > diff --git a/include/linux/xarray.h b/include/linux/xarray.h > > index c74556ea4258..d1b383f3063f 100644 > > --- a/include/linux/xarray.h > > +++ b/

Re: [PATCH v2] compiler.h: give up __compiletime_assert_fallback()

2018-08-28 Thread Nick Desaulniers
On Mon, Aug 27, 2018 at 1:42 PM Daniel Santos wrote: > > Hello Nick, > > On 08/27/2018 03:09 PM, Nick Desaulniers wrote: > >>> Let's give up __compiletime_assert_fallback(). This commit does not > >>> change the current behavior since it just rips off the useless code. > >> Clang is not the only

Re: [PATCH v3 2/2] clk: qcom: Add qspi (Quad SPI) clocks for sdm845

2018-08-28 Thread Stephen Boyd
Quoting Douglas Anderson (2018-07-24 10:45:13) > Add both the interface and core clock. > > Signed-off-by: Douglas Anderson > (am from https://lore.kernel.org/patchwork/patch/966680/mbox) > > --- Applied to clk-next

Re: [PATCH v3 1/2] clk: qcom: Add qspi (Quad SPI) clock defines for sdm845 to header

2018-08-28 Thread Stephen Boyd
Quoting Douglas Anderson (2018-07-24 10:45:12) > These clocks will need to be defined in the clock driver and > referenced in device tree files. > > Signed-off-by: Douglas Anderson > --- Applied to clk-next

Re: [PATCH v2] clk: qcom: Add some missing gcc clks for msm8996

2018-08-28 Thread Stephen Boyd
Quoting Bjorn Andersson (2018-08-13 11:43:51) > On Fri 10 Aug 08:11 PDT 2018, Stephen Boyd wrote: > > > Quoting Bjorn Andersson (2018-08-09 15:01:19) > > > From: Rajendra Nayak > > > > > > Add a few missing gcc clks for msm8996 > > > > > > Signed-off-by: Rajendra Nayak > > > [bjorn: omit aggre

[PATCH] tools lib traceevent, perf tools: Split trace-seq related APIs in a separate header file

2018-08-28 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" In order to make libtraceevent into a proper library, all its APIs should be defined in corresponding header files. This patch splits trace-seq related APIs in a separate header file: trace-seq.h Signed-off-by: Tzvetomir Stoyanov (VMware) Signed-off-by: St

Re: [PATCH] x86/irqflags: mark native_restore_fl extern inline

2018-08-28 Thread Nick Desaulniers
On Tue, Aug 28, 2018 at 5:43 AM Greg Kroah-Hartman wrote: > > On Tue, Aug 28, 2018 at 08:02:37AM +0200, Juergen Gross wrote: > > On 28/08/18 07:13, Greg Kroah-Hartman wrote: > > > On Mon, Aug 27, 2018 at 02:40:09PM -0700, Nick Desaulniers wrote: > > >> Fixes commit 208cbb325589 ("x86/irqflags: Pro

Re: [PATCH 3/5] drivers: clk-qoriq: Add clockgen support for lx2160a

2018-08-28 Thread Stephen Boyd
Quoting Vabhav Sharma (2018-08-19 23:47:14) > From: Yogesh Gaur > > Add clockgen support for lx2160a. > Added entry for compat 'fsl,lx2160a-clockgen'. > As LX2160A is 16 core, so modified value for NUM_CMUX > > Signed-off-by: Tang Yuantian > Signed-off-by: Yogesh Gaur > Signed-off-by: Vabhav S

Re: [PATCH v3 3/5] dt-bindings: mfd: rk808: Add binding information for RK809 and RK817.

2018-08-28 Thread Rob Herring
On Fri, 24 Aug 2018 11:30:39 +0800, Tony Xie wrote: > Add device tree bindings documentation for Rockchip's RK809 & RK817 PMIC. > > Signed-off-by: Tony Xie > --- > Documentation/devicetree/bindings/mfd/rk808.txt | 56 > + > 1 file changed, 56 insertions(+) > Reviewed-b

Re: Tagged pointers in the XArray

2018-08-28 Thread Randy Dunlap
Just a question, please... On 08/28/2018 03:27 PM, Matthew Wilcox wrote: > > diff --git a/include/linux/xarray.h b/include/linux/xarray.h > index c74556ea4258..d1b383f3063f 100644 > --- a/include/linux/xarray.h > +++ b/include/linux/xarray.h > @@ -150,6 +150,54 @@ static inline int xa_err(void *e

  1   2   3   4   5   6   7   >