Re: [PATCH v12 01/11] bitops: Introduce the for_each_set_clump8 macro

2019-03-25 Thread Andy Shevchenko
On Mon, Mar 25, 2019 at 03:22:23PM +0900, William Breathitt Gray wrote: > This macro iterates for each 8-bit group of bits (clump) with set bits, > within a bitmap memory region. For each iteration, "start" is set to the > bit offset of the found clump, while the respective clump value is > stored

Re: [PATCH] lockdep: avoid bogus clang warning

2019-03-25 Thread Steven Rostedt
On Mon, 25 Mar 2019 13:57:57 +0100 Arnd Bergmann wrote: > When lockdep is enabled, and -Wuninitialized warnings are enabled, > clang produces a silly warning for every file we compile: > > In file included from kernel/sched/fair.c:23: > kernel/sched/sched.h:1094:15: error: variable 'cookie' is

Re: Kernel LZO compressor

2019-03-25 Thread Dave Rodgman
On 19/03/2019 8:15 pm, Nick Terrell wrote: > Hi Dave, > > I just saw you patches adding LZO-RLE, so I decided to fuzz the LZO > compressor and decompressor. I didn't find any crashes, but I found some edge > cases in the decompressor. Hi Nick, Thanks - I will take a look at this. These cases won'

[PATCH] sched/deadline: correctly handle active 0-lag timers

2019-03-25 Thread luca abeni
syzbot reported the following warning: [  948.126369] WARNING: CPU: 4 PID: 17089 at kernel/sched/deadline.c:255 task_non_contending+0xae0/0x1950 [  948.130198] Kernel panic - not syncing: panic_on_warn set ... [  948.130198] [  948.134221] CPU: 4 PID: 17089 Comm: syz-executor.1 Not tainted 4.19.27

Re: [alsa-devel] [PATCH] ASoC: intel: Fix crash at suspend/resume after failed codec registration

2019-03-25 Thread Pierre-Louis Bossart
On 3/25/19 8:12 AM, Mark Brown wrote: On Sat, Mar 23, 2019 at 09:55:46AM -0400, Pierre-Louis Bossart wrote: I'd like to highlight that there is a fundamental flaw in the way the machine drivers are handled. Since we don't have a hook for the machine driver in the BIOS, the DSP driver creates a

BUG in "perf: Suppress AUX/OVERWRITE records"?

2019-03-25 Thread Ben Gainey
Hi all Regarding commit 1627314fb54a33ebd23bd08f2e215eaed0f44712 "perf: Suppress AUX/OVERWRITE records", I have found that I no longer receive PERF_RECORD_AUX on context switch when collecting data from the arm_spe PMU driver. This is because, on context switch, the arm_spe driver calls perf_aux_o

Re: [PATCH 8/8] vfio/mdev: Improve the create/remove sequence

2019-03-25 Thread Maxim Levitsky
On Fri, 2019-03-22 at 18:20 -0500, Parav Pandit wrote: > There are five problems with current code structure. > 1. mdev device is placed on the mdev bus before it is created in the > vendor driver. Once a device is placed on the mdev bus without creating > its supporting underlying vendor device, a

Re: Virtio-scsi multiqueue irq affinity

2019-03-25 Thread Thomas Gleixner
Peter, On Mon, 25 Mar 2019, Peter Xu wrote: > Now I understand it can be guaranteed so it should not break > determinism of the real-time applications. But again, I'm curious > whether we can specify how to spread the hardware queues of a block > controller (as I asked in my previous post) instea

Re: [PATCH -next] mmc: sdhci-omap: Make sdhci_omap_reset static

2019-03-25 Thread Ulf Hansson
On Fri, 22 Mar 2019 at 15:15, Yue Haibing wrote: > > From: YueHaibing > > Fix sparse warning: > > drivers/mmc/host/sdhci-omap.c:788:6: warning: > symbol 'sdhci_omap_reset' was not declared. Should it be static? > > Signed-off-by: YueHaibing Applied for next, thanks! Kind regards Uffe > ---

Re: [PATCH v3 1/3] dt-bindings: mmc: Add disable-cqe-dcmd property.

2019-03-25 Thread Ulf Hansson
On Fri, 22 Mar 2019 at 12:39, Christoph Muellner wrote: > > Add disable-cqe-dcmd as optional property for MMC hosts. > This property allows to disable or not enable the direct command > features of the command queue engine. > > Signed-off-by: Christoph Muellner > Signed-off-by: Philipp Tomsich

Re: [PATCH v3 3/3] arm64: dts: rockchip: Disable DCMDs on RK3399's eMMC controller.

2019-03-25 Thread Ulf Hansson
On Fri, 22 Mar 2019 at 12:39, Christoph Muellner wrote: > > When using direct commands (DCMDs) on an RK3399, we get spurious > CQE completion interrupts for the DCMD transaction slot (#31): > > [ 931.196520] [ cut here ] > [ 931.201702] mmc1: cqhci: spurious TCN for tag 3

Re: [PATCH] mmc: usdhi6rol0: mark expected switch fall-throughs

2019-03-25 Thread Ulf Hansson
[...] > >> @@ -1688,6 +1688,7 @@ static void usdhi6_timeout_work(struct work_struct > >> *work) > >> default: > >> dev_err(mmc_dev(host->mmc), "Invalid state %u\n", > >> host->wait); > >> /* mrq can be NULL in this actually impossible case */ > >> +

Re: [PATCH v3 2/3] mmc: sdhci-of-arasan: Add DTS property to disable DCMDs.

2019-03-25 Thread Ulf Hansson
On Fri, 22 Mar 2019 at 12:39, Christoph Muellner wrote: > > Direct commands (DCMDs) are an optional feature of eMMC 5.1's command > queue engine (CQE). The Arasan eMMC 5.1 controller uses the CQHCI, > which exposes a control register bit to enable the feature. > The current implementation sets thi

Re: [PATCH V4 01/10] mmc: tegra: fix ddr signaling for non-ddr modes

2019-03-25 Thread Ulf Hansson
On Sun, 24 Mar 2019 at 05:45, Sowjanya Komatineni wrote: > > ddr_signaling is set to true for DDR50 and DDR52 modes but is > not set back to false for other modes. This programs incorrect > host clock when mode change happens from DDR52/DDR50 to other > SDR or HS modes like incase of mmc_retune wh

Re: [PATCH 5/7] drm/vc4: Disable V3D interactions if the v3d component didn't probe.

2019-03-25 Thread Paul Kocialkowski
Hi, On Wed, 2019-02-20 at 13:03 -0800, Eric Anholt wrote: > One might want to use the VC4 display stack without using Mesa. > Similar to the debugfs fixes for not having all of the possible > display bits enabled, make sure you can't oops in vc4 if v3d isn't > enabled. See a comment below. > Sig

RE: dell_smbios KASAN bug

2019-03-25 Thread Mario.Limonciello
> -Original Message- > From: Steven Rostedt > Sent: Wednesday, March 20, 2019 2:14 PM > To: Tom Zanussi > Cc: Pali Rohár; Limonciello, Mario; linux-kernel@vger.kernel.org > Subject: Re: dell_smbios KASAN bug > > > [EXTERNAL EMAIL] > > On Wed, 20 Mar 2019 14:05:49 -0500 > Tom Zanussi wr

Re: [PATCH v4] PCI: qcom: Use default config space read function

2019-03-25 Thread Stanimir Varbanov
Hi Marc, On 3/25/19 2:11 PM, Marc Gonzalez wrote: > Stanimir, > > Is v4 good enough for Bjorn to pick up? Yes it is good but to avoid breaking another SoCs could you add fixups for the following SoCs: SoC device ID ipq4019 0x1001 ipq8064 0x101 ipq8074 0x108

Re: [RFC 2/2] rcutree: Add checks for dynticks counters in rcu_is_cpu_rrupt_from_idle

2019-03-25 Thread Joel Fernandes
On Sun, Mar 24, 2019 at 04:43:51PM -0700, Paul E. McKenney wrote: > On Fri, Mar 22, 2019 at 11:02:51PM -0400, Joel Fernandes wrote: > > On Fri, Mar 22, 2019 at 09:29:39PM -0400, Joel Fernandes (Google) wrote: > > > In the future we would like to combine the dynticks and dynticks_nesting > > > count

Re: [PATCH v3 2/3] mmc: sdhci-of-arasan: Add DTS property to disable DCMDs.

2019-03-25 Thread Christoph Müllner
> On 25.03.2019, at 14:27, Ulf Hansson wrote: > > On Fri, 22 Mar 2019 at 12:39, Christoph Muellner > wrote: >> >> Direct commands (DCMDs) are an optional feature of eMMC 5.1's command >> queue engine (CQE). The Arasan eMMC 5.1 controller uses the CQHCI, >> which exposes a control register bit

Re: [PATCH v3] rcu: Allow to eliminate softirq processing from rcutree

2019-03-25 Thread Joel Fernandes
On Sun, Mar 24, 2019 at 04:42:11PM -0700, Paul E. McKenney wrote: > On Sat, Mar 23, 2019 at 09:10:02AM -0700, Paul E. McKenney wrote: > > On Fri, Mar 22, 2019 at 05:25:19PM -0700, Paul E. McKenney wrote: > > > On Fri, Mar 22, 2019 at 07:48:19PM -0400, Joel Fernandes wrote: > > > > On Wed, Mar 20, 2

[PATCH 2/2] pinctrl: pinctrl-imx8mq: Add support PM operations

2019-03-25 Thread Abel Vesa
Add suspend/resume pm ops to the pinctrl i.MX8MQ driver. Make the suspend late and the resume early since some of the pins might be needed active very late. These call the pinctrl-imx generic handlers. Signed-off-by: Abel Vesa --- drivers/pinctrl/freescale/pinctrl-imx8mq.c | 16

[PATCH 1/2] pinctrl: pinctrl-imx: Add suspend/resume for LPSR

2019-03-25 Thread Abel Vesa
From: Robin Gong To support pinctl hog restore after LPSR resume back, add suspend/resume in pinctrl driver. Signed-off-by: Robin Gong Signed-off-by: Abel Vesa --- drivers/pinctrl/freescale/pinctrl-imx.c | 20 drivers/pinctrl/freescale/pinctrl-imx.h | 3 +++ 2 files chan

[Fix PATCH] cpu/hotplug: Fix bug report when add "nosmt" parameter with CONFIG_HOTPLUG_CPU=N

2019-03-25 Thread lantianyu1986
From: Lan Tianyu When add "nosmt" parameter, kernel still boots up all logical cpus once and set CR4.MCE on each CPU. This is to avoid shutting down machine when a broadacasted MCE is observed CR4.MCE=0b. (Detail please see comment in the cpu_smt_allowed()). Smt cpus will bring up and bring down

Re: [RFC PATCH v2 1/5] mtd: cfi_cmdset_0002: Add support for polling status register

2019-03-25 Thread Joakim Tjernlund
On Mon, 2019-03-25 at 18:27 +0530, Vignesh Raghavendra wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you recognize the sender and know the > content is safe. > > > Hi, > > On 21/03/19 11:41 PM, Joakim Tjernlund wrote:

Re: [PATCH 1/1] sched/clock: Prevent generic sched_clock wrap caused by tick_freeze()

2019-03-25 Thread Thomas Gleixner
On Mon, 25 Mar 2019, Chang-An Chen wrote: > --- a/include/linux/sched_clock.h > +++ b/include/linux/sched_clock.h > @@ -13,6 +13,10 @@ > > extern void sched_clock_register(u64 (*read)(void), int bits, >unsigned long rate); > + > +extern int sched_clock_suspend(voi

Re: [PATCH v3 2/3] mmc: sdhci-of-arasan: Add DTS property to disable DCMDs.

2019-03-25 Thread Ulf Hansson
On Mon, 25 Mar 2019 at 14:39, Christoph Müllner wrote: > > > > On 25.03.2019, at 14:27, Ulf Hansson wrote: > > > > On Fri, 22 Mar 2019 at 12:39, Christoph Muellner > > wrote: > >> > >> Direct commands (DCMDs) are an optional feature of eMMC 5.1's command > >> queue engine (CQE). The Arasan eMMC

Re: [PATCH 1/2] pinctrl: pinctrl-imx: Add suspend/resume for LPSR

2019-03-25 Thread Daniel Baluta
On Mon, Mar 25, 2019 at 3:49 PM Abel Vesa wrote: > > From: Robin Gong Please fix Robin's email.

[PATCH] x86, retpolines: entirely disable switch jump tables when retpolines are enabled

2019-03-25 Thread Daniel Borkmann
Commit ce02ef06fcf7 ("x86, retpolines: Raise limit for generating indirect calls from switch-case") raised the limit under retpolines to 20 switch cases where gcc would only then start to emit jump tables, and therefore effectively disabling the emission of slow indirect calls in this area. After

Re: [PATCH] regulator: max77650: Convert MAX77651 SBB1 to pickable linear range

2019-03-25 Thread Bartosz Golaszewski
pon., 25 mar 2019 o 14:56 Axel Lin napisał(a): > > The pickable linear range is suitable for The MAX77651 SBB1. > According to MAX77651 TV_SBB1 Code Table: > Use BIT[1:0] as range selectors. > Use BIT[5:2] as selectors for each linear range. > > The MAX77651 SBB1 supports up to selector 57, select

[PATCH] regulator: max77650: Convert MAX77651 SBB1 to pickable linear range

2019-03-25 Thread Axel Lin
The pickable linear range is suitable for The MAX77651 SBB1. According to MAX77651 TV_SBB1 Code Table: Use BIT[1:0] as range selectors. Use BIT[5:2] as selectors for each linear range. The MAX77651 SBB1 supports up to selector 57, selector 58 ~ 63 are RSVD, thus set n_voltage to 58. Signed-off-by

Re: [PATCH v3 4/5] phy: ti: Add a new SERDES driver for TI's AM654x SoC

2019-03-25 Thread Andrew F. Davis
On 3/25/19 3:08 AM, Kishon Vijay Abraham I wrote: > Add a new SERDES driver for TI's AM654x SoC which configures > the SERDES only for PCIe. Support fo USB3 will be added later. > > SERDES in am654x has three input clocks (left input, externel reference > clock and right input) and two output cloc

[PATCH v2 1/2] pinctrl: pinctrl-imx: Add suspend/resume for LPSR

2019-03-25 Thread Abel Vesa
From: Robin Gong To support pinctl hog restore after LPSR resume back, add suspend/resume in pinctrl driver. Signed-off-by: Robin Gong Signed-off-by: Abel Vesa --- Changes since v1: * fixed Robin's email drivers/pinctrl/freescale/pinctrl-imx.c | 20 drivers/pinctrl/fre

[RESEND PATCH] perf intel-pt: Fix TSC slip

2019-03-25 Thread Adrian Hunter
A TSC packet can slip past MTC packets so that the timestamp appears to go backwards. One estimate is that can be up to about 40 CPU cycles, which is certainly less than 0x1000 TSC ticks, but accept slippage an order of magnitude more to be on the safe side. Signed-off-by: Adrian Hunter Fixes: 79

[PATCH v2 2/2] pinctrl: pinctrl-imx8mq: Add support PM operations

2019-03-25 Thread Abel Vesa
Add suspend/resume pm ops to the pinctrl i.MX8MQ driver. Make the suspend late and the resume early since some of the pins might be needed active very late. These call the pinctrl-imx generic handlers. Signed-off-by: Abel Vesa --- drivers/pinctrl/freescale/pinctrl-imx8mq.c | 16

[PATCH v4 3/3] drm/panel: Add Rocktech jh057n00900 panel driver

2019-03-25 Thread Guido Günther
Support Rocktech jh057n00900 5.5" 720x1440 TFT LCD panel. It is a MIPI DSI video mode panel. The panel seems to use a Sitronix ST7703 look alike (most of the commands look similar to the ST7703's data sheet but use a different number of parameters). The initial version of the DSI init sequence (in

[PATCH v4 2/3] dt-bindings: Add Rocktech jh057n00900 panel bindings

2019-03-25 Thread Guido Günther
The Rocktec jh057n00900 is a 5.5" MIPI DSI video mode panel with a 720x1440 resolution and a built in backlight. Signed-off-by: Guido Günther --- .../display/panel/rocktech,jh057n00900.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree

Re: [PATCH] [v2] selinux: avoid uninitialized variable warning

2019-03-25 Thread Paul Moore
On Mon, Mar 25, 2019 at 8:40 AM Arnd Bergmann wrote: > clang correctly points out a code path that would lead > to an uninitialized variable use: > > security/selinux/netlabel.c:310:6: error: variable 'addr' is used > uninitialized whenever 'if' condition is false > [-Werror,-Wsometimes-uni

Re: [PATCH 2/4] signal: Make flush_sigqueue() use free_q to release memory

2019-03-25 Thread Christopher Lameter
On Fri, 22 Mar 2019, Matthew Wilcox wrote: > On Fri, Mar 22, 2019 at 07:39:31PM +, Christopher Lameter wrote: > > On Fri, 22 Mar 2019, Waiman Long wrote: > > > > > > > > > >> I am looking forward to it. > > > > There is also alrady rcu being used in these paths. kfree_rcu() would > > > > not

[PATCH] drivers/staging: fix styling of the comment related to SPDX-License-Identifier in vt6656/*.h

2019-03-25 Thread Ojaswin Mujoo
From: ojaswin Fix checkpatch.pl styling error related to SPDX-License-Identifier comment in vt6656/*.h Signed-off-by: Ojaswin Mujoo --- drivers/staging/vt6656/baseband.h | 2 +- drivers/staging/vt6656/card.h | 2 +- drivers/staging/vt6656/channel.h | 2 +- drivers/staging/vt6656/desc.h

Re: dell_smbios KASAN bug

2019-03-25 Thread Steven Rostedt
On Mon, 25 Mar 2019 13:22:35 + wrote: > > diff --git a/drivers/platform/x86/dell-smbios-base.c > > b/drivers/platform/x86/dell- > > smbios-base.c > > index 9dc282ed5a9e..c3825c674522 100644 > > --- a/drivers/platform/x86/dell-smbios-base.c > > +++ b/drivers/platform/x86/dell-smbios-base.c >

Re: [alsa-devel] [PATCH] ASoC: intel: Fix crash at suspend/resume after failed codec registration

2019-03-25 Thread Guenter Roeck
On 3/25/19 5:12 AM, Mark Brown wrote: On Sat, Mar 23, 2019 at 09:55:46AM -0400, Pierre-Louis Bossart wrote: I'd like to highlight that there is a fundamental flaw in the way the machine drivers are handled. Since we don't have a hook for the machine driver in the BIOS, the DSP driver creates a

Re: [PATCH v12 3/4] cpuidle: Export the next timer/tick expiration for a CPU

2019-03-25 Thread Ulf Hansson
On Mon, 25 Mar 2019 at 13:21, Rafael J. Wysocki wrote: > > On Wednesday, February 27, 2019 8:58:35 PM CET Ulf Hansson wrote: > > To be able to predict the sleep duration for a CPU that is entering idle, > > knowing when the next timer/tick is going to expire, is extremely useful. > > Both the teo

[PATCH 3/5] dt-bindings: ti-lmu: Modify dt bindings for the LM3697

2019-03-25 Thread Dan Murphy
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 by a TI LMU framework. The LM3697 dt binding nee

[PATCH 2/5] leds: TI LMU: Add common code for TI LMU devices

2019-03-25 Thread Dan Murphy
Create a TI LMU common framework for TI LMU devices that share common features. Currently the runtime ramp and brightness setting have been identified as common features with common register settings. This work is derived from Milo Kims TI LMU MFD code. Signed-off-by: Dan Murphy --- drivers/le

[PATCH 5/5] leds: lm3697: Introduce the lm3697 driver

2019-03-25 Thread Dan Murphy
Introduce the lm3697 LED driver for backlighting and display. Datasheet location: http://www.ti.com/lit/ds/symlink/lm3697.pdf Signed-off-by: Dan Murphy --- drivers/leds/Kconfig | 8 +- drivers/leds/Makefile | 1 + drivers/leds/leds-lm3697.c | 401 +

[PATCH] iio: adc: stm32-dfsdm: improve sampling frequency accuracy

2019-03-25 Thread Fabrice Gasnier
The sample frequency is driven using the oversampling ratio depending on the SPI bus frequency. Currently, oversampling ratio is computed by an entire division: - spi_freq / sample_freq. This may result in inaccurate value. Using DIV_ROUND_CLOSEST improves resulting sample frequency, which is usefu

[PATCH 0/5] TI LMU rework

2019-03-25 Thread Dan Murphy
All I know that it has been a long time but I put some additional effort into this code. The TI LMU common code right now handles brightness and ramp up/down setting for the LM3697. This so far are the common features I could find. The LM3697 driver has the ability to assign HVLED strings to sp

Re: [PATCH v4 04/11] tracing: Use tracing error_log with trace event filters

2019-03-25 Thread Steven Rostedt
On Mon, 25 Mar 2019 20:37:23 +0900 Namhyung Kim wrote: > > /* Called after a '!' character but "!=" and "!~" are not "not"s */ > > static bool is_not(const char *str) > > @@ -947,8 +948,10 @@ static void append_filter_err(struct > > filter_parse_error *pe, > > if (pe->lasterr > 0) { > >

Re: [RFC][Patch v9 0/6] KVM: Guest Free Page Hinting

2019-03-25 Thread Nitesh Narayan Lal
On 3/20/19 9:18 AM, Nitesh Narayan Lal wrote: > On 3/19/19 1:59 PM, Nitesh Narayan Lal wrote: >> On 3/19/19 1:38 PM, Alexander Duyck wrote: >>> On Tue, Mar 19, 2019 at 9:04 AM Nitesh Narayan Lal >>> wrote: On 3/19/19 9:33 AM, David Hildenbrand wrote: > On 18.03.19 16:57, Nitesh Narayan L

Re: [PATCH] x86, retpolines: entirely disable switch jump tables when retpolines are enabled

2019-03-25 Thread David Woodhouse
On Mon, 2019-03-25 at 14:56 +0100, Daniel Borkmann wrote: > More than 20 switch cases are not expected to be fast-path critical, but > it would still be good to align with gcc behavior for versions < 8.4.0 in > order to have consistency across supported gcc versions. vmlinux size is > slightly grow

[PATCH v3] hrtimer: Consolidate hrtimer_init() + hrtimer_init_sleeper() calls

2019-03-25 Thread Anna-Maria Gleixner
From: Sebastian Andrzej Siewior hrtimer_init_sleeper() calls require a prior initialisation of the hrtimer object with hrtimer_init(). Lets make the initialisation of the hrtimer object part of hrtimer_init_sleeper(). To remain consistent consider init_on_stack as well. Beside adapting the hrtim

Re: [PATCH RESEND v3] tpm: fix an invalid condition in tpm_common_poll

2019-03-25 Thread Jarkko Sakkinen
On Fri, Mar 22, 2019 at 05:59:17PM +0200, Jarkko Sakkinen wrote: > On Fri, Mar 22, 2019 at 07:38:58AM -0700, Tadeusz Struk wrote: > > The poll condition should only check response_length, > > because reads should only be issued if there is data to read. > > The response_read flag only prevents doub

Re: [PATCH] x86, retpolines: entirely disable switch jump tables when retpolines are enabled

2019-03-25 Thread Daniel Borkmann
On 03/25/2019 03:28 PM, David Woodhouse wrote: > On Mon, 2019-03-25 at 14:56 +0100, Daniel Borkmann wrote: >> More than 20 switch cases are not expected to be fast-path critical, but >> it would still be good to align with gcc behavior for versions < 8.4.0 in >> order to have consistency across sup

Re: [PATCH v17] i2c: Add drivers for the AMD PCIe MP2 I2C controller

2019-03-25 Thread Wolfram Sang
On Tue, Mar 05, 2019 at 12:13:19PM -0300, Elie Morisse wrote: > MP2 controllers have two separate busses, so may accommodate up to two I2C > adapters. Those adapters are listed in the ACPI namespace with the > "AMDI0011" HID, and probed by a platform driver. > > Communication with the MP2 takes pl

Re: [PATCH] csky: Update syscall_trace_enter/exit implementation

2019-03-25 Thread Guo Ren
On Mon, Mar 25, 2019 at 08:03:39PM +0800, guo...@kernel.org wrote: > From: Guo Ren > > Previous syscall_trace implementation couldn't support AUDITSYSCALL and > SYSCALL_TRACEPOINTS. Now we redesign it to support audit_syscall > and syscall_tracepoints just like other archs'. > > Signed-off-by: G

[PATCH v2 02/11] mm/hmm: use reference counting for HMM struct v2

2019-03-25 Thread jglisse
From: Jérôme Glisse Every time i read the code to check that the HMM structure does not vanish before it should thanks to the many lock protecting its removal i get a headache. Switch to reference counting instead it is much easier to follow and harder to break. This also remove some code that is

[PATCH v2 06/11] mm/hmm: improve driver API to work and wait over a range v2

2019-03-25 Thread jglisse
From: Jérôme Glisse A common use case for HMM mirror is user trying to mirror a range and before they could program the hardware it get invalidated by some core mm event. Instead of having user re-try right away to mirror the range provide a completion mechanism for them to wait for any active in

[PATCH v2 09/11] mm/hmm: allow to mirror vma of a file on a DAX backed filesystem v2

2019-03-25 Thread jglisse
From: Jérôme Glisse HMM mirror is a device driver helpers to mirror range of virtual address. It means that the process jobs running on the device can access the same virtual address as the CPU threads of that process. This patch adds support for mirroring mapping of file that are on a DAX block

[PATCH v2 03/11] mm/hmm: do not erase snapshot when a range is invalidated

2019-03-25 Thread jglisse
From: Jérôme Glisse Users of HMM might be using the snapshot information to do preparatory step like dma mapping pages to a device before checking for invalidation through hmm_vma_range_done() so do not erase that information and assume users will do the right thing. Signed-off-by: Jérôme Glisse

[PATCH v2 08/11] mm/hmm: mirror hugetlbfs (snapshoting, faulting and DMA mapping) v2

2019-03-25 Thread jglisse
From: Jérôme Glisse HMM mirror is a device driver helpers to mirror range of virtual address. It means that the process jobs running on the device can access the same virtual address as the CPU threads of that process. This patch adds support for hugetlbfs mapping (ie range of virtual address tha

Re: [PATCH] [v3] selinux: avoid uninitialized variable warning

2019-03-25 Thread Paul Moore
On Mon, Mar 25, 2019 at 10:23 AM Arnd Bergmann wrote: > > clang correctly points out a code path that would lead > to an uninitialized variable use: > > security/selinux/netlabel.c:310:6: error: variable 'addr' is used > uninitialized whenever 'if' condition is false > [-Werror,-Wsometimes-

[PATCH v2 04/11] mm/hmm: improve and rename hmm_vma_get_pfns() to hmm_range_snapshot() v2

2019-03-25 Thread jglisse
From: Jérôme Glisse Rename for consistency between code, comments and documentation. Also improves the comments on all the possible returns values. Improve the function by returning the number of populated entries in pfns array. Changes since v1: - updated documentation - reformated some

[PATCH v2 01/11] mm/hmm: select mmu notifier when selecting HMM

2019-03-25 Thread jglisse
From: Jérôme Glisse To avoid random config build issue, select mmu notifier when HMM is selected. In any cases when HMM get selected it will be by users that will also wants the mmu notifier. Signed-off-by: Jérôme Glisse Acked-by: Balbir Singh Cc: Ralph Campbell Cc: Andrew Morton Cc: John Hu

[PATCH v2 00/11] Improve HMM driver API v2

2019-03-25 Thread jglisse
From: Jérôme Glisse This patchset improves the HMM driver API and add support for mirroring virtual address that are mmap of hugetlbfs or of a file in a filesystem on a DAX block device. You can find a tree with all the patches [1] This patchset is necessary for converting ODP to HMM and patch t

Re: [PATCH] Documentation: acpi: Add an example for PRP0001

2019-03-25 Thread Thomas Preston
Hi, Thanks for looking at this. On 25/03/2019 13:04, Andy Shevchenko wrote: On Mon, Mar 25, 2019 at 01:51:18PM +0200, Andy Shevchenko wrote: On Mon, Mar 25, 2019 at 10:31:13AM +0100, Rafael J. Wysocki wrote: On Fri, Mar 22, 2019 at 2:47 PM Thomas Preston wrote: Add an example for the magic

Re: [PATCH] x86, retpolines: entirely disable switch jump tables when retpolines are enabled

2019-03-25 Thread David Woodhouse
On Mon, 2019-03-25 at 15:37 +0100, Daniel Borkmann wrote: > On 03/25/2019 03:28 PM, David Woodhouse wrote: > > On Mon, 2019-03-25 at 14:56 +0100, Daniel Borkmann wrote: > > > More than 20 switch cases are not expected to be fast-path critical, but > > > it would still be good to align with gcc beha

[PATCH v2 05/11] mm/hmm: improve and rename hmm_vma_fault() to hmm_range_fault() v2

2019-03-25 Thread jglisse
From: Jérôme Glisse Rename for consistency between code, comments and documentation. Also improves the comments on all the possible returns values. Improve the function by returning the number of populated entries in pfns array. Changes since v1: - updated documentation - reformated some

[PATCH v2 07/11] mm/hmm: add default fault flags to avoid the need to pre-fill pfns arrays.

2019-03-25 Thread jglisse
From: Jérôme Glisse The HMM mirror API can be use in two fashions. The first one where the HMM user coalesce multiple page faults into one request and set flags per pfns for of those faults. The second one where the HMM user want to pre-fault a range with specific flags. For the latter one it is

[PATCH v2 11/11] mm/hmm: add an helper function that fault pages and map them to a device v2

2019-03-25 Thread jglisse
From: Jérôme Glisse This is a all in one helper that fault pages in a range and map them to a device so that every single device driver do not have to re-implement this common pattern. This is taken from ODP RDMA in preparation of ODP RDMA convertion. It will be use by nouveau and other drivers.

[PATCH v2 10/11] mm/hmm: add helpers for driver to safely take the mmap_sem v2

2019-03-25 Thread jglisse
From: Jérôme Glisse The device driver context which holds reference to mirror and thus to core hmm struct might outlive the mm against which it was created. To avoid every driver to check for that case provide an helper that check if mm is still alive and take the mmap_sem in read mode if so. If

Re: [Fix PATCH] cpu/hotplug: Fix bug report when add "nosmt" parameter with CONFIG_HOTPLUG_CPU=N

2019-03-25 Thread Thomas Gleixner
Tianyu, On Mon, 25 Mar 2019, lantianyu1...@gmail.com wrote: thanks for tracking this down. A few nit picks vs. the subject first: > Subject: [Fix PATCH] cpu/hotplug: Fix bug report when add "nosmt" parameter > with CONFIG_HOTPLUG_CPU=N [PATCH] is sufficient. The extra 'Fix' has no real value.

[PATCH v1] Revert "dmaengine: stm32-mdma: Add a check on read_u32_array"

2019-03-25 Thread Pierre-Yves MORDRET
This reverts commit 906b40b246b0acb54c4dc97e815cf734761c9820. As stated by bindings "st,ahb-addr-masks" is optional. The statement inserted by this commit makes this property mandatory and prevents MDMA to be probed in case property not present. Signed-off-by: Pierre-Yves MORDRET --- drivers/dm

[PATCH] KEYS: trusted: allow trusted.ko to initialize w/o a TPM

2019-03-25 Thread Jarkko Sakkinen
Allow trusted.ko to initialize w/o a TPM. This commit adds checks to the key type callbacks and exported functions to fail when a TPM is not available. Cc: Dan Williams Cc: sta...@vger.kernel.org Fixes: 240730437deb ("KEYS: trusted: explicitly use tpm_chip structure...") Signed-off-by: Jarkko Sak

Re: [RESEND PATCH] perf intel-pt: Fix TSC slip

2019-03-25 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 25, 2019 at 03:51:35PM +0200, Adrian Hunter escreveu: > A TSC packet can slip past MTC packets so that the timestamp appears to go > backwards. One estimate is that can be up to about 40 CPU cycles, which is > certainly less than 0x1000 TSC ticks, but accept slippage an order of > magni

Re: linux-next: Signed-off-by missing for commits in the coresight tree

2019-03-25 Thread Mathieu Poirier
Good day Stephen, On Sun, 24 Mar 2019 at 05:32, Stephen Rothwell wrote: > > Hi Mathieu, > > Commits > > 0a3a3dfb0d15 ("perf tools: Add missing case value") > 0dd14fd06504 ("perf cs-etm: return errcode in > cs_etm__process_auxtrace_info()") > 9b884872f9be ("perf cs-etm: Remove errnoeous ERR

[PATCH] iio: adc: stm32-dfsdm: add PM support

2019-03-25 Thread Fabrice Gasnier
Add PM and runtime PM support to STM32 DFSDM drivers: - stm32-dfsdm-core: manage clocks. - stm32-dfsdm-adc: restore channels configuration upon resume. Also stop restart everything in case of buffer mode. Signed-off-by: Fabrice Gasnier --- drivers/iio/adc/stm32-dfsdm-adc.c | 75 +

Re: [PATCH v5 00/10] mm: Sub-section memory hotplug support

2019-03-25 Thread Michal Hocko
On Mon 25-03-19 10:28:00, Jeff Moyer wrote: > Michal Hocko writes: > > >> > and I would like to know that you are > >> > not just shifting the problem to a smaller unit and a new/creative HW > >> > will force us to go even more complicated. > >> > >> HW will not do this to us. It's software that

Re: [PATCH] perf tools: Move precise_ip detection into perf_evsel__open

2019-03-25 Thread Arnaldo Carvalho de Melo
Em Sat, Mar 23, 2019 at 04:04:22PM +0100, Jiri Olsa escreveu: > On Fri, Mar 15, 2019 at 03:52:25PM +0100, Jiri Olsa wrote: > > On Fri, Mar 15, 2019 at 11:35:04AM -0300, Arnaldo Carvalho de Melo wrote: > > > The perf_evsel__open() code is already complex with that fallback > > > mechanism, this is j

Re: [PATCH 4/4] leds: lm3532: Introduce the lm3532 LED driver

2019-03-25 Thread Tony Lindgren
* Dan Murphy [190325 12:36]: > On 3/22/19 5:16 PM, Tony Lindgren wrote: > > I can control the backlight brightness just fine via /sys, and > > backlight shows up as the trigger in /sys/class/leds/lm3532:backlight, > > but /sys/class/backlight is empty and looks like drm can't find it. > > > > Do

Re: [PATCH v3 4/4] RISC-V: Allow booting kernel from any 4KB aligned address

2019-03-25 Thread Christoph Hellwig
On Mon, Mar 25, 2019 at 06:12:28PM +0530, Anup Patel wrote: > It uses new code for 2M mappings as well. That seems to be an odd view - yes some code is shared, but we still have two different ways using ifdefs. > The code is lot better, readable and flexible. better is in the eye of the behold

[PATCH] soc: amlogic: meson-gx-pwrc-vpu: Add support for G12A

2019-03-25 Thread Neil Armstrong
The Amlogic G12A SoC has a very similar VPU Power Controller setup than the older GXBB, GXL & GXm SoCs. This patch adds the variant support for G12A. Signed-off-by: Neil Armstrong --- drivers/soc/amlogic/meson-gx-pwrc-vpu.c | 160 +--- 1 file changed, 144 insertions(+), 16 d

[PATCH 1/5] arm64: dts: meson-g12a: Add VPU and HDMI related nodes

2019-03-25 Thread Neil Armstrong
Add VPU and HDMI display support. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 131 1 file changed, 131 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index c762e2309b2

[PATCH 2/5] arm64: dts: meson-g12a: Add AO-CEC-A nodes

2019-03-25 Thread Neil Armstrong
Amlogic G12A embeds 2 CEC controllers : - AO-CEC-A the same controller as in GXBB, GXL & GXM SoCs - AO-CEC-B a new controller Note, the two controller can work simultanously since 2 Pads can handle CEC, thus this SoC can handle 2 distinct CEC busses. This patch adds the nodes for the AO-CEC-A con

[PATCH 0/5] arm64: dts: meson-g12a: Add support for Video Display

2019-03-25 Thread Neil Armstrong
This patchset adds nodes for Video Display support. Dependencies : - patch 1: VPU, HDMI & Power Controller bindings still in reviewe at [1] - patch 2: None - patch 3, 4, 5: Patch 1 [1] https://lkml.kernel.org/r/20190313141030.5958-1-narmstr...@baylibre.com Neil Armstrong (5): arm64: dts: meson

Re: [PATCH v3 4/4] RISC-V: Allow booting kernel from any 4KB aligned address

2019-03-25 Thread Christoph Hellwig
On Mon, Mar 25, 2019 at 06:18:45PM +0530, Anup Patel wrote: > We trying to addresses following issues in current code: > 1. The current setup_vm() maps all possible kernel virtual addresses (128GB > on 64bit system and 1GB on 32bit system). The amount RAM present on > real systems might be much les

[PATCH 4/5] arm64: dts: meson-g12a-sei510: Add support for Video Display

2019-03-25 Thread Neil Armstrong
This patch adds the HDMI, CVBS and CEC attributes and nodes to support full display on the SEI510 STB. AO-CEC-A is used for now until AO-CEC-B is supported. Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-g12a-sei510.dts| 46 +++ 1 file changed, 46 insertions(+)

[PATCH 3/5] arm64: dts: meson-g12a-x96-max: Add support for Video Display

2019-03-25 Thread Neil Armstrong
This patch adds the HDMI, CVBS and CEC attributes and nodes to support full display on the X96 Max STB. AO-CEC-A is used for now until AO-CEC-B is supported. Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-g12a-x96-max.dts | 47 +++ 1 file changed, 47 insertions(+

Re: [PATCH v2 5/5] i2c: mux: pca9541: add support for PCA9641

2019-03-25 Thread Peter Rosin
On 2019-03-22 20:38, Pradeep Srinivasan wrote: > I have verified the changes on PCA 9541. May I know how you want the test > results to be shared ? (newbie here; please bear with me) > > root@cumulus:/home/cumulus# dmesg| grep "pca9541" | grep -v "pmbus" > [    2.922288] pca9541 1-0070: registere

Re: [PATCH] Documentation: acpi: Add an example for PRP0001

2019-03-25 Thread Andy Shevchenko
On Mon, Mar 25, 2019 at 02:42:09PM +, Thomas Preston wrote: > On 25/03/2019 13:04, Andy Shevchenko wrote: > > On Mon, Mar 25, 2019 at 01:51:18PM +0200, Andy Shevchenko wrote: > > > On Mon, Mar 25, 2019 at 10:31:13AM +0100, Rafael J. Wysocki wrote: > > > Though one thing I would like to add (no

Re: [PATCH] rcutorture: Select from only online CPUs

2019-03-25 Thread Paul E. McKenney
On Fri, Mar 22, 2019 at 11:46:19PM -0400, Joel Fernandes (Google) wrote: > The rcutorture jitter.sh script selects a random CPU but does not check > if it is offline or online. This leads to taskset errors many times. On > my machine, hyper threading is disabled so half the cores are offline > caus

[PATCH 5/5] arm64: dts: meson-g12a-u200: Add support for Video Display

2019-03-25 Thread Neil Armstrong
This patch adds the HDMI, CVBS and CEC attributes and nodes to support full display on the U200 Reference Design. AO-CEC-A is used for now until AO-CEC-B is supported. Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-g12a-u200.dts | 47 +++ 1 file changed, 47 in

Re: [PATCH v2 3/3] lib: logic_pio: Make some prints explicitly hex

2019-03-25 Thread Andy Shevchenko
On Mon, Mar 25, 2019 at 11:49 AM John Garry wrote: > On 23/03/2019 19:12, Andy Shevchenko wrote: > > On Wed, Mar 20, 2019 at 8:14 PM John Garry wrote: > >> > >> Some prints in the code are for a hex number, but don't prefix "0x". Add > >> the prefix, as is the norm. > > > >> - pr_err("addr

Re: [PATCH] Documentation: acpi: Add an example for PRP0001

2019-03-25 Thread Thomas Preston
On 25/03/2019 15:01, Andy Shevchenko wrote: On Mon, Mar 25, 2019 at 02:42:09PM +, Thomas Preston wrote: On 25/03/2019 13:04, Andy Shevchenko wrote: On Mon, Mar 25, 2019 at 01:51:18PM +0200, Andy Shevchenko wrote: On Mon, Mar 25, 2019 at 10:31:13AM +0100, Rafael J. Wysocki wrote: Though

Re: [alsa-devel] [PATCH] ASoC: intel: Fix crash at suspend/resume after failed codec registration

2019-03-25 Thread Mark Brown
On Mon, Mar 25, 2019 at 09:18:04AM -0400, Pierre-Louis Bossart wrote: > On 3/25/19 8:12 AM, Mark Brown wrote: > > These are driver specific issues not device model issues as far as I can > > see? The issue fixed by this as is that you're storing a pointer in the > > ASoC level (not device model l

Re: [alsa-devel] [PATCH] ASoC: intel: Fix crash at suspend/resume after failed codec registration

2019-03-25 Thread Mark Brown
On Mon, Mar 25, 2019 at 07:21:00AM -0700, Guenter Roeck wrote: > It is actually a bit more complicated than that. The stored pointer > (drv->soc_card) > isn't released. The problem is that dev_get_drvdata(drv->soc_card->dev) is > NULL, > which causes the crash. I don't think there is a UAF invol

Re: [PATCH] HID: core: move Usage Page concatenation to hid_parser_main()

2019-03-25 Thread Benjamin Tissoires
On Mon, Mar 25, 2019 at 11:39 AM Benjamin Tissoires wrote: > > Hi Nicolas, > > On Tue, Mar 12, 2019 at 10:37 AM Nicolas Saenz Julienne > wrote: > > > > As seen on some USB wireless keyboards manufactured by Primax, the HID > > parser was using some assumptions that are not always true. In this ca

Re: [PATCH v3] rcu: Allow to eliminate softirq processing from rcutree

2019-03-25 Thread Paul E. McKenney
On Mon, Mar 25, 2019 at 09:41:29AM -0400, Joel Fernandes wrote: > On Sun, Mar 24, 2019 at 04:42:11PM -0700, Paul E. McKenney wrote: > > On Sat, Mar 23, 2019 at 09:10:02AM -0700, Paul E. McKenney wrote: > > > On Fri, Mar 22, 2019 at 05:25:19PM -0700, Paul E. McKenney wrote: > > > > On Fri, Mar 22, 2

[PATCH v2] Documentation: acpi: Add an example for PRP0001

2019-03-25 Thread Thomas Preston
Add an example for the magic PRP0001 device ID which allows matching ACPI devices against drivers using OF Device Tree compatible property. It wasn't clear to me that PRP0001 could be used in _CID. Signed-off-by: Thomas Preston --- Documentation/acpi/enumeration.txt | 31

[PATCH] [v3] selinux: avoid uninitialized variable warning

2019-03-25 Thread Arnd Bergmann
clang correctly points out a code path that would lead to an uninitialized variable use: security/selinux/netlabel.c:310:6: error: variable 'addr' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] if (ip_hdr(skb)->version == 4) {

Re: [PATCH] HID: core: move Usage Page concatenation to hid_parser_main()

2019-03-25 Thread Nicolas Saenz Julienne
Hi Benjamin, Thanks for the review! On Mon, 2019-03-25 at 16:08 +0100, Benjamin Tissoires wrote: > On Mon, Mar 25, 2019 at 11:39 AM Benjamin Tissoires > wrote: > > Hi Nicolas, > > > > On Tue, Mar 12, 2019 at 10:37 AM Nicolas Saenz Julienne > > wrote: > > > As seen on some USB wireless keyboards

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