[PATCH v3 1/2] dmaengine: Introduce DW AXI DMAC driver

2018-03-06 Thread Eugeniy Paltsev
This patch adds support for the DW AXI DMAC controller. DW AXI DMAC is a part of HSDK development board from Synopsys. In this driver implementation only DMA_MEMCPY transfers are supported. Signed-off-by: Eugeniy Paltsev --- Changes v2->v3 (suggested by Andy Shevchenko and Vinod Koul): * Fix SP

[PATCH v3 2/2] dt-bindings: Document the Synopsys DW AXI DMA bindings

2018-03-06 Thread Eugeniy Paltsev
This patch adds documentation of device tree bindings for the Synopsys DesignWare AXI DMA controller. Signed-off-by: Eugeniy Paltsev --- Changes v2->v3: * None. .../devicetree/bindings/dma/snps,dw-axi-dmac.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644

Re: [PATCH v11 7/7] ntb: ntb_hw_switchtec: Cleanup 64bit IO defines to use the common header

2018-03-06 Thread Greg Kroah-Hartman
On Tue, Mar 06, 2018 at 12:48:29PM +0200, Andy Shevchenko wrote: > On Mon, Mar 5, 2018 at 9:08 PM, Logan Gunthorpe wrote: > > Clean up the ifdefs which conditionally defined the io{read|write}64 > > functions in favour of the new common io-64-nonatomic-lo-hi header. > > > #include > > #include

Re: [PATCH] dmaengine: pl330: fix a race condition in case of threaded irqs

2018-03-06 Thread Vinod Koul
On Tue, Mar 06, 2018 at 09:13:37AM +0800, Qi Hou wrote: > When booting up with "threadirqs" in command line, all irq handlers of the DMA > controller pl330 will be threaded forcedly. These threads will race for the > same > list, pl330->req_done. > > Before the callback, the spinlock was released

[PATCH] firmware: meson-sm: rework meson_sm_init to use module_platform_driver_probe

2018-03-06 Thread Sudeep Holla
Commit 3aa0582fdb82 ("of: platform: populate /firmware/ node from of_platform_default_populate_init()") takes care of populating all the devices under the /firmware/ node in of_platform_default_populate_init() This patch reworks meson_sm_init to use module_platform_driver_probe as the platform dev

Re: [PATCH RESEND v5] perf/core: Fix installing arbitrary cgroup event into cpu

2018-03-06 Thread Peter Zijlstra
On Tue, Mar 06, 2018 at 05:36:37PM +0800, linxiu...@gmail.com wrote: > From: "leilei.lin" > > Do not install cgroup event into the CPU context and schedule it > if the cgroup is not running on this CPU OK, so far so good, this explains the bit in __perf_install_in_context(). > While there is no

[PATCH] perf mmap: Discard head in overwrite_rb_find_range

2018-03-06 Thread Yisheng Xie
In overwrite mode, start will be set to head in perf_mmap__read_init. Therefore, it is no need to set the start one more in overwrite_rb_find_range and *start can be used as head instead of passing head to overwrite_rb_find_range. Signed-off-by: Yisheng Xie --- tools/perf/util/mmap.c | 15 ++

[PATCH v5 2/3] USB3/DWC3: Add property "snps,incr-burst-type-adjustment" for INCR burst type

2018-03-06 Thread Ran Wang
Property "snps,incr-burst-type-adjustment = , ..." for USB3.0 DWC3. When only one value means INCRx mode with fix burst type. When more than one value, means undefined length burst mode, USB controller can use the length less than or equal to the largest enabled burst length. While enabling undefi

[PATCH v5 1/3] USB3/DWC3: Add definition for global soc bus configuration register

2018-03-06 Thread Ran Wang
From: Changming Huang Add the macro definition for global soc bus configuration register 0/1 Signed-off-by: Changming Huang Signed-off-by: Ran Wang --- Changes in v5: - no change Changes in v4: - no change Changes in v3: - no change Changes in v2: - split the patch - add more macro d

Re: [PATCH] dvb: Save port number and provide sysfs attributes to pass values to udev

2018-03-06 Thread Mauro Carvalho Chehab
Hi David, Em Wed, 10 Jan 2018 14:50:35 + David Howells escreveu: > Some devices, such as the DVBSky S952 and T982 cards, are dual port cards > that provide two cx23885 devices on the same PCI device, which means the > attributes available for writing udev rules are exactly the same, apart >

[PATCH v5 3/3] USB3/DWC3: Enable undefined length INCR burst type

2018-03-06 Thread Ran Wang
Enable the undefined length INCR burst type and set INCRx. Different platform may has the different burst size type. In order to get best performance, we need to tune the burst size to one special value, instead of the default value. Signed-off-by: Changming Huang Signed-off-by: Rajesh Bhagat Si

Re: [PATCH v11 7/7] ntb: ntb_hw_switchtec: Cleanup 64bit IO defines to use the common header

2018-03-06 Thread Andy Shevchenko
On Tue, Mar 6, 2018 at 1:46 PM, Greg Kroah-Hartman wrote: > On Tue, Mar 06, 2018 at 12:48:29PM +0200, Andy Shevchenko wrote: >> On Mon, Mar 5, 2018 at 9:08 PM, Logan Gunthorpe wrote: >> > Clean up the ifdefs which conditionally defined the io{read|write}64 >> > functions in favour of the new comm

Re: [PATCH] arm64: dts: rockchip: Fix rk3399-gru-* s2r (pinctrl hogs, wifi reset)

2018-03-06 Thread Marc Zyngier
Hi all, On 01/03/18 08:43, Heiko Stübner wrote: > Am Dienstag, 27. Februar 2018, 21:47:11 CET schrieb Douglas Anderson: >> Back in the early days when gru devices were still under development >> we found an issue where the WiFi reset line needed to be configured as >> early as possible during the

Re: [PATCH v2] staging: Replace printk() with appropriate net_*macro_ratelimited()

2018-03-06 Thread Greg KH
On Mon, Mar 05, 2018 at 02:19:11AM +0530, Arushi Singhal wrote: > Replace printk having a log level with the appropriate > net_*macro_ratelimited. > It's better to use actual device name as a prefix in error messages. > Indentation is also changed, to fix the checkpatch issue. > > Signed-off-by:

Re: [RFC 3/4] trace_uprobe: Support SDT markers having semaphore

2018-03-06 Thread Peter Zijlstra
On Wed, Feb 28, 2018 at 01:23:44PM +0530, Ravi Bangoria wrote: > Userspace Statically Defined Tracepoints[1] are dtrace style markers > inside userspace applications. These markers are added by developer at > important places in the code. Each marker source expands to a single > nop instruction in

[PATCH] iio:magnetometer: Remove duplications in iio_chan_spec

2018-03-06 Thread Rodrigo Siqueira
The magn_3d_channels array has multiple declarations of iio_chan_spec. Most of the iio_chan_spec are very similar, changing only by the .type and .channel2 field. This patch reduces the code duplication by adding a macro that can replace the iio_chan_spec repetitions in the magn_3d_channels array.

Re: [PATCH v4 5/6] MIPS: generic: Add support for Microsemi Ocelot

2018-03-06 Thread Alexandre Belloni
On 03/03/2018 at 00:25:29 +, James Hogan wrote: > Similarly if the platform is little endian only, you could also add: > # require CONFIG_CPU_LITTLE_ENDIAN=y > It supports big endian. > > + > > +CONFIG_LEGACY_BOARD_OCELOT=y > > + > > +CONFIG_MIPS_CMDLINE_FROM_BOOTLOADER=y > > Hmm, can this

[PATCH] iio: Replace occurrences of magic number 0 by IIO_CHAN_INFO_RAW

2018-03-06 Thread Rodrigo Siqueira
Usually, functions responsible for reading raw data typically relies on values from iio_chan_info_enum to correctly identify the type of data to be read. There is a set of a device driver that uses the magic number 0 instead of IIO_CHAN_INFO_RAW. This patch improves the readability by replaces the

Re: [Outreachy kernel] Re: [PATCH] staging: irda: Replace printk() with appropriate net_*macro_ratelimited()

2018-03-06 Thread SIMRAN SINGHAL
On Tue, Mar 6, 2018 at 2:33 AM, Julia Lawall wrote: > > > On Mon, 5 Mar 2018, Arushi Singhal wrote: > >> >> >> On Mon, Mar 5, 2018 at 3:33 PM, Dan Carpenter >> wrote: >> On Mon, Mar 05, 2018 at 04:02:06AM +0530, Arushi Singhal wrote: >> > Replace printk having a log level with the ap

Re: [PATCH v2] staging: rtl8192u: Replace printk() with appropriate net_*macro_ratelimited()

2018-03-06 Thread Greg KH
On Mon, Mar 05, 2018 at 01:02:56PM +0530, Arushi Singhal wrote: > Replace printk having a log level with the appropriate > net_*macro_ratelimited. > It's better to use actual device name as a prefix in error messages. > Indentation is also changed, to fix the checkpatch issue if line is not > exce

Re: [PATCH] staging: bcm2835-audio: Release resources on module_exit()

2018-03-06 Thread Greg Kroah-Hartman
On Mon, Mar 05, 2018 at 06:52:54AM +0100, Kirill Marinushkin wrote: > In the current implementation, `rmmod snd_bcm2835` does not release > resources properly. It causes an oops when trying to list sound devices. > > This commit fixes it. > > Steps to reproduce: > > > $ rmmod snd_bcm2835 >

Re: [PATCH 0/5 V2] tpm: timeouts revamp

2018-03-06 Thread Jarkko Sakkinen
On Tue, 2018-03-06 at 11:24 +0200, Tomas Winkler wrote: > This series cleans up tpm timeouts setting and handling. > > First motivation was to fix failures coming from too short timeouts > for commands that creates keys. > Key generation may take significant time depending on the underlying > hard

[PATCH v5 2/5] MIPS: mscc: add ocelot dtsi

2018-03-06 Thread Alexandre Belloni
Add a device tree include file for the Microsemi Ocelot SoC. Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Alexandre Belloni --- arch/mips/boot/dts/Makefile | 1 + arch/mips/boot/dts/mscc/Makefile| 1 + arch/mips/boot/dts/mscc/ocelot.dtsi | 117 ++

[PATCH v5 1/5] dt-bindings: mips: Add bindings for Microsemi SoCs

2018-03-06 Thread Alexandre Belloni
Add bindings for Microsemi SoCs. Currently only Ocelot is supported. Reviewed-by: Rob Herring Signed-off-by: Alexandre Belloni --- Documentation/devicetree/bindings/mips/mscc.txt | 43 + 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindin

[PATCH v5 3/5] MIPS: mscc: add ocelot PCB123 device tree

2018-03-06 Thread Alexandre Belloni
Add a device tree for the Microsemi Ocelot PCB123 evaluation board. Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Alexandre Belloni --- arch/mips/boot/dts/mscc/Makefile | 2 ++ arch/mips/boot/dts/mscc/ocelot_pcb123.dts | 27 +++ 2 files changed,

[PATCH v5 4/5] MIPS: generic: Add support for Microsemi Ocelot

2018-03-06 Thread Alexandre Belloni
Introduce support for the MIPS based Microsemi Ocelot SoCs. Signed-off-by: Alexandre Belloni --- arch/mips/Makefile| 4 ++ arch/mips/configs/generic/board-ocelot.config | 36 ++ arch/mips/generic/Kconfig | 16 +++ arch/mips/generic

[PATCH v5 5/5] MAINTAINERS: Add entry for Microsemi MIPS SoCs

2018-03-06 Thread Alexandre Belloni
Add myself as a maintainer for the Microsemi MIPS SoCs. Signed-off-by: Alexandre Belloni --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 3bdc260e36b7..14ce8b290fea 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9156,6 +9156,15 @@ S:

[PATCH v5 0/5] MIPS: add support for Microsemi MIPS SoCs

2018-03-06 Thread Alexandre Belloni
Hi, This patch series adds initial support for the Microsemi MIPS SoCs. It is currently focusing on the Microsemi Ocelot (VSC7513, VSC7514). Changes in v5: - reworked the DT to remove ocelot_measure_hpt_freq() - fixed the memory node (memory@0) - fixed indentation - board-ocelot.config: o

Re: [PATCH 3/5 V2] tpm2: add longer timeouts for creation commands.

2018-03-06 Thread Jarkko Sakkinen
On Tue, 2018-03-06 at 11:25 +0200, Tomas Winkler wrote: > TPM2_CC_Create(0x153) and TPM2_CC_CreatePrimary (0x131) involve generation > of crypto keys which can be a computationally intensive task. > The timeout is set to 3min. > Rather than increasing default timeout a new constant is > added, to n

[PATCH 1/3] staging:iio:meter: Replaces IIO_DEV_ATTR_CH_OFF by IIO_DEVICE_ATTR

2018-03-06 Thread Rodrigo Siqueira
The macro IIO_DEV_ATTR_CH_OFF is a wrapper for IIO_DEVICE_ATTR, with a tiny change in the name definition. This extra macro does not improve the readability and also creates some checkpatch errors. This patch fixes the checkpatch.pl errors: staging/iio/meter/ade7753.c:391: ERROR: Use 4 digit octa

[PATCH 0/3] staging:iio:meter: Checkpatch cleanup for meter

2018-03-06 Thread Rodrigo Siqueira
This patchset fixes errors and checks found by checkpatch.pl in the staging/iio/meter. These series fixes: * Removes the use of 4 digit octal by replaces IIO_DEV_ATTR_CH_OFF by IIO_DEVICE_ATTR; * Removes unnecessary macro; * Aligns open parenthesis; After apply this patch series, meter go

[PATCH 2/3] staging:iio:meter: Remove unused macro IIO_DEV_ATTR_CH_OFF

2018-03-06 Thread Rodrigo Siqueira
This patch removes the macro IIO_DEV_ATTR_CH_OFF. The macro IIO_DEV_ATTR_CH_OFF is not required, due to the replace of it by the direct use of IIO_DEVICE_ATTR in files staging/iio/meter/ade7759.c and staging/iio/meter/ade7753.c. Signed-off-by: Rodrigo Siqueira --- drivers/staging/iio/meter/meter

[PATCH 3/3] staging:iio:meter: Aligns open parenthesis

2018-03-06 Thread Rodrigo Siqueira
This patch fixes the checkpatch.pl checks: staging/iio/meter/ade7854-spi.c:19: CHECK: Alignment should match open parenthesis staging/iio/meter/ade7854-spi.c:44: CHECK: Alignment should match open parenthesis staging/iio/meter/ade7854-spi.c:70: CHECK: Alignment should match open parenthesis stagin

Re: [PATCH v4 3/3] mm/free_pcppages_bulk: prefetch buddy while not holding lock

2018-03-06 Thread Aaron Lu
On Tue, Mar 06, 2018 at 08:55:57AM +0100, Vlastimil Babka wrote: > On 03/05/2018 12:41 PM, Aaron Lu wrote: > > On Fri, Mar 02, 2018 at 06:55:25PM +0100, Vlastimil Babka wrote: > >> On 03/01/2018 03:00 PM, Michal Hocko wrote: > >>> > >>> I am really surprised that this has such a big impact. > >> >

Re: [PATCH 11/34] x86/entry/32: Handle Entry from Kernel-Mode on Entry-Stack

2018-03-06 Thread Joerg Roedel
Hi Brian, On Mon, Mar 05, 2018 at 11:41:01AM -0500, Brian Gerst wrote: > We can keep the same process as the existing debug/NMI handlers - > leave the current exception pt_regs on the entry stack and just switch > to the task stack for the call to the handler. Then switch back to > the entry stac

Re: [PATCH v3 8/8] scsi: hisi_sas: Code cleanup and minor bug fixes

2018-03-06 Thread John Garry
Hi Hannes, Thanks for checking this. > + } > return -EINVAL? >return 0; > } [ ... ] > + } > >return 0; > } return -EINVAL? > @@ -2408,7 +2410,7 @@ static void slot_err_v2_hw(struct hisi_hba *hisi_hba, >spin_lock_irqsave(&hisi_hba->lock, flags); >his

Re: [PATCH v3 5/8] scsi: hisi_sas: increase timer expire of internal abort task

2018-03-06 Thread John Garry
On 06/03/2018 11:23, Hannes Reinecke wrote: On 03/05/2018 03:48 PM, John Garry wrote: From: Xiaofei Tan The current 110ms expiry time is not long enough for the internal abort task. The reason is that the internal abort task could be blocked in HW if the HW is retrying to set up link. The int

Re: [PATCH] thermal: of: Allow selection of thermal governor in DT

2018-03-06 Thread Sudeep Holla
On 05/03/18 18:36, Amit Kucheria wrote: > From: Ram Chandrasekar > > There is currently no way for the governor to be selected for each thermal > zone in devicetree. How is that any different from cpufreq, cpuidle or devfreq subsystems ? > This results in the default governor being used for

[PATCH] regulator: don't try to use DT information without CONFIG_OF

2018-03-06 Thread Arnd Bergmann
The coupled regulator support requires CONFIG_OF today, otherwise we get a link error: drivers/regulator/core.o: In function `regulator_fill_coupling_array': core.c:(.text+0x3e44): undefined reference to `of_parse_coupled_regulator' drivers/regulator/core.o: In function `regulator_register': core.

Re: [PATCH v11 6/7] crypto: caam: cleanup CONFIG_64BIT ifdefs when using io{read|write}64

2018-03-06 Thread Horia Geantă
On 3/5/2018 9:08 PM, Logan Gunthorpe wrote: > Clean up the extra ifdefs which defined the wr_reg64 and rd_reg64 > functions in non-64bit cases in favour of the new common > io-64-nonatomic-lo-hi header. > > To be consistent with CAAM engine HW spec: in case of 64-bit registers, > irrespective of d

Re: [PATCH 0/5 V2] tpm: timeouts revamp

2018-03-06 Thread Javier Martinez Canillas
On 03/06/2018 01:17 PM, Jarkko Sakkinen wrote: > On Tue, 2018-03-06 at 11:24 +0200, Tomas Winkler wrote: >> This series cleans up tpm timeouts setting and handling. >> >> First motivation was to fix failures coming from too short timeouts >> for commands that creates keys. >> Key generation may tak

[PATCH Resent] perf annotate: Fix s390 target function disassembly

2018-03-06 Thread Thomas Richter
Perf annotate displays function call assembler instructions with a right arrow. Hitting enter on this line/instruction causes the browser to disassemble this target function and show it on the screen. On s390 this results in an error message 'The called function was not found.' The function call

Re: [PATCH v2 0/8] PECI device driver introduction

2018-03-06 Thread Pavel Machek
Hi! > Introduction of the Platform Environment Control Interface (PECI) bus > device driver. PECI is a one-wire bus interface that provides a > communication channel between Intel processor and chipset components to > external monitoring or control devices. PECI is designed to support the > follow

Re: [PATCH v2 2/8] [PATCH 2/8] Documentations: dt-bindings: Add a document of PECI adapter driver for Aspeed AST24xx/25xx SoCs

2018-03-06 Thread Pavel Machek
Hi! > Signed-off-by: Jae Hyun Yoo > --- > .../devicetree/bindings/peci/peci-aspeed.txt | 73 > ++ > 1 file changed, 73 insertions(+) > create mode 100644 Documentation/devicetree/bindings/peci/peci-aspeed.txt > > diff --git a/Documentation/devicetree/bindings/peci/pe

Re: [RFC] rcu: Prevent expedite reporting within RCU read-side section

2018-03-06 Thread Byungchul Park
On Mar 6, 2018 2:34 PM, "Byungchul Park" wrote: > > Hello Paul and RCU folks, > > I am afraid I correctly understand and fix it. But I really wonder why > sync_rcu_exp_handler() reports the quiescent state even in the case that > current task is within a RCU read-side section. Do I miss something?

Re: [PATCH] dump_stack: convert generic dump_stack into a weak symbol

2018-03-06 Thread Petr Mladek
On Tue 2018-03-06 13:29:57, Sergey Senozhatsky wrote: > On (03/05/18 15:48), Petr Mladek wrote: > [..] > > > > I hope that I did not miss anything. I could not try this at > > runtime. > > I think you can. The rules are universal, you can do on x86 > something like this > > --- > > arch/x86/ke

Re: [PATCH v3 02/10] include: Move compat_timespec/ timeval to compat_time.h

2018-03-06 Thread Arnd Bergmann
On Mon, Mar 5, 2018 at 10:30 AM, Christian Borntraeger wrote: > On 01/16/2018 03:18 AM, Deepa Dinamani wrote: >> All the current architecture specific defines for these >> are the same. Refactor these common defines to a common >> header file. >> >> The new common linux/compat_time.h is also usefu

Re: [PATCH] mmc: card: Don't show eMMC RPMB and BOOT areas in /proc/partitions

2018-03-06 Thread Harish Jenny K N
On Friday 02 March 2018 06:23 PM, Linus Walleij wrote: > On Tue, Feb 27, 2018 at 12:33 PM, Harish Jenny K N > wrote: > >> From: Andrew Gabbasov >> >> Since RPMB area is accessible via special ioctl only and boot areas >> are unlikely to contain any partitions, exclude them all from listing >> i

Re: [PATCH] mmc: Export card RCA register to sysfs.

2018-03-06 Thread Harish Jenny K N
On Tuesday 27 February 2018 05:26 PM, Harish Jenny K N wrote: > This patch exports RCA register to sysfs which will help in > reading the disk identification information. > > Signed-off-by: Harish Jenny K N > --- > drivers/mmc/core/mmc.c | 2 ++ > drivers/mmc/core/sd.c | 2 ++ > 2 files change

Re: [PATCH v3 02/10] include: Move compat_timespec/ timeval to compat_time.h

2018-03-06 Thread Christian Borntraeger
On 03/06/2018 01:46 PM, Arnd Bergmann wrote: > On Mon, Mar 5, 2018 at 10:30 AM, Christian Borntraeger > wrote: >> On 01/16/2018 03:18 AM, Deepa Dinamani wrote: >>> All the current architecture specific defines for these >>> are the same. Refactor these common defines to a common >>> header file.

Re: [PATCH net-next] net: phy: mdio-mux: slience probe defer error

2018-03-06 Thread Andrew Lunn
On Tue, Mar 06, 2018 at 12:10:45PM +0100, Jerome Brunet wrote: > If we fail to register the mdio bus due to probe defer, we should not > print an error message. Just be silent in this case. > > Signed-off-by: Jerome Brunet Reviewed-by: Andrew Lunn Andrew

Re: [PATCH v5 0/6] dt-bindings: add bindings for USB physical connector

2018-03-06 Thread Andrzej Hajda
Hi Rob, Chanwoo, Krzysztof, On 27.02.2018 08:11, Andrzej Hajda wrote: > Hi, > > Thanks for reviews of previous iterations. > > This patchset introduces USB physical connector bindings, together with > working example. > I have removed RFC prefix - the patchset seems to be heading > to a happy end

Re: [PATCH v4 3/3] mm/free_pcppages_bulk: prefetch buddy while not holding lock

2018-03-06 Thread Matthew Wilcox
On Tue, Mar 06, 2018 at 08:27:33PM +0800, Aaron Lu wrote: > On Tue, Mar 06, 2018 at 08:55:57AM +0100, Vlastimil Babka wrote: > > So the adjacent line prefetch might be disabled? Could you check bios or > > the MSR mentioned in > > https://software.intel.com/en-us/articles/disclosure-of-hw-prefetche

Re: [PATCH v2 2/8] [PATCH 2/8] Documentations: dt-bindings: Add a document of PECI adapter driver for Aspeed AST24xx/25xx SoCs

2018-03-06 Thread Andrew Lunn
On Tue, Mar 06, 2018 at 01:40:02PM +0100, Pavel Machek wrote: > Hi! > > > Signed-off-by: Jae Hyun Yoo > > --- > > .../devicetree/bindings/peci/peci-aspeed.txt | 73 > > ++ > > 1 file changed, 73 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/pe

Re: [PATCH v2 2/3] regmap: debugfs: Fix kmemleak in regmap_debugfs_init

2018-03-06 Thread Mark Brown
On Tue, Mar 06, 2018 at 07:04:02PM +0800, Jeffy Chen wrote: > Use map->debugfs_name to store allocated debugfs name, so it would be > freed in regmap_debugfs_exit(). I'm missing patch 1 in this series and I think this collides with a fix I already have locally. signature.asc Description: PGP sig

Re: [RFC PATCH] riscv/locking: Strengthen spin_lock() and spin_unlock()

2018-03-06 Thread Peter Zijlstra
On Mon, Feb 26, 2018 at 09:00:43AM -0800, Linus Torvalds wrote: > On Mon, Feb 26, 2018 at 8:24 AM, Will Deacon wrote: > > > > Strictly speaking, that's not what we've got implemented on arm64: only > > the read part of the RmW has Acquire semantics, but there is a total > > order on the lock/unloc

[PATCH 0/3] Enable thermal management on MSM8916

2018-03-06 Thread Amit Kucheria
Add DT entries to create cooling devices on MSM8916, enable the thermal sensor on the platform and turn on other cpufreq governors to make it easy for developers. This patchset requires http://patchwork.kernel.org/bundle/amitkucheria/8016-cpufreq-dts/ to be applied first to enable thermal function

[PATCH 2/3] arm64: defconfig: enable thermal sensor on QCOM platforms

2018-03-06 Thread Amit Kucheria
Enable the driver for the TSENS IP that is present across several QCOM SoCs. Signed-off-by: Amit Kucheria --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 634b373..80530cb 100644 --- a/arch/ar

[PATCH 1/3] arm64: dts: msm8916: Add cpu cooling maps

2018-03-06 Thread Amit Kucheria
From: Rajendra Nayak Add cpu cooling maps for cpu passive trip points. The cpu cooling device states are mapped to cpufreq based scaling frequencies. Signed-off-by: Rajendra Nayak Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 31 +++ 1 fi

[PATCH 3/3] arm64: defconfig: enable more cpufreq governors

2018-03-06 Thread Amit Kucheria
Enable the various CPUFREQ governors and statistics to ease development. Don't change the default governor - performance governor. Signed-off-by: Amit Kucheria --- arch/arm64/configs/defconfig | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/c

Re: [PATCH v2 2/8] [PATCH 2/8] Documentations: dt-bindings: Add a document of PECI adapter driver for Aspeed AST24xx/25xx SoCs

2018-03-06 Thread Pavel Machek
On Tue 2018-03-06 13:54:16, Andrew Lunn wrote: > On Tue, Mar 06, 2018 at 01:40:02PM +0100, Pavel Machek wrote: > > Hi! > > > > > Signed-off-by: Jae Hyun Yoo > > > --- > > > .../devicetree/bindings/peci/peci-aspeed.txt | 73 > > > ++ > > > 1 file changed, 73 insertions(

Re: [PATCH v5 0/6] dt-bindings: add bindings for USB physical connector

2018-03-06 Thread Krzysztof Kozlowski
On Tue, Mar 6, 2018 at 1:53 PM, Andrzej Hajda wrote: > Hi Rob, Chanwoo, Krzysztof, > > > On 27.02.2018 08:11, Andrzej Hajda wrote: >> Hi, >> >> Thanks for reviews of previous iterations. >> >> This patchset introduces USB physical connector bindings, together with >> working example. >> I have rem

Hello

2018-03-06 Thread Sare Ouedraogo
Am Mr.Sare Ouedraogo.i work in one of the prime bank here in Burkina Faso, i want the bank to transfer the money left by our late customer is a foreigner from Korea. can you invest this money and also help the poor' the amount value at $13,300,000.00 (Thirteen Million Three Hundred Thousan

Re: [PATCH 2/2] arm64: defconfig: Raise NR_CPUS to 256

2018-03-06 Thread Arnd Bergmann
On Fri, Mar 2, 2018 at 3:37 PM, Jan Glauber wrote: > ThunderX1 dual socket has 96 CPUs and ThunderX2 has 224 CPUs. Are you sure about those numbers? From my counting, I would have expected twice that number in both cases: 48 cores, 2 chips and 2x SMT for ThunderX vs 52 Cores, 2 chips and 4x SMT f

Re: [PATCH 1/7] genalloc: track beginning of allocations

2018-03-06 Thread Mike Rapoport
On Wed, Feb 28, 2018 at 10:06:14PM +0200, Igor Stoppa wrote: > The genalloc library is only capable of tracking if a certain unit of > allocation is in use or not. > > It is not capable of discerning where the memory associated to an > allocation request begins and where it ends. > > The reason i

Re: [PATCH v2 2/8] [PATCH 2/8] Documentations: dt-bindings: Add a document of PECI adapter driver for Aspeed AST24xx/25xx SoCs

2018-03-06 Thread Arnd Bergmann
On Tue, Mar 6, 2018 at 2:05 PM, Pavel Machek wrote: > On Tue 2018-03-06 13:54:16, Andrew Lunn wrote: >> On Tue, Mar 06, 2018 at 01:40:02PM +0100, Pavel Machek wrote: >> > Hi! >> > >> > > Signed-off-by: Jae Hyun Yoo >> > > --- >> > > .../devicetree/bindings/peci/peci-aspeed.txt | 73 >> > >

Re: [PATCH] reset: imx7: add 'depends on HAS_IOMEM' to fix unmet dependency

2018-03-06 Thread Philipp Zabel
Hi Masahiro, On Tue, 2018-03-06 at 20:15 +0900, Masahiro Yamada wrote: > This config select's MFD_SYSCON, but does not depend on HAS_IOMEM. > > Compile testing on architecture without HAS_IOMEM causes "unmet > direct dependencies" in Kconfig phase. > > Detected by "make ARCH=score allyesconfig".

Re: [PATCH v2 04/10] dt-bindings: display: Add Allwinner MIPI-DSI bindings

2018-03-06 Thread Maxime Ripard
Hi Rob, On Thu, Mar 01, 2018 at 04:15:43PM -0600, Rob Herring wrote: > On Wed, Feb 21, 2018 at 10:20:28AM +0100, Maxime Ripard wrote: > > From: Maxime Ripard > > > > The Allwinner SoCs usually come with a DSI encoder. Add a binding for it. > > > > Signed-off-by: Maxime Ripard > > --- > > Docu

Re: [PATCH v2 2/3] ARM: dts: STi: Remove useless stdout-path for STi boards

2018-03-06 Thread Rob Herring
On Tue, Mar 6, 2018 at 2:07 AM, wrote: > From: Patrice Chotard > > As serial interface is already specified into bootargs, > stdout-path can be removed. Wrong way around. stdout-path is preferred over using console in bootargs. > > Signed-off-by: Patrice Chotard > --- > > v2: _ none > > arch

Re: [PATCH] dump_stack: convert generic dump_stack into a weak symbol

2018-03-06 Thread Arnd Bergmann
On Mon, Mar 5, 2018 at 6:37 AM, Sergey Senozhatsky wrote: > We want to move dump_stack related functions out of printk C > code and consolidate them in lib/dump_stack file. The reason why > dump_stack_print_info()/etc ended up in printk.c was a "generic" > (dummy) lib dump_stack() function, which

Re: [PATCH 7/7] perf tools: Refine perf_mmap__read_init

2018-03-06 Thread Liang, Kan
On 3/5/2018 5:25 PM, Jiri Olsa wrote: On Mon, Mar 05, 2018 at 02:10:59PM -0500, kan.li...@linux.intel.com wrote: SNIP diff --git a/tools/perf/util/mmap.c b/tools/perf/util/mmap.c index e3921ed..403c5e6 100644 --- a/tools/perf/util/mmap.c +++ b/tools/perf/util/mmap.c @@ -235,16 +235,13 @@ sta

Re: Re[v2]: Use of GCC plugin instead ISO C

2018-03-06 Thread Progyan Bhattacharya
On Thu, 2018-03-01 at 13:42 -0800, Randy Dunlap wrote: > If you would build with V=1 and capture all of the output (lots of > it!) to a file, > you could search it for "pedantic" to see where/why it is used. > > I have no idea about the permission problem that you quoted above. Sorry for the misu

Re: [PATCH v2 3/3] tty: st-asc: Update tty alias

2018-03-06 Thread Rob Herring
On Tue, Mar 6, 2018 at 2:07 AM, wrote: > From: Patrice Chotard > > Since dtc v1.4.6-9-gaadd0b65c987, aliases property name > must include only lowercase and '-'. > > After having updated all STi boards serial aliases from "ttyASN" > to "serialN", st-asc driver need to be updated accordingly as t

Re: [v5,1/6] powerpc/mm/slice: Remove intermediate bitmap copy

2018-03-06 Thread Michael Ellerman
On Thu, 2018-02-22 at 14:27:20 UTC, Christophe Leroy wrote: > bitmap_or() and bitmap_andnot() can work properly with dst identical > to src1 or src2. There is no need of an intermediate result bitmap > that is copied back to dst in a second step. > > Signed-off-by: Christophe Leroy > Reviewed-by:

Re: powerpc: Keep const vars out of writable .sdata

2018-03-06 Thread Michael Ellerman
On Thu, 2018-03-01 at 01:02:49 UTC, Kees Cook wrote: > From: Segher Boessenkool > > Newer gcc will support "-mno-readonly-in-sdata"[1], which makes sure that > the optimization on PPC32 for variables getting moved into the .sdata > section will not apply to const variables (which must be in .roda

Re: [PATCH 7/7] Documentation for Pmalloc

2018-03-06 Thread Mike Rapoport
On Wed, Feb 28, 2018 at 10:06:20PM +0200, Igor Stoppa wrote: > Detailed documentation about the protectable memory allocator. > > Signed-off-by: Igor Stoppa > --- > Documentation/core-api/index.rst | 1 + > Documentation/core-api/pmalloc.rst | 111 > + >

Re: [RFC] rcu: Prevent expedite reporting within RCU read-side section

2018-03-06 Thread Boqun Feng
On Tue, Mar 06, 2018 at 02:31:58PM +0900, Byungchul Park wrote: > Hello Paul and RCU folks, > > I am afraid I correctly understand and fix it. But I really wonder why > sync_rcu_exp_handler() reports the quiescent state even in the case that > current task is within a RCU read-side section. Do I m

Re: [PATCH 1/2] media: ov5645: Fix write_reg return code

2018-03-06 Thread Mauro Carvalho Chehab
Em Thu, 8 Feb 2018 11:41:59 +0200 Todor Tomov escreveu: > I2C transfer functions return number of successful operations (on success). > > Do not return the received positive return code but instead return 0 on > success. The users of write_reg function already use this logic. > > Signed-off-by

Re: [PATCH AUTOSEL for 4.9 002/219] spi/bcm63xx: make spi subsystem aware of message size limits

2018-03-06 Thread Jonas Gorski
On 5 March 2018 at 21:35, Mark Brown wrote: > On Mon, Mar 05, 2018 at 08:07:46PM +, Sasha Levin wrote: >> On Mon, Mar 05, 2018 at 10:23:10AM +, Mark Brown wrote: >> >On Sat, Mar 03, 2018 at 10:27:56PM +, Sasha Levin wrote: > >> >> The bcm63xx SPI controller does not allow manual contro

Re: [PATCH v6] arm64: Add support for new control bits CTR_EL0.DIC and CTR_EL0.IDC

2018-03-06 Thread Will Deacon
Hi Shanker, On Wed, Feb 28, 2018 at 10:14:00PM -0600, Shanker Donthineni wrote: > The DCache clean & ICache invalidation requirements for instructions > to be data coherence are discoverable through new fields in CTR_EL0. > The following two control bits DIC and IDC were defined for this > purpose

Re: [PATCH 07/34] x86/entry/32: Restore segments before int registers

2018-03-06 Thread Dave Hansen
On 03/05/2018 11:04 PM, Ingo Molnar wrote: > * H. Peter Anvin wrote: >> On NX-enabled hardware NX works with PDE, but the PDPDT in general doesn't >> have permission bits (it's really more of a set of four CR3s than a page >> table level.) > The 4 PDPDT entries are also shadowed in the CPU and are

Re: [PATCH v6] arm64: Add support for new control bits CTR_EL0.DIC and CTR_EL0.IDC

2018-03-06 Thread Robin Murphy
On 01/03/18 04:14, Shanker Donthineni wrote: [...] diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 2985a06..0b64b55 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -199,12 +199,12 @@ static int __init register_cpu_hwcaps_dumpe

Re: [RFC, PATCH 19/22] x86/mm: Implement free_encrypt_page()

2018-03-06 Thread Dave Hansen
On 03/06/2018 12:54 AM, Kirill A. Shutemov wrote: >> Have you measured how slow this is? > No, I have not. It would be handy to do this. I *think* you can do it on normal hardware, even if it does not have "real" support for memory encryption. Just don't set the encryption bits in the PTEs but g

[PATCH v5] mmc: Export host capabilities to debugfs.

2018-03-06 Thread Harish Jenny K N
This patch exports the host capabilities to debugfs This idea of sharing host capabilities over debugfs came up from Abbas Raza Earlier discussions: https://lkml.org/lkml/2018/3/5/357 https://www.spinics.net/lists/linux-mmc/msg48219.html Signed-off-by: Harish Jenny K N --- Changes in v5: - Add

Re: [PATCH 3/3] staging:iio:meter: Aligns open parenthesis

2018-03-06 Thread Dan Carpenter
On Tue, Mar 06, 2018 at 09:26:07AM -0300, Rodrigo Siqueira wrote: > @@ -63,7 +63,7 @@ int ade7758_probe_trigger(struct iio_dev *indio_dev) > int ret; > > st->trig = iio_trigger_alloc("%s-dev%d", > - spi_get_device_id(st->us)->name, > +

Re: [PATCH] perf stat: fix cvs output format

2018-03-06 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 06, 2018 at 08:58:46AM +0100, Jiri Olsa escreveu: > On Mon, Mar 05, 2018 at 10:43:53PM -0800, Cong Wang wrote: > > From: Ilya Pronin > > > > When printing stats in CSV mode, perf stat appends extra CSV > > separators when counter is not supported: > > > > > supported>,,L1-dcache-sto

Re: [PATCH 2/6] tpm: factor out tpm 1.2 duration calculation to tpm1-cmd.c

2018-03-06 Thread Jarkko Sakkinen
On Tue, Mar 06, 2018 at 11:21:04AM +, Winkler, Tomas wrote: > > > > > On Mon, 2018-03-05 at 22:20 +0200, Tomas Winkler wrote: > > > Factor out tpm1.2 commands calculation into tpm1-cmd.c file. > > > and change the prefix from tpm_ to tpm1_. > > > No functional change is done here. > > > > > >

Re: [PATCH 3/4] tmp: factor out tpm1_get_random into tpm1-cmd.c

2018-03-06 Thread Jarkko Sakkinen
On Tue, Mar 06, 2018 at 11:34:50AM +, Winkler, Tomas wrote: > > > > > On Tue, 2018-03-06 at 11:30 +0200, Tomas Winkler wrote: > > > Factor out get random implementation from tpm-interface.c into > > > tpm1_get_random function in tpm1-cmd.c. > > > No functional changes. > > > > > > Signed-off-

Re: [PATCH 1/2] media: ov5645: Fix write_reg return code

2018-03-06 Thread Sakari Ailus
HI Mauro, On Tue, Mar 06, 2018 at 10:40:10AM -0300, Mauro Carvalho Chehab wrote: > Em Thu, 8 Feb 2018 11:41:59 +0200 > Todor Tomov escreveu: > > > I2C transfer functions return number of successful operations (on success). > > > > Do not return the received positive return code but instead ret

[PATCH v3 2/7] dt-bindings: display: Add Allwinner MIPI-DSI bindings

2018-03-06 Thread Maxime Ripard
From: Maxime Ripard The Allwinner SoCs usually come with a DSI encoder. Add a binding for it. Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.txt | 93 +++- 1 file changed, 93 insertions(+) create mode 100644 Documentation/devicetree/bindings/di

[PATCH v3 4/7] dt-bindings: panel: Add the Ilitek ILI9881c panel documentation

2018-03-06 Thread Maxime Ripard
From: Maxime Ripard The LHR050H41 from BananaPi is a 1280x700 4-lanes DSI panel based on the ILI9881c from Ilitek. Acked-by: Rob Herring Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.txt | 20 1 file changed, 20 insertio

[PATCH v3 7/7] [DO NOT MERGE] arm: dts: sun8i: bpi-m2m: Add DSI display

2018-03-06 Thread Maxime Ripard
From: Maxime Ripard The BananaPi M2M has an optional 1280x720 DSI panel. Since that panel is optional, we can only show a DT patch that would show how to enable it. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts | 39 +- 1 file changed, 39 ins

[PATCH v3 6/7] arm: dts: sun8i: a33: Add the DSI-related nodes

2018-03-06 Thread Maxime Ripard
From: Maxime Ripard The A33 has a MIPI-DSI block, along with its D-PHY. Let's add it in order to use it in the relevant boards. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a33.dtsi | 44 +- 1 file changed, 44 insertions(+) diff --git a/arch/arm/boo

[PATCH v3 3/7] drm/sun4i: Add Allwinner A31 MIPI-DSI controller support

2018-03-06 Thread Maxime Ripard
From: Maxime Ripard Most of the Allwinner SoCs since the A31 share the same MIPI-DSI controller. While that controller is mostly undocumented, the code is out there and has been cleaned up in order to be integrated into DRM. However, there's still some dark areas that are a bit unclear about how

[PATCH v3 1/7] drm/sun4i: tcon: Add TRI finish interrupt for vblank

2018-03-06 Thread Maxime Ripard
From: Maxime Ripard The "CPU" (or Intel 8080) interface uses a different interrupt called TRI_FINISH (most likely TRI being for trigger) to notify the end of frames, and hence the VBLANK period. And that interrupt to the possible VBLANK interrupts source. Reviewed-by: Chen-Yu Tsai Signed-off-b

[PATCH v3 5/7] drm/panel: Add Ilitek ILI9881c panel driver

2018-03-06 Thread Maxime Ripard
From: Maxime Ripard The LHR050H41 panel is the panel shipped with the BananaPi M2-Magic, and is based on the Ilitek ILI9881c Controller. Add a driver for it, modelled after the other Ilitek controller drivers. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/panel/Kconfig | 9

[PATCH v3 0/7] drm/sun4i: Allwinner MIPI-DSI support

2018-03-06 Thread Maxime Ripard
Hi, Here is an preliminary version of the MIPI-DSI support for the Allwinner SoCs. This controller can be found on a number of recent SoCs, such as the A31, A33 or the A64. Given the sparse documentation, there's a number of obscure areas, but the current implementation has been tested with a 4-

Re: [PATCH 2/2] media: ov5645: Improve mode finding function

2018-03-06 Thread Sakari Ailus
Hi Todor, On Thu, Feb 08, 2018 at 11:42:00AM +0200, Todor Tomov wrote: > Find the sensor mode by comparing the size of the requested image size > and the sensor mode's image size. The distance between image sizes is the > size in pixels of the non-overlapping regions between the requested size > a

Re: [PATCH] perf report: Provide libtraceevent with a kernel symbol resolver

2018-03-06 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 06, 2018 at 03:36:58PM +0800, Wang YanQing escreveu: > On Thu, Feb 08, 2018 at 01:20:31PM +0100, Jiri Olsa wrote: > > On Mon, Jan 15, 2018 at 12:47:32PM +0800, Wang YanQing wrote: > > > So that beautifiers wanting to resolve kernel function addresses to > > > names can do its work, and

Re: [PATCH 7/7] perf tools: Refine perf_mmap__read_init

2018-03-06 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 06, 2018 at 08:29:03AM -0500, Liang, Kan escreveu: > > > On 3/5/2018 5:25 PM, Jiri Olsa wrote: > > On Mon, Mar 05, 2018 at 02:10:59PM -0500, kan.li...@linux.intel.com wrote: > > > > SNIP > > > > > diff --git a/tools/perf/util/mmap.c b/tools/perf/util/mmap.c > > > index e3921ed..403c

<    1   2   3   4   5   6   7   8   9   >