[PATCH] drm/amd/display: Make some functions static

2019-05-08 Thread Wang Hai
Fix the following sparse warnings: drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:483:21: warning: symbol 'dce120_clock_source_create' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_resource.c:506:6: warning: symbol

Re: [PATCH v2 0/2] Optimize dma_*_from_contiguous calls

2019-05-08 Thread Christoph Hellwig
Hi Nicolin, modulo a trivial comment typo I found this looks fine to me. I plan to apply it with that fixed up around -rc2 time when I open the dma mapping tree opens for the the 5.3 merge window, unless someone finds an issue until then.

Re: serial: Add Milbeaut serial control

2019-05-08 Thread Sugaya, Taichi
Hi, Thank you for pointing out. On 2019/05/02 20:47, Colin Ian King wrote: Hi, Static analysis with Coverity has picked up an issue in commit: commit ba44dc04300441b47618f9933bf36e75a280e5fe Author: Sugaya Taichi Date: Mon Apr 15 20:31:40 2019 +0900 serial: Add Milbeaut serial

RE: [PATCH V2 2/4] nvmem: imx: add i.MX8 nvmem driver

2019-05-08 Thread Peng Fan
Hi Aisheng, > Subject: RE: [PATCH V2 2/4] nvmem: imx: add i.MX8 nvmem driver > > > From: Peng Fan > > Sent: Wednesday, May 8, 2019 10:56 AM > > > > This patch adds i.MX8 nvmem ocotp driver to access fuse via RPC to > > i.MX8 system controller. > > > > Cc: Srinivas Kandagatla > > Cc: Shawn Guo

Re: [PATCH] x86/fpu: Remove the _GPL from the kernel_fpu_begin/end() export

2019-05-08 Thread Greg KH
On Wed, May 08, 2019 at 02:28:21PM +0200, Sebastian Gottschall wrote: > so the question is if it isnt possible to create a EXPORT_SYMBOL variant > which includes acceptable license models, but still restricts unacceptable > licenses It's not very difficult, "acceptable" license models are all

Re: [PATCH 2/2] EDAC/sysfs: Drop device references properly

2019-05-08 Thread Greg KH
On Wed, May 08, 2019 at 01:06:05PM +0200, Borislav Petkov wrote: > -- > From: Greg KH > > Do put_device() if device_add() fails. > > [ bp: do device_del() for the successfully created devices in >edac_create_csrow_objects(), on the unwind path. ] Yes, good catch, looks good, thanks! greg

Re: EDAC: Fix memory leak in creating CSROW object

2019-05-08 Thread Greg KH
On Wed, May 08, 2019 at 12:57:43PM +0200, Borislav Petkov wrote: > On Sat, Apr 27, 2019 at 11:49:25PM +0200, Greg KH wrote: > > How about this patch, I think it fixes up everything you need to do > > here, right? > > Almost, see the two patches as a reply to this message. I've taken > Pan's

Re: [RFC PATCH 4/6] sched/dl: Improve capacity-aware wakeup

2019-05-08 Thread luca abeni
Hi Juri, On Wed, 8 May 2019 14:05:26 +0200 Juri Lelli wrote: [...] > > > > + if ((rel_deadline < 0) || (rel_deadline * > > > > dl_se->dl_runtime < dl_se->dl_deadline * rem_runtime)) { > > > > + rel_deadline = dl_se->dl_deadline; > > > > + rem_runtime =

Re: [RFC][PATCH 4/4] x86_32: Provide consistent pt_regs

2019-05-08 Thread Ingo Molnar
* Josh Poimboeuf wrote: > On Wed, May 08, 2019 at 09:49:05AM +0200, Peter Zijlstra wrote: > > Currently pt_regs on x86_32 has an oddity in that kernel regs > > (!user_mode(regs)) are short two entries (esp/ss). This means that any > > code trying to use them (typically: regs->sp) needs to jump

Re: [PATCH 1/2] EDAC/sysfs: Fix memory leak when creating a csrow object

2019-05-08 Thread Greg KH
On Wed, May 08, 2019 at 01:02:50PM +0200, Borislav Petkov wrote: > >From 28e7f23939208bea639d6cd3d492cde3f65a7e4f Mon Sep 17 00:00:00 2001 > From: Pan Bian > Date: Thu, 18 Apr 2019 10:27:18 +0800 > > In edac_create_csrow_object(), the reference to the object is not > released when adding the

Re: [PATCH v3 0/2] ftpm: a firmware based TPM driver

2019-05-08 Thread Jarkko Sakkinen
On Tue, May 07, 2019 at 01:40:20PM -0400, Sasha Levin wrote: > On Mon, Apr 15, 2019 at 11:56:34AM -0400, Sasha Levin wrote: > > From: "Sasha Levin (Microsoft)" > > > > Changes since v2: > > > > - Drop the devicetree bindings patch (we don't add any new ones). > > - More code cleanups based on

Re: [PATCH 2/4] x86/kprobes: Fix frame pointer annotations

2019-05-08 Thread Josh Poimboeuf
On Wed, May 08, 2019 at 02:04:16PM +0200, Peter Zijlstra wrote: > On Wed, May 08, 2019 at 06:54:16AM -0500, Josh Poimboeuf wrote: > > On Wed, May 08, 2019 at 09:49:03AM +0200, Peter Zijlstra wrote: > > > The kprobe trampolines have a FRAME_POINTER annotation that makes no > > > sense. It marks the

Re: [PATCH V2 1/3] Calculate Thermal Pressure

2019-05-08 Thread Quentin Perret
Hi Thara, Sorry for the delayed response. On Friday 26 Apr 2019 at 10:17:56 (-0400), Thara Gopinath wrote: > On 04/25/2019 08:45 AM, Vincent Guittot wrote: > > Do you mean calling a variant of sched_update_thermal_pressure() in > > update_cpu_capacity() instead of periodic update ? > > Yes ,

Re: ARM/gic-v4: deadlock occurred

2019-05-08 Thread Marc Zyngier
On Sun, 05 May 2019 12:07:02 +0100, Heyi Guo wrote: > > Hi Marc, > > Appreciate your quick patch :) We'll test it and let you know the > result. For what it is worth, I've just pushed out a branch (irq/vlpi-map-rework) with a more complete fix. It is of course untested (it does compile

Re: WARNING in untrack_pfn

2019-05-08 Thread Dmitry Vyukov
From: Julia Lawall Date: Fri, Apr 12, 2019 at 3:21 PM > On Fri, 12 Apr 2019, Pavel Machek wrote: > > > On Fri 2019-04-12 04:42:01, syzbot wrote: > > > syzbot has bisected this bug to: > > > > > > commit c68729119f4d2993bec3c9cb999ad76de5aeddba > > > Author: Julia Lawall > > > Date: Sat Jul 15

Re: [PATCH v2 1/4] bpf: Add support for reading user pointers

2019-05-08 Thread Masami Hiramatsu
On Tue, 7 May 2019 01:10:45 +0200 Daniel Borkmann wrote: > On 05/06/2019 09:57 PM, Joel Fernandes wrote: > > On Mon, May 06, 2019 at 09:11:19PM +0200, Daniel Borkmann wrote: > >> On 05/06/2019 08:31 PM, Joel Fernandes (Google) wrote: > >>> The eBPF based opensnoop tool fails to read the file

Re: [PATCH v2 00/10] RFC: NVME MDEV

2019-05-08 Thread Paolo Bonzini
On 06/05/19 07:57, Christoph Hellwig wrote: > > Or to put it into another way: unless your paravirt interface requires > zero specific changes to the core nvme code it is not acceptable at all. I'm not sure it's possible to attain that goal, however I agree that putting the control plane in the

Re: [PATCH v1] dmaengine: tegra-apb: Handle DMA_PREP_INTERRUPT flag properly

2019-05-08 Thread Dmitry Osipenko
08.05.2019 12:24, Jon Hunter пишет: > > On 05/05/2019 19:12, Dmitry Osipenko wrote: >> The DMA_PREP_INTERRUPT flag means that descriptor's callback should be >> invoked upon transfer completion and that's it. For some reason driver >> completely disables the hardware interrupt handling, leaving

Re: [PATCH 2/4] x86/kprobes: Fix frame pointer annotations

2019-05-08 Thread Peter Zijlstra
On Wed, May 08, 2019 at 02:04:16PM +0200, Peter Zijlstra wrote: > On Wed, May 08, 2019 at 06:54:16AM -0500, Josh Poimboeuf wrote: > > We should put these macros in a header file somewhere (including > > stringified versions). > > Probably a good idea. I'll frob them into asm/frame.h. ---

[RFC PATCH] soc: imx: Try harder to get imq8mq SoC revisions

2019-05-08 Thread Guido Günther
Hi Leonard, Thanks for your comments. Let's try s.th. different then: identify by bootrom, ocotop and anatop and fall back to ATF afterwards (I'll split out the DT part and add binding docs if this makes sense). I'm also happy to drop the whole ATF logic until mailine ATF catched up: The

Re: [PATCH] x86/fpu: Remove the _GPL from the kernel_fpu_begin/end() export

2019-05-08 Thread Sebastian Gottschall
Am 07.05.2019 um 12:31 schrieb David Laight: ... So I don't really see a problem with Andy's patch. If we want to annoy external non-GPL modules as much as possible, sure, that's for a separate discussion though (and I am sure many people would agree to that). Proposal to get rid of

[PATCH 4/4] checkpatch: replace magic value for TAB size

2019-05-08 Thread Antonio Borneo
The size of 8 characters used for both TAB and indentation is embedded as magic value allover the checkpatch script, and this makes the script less readable. Replace the magic value 8 with the perl variable "$tabsize". >From the context of the code it's clear if it is used for indentation or

[PATCH 3/4] checkpatch: fix minor typo and mixed space+tab in indentation

2019-05-08 Thread Antonio Borneo
Fix spelling of "concatenation". Don't use tab after space in indentation. Signed-off-by: Antonio Borneo --- scripts/checkpatch.pl | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 9a247183b65c..373ad345f732 100755

[PATCH 1/4] checkpatch: fix multiple const * types

2019-05-08 Thread Antonio Borneo
Commit 1574a29f8e76 ("checkpatch: allow multiple const * types") claims to support repetition of pattern "const *", but it actually allows only one extra instance. Check the following lines int a(char const * const x[]); int b(char const * const *x); int c(char const *

[PATCH 2/4] checkpatch: add --fix for warning LINE_CONTINUATIONS

2019-05-08 Thread Antonio Borneo
The warning LINE_CONTINUATIONS does not offer a --fix. Add the trivial --fix. In case of consecutive lines with the same issue, this will fix only the first line. Signed-off-by: Antonio Borneo --- scripts/checkpatch.pl | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

Re: [PATCH 2/8] arm64: dts: mt8183: add/update dynamic power coefficients

2019-05-08 Thread Michael Kao
On Fri, 2019-05-03 at 15:16 +0800, Hsin-Yi Wang wrote: > On Thu, May 2, 2019 at 10:43 AM michael.kao wrote: > > > > Add dynamic power coefficients for all cores and update those of > > CPU0 and CPU4. > > > > Signed-off-by: Michael.Kao > > --- > > arch/arm64/boot/dts/mediatek/mt8183.dtsi | 16

Re: [PATCH 1/8] arm64: dts: mt8183: add thermal zone node

2019-05-08 Thread Michael Kao
On Mon, 2019-05-06 at 12:43 +0200, Daniel Lezcano wrote: > On 03/05/2019 18:46, Matthias Kaehlcke wrote: > > Hi, > > > > On Fri, May 03, 2019 at 04:03:58PM +0800, Hsin-Yi Wang wrote: > >> On Thu, May 2, 2019 at 10:43 AM michael.kao > >> wrote: > >>> > >>> Add thermal zone node to Mediatek

Re: [PATCH v3] serial: Add Milbeaut serial control

2019-05-08 Thread Sugaya, Taichi
Hi, Thank you for pointing out. On 2019/04/27 3:15, Alan Cox wrote: O +static void mlb_usio_set_termios(struct uart_port *port, + struct ktermios *termios, struct ktermios *old) +{ + unsigned int escr, smr = MLB_USIO_SMR_SOE; + unsigned long flags, baud,

[PATCH v2] kvm: nVMX: Set nested_run_pending in vmx_set_nested_state after checks complete

2019-05-08 Thread Paolo Bonzini
From: Aaron Lewis nested_run_pending=1 implies we have successfully entered guest mode. Move setting from external state in vmx_set_nested_state() until after all other checks are complete. Based on a patch by Aaron Lewis. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/vmx/nested.c | 10

Re: [RFC PATCH 4/6] sched/dl: Improve capacity-aware wakeup

2019-05-08 Thread Juri Lelli
On 08/05/19 11:24, luca abeni wrote: > On Wed, 8 May 2019 11:08:55 +0200 > Juri Lelli wrote: > > > On 06/05/19 06:48, Luca Abeni wrote: > > > From: luca abeni > > > > > > Instead of considering the "static CPU bandwidth" allocated to > > > a SCHED_DEADLINE task (ratio between its maximum

Re: [PATCH 2/4] x86/kprobes: Fix frame pointer annotations

2019-05-08 Thread Peter Zijlstra
On Wed, May 08, 2019 at 06:54:16AM -0500, Josh Poimboeuf wrote: > On Wed, May 08, 2019 at 09:49:03AM +0200, Peter Zijlstra wrote: > > The kprobe trampolines have a FRAME_POINTER annotation that makes no > > sense. It marks the frame in the middle of pt_regs, at the place of > > saving BP. > > > >

Re: [RESEND PATCH 0/6] Perf uncore support for Snow Ridge server

2019-05-08 Thread Peter Zijlstra
On Tue, Apr 30, 2019 at 05:53:42PM -0700, kan.li...@linux.intel.com wrote: > From: Kan Liang > > The patch series intends to enable perf uncore support for Snow Ridge > server. > > Here is the link for the uncore document. > https://cdrdv2.intel.com/v1/dl/getContent/611319 > > Patch 1: Fixes a

Re: [PATCH v4 3/3] mfd: cros_ec: instantiate properly CrOS Touchpad MCU device

2019-05-08 Thread Lee Jones
On Wed, 08 May 2019, Enric Balletbo i Serra wrote: > Support Touchpad MCU as a special of CrOS EC devices. The current > Touchpad MCU is used on Eve Chromebook and used the same protocol as > other CrOS EC devices. > > When a MCU has touchpad support (aka EC_FEATURE_TOUCHPAD), it is >

Re: [PATCH v4 2/3] mfd: cros_ec: instantiate properly CrOS FP MCU device

2019-05-08 Thread Lee Jones
On Wed, 08 May 2019, Enric Balletbo i Serra wrote: > Support Fingerprint MCU as a special of CrOS EC devices. The current FP > MCU uses the same EC SPI protocol v3 as other CrOS EC devices on a SPI > bus. > > When a MCU has fingerprint support (aka EC_FEATURE_FINGERPRINT), it is > instantiated

Re: [PATCH v4 1/3] mfd: cros_ec: Update the EC feature codes

2019-05-08 Thread Lee Jones
On Wed, 08 May 2019, Enric Balletbo i Serra wrote: > Update the feature enum for the Chromebook Embedded Controller to the > latest version. Some of these enums are still not used in the kernel but > we might be also interested on have these enums up to date. Userspace > can use them to query the

Re: [RFC][PATCH 4/4] x86_32: Provide consistent pt_regs

2019-05-08 Thread Josh Poimboeuf
On Wed, May 08, 2019 at 09:49:05AM +0200, Peter Zijlstra wrote: > Currently pt_regs on x86_32 has an oddity in that kernel regs > (!user_mode(regs)) are short two entries (esp/ss). This means that any > code trying to use them (typically: regs->sp) needs to jump through > some unfortunate hoops. >

Re: [PATCH v3 1/4] mfd: cros_ec: Update the EC feature codes

2019-05-08 Thread Lee Jones
On Mon, 08 Apr 2019, Enric Balletbo i Serra wrote: > Update the feature enum for the Chromebook Embedded Controller to the > latest version. Some of these enums are still not used in the kernel but > we might be also interested on have these enums up to date. Userspace > can use them to query the

Re: [PATCH 2/4] x86/kprobes: Fix frame pointer annotations

2019-05-08 Thread Josh Poimboeuf
On Wed, May 08, 2019 at 09:49:03AM +0200, Peter Zijlstra wrote: > The kprobe trampolines have a FRAME_POINTER annotation that makes no > sense. It marks the frame in the middle of pt_regs, at the place of > saving BP. > > Change it to mark the pt_regs frame as per the ENCODE_FRAME_POINTER > from

Re: [PATCH v4 3/6] mfd: ti-lmu: Add LM36274 support to the ti-lmu

2019-05-08 Thread Lee Jones
On Tue, 07 May 2019, Dan Murphy wrote: > Add the LM36274 register support to the ti-lmu MFD driver. > > Signed-off-by: Dan Murphy > --- > drivers/mfd/Kconfig | 5 ++--- > drivers/mfd/ti-lmu.c| 14 ++ > include/linux/mfd/ti-lmu-register.h | 23

Re: [PATCH v4 2/6] dt-bindings: mfd: Add lm36274 bindings to ti-lmu

2019-05-08 Thread Lee Jones
On Tue, 07 May 2019, Dan Murphy wrote: > Add the LM36274 backlight driver with regulator support. > This is a multi-function device for backlight applications. > > Backlight properties will be documented in it's a supplemental > bindings document. > > Regulator support is documented in the

[GIT PULL] Immutable branch between MFD and Regulator due for the v5.2 merge window

2019-05-08 Thread Lee Jones
Enjoy! The following changes since commit e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd: Linux 5.1 (2019-05-05 17:42:58 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git ib-mfd-regulator-v5.2 for you to fetch changes up to

Re: [RESEND PATCH 3/6] perf/x86/intel/uncore: Extract codes of box ref/unref

2019-05-08 Thread Peter Zijlstra
On Tue, Apr 30, 2019 at 05:53:45PM -0700, kan.li...@linux.intel.com wrote: > +static void uncore_box_unref(struct intel_uncore_type **types, int id) > { > + struct intel_uncore_type *type; > struct intel_uncore_pmu *pmu; > struct intel_uncore_box *box; > + int i; > + > +

RE: [PATCH V2 4/4] arm64: dts: imx: add i.MX8QXP ocotp support

2019-05-08 Thread Aisheng Dong
> From: Peng Fan > Sent: Wednesday, May 8, 2019 10:56 AM > > Add i.MX8QXP ocotp node > > Cc: Rob Herring > Cc: Mark Rutland > Cc: Shawn Guo > Cc: Sascha Hauer > Cc: Pengutronix Kernel Team > Cc: Fabio Estevam > Cc: NXP Linux Team > Cc: Aisheng Dong > Cc: Anson Huang > Cc: Daniel Baluta

Re: [PATCH v4 4/6] mfd: max77620: Support Maxim 77663

2019-05-08 Thread Lee Jones
On Sun, 05 May 2019, Dmitry Osipenko wrote: > Add support for Maxim 77663 using the Max77620 driver. The hardware > is very similar to Max77663/20024, although there are couple minor > differences. > > Signed-off-by: Dmitry Osipenko > --- > drivers/mfd/max77620.c | 69

Re: [PATCH v4 5/6] mfd: max77620: Provide system power-off functionality

2019-05-08 Thread Lee Jones
On Sun, 05 May 2019, Dmitry Osipenko wrote: > Provide system power-off functionality that allows to turn off machine > gracefully. > > Signed-off-by: Dmitry Osipenko > --- > drivers/mfd/max77620.c | 18 ++ > 1 file changed, 18 insertions(+) For my own reference:

RE: [PATCH V2 2/4] nvmem: imx: add i.MX8 nvmem driver

2019-05-08 Thread Aisheng Dong
> From: Peng Fan > Sent: Wednesday, May 8, 2019 10:56 AM > > This patch adds i.MX8 nvmem ocotp driver to access fuse via RPC to i.MX8 > system controller. > > Cc: Srinivas Kandagatla > Cc: Shawn Guo > Cc: Sascha Hauer > Cc: Pengutronix Kernel Team > Cc: Fabio Estevam > Cc: NXP Linux Team >

Re: [RFC PATCH 1/5] net: dsa: mv88e6xxx: introduce support for two chips using direct smi addressing

2019-05-08 Thread Andrew Lunn
> > Hi Rasmus > > > > This works, but i think i prefer adding mv88e6xxx_smi_dual_chip_write, > > mv88e6xxx_smi_dual_chip_read, and create a > > mv88e6xxx_smi_single_chip_ops. > > Hi Andrew > > Now that Vivien's "net: dsa: mv88e6xxx: refine SMI support" is in > master, do you still prefer

Re: [PATCH v4 3/6] mfd: max77620: Fix swapped FPS_PERIOD_MAX_US values

2019-05-08 Thread Lee Jones
On Sun, 05 May 2019, Dmitry Osipenko wrote: > The FPS_PERIOD_MAX_US definitions are swapped for MAX20024 and MAX77620, > fix it. > > Cc: stable > Signed-off-by: Dmitry Osipenko > --- > include/linux/mfd/max77620.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) For my own

Re: [PATCH v4 2/6] dt-bindings: mfd: max77620: Add system-power-controller property

2019-05-08 Thread Lee Jones
On Sun, 05 May 2019, Dmitry Osipenko wrote: > Document new generic property that designates the PMIC as the system's > power controller. > > Signed-off-by: Dmitry Osipenko For my own reference: Acked-for-MFD-by: Lee Jones -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open

Re: [PATCH v4 1/6] dt-bindings: mfd: max77620: Add compatible for Maxim 77663

2019-05-08 Thread Lee Jones
On Sun, 05 May 2019, Dmitry Osipenko wrote: > Maxim 77663 has a few minor differences in regards to hardware interface > and available capabilities by comparing it with 77620 and 20024 models, > hence re-use 77620 device-tree binding for the 77663. > > Reviewed-by: Rob Herring > Signed-off-by:

Re: [PATCH 6/7] iio: adc: sun4i-gpadc-iio: add support for H6 thermal sensor

2019-05-08 Thread Lee Jones
On Fri, 03 May 2019, Yangtao Li wrote: > This patch adds support for the H6 ths sensor. > > TODO: calibrate thermal sensor by using information from sid. > > Signed-off-by: Yangtao Li > --- > drivers/iio/adc/sun4i-gpadc-iio.c | 65 +++ >

Re: [PATCH v3 13/13] platform/x86: intel_cht_int33fe: Replacing the old connections with references

2019-05-08 Thread Heikki Krogerus
On Wed, Apr 17, 2019 at 11:14:19PM +0200, Hans de Goede wrote: > Hi, > > On 17-04-19 11:19, Hans de Goede wrote: > > Note that another problem with this series which I noticed while testing > > is that the usb-role-switch is not being found at all anymore after > > this ("Replacing the old

RE: [EXT] Re: [PATCH 1/3] dt-bindings: i2c: add optional mul-value property to binding

2019-05-08 Thread Chuanhua Han
> -Original Message- > From: Rob Herring > Sent: 2019年5月3日 4:59 > To: Chuanhua Han > Cc: mark.rutl...@arm.com; shawn...@kernel.org; s.ha...@pengutronix.de; > Leo Li ; linux-kernel@vger.kernel.org; > devicet...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; >

Re: [PATCH 5/7] dt-bindings: mfd: Add H6 GPADC binding

2019-05-08 Thread Lee Jones
On Fri, 03 May 2019, Yangtao Li wrote: > This patch adds documentation for the H6 GPADC binding. > > Signed-off-by: Yangtao Li > --- > .../devicetree/bindings/mfd/sun4i-gpadc.txt | 27 +-- > 1 file changed, 25 insertions(+), 2 deletions(-) > > diff --git

RE: [EXT] Re: [PATCH 1/2] i2c: imx: I2C Driver doesn't consider I2C_IPGCLK_SEL RCW bit when using ls1046a SoC

2019-05-08 Thread Chuanhua Han
> -Original Message- > From: Sascha Hauer > Sent: 2019年5月6日 15:48 > To: Chuanhua Han > Cc: shawn...@kernel.org; Leo Li ; robh...@kernel.org; > mark.rutl...@arm.com; linux-kernel@vger.kernel.org; > linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; >

[tip:perf/urgent] perf/x86/amd/iommu: Make the 'amd_iommu_attr_groups' symbol static

2019-05-08 Thread tip-bot for Wang Hai
Commit-ID: 4abf1ee16e25ba97bc9e04ddc64e0cd2a1bc41a8 Gitweb: https://git.kernel.org/tip/4abf1ee16e25ba97bc9e04ddc64e0cd2a1bc41a8 Author: Wang Hai AuthorDate: Wed, 8 May 2019 10:04:18 +0800 Committer: Ingo Molnar CommitDate: Wed, 8 May 2019 13:35:32 +0200 perf/x86/amd/iommu: Make the

RE: [EXT] Re: [PATCH 2/2] arm64: dts: fsl: ls1046a: Add the guts node in dts

2019-05-08 Thread Chuanhua Han
> -Original Message- > From: Sascha Hauer > Sent: 2019年5月6日 15:41 > To: Chuanhua Han > Cc: shawn...@kernel.org; Leo Li ; robh...@kernel.org; > mark.rutl...@arm.com; linux-kernel@vger.kernel.org; > linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; >

Re: [PATCH] Remove MODULE_ALIAS() calls that take undefined macro

2019-05-08 Thread Lee Jones
On Tue, 07 May 2019, Masahiro Yamada wrote: > These files do not define (USBHS_)DRIVER_NAME. Yet, they can be > successfully compiled because they are never built as a module by > anyone, i.e, the MODULE_ALIAS() calls are always no-op. > > A problem showed up when a patch "moduleparam: Save

Re: [PATCH v4 5/7] dt-bindings: ti-lmu: Modify dt bindings for the LM3697

2019-05-08 Thread Lee Jones
On Mon, 06 May 2019, Dan Murphy wrote: > The LM3697 is a single function LED driver. The single function LED > driver needs to reside in the LED directory as a dedicated LED driver > and not as a MFD device. The device does have common brightness and ramp > features and those can be accomodated

Re: [PATCH v4 3/7] dt-bindings: mfd: LMU: Add ti,brightness-resolution

2019-05-08 Thread Lee Jones
On Mon, 06 May 2019, Dan Murphy wrote: > Add ti,brightness-resolution to the TI LMU binding to define > whether the device uses 8-bit brightness or 11-bit brightness. > > Reviewed-by: Rob Herring > Signed-off-by: Dan Murphy For my own reference: Acked-for-MFD-by: Lee Jones -- Lee Jones

Re: [PATCH v4 1/7] dt-bindings: mfd: LMU: Fix lm3632 dt binding example

2019-05-08 Thread Lee Jones
On Mon, 06 May 2019, Dan Murphy wrote: > Fix the lm3632 dt binding examples as the LCM enable GPIOs > are defined as enable GPIOs per the regulator/lm363x-regulator.txt > bindings document. > > Reviewed-by: Rob Herring > Signed-off-by: Dan Murphy For my own reference: Acked-for-MFD-by: Lee

Re: [PATCH v3 0/2] hwmon: scmi: Scale values to target desired HWMON units

2019-05-08 Thread Sudeep Holla
On Tue, May 07, 2019 at 04:09:15PM -0700, Florian Fainelli wrote: > Hi Sudeep, Guenter, > > This patch series adds support for scaling SCMI sensor values read from > firmware. Sudeep, let me know if you think we should be treating scale > == 0 as a special value to preserve some firmware

Re: [PATCH v4 2/7] dt-bindings: mfd: LMU: Add the ramp up/down property

2019-05-08 Thread Lee Jones
On Mon, 06 May 2019, Dan Murphy wrote: > Document the ramp-up and ramp-down property in the binding. > Removing the "sec" from the property definition as seconds is > implied. > > Reviewed-by: Rob Herring > Signed-off-by: Dan Murphy For my own reference: Acked-for-MFD-by: Lee Jones --

RE: [EXT] Re: [PATCH 1/2] i2c: imx: I2C Driver doesn't consider I2C_IPGCLK_SEL RCW bit when using ls1046a SoC

2019-05-08 Thread Chuanhua Han
> -Original Message- > From: Sascha Hauer > Sent: 2019年5月6日 15:38 > To: Chuanhua Han > Cc: shawn...@kernel.org; Leo Li ; robh...@kernel.org; > mark.rutl...@arm.com; linux-kernel@vger.kernel.org; > linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; >

Re: [PATCH 1/2] lib: add __sysfs_match_string_with_gaps() helper

2019-05-08 Thread Ardelean, Alexandru
On Mon, 2019-05-06 at 17:46 +0300, andriy.shevche...@linux.intel.com wrote: > [External] > > > On Mon, May 06, 2019 at 04:45:43PM +0300, Alexandru Ardelean wrote: > > On Fri, Apr 26, 2019 at 5:27 PM andriy.shevche...@linux.intel.com > > wrote: > > > > > > On Fri, Apr 26, 2019 at 12:29:11PM

Re: [PATCH] x86/entry/64: randomize kernel stack offset upon syscall

2019-05-08 Thread Ingo Molnar
* Reshetova, Elena wrote: > CONFIG_PAGE_TABLE_ISOLATION=n: > > base: Simple syscall: 0.0510 microseconds > get_random_bytes(4096 bytes buffer): Simple syscall: 0.0597 microseconds > > So, pure speed wise get_random_bytes() with 1 page per-cpu buffer wins.

[PATCH 03/16] lib,treewide: add new match_string() helper/macro

2019-05-08 Thread Alexandru Ardelean
This change re-introduces `match_string()` as a macro that uses ARRAY_SIZE() to compute the size of the array. The macro is added in all the places that do `match_string(_a, ARRAY_SIZE(_a), s)`, since the change is pretty straightforward. Signed-off-by: Alexandru Ardelean ---

[PATCH 06/16] x86/mtrr: use new match_string() helper + add gaps == minor fix

2019-05-08 Thread Alexandru Ardelean
This change is a bit more than cosmetic. It replaces 2 values in mtrr_strings with NULL. Previously, they were defined as "?", which is not great because you could technically pass "?", and you would get value 2. It's not sure whether that was intended (likely it wasn't), but this fixes that.

[PATCH 10/16] pinctrl: armada-37xx: use new match_string() helper/macro

2019-05-08 Thread Alexandru Ardelean
The change is mostly cosmetic. The `armada_37xx_pin_group` struct is defined as. struct armada_37xx_pin_group { const char *name; unsigned intstart_pin; unsigned intnpins; u32 reg_mask; u32 val[NB_FUNCS];

Re: [PATCH v2] mm/hugetlb: Don't put_page in lock of hugetlb_lock

2019-05-08 Thread Zhiqiang Liu
> On 5/6/19 7:06 AM, Zhiqiang Liu wrote: >> From: Kai Shen >> >> spinlock recursion happened when do LTP test: >> #!/bin/bash >> ./runltp -p -f hugetlb & >> ./runltp -p -f hugetlb & >> ./runltp -p -f hugetlb & >> ./runltp -p -f hugetlb & >> ./runltp -p -f hugetlb & >> >> The dtor returned by

[PATCH 15/16] video: fbdev: pxafb: use new match_string() helper/macro

2019-05-08 Thread Alexandru Ardelean
The `lcd_types` array is a static array of strings. Using match_string() (which computes the array size via ARRAY_SIZE()) is possible. This reduces the array by 1 element, since the NULL (at the end of the array) is no longer needed. Signed-off-by: Alexandru Ardelean ---

[PATCH 09/16] mmc: sdhci-xenon: use new match_string() helper/macro

2019-05-08 Thread Alexandru Ardelean
The change is also cosmetic, but it also does a tighter coupling between the enums & the string values. This way, the ARRAY_SIZE(phy_types) that is implicitly done in the match_string() macro is also a bit safer. Signed-off-by: Alexandru Ardelean --- drivers/mmc/host/sdhci-xenon-phy.c | 12

Re: [PATCH v2] mfd: intel-lpss: Add Intel Comet Lake PCI IDs

2019-05-08 Thread Lee Jones
On Tue, 30 Apr 2019, Andy Shevchenko wrote: > Intel Comet Lake has the same LPSS than Intel Cannon Lake. > Add the new IDs to the list of supported devices. > > Signed-off-by: Andy Shevchenko > --- > - update i2c info > drivers/mfd/intel-lpss-pci.c | 13 + > 1 file changed, 13

[PATCH 05/16] ALSA: oxygen: use new match_string() helper/macro

2019-05-08 Thread Alexandru Ardelean
The change is purely cosmetic at this point in time, but it does highlight the change done in lib/string.c for match_string(). Particularly for this change, a control mode can be removed/added at a different index/enum-value, and the match_string() helper will continue until the end of the array

Re: [PATCH v14 2/8] mfd: bd70528: Support ROHM bd70528 PMIC - core

2019-05-08 Thread Lee Jones
On Thu, 02 May 2019, Matti Vaittinen wrote: > ROHM BD70528MWV is an ultra-low quiescent current general > purpose single-chip power management IC for battery-powered > portable devices. > > Add MFD core which enables chip access for following subdevices: > - regulators/LED drivers >

[PATCH 00/16] treewide: fix match_string() helper when array size

2019-05-08 Thread Alexandru Ardelean
The intent of this patch series is to make a case for fixing the match_string() string helper. The doc-string of the `__sysfs_match_string()` helper mentions that `n` (the size of the given array) should be: * @n: number of strings in the array or -1 for NULL terminated arrays However, this is

Re: [PATCH v3 13/13] platform/x86: intel_cht_int33fe: Replacing the old connections with references

2019-05-08 Thread Heikki Krogerus
On Wed, Apr 17, 2019 at 06:03:03PM +0200, Hans de Goede wrote: > Hi, > > On 17-04-19 12:44, Heikki Krogerus wrote: > > On Wed, Apr 17, 2019 at 12:15:18PM +0200, Hans de Goede wrote: > > > Hi, > > > > > > On 17-04-19 11:32, Heikki Krogerus wrote: > > > > On Wed, Apr 17, 2019 at 11:19:28AM +0200,

[PATCH 12/16] rdmacg: use new match_string() helper/macro

2019-05-08 Thread Alexandru Ardelean
The `rdmacg_resource_names` array is a static array of strings. Using match_string() (which computes the array size via ARRAY_SIZE()) is possible. The change is mostly cosmetic. No functionality change. Signed-off-by: Alexandru Ardelean --- kernel/cgroup/rdma.c | 2 +- 1 file changed, 1

Re: BUG: soft lockup in kvm_vm_ioctl

2019-05-08 Thread Dmitry Vyukov
From: Steven Rostedt Date: Thu, May 2, 2019 at 5:10 AM To: Eric Biggers Cc: syzbot, Dmitry Vyukov, , , , , , , , , , , , , , , > On Wed, 1 May 2019 19:34:27 -0700 > Eric Biggers wrote: > > > > Call Trace: > > > smp_call_function_many+0x750/0x8c0 kernel/smp.c:434 > > >

Re: [PATCH v14 4/8] dt-bindings: mfd: Document first ROHM BD70528 bindings

2019-05-08 Thread Lee Jones
On Thu, 02 May 2019, Matti Vaittinen wrote: > Document bindings for regulators (3 bucks, 3 LDOs and 2 LED > drivers) and 4 GPIO pins which can be configured for I/O or > as interrupt sources withe configurable trigger levels. > > Signed-off-by: Matti Vaittinen > Reviewed-by: Rob Herring >

Re: [PATCH v3 11/13] platform/x86: intel_cht_int33fe: Provide fwnode for the USB connector

2019-05-08 Thread Heikki Krogerus
On Wed, Apr 17, 2019 at 11:52:00AM +0200, Hans de Goede wrote: > Hi, > > On 12-04-19 15:41, Heikki Krogerus wrote: > > In ACPI, and now also in DT, the USB connectors usually have > > their own device nodes. In case of USB Type-C, those > > connector (port) nodes are child nodes of the controller

Re: BUG: soft lockup in kvm_vm_ioctl

2019-05-08 Thread Dmitry Vyukov
From: Eric Biggers Date: Thu, May 2, 2019 at 4:34 AM To: syzbot, Dmitry Vyukov, Cc: , , , , , , , , , , , , , , > On Wed, May 01, 2019 at 07:36:05AM -0700, syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:baf76f0c slip: make slhc_free() silently

[PATCH 2/3][V3] scsi: sd: remove sysfs_match_string() dense array comment

2019-05-08 Thread Alexandru Ardelean
The comment is no longer valid, since it supports arrays with gaps now. Signed-off-by: Alexandru Ardelean --- Changelog v2 -> v3: * after fixing __sysfs_match_string() this comment is no longer valid drivers/scsi/sd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/sd.c

Re: [Qemu-devel] [PATCH v7 2/6] virtio-pmem: Add virtio pmem driver

2019-05-08 Thread Pankaj Gupta
Hi Dan, Thank you for the review. Please see my reply inline. > > Hi Pankaj, > > Some minor file placement comments below. Sure. > > On Thu, Apr 25, 2019 at 10:02 PM Pankaj Gupta wrote: > > > > This patch adds virtio-pmem driver for KVM guest. > > > > Guest reads the persistent memory

[tip:x86/urgent] x86/vdso: Remove hpet_page from vDSO

2019-05-08 Thread tip-bot for Jia Zhang
Commit-ID: 81d30225bc0c246b53270eb90b23cfbb941a186d Gitweb: https://git.kernel.org/tip/81d30225bc0c246b53270eb90b23cfbb941a186d Author: Jia Zhang AuthorDate: Mon, 1 Apr 2019 19:40:45 +0800 Committer: Ingo Molnar CommitDate: Wed, 8 May 2019 13:13:57 +0200 x86/vdso: Remove hpet_page

[tip:x86/urgent] x86/kprobes: Make trampoline_handler() global and visible

2019-05-08 Thread tip-bot for Andi Kleen
Commit-ID: 0e72499c3cc0cead32f88b94a02204d2b80768bf Gitweb: https://git.kernel.org/tip/0e72499c3cc0cead32f88b94a02204d2b80768bf Author: Andi Kleen AuthorDate: Fri, 29 Mar 2019 17:47:41 -0700 Committer: Ingo Molnar CommitDate: Wed, 8 May 2019 13:13:58 +0200 x86/kprobes: Make

Re: [PATCH] mfd: ab8500-debugfs: Fix a typo ("deubgfs")

2019-05-08 Thread Lee Jones
On Tue, 30 Apr 2019, Jonathan Neuschäfer wrote: > "debugfs" was misspelled. > > Signed-off-by: Jonathan Neuschäfer > --- > drivers/mfd/ab8500-debugfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │

[GIT PULL] Immutable branch between MFD, GPIO, Input, LEDs and Power due for the v5.2 merge window

2019-05-08 Thread Lee Jones
Enjoy! The following changes since commit e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd: Linux 5.1 (2019-05-05 17:42:58 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git ib-mfd-gpio-input-leds-power-v5.2 for you to fetch changes up to

Re: [PATCH] mfd: lochnagar: Add links to binding docs for sound and hwmon

2019-05-08 Thread Lee Jones
On Wed, 01 May 2019, Charles Keepax wrote: > Lochnagar is an evaluation and development board for Cirrus > Logic Smart CODEC and Amp devices. It allows the connection of > most Cirrus Logic devices on mini-cards, as well as allowing > connection of various application processor systems to provide

RE: [PATCH] x86/entry/64: randomize kernel stack offset upon syscall

2019-05-08 Thread Reshetova, Elena
.. > > rdrand (calling every 8 syscalls): Simple syscall: 0.0795 microseconds > > You could try something like: > u64 rand_val = cpu_var->syscall_rand > > while (unlikely(rand_val == 0)) > rand_val = rdrand64(); > > stack_offset = rand_val & 0xff; >

Re: [Qemu-devel] [PATCH v7 2/6] virtio-pmem: Add virtio pmem driver

2019-05-08 Thread Pankaj Gupta
> > On 4/25/19 10:00 PM, Pankaj Gupta wrote: > > > +void host_ack(struct virtqueue *vq) > > +{ > > + unsigned int len; > > + unsigned long flags; > > + struct virtio_pmem_request *req, *req_buf; > > + struct virtio_pmem *vpmem = vq->vdev->priv; > > + > > +

[PATCH 2/2] EDAC/sysfs: Drop device references properly

2019-05-08 Thread Borislav Petkov
-- From: Greg KH Do put_device() if device_add() fails. [ bp: do device_del() for the successfully created devices in edac_create_csrow_objects(), on the unwind path. ] Signed-off-by: Greg KH Signed-off-by: Borislav Petkov Link: https://lkml.kernel.org/r/20190427214925.ge16...@kroah.com

Re: [PATCH AUTOSEL 4.14 62/95] mm, memory_hotplug: initialize struct pages for the full memory section

2019-05-08 Thread Gerald Schaefer
On Tue, 7 May 2019 13:18:06 -0400 Sasha Levin wrote: > On Tue, May 07, 2019 at 10:15:19AM -0700, Linus Torvalds wrote: > >On Tue, May 7, 2019 at 10:02 AM Sasha Levin wrote: > >> > >> I got it wrong then. I'll fix it up and get efad4e475c31 in instead. > > > >Careful. That one had a bug too, and

[PATCH 1/2] EDAC/sysfs: Fix memory leak when creating a csrow object

2019-05-08 Thread Borislav Petkov
>From 28e7f23939208bea639d6cd3d492cde3f65a7e4f Mon Sep 17 00:00:00 2001 From: Pan Bian Date: Thu, 18 Apr 2019 10:27:18 +0800 In edac_create_csrow_object(), the reference to the object is not released when adding the device to the device hierarchy fails (device_add()). This may result in a memory

Re: [PATCH v10 06/11] mfd: max77650: new core mfd driver

2019-05-08 Thread Lee Jones
On Tue, 23 Apr 2019, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Add the core mfd driver for max77650 PMIC. We define five sub-devices > for which the drivers will be added in subsequent patches. > > Signed-off-by: Bartosz Golaszewski > --- > drivers/mfd/Kconfig | 14

Re: EDAC: Fix memory leak in creating CSROW object

2019-05-08 Thread Borislav Petkov
On Sat, Apr 27, 2019 at 11:49:25PM +0200, Greg KH wrote: > How about this patch, I think it fixes up everything you need to do > here, right? Almost, see the two patches as a reply to this message. I've taken Pan's original patch because it is correct and I doubt you're dying for attribution :-)

Re: [PATCH v2] modules: Only return -EEXIST for modules that have finished loading

2019-05-08 Thread Heiko Carstens
Hi Prarit, On Tue, May 07, 2019 at 10:54:13AM -0400, Prarit Bhargava wrote: > Heiko, it would still be good to get a test of this patch from you. I > tested this here at Red Hat on some System Z machines. Without the > modification made here in v2, the systems failed to boot ~10% of the time. >

Re: [PATCH] dt-bindings: mfd: LMU: Fix lm3632 dt binding example

2019-05-08 Thread Lee Jones
On Fri, 05 Apr 2019, Dan Murphy wrote: > Fix the lm3632 dt binding examples as the LCM enable GPIOs > are defined as enable GPIOs per the regulator/lm363x-regulator.txt > bindings document. > > Signed-off-by: Dan Murphy > --- > Documentation/devicetree/bindings/mfd/ti-lmu.txt | 4 ++--

Re: [PATCH] mfd: imx6sx: add MQS register definition for iomuxc gpr

2019-05-08 Thread Lee Jones
On Sun, 28 Apr 2019, S.j. Wang wrote: > Add macros to define masks and bits for imx6sx MQS registers > > Signed-off-by: Shengjiu Wang > --- > include/linux/mfd/syscon/imx6q-iomuxc-gpr.h | 9 + > 1 file changed, 9 insertions(+) Applied, thanks. -- Lee Jones [李琼斯] Linaro Services

Re: Applied "dt-bindings: mfd: atmel-usart: add DMA bindings for USART in SPI mode" to the spi tree

2019-05-08 Thread Lee Jones
On Wed, 08 May 2019, Mark Brown wrote: > The patch > >dt-bindings: mfd: atmel-usart: add DMA bindings for USART in SPI mode > > has been applied to the spi tree at > >https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.3 > > All being well this means that it will be

<    1   2   3   4   5   6   7   8   9   >