Re: [PATCH] x86/ima: require signed kernel modules

2019-02-05 Thread Mimi Zohar
On Mon, 2019-02-04 at 14:30 -0800, Luis Chamberlain wrote: > On Mon, Feb 04, 2019 at 05:05:10PM -0500, Mimi Zohar wrote: > > On Mon, 2019-02-04 at 12:38 -0800, Luis Chamberlain wrote: > > I don't see a need for an additional LSM just for verifying kernel > > module signatures. > > But it is one,

Re: [PATCH v2] livepatch: core: Return EOPNOTSUPP instead of ENOSYS

2019-02-05 Thread Petr Mladek
On Tue 2019-02-05 03:33:28, Alice Ferrazzi wrote: > From: Alice Ferrazzi > > As a result of an unsupported operation is better to use EOPNOTSUPP > as error code. > ENOSYS is only used for 'invalid syscall nr' and nothing else. > > Signed-off-by: Alice Ferrazzi Acked-by: Petr Mladek Best Rega

Re: [PATCH] arm64: dts: ti: k3-am65: Add MSMC RAM node

2019-02-05 Thread Roger Quadros
Tero, On 11/01/19 11:44, Roger Quadros wrote: > The AM65 SoC has 2MB MSMC RAM. Add this as a mmio-sram > node so drivers can use it via genpool API. > > Following areas are marked reserved: > - Lower 128KB for ATF > - 64KB@0xf for SYSFW > - Upper 1MB for cache > > The reserved locations are

[PATCH] device: Fix comment for driver_data in struct device

2019-02-05 Thread David Engraf
dev_set_drvdata/dev_get_drvdata is used to access driver_data in struct device. Signed-off-by: David Engraf --- include/linux/device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/device.h b/include/linux/device.h index 6cb4640b6160..601594771153 100644 --- a

Re: [PATCH V7 1/5] x86/cpufeature: Add facility to check for min microcode revisions

2019-02-05 Thread Borislav Petkov
On Tue, Feb 05, 2019 at 12:46:16PM +0100, Peter Zijlstra wrote: > So Boris asked me to remove the tail comments (done), but what about I > do: % s/\/&_family/g, on the rest of this too? I know we have > cpuinfo_x86::x86 history, but at some point we should rename that too. My argument was to keep

Re: [PATCH v3 0/3] Add nvmem driver support for ZynqMP

2019-02-05 Thread Michal Simek
On 06. 02. 19 12:07, Nava kishore Manne wrote: > Nava kishore Manne (3): > firmware: xilinx: Add zynqmp_pm_get_chipid() API > dt-bindings: nvmem: Add bindings for ZynqMP nvmem driver > nvmem: zynqmp: Added zynqmp nvmem firmware driver > > .../bindings/nvmem/xlnx,zynqmp-nvmem.txt | 47 +

Re: [PATCH 1/3] dmaengine: at_xdmac: remove BUG_ON macro in tasklet

2019-02-05 Thread Ludovic Desroches
On Tue, Feb 05, 2019 at 12:03:41PM +0100, Nicolas Ferre wrote: > Even if this case shouldn't happen when controller is properly programmed, > it's still better to avoid dumping a kernel Oops for this. > As the sequence may happen only for debugging purposes, log the error and > just finish the task

Re: [PATCH 0/5] sched refcount_t conversions

2019-02-05 Thread Peter Zijlstra
On Tue, Feb 05, 2019 at 11:57:00AM +, Reshetova, Elena wrote: > > On Fri, Jan 18, 2019 at 02:27:25PM +0200, Elena Reshetova wrote: > > > Elena Reshetova (5): > > > sched: convert sighand_struct.count to refcount_t > > > sched: convert signal_struct.sigcnt to refcount_t > > > > These should

Re: [PATCHv5 04/10] node: Link memory nodes to their compute nodes

2019-02-05 Thread Rafael J. Wysocki
On Fri, Jan 25, 2019 at 12:08 AM Keith Busch wrote: > > Systems may be constructed with various specialized nodes. Some nodes > may provide memory, some provide compute devices that access and use > that memory, and others may provide both. Nodes that provide memory are > referred to as memory tar

Re: [PATCH 2/3] dmaengine: at_xdmac: enhance channel errors handling in tasklet

2019-02-05 Thread Ludovic Desroches
On Tue, Feb 05, 2019 at 12:03:42PM +0100, Nicolas Ferre wrote: > Complement the identification of errors with stoping the channel and > dumping the descriptor that led to the error case. > > Signed-off-by: Nicolas Ferre Acked-by: Ludovic Desroches > --- > drivers/dma/at_xdmac.c | 43 ++

Re: [PATCH 3/3] dmaengine: at_xdmac: only monitor overflow errors for peripheral xfer

2019-02-05 Thread Ludovic Desroches
On Tue, Feb 05, 2019 at 12:03:43PM +0100, Nicolas Ferre wrote: > The overflow error flag (ROI: Request Overflow Error) is only relevant > for the case when the channel handles a peripheral synchronized transfer. > Not in the case of memory to memory transfer where there is no hardware > request sig

Re: [PATCH v2 06/20] x86/alternative: use temporary mm for text poking

2019-02-05 Thread Borislav Petkov
On Tue, Feb 05, 2019 at 12:31:46PM +0100, Peter Zijlstra wrote: > ... > > So while in general I agree with BUG_ON() being undesirable, I think > liberal sprinking in text_poke() is fine; you really _REALLY_ want this > to work or fail loudly. Text corruption is just painful. Ok. It would be good t

Re: [PATCH 14/14] perf record: Add --dir option to store data in directory

2019-02-05 Thread Alexey Budankov
On 03.02.2019 18:30, Jiri Olsa wrote: > Adding --dir option to store data in directory. It's next > step for multiple threads in record. It's not possible > to make directory data via --dir option, like: > > $ perf record --dir perf bench sched messaging > $ ls -l perf.data > total 344 >

[PATCH 4/4] iio: counter: stm32-lptimer: Add power management support

2019-02-05 Thread Fabrice Gasnier
Add suspend/resume PM sleep ops. When going to low power, disable active counter. Only active counter should be resumed: don't touch disabled counter, as it may be used by other LPTimer MFD child driver. Signed-off-by: Fabrice Gasnier --- drivers/iio/counter/stm32-lptimer-cnt.c | 55

[PATCH 2/4] pwm: stm32-lp: Add power management support

2019-02-05 Thread Fabrice Gasnier
Add suspend/resume PM sleep ops. When going to low power, disable active PWM channel. Active PWM channel is resumed, by calling pwm_apply_state(). This is inspired by Thierry's comment in [1]. Don't touch inactive channels, as it may be used by other LPTimer MFD child driver. [1]https://lkml.org/lk

[PATCH 0/4] Add PM support to STM32 LP Timer drivers

2019-02-05 Thread Fabrice Gasnier
This patch series adds power management support for STM32 LP Timer drivers: - PWM driver - IIO counter driver - Document the pinctrl states for sleep mode Fabrice Gasnier (4): dt-bindings: pwm-stm32-lp: document pinctrl sleep state pwm: stm32-lp: Add power management support dt-bindings: iio

[PATCH 3/4] dt-bindings: iio: stm32-lptimer-counter: document pinctrl sleep state

2019-02-05 Thread Fabrice Gasnier
Add documentation for optional pinctrl sleep state that can be used by STM32 LPTimer encoder/counter. Signed-off-by: Fabrice Gasnier --- .../devicetree/bindings/iio/counter/stm32-lptimer-cnt.txt | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/de

[PATCH 1/4] dt-bindings: pwm-stm32-lp: document pinctrl sleep state

2019-02-05 Thread Fabrice Gasnier
Add documentation for pinctrl sleep state on STM32 LPTimer PWM. Signed-off-by: Fabrice Gasnier --- Documentation/devicetree/bindings/pwm/pwm-stm32-lp.txt | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pwm/pwm-stm32-lp.txt b/Documen

Re: [PATCH] ARM: davinci: da850-evm: use GPIO hogs instead of the legacy API

2019-02-05 Thread Linus Walleij
On Tue, Feb 5, 2019 at 10:49 AM Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > In order to drop the hard-coded GPIO base values from the davinci GPIO > driver's platform data, we first need to get rid of all calls to the > legacy GPIO functions. Convert the mdio configuration to hoggi

[PATCH v2 2/3] arm64: dts: ti: k3-am6: add USB support

2019-02-05 Thread Roger Quadros
Adds support for USB0 and USB1 instances on the AM6 SoC. USB0 is limited to high-speed for now. Signed-off-by: Roger Quadros --- arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 76 1 file changed, 76 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi

[PATCH v2 3/3] arm64: dts: ti: k3-am654-base-board: enable USB1

2019-02-05 Thread Roger Quadros
Add pinmux for USB1 and enable it as a dual role port. Signed-off-by: Roger Quadros --- arch/arm64/boot/dts/ti/k3-am654-base-board.dts | 28 ++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/boot/dts/ti/k3-am654

[PATCH v2 1/3] arm64: dts: ti: am654: Add Main System Control Module node

2019-02-05 Thread Roger Quadros
From: Jyri Sarha Main System control module support is added to the device tree to allow driver to access to their control module registers. Signed-off-by: Jyri Sarha Signed-off-by: Roger Quadros --- arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 8 1 file changed, 8 insertions(+) diff

Re: [PATCH] s390/jump_label: Correct asm contraint

2019-02-05 Thread Heiko Carstens
On Tue, Jan 29, 2019 at 08:25:58AM +0100, Laura Abbott wrote: > On 1/23/19 5:24 AM, Heiko Carstens wrote: > >On Wed, Jan 23, 2019 at 01:55:13PM +0100, Laura Abbott wrote: > >>There's a build failure with gcc9: > >> > >> ./arch/s390/include/asm/jump_label.h: Assembler messages: > >> ./arch/s390/in

[PATCH v2 0/3] arm64: ti: k3-am654: USB support

2019-02-05 Thread Roger Quadros
Hi, The AM654 SoC supports 2 DWC3 USB controller instances. The AM654 base board supports the 2nd (USB1) instance in high-speed. This series enables support for USB1 instance on the AM654-base-board. The series depends on [1] and [2]. Both are in the -next branch of their respective maintainer t

[PATCH] kbuild: [bin]deb-pkg: add DPKG_FLAGS variable

2019-02-05 Thread Kacper Kołodziej
DPKG_FLAGS variable lets user to add more flags to dpkg-buildpackage command in deb-pkg and bindeb-pkg. Signed-off-by: Kacper Kołodziej --- scripts/package/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/package/Makefile b/scripts/package/Makefile index 4

Re: [PATCH] MMC: OMAP: fix the maximum timeout setting

2019-02-05 Thread Ulf Hansson
On Sat, 2 Feb 2019 at 23:15, Aaro Koskinen wrote: > > When running OMAP1 kernel on QEMU, MMC access is annoyingly noisy: > > MMC: CTO of 0xff and 0xfe cannot be used! > MMC: CTO of 0xff and 0xfe cannot be used! > MMC: CTO of 0xff and 0xfe cannot be used! > [ad inf.]

RE: [PATCH v3 0/1] arm64: Add workaround for Fujitsu A64FX erratum 010001

2019-02-05 Thread Zhang, Lei
Hi Catalin, > -Original Message- > From: Catalin Marinas [mailto:catalin.mari...@arm.com] > Sent: Wednesday, January 30, 2019 3:11 AM > To: Zhang, Lei > Cc: 'linux-kernel@vger.kernel.org'; 'Mark Rutland'; > 'linux-arm-ker...@lists.infradead.org'; 'will.dea...@arm.com'; > 'james.mo...@arm.

Re: [PATCH v7 13/15] KVM: s390: add gib_alert_irq_handler()

2019-02-05 Thread Michael Mueller
On 05.02.19 12:38, Pierre Morel wrote: On 31/01/2019 09:52, Michael Mueller wrote: The patch implements a handler for GIB alert interruptions on the host. Its task is to alert guests that interrupts are pending for them. A GIB alert interrupt statistic counter is added as well: $ cat /proc/

Re: [PATCH v2] mtd: rawnand: mark expected switch fall-throughs

2019-02-05 Thread Miquel Raynal
Hi Gustavo, "Gustavo A. R. Silva" wrote on Mon, 28 Jan 2019 12:15:20 -0600: > In preparation to enabling -Wimplicit-fallthrough, mark switch > cases where we are expecting to fall through. > > This patch fixes the following warning: > > drivers/mtd/nand/onenand/onenand_base.c:3264:6: warning:

Re: [PATCH 4/5] phy: tegra: xusb: Add support for power supplies

2019-02-05 Thread Kishon Vijay Abraham I
Hi, On 28/01/19 1:30 PM, Thierry Reding wrote: > On Mon, Jan 28, 2019 at 03:22:09PM +0800, jckuo wrote: >> Hi Thierry, >> >> I think any non-zero return value of >> regulator_bulk_enable()/devm_regulator_bulk_get() means error. >> >> Thanks, >> >> JC > > Theoretically I think only regulator_bulk_

Re: [PATCH] mtd: rawnand: gpmi: fix MX28 bus master lockup problem

2019-02-05 Thread Miquel Raynal
Hi Martin, Martin Kepplinger wrote on Tue, 29 Jan 2019 16:37:00 +0100: > From: Martin Kepplinger > > Disable BCH soft reset according to MX23 erratum #2847 ("BCH soft > reset may cause bus master lock up") for MX28 too. It has the same > problem. > > Observed problem: once per 100,000+ MX28 r

Re: perf: python3 + tests attr.py failing

2019-02-05 Thread Arnaldo Carvalho de Melo
Em Mon, Feb 04, 2019 at 09:37:38PM +0100, Jiri Olsa escreveu: > On Mon, Feb 04, 2019 at 12:10:42PM -0300, Arnaldo Carvalho de Melo wrote: > > Noticed this now when building with PYTHON=python3, can you take a look? > > For now I'm reinstalling python2-devel and building with it, i.e. > > removing t

Re: [PATCH 5/5] perf/arm_dsu: Fix CPU hotplug races

2019-02-05 Thread Robin Murphy
Hi Suzuki, On 05/02/2019 11:40, Suzuki K Poulose wrote: On 04/02/2019 17:09, Robin Murphy wrote: Like other system PMUs which associate themselves with an arbitrary CPU for housekeeping purposes, arm_dsu has a race between registering the hotplug notifier and registering the PMU device, such th

Re: [PATCH v2] livepatch: core: Return EOPNOTSUPP instead of ENOSYS

2019-02-05 Thread Miroslav Benes
On Tue, 5 Feb 2019, Alice Ferrazzi wrote: > From: Alice Ferrazzi > > As a result of an unsupported operation is better to use EOPNOTSUPP > as error code. > ENOSYS is only used for 'invalid syscall nr' and nothing else. > > Signed-off-by: Alice Ferrazzi Acked-by: Miroslav Benes Miroslav

Re: [REGRESSION 4.20-rc1] 45975c7d21a1 ("rcu: Define RCU-sched API in terms of RCU for Tree RCU PREEMPT builds")

2019-02-05 Thread Tom Li
On Tue, Feb 05, 2019 at 11:58:09AM +0200, Aaro Koskinen wrote: > Can you try below fix? It works on my Loongson. Hello Aaro, thanks for your response. But in case you've missed the original thread, please check it at: https://lkml.org/lkml/2018/11/13/857 My problem is NOT about how to fix the pr

Re: [PATCH] mmc: mmc: Fix HS setting in mmc_hs400_to_hs200()

2019-02-05 Thread Ulf Hansson
On Mon, 4 Feb 2019 at 14:42, Adrian Hunter wrote: > > On 4/02/19 12:54 PM, Ulf Hansson wrote: > > On Mon, 4 Feb 2019 at 10:58, Adrian Hunter wrote: > >> > >> On 1/02/19 10:10 AM, Ulf Hansson wrote: > >>> On Fri, 1 Feb 2019 at 02:38, Chaotian Jing > >>> wrote: > > On Thu, 2019-01-31 at

Re: [RFC][Patch v8 1/7] KVM: Support for guest free page hinting

2019-02-05 Thread Nitesh Narayan Lal
On 2/4/19 11:14 PM, Michael S. Tsirkin wrote: > On Mon, Feb 04, 2019 at 03:18:48PM -0500, Nitesh Narayan Lal wrote: >> This patch includes the following: >> 1. Basic skeleton for the support >> 2. Enablement of x86 platform to use the same >> >> Signed-off-by: Nitesh Narayan Lal >> --- >> arch/x8

Re: [PATCH] nvme: Enable acceleration feature of A64FX processor

2019-02-05 Thread Takao Indoh
On Fri, Feb 01, 2019 at 07:54:14AM -0700, Keith Busch wrote: > On Fri, Feb 01, 2019 at 09:46:15PM +0900, Takao Indoh wrote: > > From: Takao Indoh > > > > Fujitsu A64FX processor has a feature to accelerate data transfer of > > internal bus by relaxed ordering. It is enabled when the bit 56 of dma

Re: [PATCH] nvme: Enable acceleration feature of A64FX processor

2019-02-05 Thread Takao Indoh
On Fri, Feb 01, 2019 at 04:51:20PM +0100, Christoph Hellwig wrote: > On Fri, Feb 01, 2019 at 09:46:15PM +0900, Takao Indoh wrote: > > From: Takao Indoh > > > > Fujitsu A64FX processor has a feature to accelerate data transfer of > > internal bus by relaxed ordering. It is enabled when the bit 56

Re: perf: python3 + tests attr.py failing

2019-02-05 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 05, 2019 at 10:02:14AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Mon, Feb 04, 2019 at 09:37:38PM +0100, Jiri Olsa escreveu: > > On Mon, Feb 04, 2019 at 12:10:42PM -0300, Arnaldo Carvalho de Melo wrote: > > > Noticed this now when building with PYTHON=python3, can you take a look? >

Re: [PATCH v3 1/6] dt-bindings: i2c: Add Mediatek MT7629 i2c binding

2019-02-05 Thread Wolfram Sang
On Mon, Jan 21, 2019 at 03:59:29PM +0800, qii wang wrote: > Add MT7629 i2c binding to binding file. > > Signed-off-by: qii wang > Reviewed-by: Rob Herring Applied to for-next, thanks! signature.asc Description: PGP signature

[PATCH] x86/boot: Fix randconfig build error due to MEMORY_HOTREMOVE

2019-02-05 Thread Borislav Petkov
From: Borislav Petkov When building randconfigs, one of the failures is: ld: arch/x86/boot/compressed/kaslr.o: in function `choose_random_location': kaslr.c:(.text+0xbf7): undefined reference to `count_immovable_mem_regions' ld: kaslr.c:(.text+0xcbe): undefined reference to `immovable_mem'

Re: [PATCH v3 2/6] i2c: mediatek: speeds is replaced by macros definitions

2019-02-05 Thread Wolfram Sang
On Mon, Jan 21, 2019 at 03:59:30PM +0800, qii wang wrote: > Different speeds have been defined by macros, > so we use macros definitions. > > Signed-off-by: qii wang > Reviewed-by: Nicolas Boichat Applied to for-next, thanks! signature.asc Description: PGP signature

Re: [PATCH v3 3/6] i2c: mediatek: remove completion_done()

2019-02-05 Thread Wolfram Sang
On Mon, Jan 21, 2019 at 03:59:31PM +0800, qii wang wrote: > Completion_done() is useless when we don't use its return value, > so we remove it. > > Signed-off-by: qii wang Applied to for-next, thanks! signature.asc Description: PGP signature

[PATCH] x86/boot: Fix cmdline_find_option() prototype visibility

2019-02-05 Thread Borislav Petkov
On Wed, Jan 30, 2019 at 06:20:19PM +0100, Borislav Petkov wrote: > On Thu, Jan 31, 2019 at 01:12:16AM +0800, kbuild test robot wrote: > > tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git > > tip-x86-boot > > branch HEAD: 593ab2163e72a9697814dbca7247928a2bbb8b49 x86/boot/KAS

Re: [PATCH 0/2] Add Apple SPI keyboard and trackpad driver

2019-02-05 Thread Life is hard, and then you die
Hi Henrik, On Mon, Feb 04, 2019 at 09:47:55PM +0100, Henrik Rydberg wrote: > Hi Ronald, > > > This changeset adds a driver for the SPI keyboard and trackpad on recent > > MacBook's and MacBook Pro's. The driver has seen a fair amount of use > > over the last 2 years (basically anybody running

Re: [PATCH 2/2] Input: add Apple SPI keyboard and trackpad driver.

2019-02-05 Thread Life is hard, and then you die
Hi Dan, On Tue, Feb 05, 2019 at 01:21:10PM +0300, Dan Carpenter wrote: > Hi Ronald, > > Thank you for the patch! Perhaps something to improve: > > url: > https://github.com/0day-ci/linux/commits/Ronald-Tschal-r/drm-bridge-sil_sii8620-depend-on-INPUT-instead-of-sel

Re: [PATCH v3 08/10] x86/setcpuid: Add kernel option setcpuid

2019-02-05 Thread Peter Zijlstra
On Tue, Feb 05, 2019 at 09:57:50AM +0100, Peter Zijlstra wrote: > On Mon, Feb 04, 2019 at 03:24:23PM -0800, Dave Hansen wrote: > > > Actually, there's one part of all this that I forgot. Will split lock > > detection be enumerated _widely_? IOW, will my laptop in 5 years > > enumerate support fo

Re: [PATCH v2] mtd: nand: fix object reference leaks in atmel_pmecc_get_by_node

2019-02-05 Thread Miquel Raynal
Hi wen, Can you change the commit message: "mtd: rawnand: atmel: fix possible object reference leak" wen yang wrote on Sun, 3 Feb 2019 12:41:44 +: > of_find_device_by_node() takes a reference to the struct device > when it finds a match via get_device, there is no need to call > get_device

Re: [PATCH v3 5/6] dt-bindings: i2c: Add Mediatek MT8183 i2c binding

2019-02-05 Thread Wolfram Sang
> + - mediatek,share-i3c: i3c controller can share i2c function. I am not happy with this binding. There must be a better way of using the I3C controller in I2C mode. I think it would be easier to tell if we had an I3C driver to see how it implements I2C fallback there. Is the I3C driver on the

Re: [PATCH 2/2] Input: add Apple SPI keyboard and trackpad driver.

2019-02-05 Thread Life is hard, and then you die
Hi Andy, On Tue, Feb 05, 2019 at 01:45:22PM +0200, Andy Shevchenko wrote: > On Mon, Feb 04, 2019 at 12:19:47AM -0800, Ronald Tschalär wrote: > > The keyboard and trackpad on recent MacBook's (since 8,1) and > > MacBookPro's (13,* and 14,*) are attached to an SPI controller instead > > of USB,

Re: [PATCH] mtd: rawnand: denali_dt: remove single anonymous clock support

2019-02-05 Thread Miquel Raynal
Hi Dinh, Boris Brezillon wrote on Thu, 31 Jan 2019 18:26:44 +0100: > Hi Dinh, > > On Thu, 31 Jan 2019 11:24:16 -0600 > Dinh Nguyen wrote: > > > On 1/28/19 4:20 AM, Miquel Raynal wrote: > > > Hi Dinh, > > > > > > Masahiro Yamada wrote on Wed, 16 Jan > > > 2019 10:27:11 +0900: > > > >

Re: [PATCH RESEND v2 05/12] drm/bridge: Add Analogix anx6345 support

2019-02-05 Thread Torsten Duwe
First thing that struck me is that the chip's reset is actually low active reset-gpios = <&pio 3 24 GPIO_ACTIVE_LOW>; /* PD24 */ (please correct this in patches 11 and 12) Consequently, you're using inverted values here in the driver: > +static voi

Re: [PATCH] device: Fix comment for driver_data in struct device

2019-02-05 Thread Andy Shevchenko
On Tue, Feb 05, 2019 at 01:19:52PM +0100, David Engraf wrote: > dev_set_drvdata/dev_get_drvdata is used to access driver_data > in struct device. The original comment might be slight confusing, though we all know the concept of getters and setters. > void*platform_data; /* Platf

Re: [PATCH v2 ] PM-runtime: fix deadlock with ktime

2019-02-05 Thread Geert Uytterhoeven
Hi Ulf, On Wed, Jan 30, 2019 at 1:15 PM Ulf Hansson wrote: > On Wed, 30 Jan 2019 at 12:16, Vincent Guittot > wrote: > > > > A deadlock has been seen when swicthing clocksources which use PM runtime. > > The call path is: > > change_clocksource > > ... > > write_seqcount_begin > > ...

Re: Question on handling managed IRQs when hotplugging CPUs

2019-02-05 Thread John Garry
On 04/02/2019 07:12, Hannes Reinecke wrote: On 2/1/19 10:57 PM, Thomas Gleixner wrote: On Fri, 1 Feb 2019, Hannes Reinecke wrote: Thing is, if we have _managed_ CPU hotplug (ie if the hardware provides some means of quiescing the CPU before hotplug) then the whole thing is trivial; disable SQ a

Re: [PATCH v2 06/20] x86/alternative: use temporary mm for text poking

2019-02-05 Thread Peter Zijlstra
On Tue, Feb 05, 2019 at 01:35:33PM +0100, Borislav Petkov wrote: > On Tue, Feb 05, 2019 at 12:31:46PM +0100, Peter Zijlstra wrote: > > ... > > > > So while in general I agree with BUG_ON() being undesirable, I think > > liberal sprinking in text_poke() is fine; you really _REALLY_ want this > > to

Re: [PATCH v2 2/4] livepatch: return -ENOMEM on ptr_id() allocation failure

2019-02-05 Thread Miroslav Benes
On Mon, 4 Feb 2019, Petr Mladek wrote: > From: Joe Lawrence > > Fixes the following smatch warning: > > lib/livepatch/test_klp_shadow_vars.c:47 ptr_id() warn: returning -1 instead > of -ENOMEM is sloppy > > Signed-off-by: Joe Lawrence > Signed-off-by: Petr Mladek Acked-by: Miroslav Benes

Re: [PATCH net-next v3] net: dsa: mv88e6xxx: Prevent suspend to RAM

2019-02-05 Thread Andrew Lunn
On Tue, Feb 05, 2019 at 12:07:28PM +0100, Miquel Raynal wrote: > On one hand, the mv88e6xxx driver has a work queue called in loop > which will attempt register accesses after MDIO bus suspension, that > entirely freezes the platform during suspend. > > On the other hand, the DSA core is not ready

Re: perf: python3 + tests attr.py failing

2019-02-05 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 05, 2019 at 10:08:43AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Feb 05, 2019 at 10:02:14AM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Mon, Feb 04, 2019 at 09:37:38PM +0100, Jiri Olsa escreveu: > > > On Mon, Feb 04, 2019 at 12:10:42PM -0300, Arnaldo Carvalho de Melo wrot

Re: [PATCH v2 06/20] x86/alternative: use temporary mm for text poking

2019-02-05 Thread Peter Zijlstra
On Tue, Feb 05, 2019 at 12:31:46PM +0100, Peter Zijlstra wrote: > In general, text_poke() cannot fail: > > - suppose changing a single jump label requires poking multiple sites >(not uncommon), we fail halfway through and then have to undo the >first pokes, but those pokes fail again. >

Re: [PATCH] mtd: rawnand: mtk: fix object reference leaks in mtk_ecc_get

2019-02-05 Thread Miquel Raynal
Hi wen, wen yang wrote on Tue, 5 Feb 2019 10:05:46 +: > of_find_device_by_node() takes a reference to the struct device > when it finds a match via get_device, there is no need to call > get_device() twice. > We also should make sure to drop the reference to the device > taken by of_find_dev

Re: [PATCH] mtd: rawnand: jz4780: fix object reference leaks in jz4780_bch_get

2019-02-05 Thread Miquel Raynal
Hi wen, wen yang wrote on Tue, 5 Feb 2019 09:36:48 +: > of_find_device_by_node() takes a reference to the struct device > when it finds a match via get_device, there is no need to call > get_device() twice. > We also should make sure to drop the reference to the device > taken by of_find_dev

RE: [PATCH v3 0/1] arm64: Add workaround for Fujitsu A64FX erratum 010001

2019-02-05 Thread Zhang, Lei
Hi Will, > -Original Message- > From: linux-arm-kernel > [mailto:linux-arm-kernel-boun...@lists.infradead.org] On Behalf Of > Will Deacon > Sent: Friday, February 01, 2019 7:52 PM > To: Zhang, Lei > Cc: 'Mark Rutland'; 'Catalin Marinas'; 'James Morse'; > 'linux-kernel@vger.kernel.org'; >

Re: [PATCH 1/3] mmc: core: Calculate the discard arg only once

2019-02-05 Thread Ulf Hansson
On Sun, 3 Feb 2019 at 09:51, Avri Altman wrote: > > The discard arg is a read-only ext_csd parameter - > set it once on card init. I like the idea here. There is really no point checking this for every corresponding request, nice! However, the "discard arg" isn't specific to eMMC, as it's also u

Re: [RFC/PATCH 00/14] perf record: Add support to store data in directory

2019-02-05 Thread Jiri Olsa
On Mon, Feb 04, 2019 at 02:44:37PM -0800, Stephane Eranian wrote: > Jiri, > > While you're looking at the output format, I think it would be good > time to simplify the code handling perf.data file. > Today, perf record can emit in two formats: file mode or pipe mode. > This adds complexity in the

Re: [PATCH 0/6] RFC v2: mm: gup/dma tracking

2019-02-05 Thread Tom Talpey
On 2/5/2019 3:22 AM, John Hubbard wrote: On 2/4/19 5:41 PM, Tom Talpey wrote: On 2/4/2019 12:21 AM, john.hubb...@gmail.com wrote: From: John Hubbard Performance: here is an fio run on an NVMe drive, using this for the fio configuration file: [reader] direct=1 ioengine=libaio

Re: [PATCH 01/14] perf tools: Make rm_rf to remove single file

2019-02-05 Thread Jiri Olsa
On Tue, Feb 05, 2019 at 02:33:06PM +0300, Alexey Budankov wrote: > > On 03.02.2019 18:30, Jiri Olsa wrote: > > Let rm_rf remove file if it's provided by path. > > > > Link: http://lkml.kernel.org/n/tip-whhp3ej5795l9dc86xfyy...@git.kernel.org > > Signed-off-by: Jiri Olsa > > --- > > tools/perf/u

Re: [PATCH v2 ] PM-runtime: fix deadlock with ktime

2019-02-05 Thread Ulf Hansson
On Tue, 5 Feb 2019 at 14:24, Geert Uytterhoeven wrote: > > Hi Ulf, > > On Wed, Jan 30, 2019 at 1:15 PM Ulf Hansson wrote: > > On Wed, 30 Jan 2019 at 12:16, Vincent Guittot > > wrote: > > > > > > A deadlock has been seen when swicthing clocksources which use PM runtime. > > > The call path is: >

Re: [RFC PATCH v4 08/13] genirq/msi: Add support for allocating single MSI for a device

2019-02-05 Thread Lokesh Vutla
Hi Marc, On 04/02/19 4:03 PM, Marc Zyngier wrote: > On 24/01/2019 10:19, Lokesh Vutla wrote: >> Hi Marc, >> Sorry for the delayed response. Just back from vacation. >> >> On 17/01/19 12:00 AM, Marc Zyngier wrote: >>> On 27/12/2018 06:13, Lokesh Vutla wrote: Previously all msi for a devic

Re: [PATCH 06/14] perf data: Add perf_data__(create_dir|free_dir) functions

2019-02-05 Thread Jiri Olsa
On Tue, Feb 05, 2019 at 02:52:58PM +0300, Alexey Budankov wrote: > > On 03.02.2019 18:30, Jiri Olsa wrote: > > Adding perf_data__create_dir to create nr files inside > > struct perf_data path directory: > > int perf_data__create_dir(struct perf_data *data, int nr); > > > > and function to free

Re: [PATCH] mmc: mmc: Fix HS setting in mmc_hs400_to_hs200()

2019-02-05 Thread Adrian Hunter
On 5/02/19 3:06 PM, Ulf Hansson wrote: > On Mon, 4 Feb 2019 at 14:42, Adrian Hunter wrote: >> >> On 4/02/19 12:54 PM, Ulf Hansson wrote: >>> On Mon, 4 Feb 2019 at 10:58, Adrian Hunter wrote: On 1/02/19 10:10 AM, Ulf Hansson wrote: > On Fri, 1 Feb 2019 at 02:38, Chaotian Jing >

Re: [RFC PATCH] clk: sunxi-ng: sun4i: Use CLK_SET_RATE_PARENT for mmc2 clock

2019-02-05 Thread Chen-Yu Tsai
On Tue, Feb 5, 2019 at 5:45 PM Maxime Ripard wrote: > > On Sat, Feb 02, 2019 at 05:52:09PM +0200, Priit Laes wrote: > > Recent patch of improving MP clock rate calculations by taking > > into account whether adjusting parent rate is allowed, have > > unfortunately broken eMMC support on A20 Olinux

Re: [PATCH 06/14] perf data: Add perf_data__(create_dir|free_dir) functions

2019-02-05 Thread Arnaldo Carvalho de Melo
Em Sun, Feb 03, 2019 at 04:30:10PM +0100, Jiri Olsa escreveu: > Adding perf_data__create_dir to create nr files inside > struct perf_data path directory: > int perf_data__create_dir(struct perf_data *data, int nr); > > and function to free that data: > void perf_data__free_dir(struct perf_data

Re: [PATCH 3/3] locking/qspinlock: Introduce starvation avoidance into CNA

2019-02-05 Thread Waiman Long
On 02/05/2019 04:22 AM, Peter Zijlstra wrote: > On Mon, Feb 04, 2019 at 10:35:09PM -0500, Alex Kogan wrote: >>> On Jan 31, 2019, at 5:00 AM, Peter Zijlstra wrote: >>> >>> On Wed, Jan 30, 2019 at 10:01:35PM -0500, Alex Kogan wrote: Choose the next lock holder among spinning threads running on

Re: [PATCH] arm64: dts: imx8mq: Add RTC support

2019-02-05 Thread Chris Spencer
On Thu, 31 Jan 2019 at 15:03, Abel Vesa wrote: > Add RTC support for i.MX8MQ. > > Signed-off-by: Abel Vesa Tested on my i.MX8MQ-EVK. The system time is now retained between reboots, but not if the system is fully powered down. Judging by the absence of coin battery on the board I'm guessing the

Re: perf: python3 + tests attr.py failing

2019-02-05 Thread Arnaldo Carvalho de Melo
Em Mon, Feb 04, 2019 at 09:37:38PM +0100, Jiri Olsa escreveu: > On Mon, Feb 04, 2019 at 12:10:42PM -0300, Arnaldo Carvalho de Melo wrote: > > Noticed this now when building with PYTHON=python3, can you take a look? > > For now I'm reinstalling python2-devel and building with it, i.e. > > removing t

Re: [PATCH 14/14] perf record: Add --dir option to store data in directory

2019-02-05 Thread Jiri Olsa
On Tue, Feb 05, 2019 at 03:36:24PM +0300, Alexey Budankov wrote: > > On 03.02.2019 18:30, Jiri Olsa wrote: > > Adding --dir option to store data in directory. It's next > > step for multiple threads in record. It's not possible > > to make directory data via --dir option, like: > > > > $ perf r

Re: [PATCH 6/6] media: ov5640: Consolidate JPEG compression mode setting

2019-02-05 Thread Chen-Yu Tsai
On Tue, Feb 5, 2019 at 4:55 PM Sakari Ailus wrote: > > Hi Chen-Yu, > > On Fri, Jan 18, 2019 at 04:52:06PM +0800, Chen-Yu Tsai wrote: > > The register value lists for all the supported resolution settings all > > include a register address/value pair for setting the JPEG compression > > mode. With

Re: [PATCH V4 2/9] jump_label: Add the jump_label_can_update_check() helper

2019-02-05 Thread Daniel Bristot de Oliveira
Hi Borislav! On 2/5/19 8:22 AM, Borislav Petkov wrote: >> Subject: Re: [PATCH V4 2/9] jump_label: Add the >> jump_label_can_update_check() helper > > s/the/a/ ack! > On Mon, Feb 04, 2019 at 08:58:55PM +0100, Daniel Bristot de Oliveira wrote: >> Move the check of if a jump_entry is valid to a f

Re: [PATCH 06/14] perf data: Add perf_data__(create_dir|free_dir) functions

2019-02-05 Thread Jiri Olsa
On Tue, Feb 05, 2019 at 10:46:07AM -0300, Arnaldo Carvalho de Melo wrote: > Em Sun, Feb 03, 2019 at 04:30:10PM +0100, Jiri Olsa escreveu: > > Adding perf_data__create_dir to create nr files inside > > struct perf_data path directory: > > int perf_data__create_dir(struct perf_data *data, int nr);

Re: [PATCH 3.18 00/31] 3.18.134-stable review

2019-02-05 Thread Guenter Roeck
On 2/5/19 12:46 AM, Greg Kroah-Hartman wrote: On Mon, Feb 04, 2019 at 01:44:44PM -0800, Guenter Roeck wrote: On Mon, Feb 04, 2019 at 11:36:15AM +0100, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 3.18.134 release. There are 31 patches in this series, all will b

Re: [PATCH v3 7/9] mtd: rawnand: ingenic: Add support for the JZ4740

2019-02-05 Thread Miquel Raynal
Hi Paul, Paul Cercueil wrote on Mon, 4 Feb 2019 16:04:24 -0300: > Add support for probing the ingenic-nand driver on the JZ4740 SoC from > Ingenic, and the jz4740-ecc driver to support the JZ4740-specific > ECC hardware. > > Signed-off-by: Paul Cercueil > --- > > Changes: > > v2: New patch

Re: [PATCH v3 0/2] Bluetooth: Add NULL check for tiocmget() and tiocmset()

2019-02-05 Thread Marcel Holtmann
Hi Myungho, > tiocmget() and tiocmset() operations are optional and some tty drivers > like pty miss the operations. Add NULL checks to prevent from > dereference. > > Myungho Jung (2): > Bluetooth: hci_ath: Add NULL check for tiocmget() and tiocmset() in >ath_setup() > Bluetooth: hci_ldisc

Re: 0e334db6bb4b1fd1e2d72c1f3d8f004313cd9f94 (posix-timers: Fix division by zero bug). Problems with glibc.

2019-02-05 Thread Alan Mackenzie
Hello, Thomas. On Mon, Feb 04, 2019 at 17:25:11 +, Thomas Gleixner wrote: > On Sat, 2 Feb 2019, Alan Mackenzie wrote: [ ] > > I've just built and installed Linux 4.19.19, and it does indeed solve > > the Emacs profiler bug, #34235. :-) > > I see that the patch has been installed in 4.

From Michelle

2019-02-05 Thread Michelle
Hello dear, happy new year, I hope all is well with you and your family? I have an important deal to discuss with    Please reply me immediately for more details. thank Michelle

Re: [PATCH] powerpc/prom_init: add __init markers to all functions

2019-02-05 Thread Masahiro Yamada
On Tue, Feb 5, 2019 at 7:33 PM Michael Ellerman wrote: > > Masahiro Yamada writes: > > > It is fragile to rely on the compiler's optimization to avoid the > > section mismatch. Some functions may not be necessarily inlined > > when the compiler's inlining heuristic changes. > > > > Add __init mar

[PATCH 1/2] dt-bindings: at24: add the 'num-addresses' property

2019-02-05 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Currently the at24 driver only creates additional i2c dummies for atmel,24c00 and it's hard-coded. Some other chips (like for example Microchip's 24AA02T) also take more slave addresses despite being otherwise compatible with already supported variants. Add a new proper

[PATCH 0/2] eeprom: at24: new property

2019-02-05 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Microchip 24aa02t EEPROM is compatible with Atmel 24c02 except that it's visible on 8 i2c slave addresses. We already support such a use case with hard-coded config for 'atmel,24c00'. Let's add a more flexible device tree property - 'num-addresses' - to the binding docum

[PATCH 2/2] eeprom: at24: implement support for 'num-addresses' property

2019-02-05 Thread Bartosz Golaszewski
From: Bartosz Golaszewski If the device node defines 'num-addresses', let it override the default behavior. Signed-off-by: Bartosz Golaszewski --- drivers/misc/eeprom/at24.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/misc/eeprom/at24.c b/drivers/m

Re: [PATCH for-next] scsi: ufs: Update dwc driver maintainer to Pedro Sousa

2019-02-05 Thread Joao Pinto
Thanks Martin. On 2/5/2019 3:37 AM, Martin K. Petersen wrote: > Joao, > >> Currently I am managing the Synopsys drivers & tools team (full-time) and >> so I am passing the DWC UFS driver maintenance to Pedro Sousa. > Applied to 5.1/scsi-queue, thanks. >

Re: [PATCH] build_bug.h: add wrapper for _Static_assert

2019-02-05 Thread Masahiro Yamada
On Tue, Feb 5, 2019 at 6:39 PM Rasmus Villemoes wrote: > > On 05/02/2019 09.05, Masahiro Yamada wrote: > > On Mon, Feb 4, 2019 at 4:24 AM Rasmus Villemoes > > wrote: > >> > >> BUILD_BUG_ON() is a little annoying, since it cannot be used outside > >> function scope. So one cannot put assertions ab

RE: [PATCH 1/3] mmc: core: Calculate the discard arg only once

2019-02-05 Thread Avri Altman
> On Sun, 3 Feb 2019 at 09:51, Avri Altman wrote: > > > > The discard arg is a read-only ext_csd parameter - > > set it once on card init. > > I like the idea here. There is really no point checking this for every > corresponding request, nice! > > However, the "discard arg" isn't specific to eM

Re: [PATCH v3 8/9] mtd: rawnand: ingenic: Add support for the JZ4725B

2019-02-05 Thread Miquel Raynal
Hi Paul, Paul Cercueil wrote on Mon, 4 Feb 2019 16:04:25 -0300: > The boot ROM of the JZ4725B SoC expects a specific OOB layout on the > NAND, so we use it unconditionally in the ingenic-nand driver. > > Also add the jz4725b-bch driver to support the JZ4725B-specific BCH > hardware. > > Signe

Re: [PATCH] mtd: rawnand: gpmi: fix MX28 bus master lockup problem

2019-02-05 Thread Boris Brezillon
On Tue, 5 Feb 2019 13:59:46 +0100 Miquel Raynal wrote: > Hi Martin, > > Martin Kepplinger wrote on Tue, 29 Jan 2019 > 16:37:00 +0100: > > > From: Martin Kepplinger > > > > Disable BCH soft reset according to MX23 erratum #2847 ("BCH soft > > reset may cause bus master lock up") for MX28 too.

Re: [PATCH v2] i2c: bcm2835: Clear current buffer pointers and counts after a transfer

2019-02-05 Thread Stefan Wahren
Am 05.02.19 um 13:09 schrieb Wolfram Sang: > On Thu, Dec 27, 2018 at 04:42:25PM +0100, Paul Kocialkowski wrote: >> The driver's interrupt handler checks whether a message is currently >> being handled with the curr_msg pointer. When it is NULL, the interrupt >> is considered to be unexpected. Simil

[PATCH] signal: Always attempt to allocate siginfo for SIGSTOP

2019-02-05 Thread Eric W. Biederman
Since 2.5.34 the code has had the potential to not allocate siginfo for SIGSTOP signals. Except for ptrace this is perfectly fine as only ptrace can use PTRACE_PEEK_SIGINFO and see what the contents of the delivered siginfo are. Users of PTRACE_PEEK_SIGINFO that care about the contents siginfo

Re: [PATCH v2 3/4] livepatch: Proper error handling in the shadow variables selftest

2019-02-05 Thread Miroslav Benes
On Mon, 4 Feb 2019, Petr Mladek wrote: > Add proper error handling when allocating or getting shadow variables > in the selftest. It prevents an invalid pointer access in some situations. > It shows the good programming practice in the others. > > The error codes are just the best guess and speci

[PATCH v5 0/3] lib/lzo: performance improvements

2019-02-05 Thread Dave Rodgman
Hi, Following on from the previous lzo-rle patchset: https://lkml.org/lkml/2018/11/30/972 This patchset contains only the patches which were ack'd by Markus (i.e., not the RLE patches). I believe Markus was happy to land these (please shout if that's not the case). Regarding the RLE patches, I'

[PATCH v5 3/3] lib/lzo: fast 8-byte copy on arm64

2019-02-05 Thread Dave Rodgman
From: Matt Sealey Enable faster 8-byte copies on arm64. Link: http://lkml.kernel.org/r/20181127161913.23863-6-dave.rodg...@arm.com Signed-off-by: Matt Sealey Signed-off-by: Dave Rodgman Cc: David S. Miller Cc: Greg Kroah-Hartman Cc: Herbert Xu Cc: Markus F.X.J. Oberhumer Cc: Minchan Kim C

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