[PATCH v2 2/6] x86/MCE: Handle MCA controls in a per_cpu way

2019-04-11 Thread Ghannam, Yazen
From: Yazen Ghannam Current AMD systems have unique MCA banks per logical CPU even though the type of the banks may all align to the same bank number. Each CPU will have control of a set of MCA banks in the hardware and these are not shared with other CPUs. For example, bank 0 may be the

[PATCH v2 4/6] x86/MCE: Make number of MCA banks per_cpu

2019-04-11 Thread Ghannam, Yazen
From: Yazen Ghannam The number of MCA banks is provided per logical CPU. Historically, this number has been the same across all CPUs, but this is not an architectural guarantee. Future AMD systems may have MCA bank counts that vary between logical CPUs in a system. This issue was partially

[PATCH v2 5/6] x86/MCE: Save MCA control bits that get set in hardware

2019-04-11 Thread Ghannam, Yazen
From: Yazen Ghannam The OS is expected to write all bits in MCA_CTL. However, only implemented bits get set in the hardware. Read back MCA_CTL so that the value in the hardware is saved and reported through sysfs. Signed-off-by: Yazen Ghannam --- Link:

[PATCH v2 6/6] x86/MCE: Treat MCE bank as initialized if control bits set in hardware

2019-04-11 Thread Ghannam, Yazen
From: Yazen Ghannam The OS is expected to write all bits to MCA_CTL for each bank. However, some banks may be unused in which case the registers for such banks are Read-as-Zero/Writes-Ignored. Also, the OS may not write any control bits because of quirks, etc. A bank can be considered

Re: [RFC 0/2] opportunistic memory reclaim of a killed process

2019-04-11 Thread Michal Hocko
On Thu 11-04-19 12:56:32, Suren Baghdasaryan wrote: > On Thu, Apr 11, 2019 at 11:19 AM Michal Hocko wrote: > > > > On Thu 11-04-19 09:47:31, Suren Baghdasaryan wrote: > > [...] > > > > I would question whether we really need this at all? Relying on the exit > > > > speed sounds like a fundamental

Re: [PATCH v5 5/9] clk: mediatek: Add dt-bindings for MT8183 clocks

2019-04-11 Thread Stephen Boyd
Quoting Weiyi Lu (2019-03-04 21:05:42) > Add MT8183 clock dt-bindings, include topckgen, apmixedsys, > infracfg, mcucfg and subsystem clocks. > > Signed-off-by: Weiyi Lu > Reviewed-by: Rob Herring > --- Applied to clk-next

Re: [PATCH v5 1/9] clk: mediatek: Disable tuner_en before change PLL rate

2019-04-11 Thread Stephen Boyd
Quoting Weiyi Lu (2019-03-04 21:05:38) > From: Owen Chen > > PLLs with tuner_en bit, such as APLL1, need to disable > tuner_en before apply new frequency settings, or the new frequency > settings (pcw) will not be applied. > The tuner_en bit will be disabled during changing PLL rate > and be

Re: [PATCH v5 2/9] clk: mediatek: Add new clkmux register API

2019-04-11 Thread Stephen Boyd
Quoting Weiyi Lu (2019-03-04 21:05:39) > From: Owen Chen > > On both MT8183 & MT6765, there add "set/clr" register for > each clkmux setting, and one update register to trigger value change. > It is designed to prevent read-modify-write racing issue. > The sw design need to add a new API to

Re: [PATCH v5 3/9] clk: mediatek: Add configurable pcwibits and fmin to mtk_pll_data

2019-04-11 Thread Stephen Boyd
Quoting Weiyi Lu (2019-03-04 21:05:40) > From: Owen Chen > > 1. pcwibits: The integer bits of pcw for plls is extend to 8 bits, >add a variable to indicate this change and >backward-compatible. > 2. fmin: The pll freqency lower-bound is vary from 1GMhz to >1.5Ghz, add a variable to

Re: [PATCH v5 3/9] clk: mediatek: Add configurable pcwibits and fmin to mtk_pll_data

2019-04-11 Thread Stephen Boyd
Quoting Nicolas Boichat (2019-03-07 22:20:27) > On Tue, Mar 5, 2019 at 1:06 PM Weiyi Lu wrote: > > > > From: Owen Chen > > > > 1. pcwibits: The integer bits of pcw for plls is extend to 8 bits, > >add a variable to indicate this change and > >backward-compatible. > > 2. fmin: The pll

Re: [PATCH 0/3] Bugfix and cleanup the timer driver for Milbeaut M10V

2019-04-11 Thread Daniel Lezcano
On 11/04/2019 09:11, Sugaya, Taichi wrote: > This is ping.. > Does anyone have any comments? Other than the missing Fixes tag, the patches look good to me. > On 2019/03/25 12:05, Sugaya Taichi wrote: >> This series fixes a bug and cleanup code about timer driver for >> Milbeaut M10V. >> Since

Re: [PATCH] clocksource/drivers/timer-ti-dm: Remove omap_dm_timer_set_load_start

2019-04-11 Thread Daniel Lezcano
On 11/04/2019 21:36, Nathan Chancellor wrote: > On Thu, Apr 11, 2019 at 09:20:56PM +0200, Daniel Lezcano wrote: >> On 10/04/2019 22:07, Tony Lindgren wrote: >>> Hi, >>> >>> * Daniel Lezcano [190410 17:02]: can you ask for an acked-by before pulling a patch in your tree? >>> >>> I certainly

Re: [PATCH v5 2/9] clk: mediatek: Add new clkmux register API

2019-04-11 Thread Stephen Boyd
(Please trim replies to save me time) Quoting Nicolas Boichat (2019-03-14 16:21:26) > On Tue, Mar 5, 2019 at 1:06 PM Weiyi Lu wrote: > > +static u8 mtk_clk_mux_get_parent(struct clk_hw *hw) > > +{ > > + struct mtk_clk_mux *mux = to_mtk_clk_mux(hw); > > + u32 mask =

Re: [RFC 0/2] opportunistic memory reclaim of a killed process

2019-04-11 Thread Michal Hocko
On Thu 11-04-19 15:14:30, Joel Fernandes wrote: > On Thu, Apr 11, 2019 at 08:12:43PM +0200, Michal Hocko wrote: > > On Thu 11-04-19 12:18:33, Joel Fernandes wrote: > > > On Thu, Apr 11, 2019 at 6:51 AM Michal Hocko wrote: > > > > > > > > On Wed 10-04-19 18:43:51, Suren Baghdasaryan wrote: > > > >

Re: [PATCH V2 2/2] ASoC: fsl_asrc: Unify the supported input and output rate

2019-04-11 Thread Nicolin Chen
On Thu, Apr 11, 2019 at 09:39:09AM +, S.j. Wang wrote: > Unify the supported input and output rate, add the We previously didn't support 5KHz->5KHz, but now we do? That'd be great if so. > static int fsl_asrc_dai_hw_params(struct snd_pcm_substream *substream, > @@ -626,14 +629,18 @@ static

Re: [PATCH 15/17] fpga: dfl: fme: add power management support

2019-04-11 Thread Alan Tull
On Sun, Mar 24, 2019 at 10:24 PM Wu Hao wrote: Hi Hao, > > This patch adds support for power management private feature under > FPGA Management Engine (FME), sysfs interfaces are introduced for > different power management functions, users could use these sysfs > interface to get current number

Re: next/master boot bisection: next-20190215 on beaglebone-black

2019-04-11 Thread Guenter Roeck
On Thu, Apr 11, 2019 at 10:35 AM Kees Cook wrote: > > On Thu, Apr 11, 2019 at 9:42 AM Guenter Roeck wrote: > > > > On Thu, Apr 11, 2019 at 9:19 AM Kees Cook wrote: > > > > > > On Thu, Mar 7, 2019 at 7:43 AM Dan Williams > > > wrote: > > > > I went ahead and acquired one of these boards to see

Re: [PATCH 1/3] clocksource/drivers/timer-milbeaut: Fix to enable one-shot timer

2019-04-11 Thread Daniel Lezcano
On 25/03/2019 04:05, Sugaya Taichi wrote: > Fix mlb_set_oneshot_state() to enable one-shot timer. > The function should stop and start a timer, but "start" statement was > dropped. Kick the register to start one-shot timer. Can you add the "Fixes" tag please. > Signed-off-by: Sugaya Taichi >

Re: [PATCH v3 3/3] module: Make __tracepoints_ptrs as read-only

2019-04-11 Thread Joel Fernandes
On Thu, Apr 11, 2019 at 09:19:55AM -0400, Steven Rostedt wrote: > On Thu, 11 Apr 2019 04:21:06 -0400 > Joel Fernandes wrote: > > > Patch 2/3 and 3/3 would not be nececessary if this works out. 1/3 may be a > > nice clean up but is not something urgent and we could do that in the future > > if

Re: [PATCH RFC 1/2] Add polling support to pidfd

2019-04-11 Thread Christian Brauner
On April 11, 2019 10:00:59 PM GMT+02:00, Joel Fernandes wrote: >On Thu, Apr 11, 2019 at 01:50:42PM -0400, Joel Fernandes (Google) >wrote: >> pidfd are /proc/pid directory file descriptors referring to a task >group >> leader. Android low memory killer (LMK) needs pidfd polling support >to >>

Re: [RFC PATCH v3 14/15] dcache: Implement partial shrink via Slab Movable Objects

2019-04-11 Thread Al Viro
On Thu, Apr 11, 2019 at 05:47:46AM +0100, Al Viro wrote: > The reason for that dance is the locking - shrink list belongs to whoever > has set it up and nobody else is modifying it. So __dentry_kill() doesn't > even try to remove the victim from there; it does all the teardown > (detaches from

Re: [PATCH RFC 1/2] Add polling support to pidfd

2019-04-11 Thread Joel Fernandes
On Thu, Apr 11, 2019 at 01:50:42PM -0400, Joel Fernandes (Google) wrote: > pidfd are /proc/pid directory file descriptors referring to a task group > leader. Android low memory killer (LMK) needs pidfd polling support to > replace code that currently checks for existence of /proc/pid for > knowing

RE: [PATCH V2 11/20] spi: expand mode support and add LSBYTE_FIRST mode

2019-04-11 Thread Sowjanya Komatineni
> On Thu, Apr 04, 2019 at 05:14:10PM -0700, Sowjanya Komatineni wrote: > > Some SPI Master controllers support configuring Least significant byte > > first or Most significant byte first order for transfers. Also some > > SPI slave devices expect bytes to be in Least significant first order > >

Re: [RFC 0/2] opportunistic memory reclaim of a killed process

2019-04-11 Thread Suren Baghdasaryan
On Thu, Apr 11, 2019 at 11:19 AM Michal Hocko wrote: > > On Thu 11-04-19 09:47:31, Suren Baghdasaryan wrote: > [...] > > > I would question whether we really need this at all? Relying on the exit > > > speed sounds like a fundamental design problem of anything that relies > > > on it. > > > >

Re: rseq/arm32: choosing rseq code signature

2019-04-11 Thread Peter Maydell
On Thu, 11 Apr 2019 at 18:51, Mathieu Desnoyers wrote: > - On Apr 11, 2019, at 12:42 PM, Will Deacon will.dea...@arm.com wrote: > > Peter suggests that anything of the form 0xe7fxdefx should trap in both A32 > > and T32, although it does assemble to UDF; B in T16. I'm not sure we > > should

Re: 1808d65b55 ("asm-generic/tlb: Remove arch_tlb*_mmu()"): BUG: KASAN: stack-out-of-bounds in __change_page_attr_set_clr

2019-04-11 Thread Peter Zijlstra
On Thu, Apr 11, 2019 at 09:39:06PM +0200, Peter Zijlstra wrote: > I think this bisect is bad. If you look at your own logs this patch > merely changes the failure, but doesn't make it go away. > > Before this patch (in fact, before tip/core/mm entirely) the errror > reads like the below, which

Re: [PATCH] ACPI / LPSS: Don't skip late system PM ops for hibernate on BYT/CHT

2019-04-11 Thread Robert R. Howell
On 4/7/19 9:44 PM, Kai Heng Feng wrote: > at 4:58 AM, Robert R. Howell wrote: > >>> On 03-04-19 07:43, Kai-Heng Feng wrote: i2c-designware-platdrv fails to work after the system restored from hibernation: >> I did try applying your (Hans') patch to a 5.0.0 and a 5.1-rc3 kernel, >>

Re: 5.1.0-rc4: Oops in __rpc_execute() when trying to boot from NFS

2019-04-11 Thread Trond Myklebust
Hi Daniel, On Tue, 2019-04-09 at 19:54 +0200, Daniel Mack wrote: > On 9/4/2019 6:55 PM, Trond Myklebust wrote: > > On Tue, 2019-04-09 at 18:25 +0200, Daniel Mack wrote: > > > On 8/4/2019 8:51 PM, Trond Myklebust wrote: > > > > On Mon, 2019-04-08 at 19:01 +0200, Daniel Mack wrote: > > > > > Hi, >

Re: [PATCH] ACPI / LPSS: Don't skip late system PM ops for hibernate on BYT/CHT

2019-04-11 Thread Robert R. Howell
On 4/8/19 2:16 AM, Hans de Goede wrote:> > > Hmm, interesting so you have hibernation working on a T100TA > (with 5.0 + 02e45646d53b reverted), right ? > Hi Hans and Kai-Heng First, apologies for how long it took me to reply to both your inquiries. In trying to answer them I discovered some

Re: [PATCH v2 4/6] dt-bindings: ti-lmu: Modify dt bindings for the LM3697

2019-04-11 Thread Jacek Anaszewski
Hi Rob, I've collected references to the DT patches we're waiting to be reviewed. This is just to make sure that none of them will be missed - recent traffic on the linux-leds list is a bit heavier. [0] - draft of LED multi color class - we would especially like to get a feedback on the

RE: [PATCH V3 05/10] arm64: tegra: fix default tap and trim values

2019-04-11 Thread Sowjanya Komatineni
> On Mon, 1 Apr 2019 at 19:43, Sowjanya Komatineni > wrote: > > > > > > > > > > > > Default tap and trim values are incorrect for Tegra186 SDMMC4. > > > > > This patch fixes it. > > > > > > > > > > Tested-by: Jon Hunter > > > > > Signed-off-by: Sowjanya Komatineni > > > > > > > > Is this a fix

[PATCH v2 0/7] Multicolor Framework

2019-04-11 Thread Dan Murphy
I have updated the patchset for the multicolor framework and scrubed the base code. I have incoroporated the minor changes that were asked for. But I still have not added any code for the brightness models as this is still in discussion. I have also included the TI LP50xx driver that

[PATCH v2 3/7] documention: leds: Add multicolor class documentation

2019-04-11 Thread Dan Murphy
Add the support documentation on the multicolor LED framework. This document defines the directores and file generated by the multicolor framework. It also documents usage. Signed-off-by: Dan Murphy --- Documentation/leds/leds-class-multicolor.txt | 99 1 file changed, 99

[PATCH v2 5/7] leds: multicolor: Introduce a multicolor class definition

2019-04-11 Thread Dan Murphy
Introduce a multicolor class that groups colored LEDs within a LED node. The framework allows for dynamically setting individual LEDs or setting brightness levels of LEDs and updating them virtually simultaneously. Signed-off-by: Dan Murphy --- drivers/leds/Kconfig | 10 +

Re: 1808d65b55 ("asm-generic/tlb: Remove arch_tlb*_mmu()"): BUG: KASAN: stack-out-of-bounds in __change_page_attr_set_clr

2019-04-11 Thread Peter Zijlstra
On Wed, Apr 10, 2019 at 10:55:00PM +0800, kernel test robot wrote: > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core/mm > > commit 1808d65b55e4489770dd4f76fb0dff5b81eb9b11 > Author:

[PATCH v2 4/7] dt-bindings: leds: Add multicolor ID to the color ID list

2019-04-11 Thread Dan Murphy
Add a new color ID that is declared as MULTICOLOR as with the multicolor framework declaring a definitive color is not accurate as the node can contain multiple colors. Signed-off-by: Dan Murphy --- drivers/leds/led-class.c | 1 + include/dt-bindings/leds/common.h | 3 ++- 2 files

[PATCH v2 7/7] leds: lp50xx: Add the LP50XX family of the RGB LED driver

2019-04-11 Thread Dan Murphy
Introduce the LP5036/30/24/18 RGB LED driver. The difference in these parts are the number of LED outputs where the: LP5036 can control 36 LEDs LP5030 can control 30 LEDs LP5024 can control 24 LEDs LP5018 can control 18 LEDs The device has the ability to group LED output into control banks so

[PATCH v2 6/7] dt: bindings: lp50xx: Introduce the lp50xx family of RGB drivers

2019-04-11 Thread Dan Murphy
Introduce the bindings for the Texas Instruments LP5036, LP5030, LP5024 and the LP5018 RGB LED device driver. The LP5036/3024/18 can control RGB LEDs individually or as part of a control bank group. These devices have the ability to adjust the mixing control for the RGB LEDs to obtain different

[PATCH v2 1/7] leds: multicolor: Add sysfs interface definition

2019-04-11 Thread Dan Murphy
Add a documentation of LED Multicolor LED class specific sysfs attributes. Signed-off-by: Dan Murphy --- .../ABI/testing/sysfs-class-led-multicolor| 91 +++ 1 file changed, 91 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-class-led-multicolor diff --git

[PATCH v2 2/7] dt: bindings: Add multicolor class dt bindings documention

2019-04-11 Thread Dan Murphy
Add DT bindings for the LEDs multicolor class framework. Signed-off-by: Dan Murphy --- .../devicetree/bindings/leds/common.txt | 2 + .../bindings/leds/leds-class-multicolor.txt | 142 ++ 2 files changed, 144 insertions(+) create mode 100644

[PATCH V1 1/2] arm64: tegra: fix default tap and trim values

2019-04-11 Thread Sowjanya Komatineni
Default tap and trim values are incorrect for Tegra186 SDMMC4. This patch fixes it. Tested-by: Jon Hunter Signed-off-by: Sowjanya Komatineni --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH V1 2/2] arm64: tegra: enable command queue for tegra186 sdmmc4

2019-04-11 Thread Sowjanya Komatineni
This patch enables command queue support for Tegra186 SDMMC4. Tested-by: Jon Hunter Signed-off-by: Sowjanya Komatineni --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi

Re: [PATCH] clocksource/drivers/timer-ti-dm: Remove omap_dm_timer_set_load_start

2019-04-11 Thread Nathan Chancellor
On Thu, Apr 11, 2019 at 09:20:56PM +0200, Daniel Lezcano wrote: > On 10/04/2019 22:07, Tony Lindgren wrote: > > Hi, > > > > * Daniel Lezcano [190410 17:02]: > >> can you ask for an acked-by before pulling a patch in your tree? > > > > I certainly do ask and wait for acks where possible :) > >

Re: [PATCH v2] watchdog: pnx4008: readout watchdog state

2019-04-11 Thread Guenter Roeck
On Thu, Apr 11, 2019 at 09:14:37PM +0200, Alexandre Belloni wrote: > Readout the enabled state so it is possible to get the pre-userspace > handler working. Also, avoid disabling the watchdog to ensure it continues > working and triggers if there is an issue later in the boot or if userspace >

Re: [PATCH 3/3] ARM: dts: rockchip: fix PWM clock found on RK3288 Socs

2019-04-11 Thread Heiko Stübner
Am Dienstag, 9. April 2019, 22:47:07 CEST schrieb Douglas Anderson: > From: Caesar Wang > > We use the new PWM IP on RK3288, but the PWM's clock indeed incorrect. > > Signed-off-by: Caesar Wang > Signed-off-by: Douglas Anderson applied into a branch for 5._3_ ... as it requires a change

[PATCH 1/2] regmap: soundwire: fix Kconfig select/depend issue

2019-04-11 Thread Pierre-Louis Bossart
The mechanism should be config CODEC_XYX_SDW depends on SOUNDWIRE select REGMAP_SOUNDWIRE config REGMAP_SOUNDWIRE depends on SOUNDWIRE select SOUNDWIRE_BUS SOUNDWIRE_BUS can be independently selected by the SOC driver. The SOC driver should not know or care about

[PATCH 2/2] soundwire: fix SOUNDWIRE_BUS option

2019-04-11 Thread Pierre-Louis Bossart
SOUNDWIRE_BUS can be selected independendly by the SOC driver (e.g. SOUNDWIRE_INTEL) or the codec driver (via REGMAP_SOUNDWIRE). Remove wrong-way link between SOUNDWIRE_BUS and REGMAP_SOUNDWIRE Fixes: 6c49b32d3c09 ('soundwire: select REGMAP_SOUNDWIRE') Signed-off-by: Pierre-Louis Bossart ---

[PATCH 0/2] soundwire: fix Kconfig select/depend issues

2019-04-11 Thread Pierre-Louis Bossart
0-day/Kbuild starts complaining about missed module dependencies and compilation issues. Since codecs and soc drivers need to be compilable independently, let's fix this using the following model: SOUNDWIRE_INTEL select --- |

Re: [PATCH 2/3] clk: rockchip: Make rkpwm a critical clock on rk3288

2019-04-11 Thread Heiko Stübner
Am Dienstag, 9. April 2019, 22:47:06 CEST schrieb Douglas Anderson: > Most rk3288-based boards are derived from the EVB and thus use a PWM > regulator for the logic rail. However, most rk3288-based boards don't > specify the PWM regulator in their device tree. We'll deal with that > by making it

Re: [PATCH] clocksource/drivers/timer-ti-dm: Remove omap_dm_timer_set_load_start

2019-04-11 Thread Daniel Lezcano
On 10/04/2019 22:07, Tony Lindgren wrote: > Hi, > > * Daniel Lezcano [190410 17:02]: >> can you ask for an acked-by before pulling a patch in your tree? > > I certainly do ask and wait for acks where possible :) Ok, I may have missed them. > Note that I have not applied this patch. I just

Re: [PATCH 2/3] clk: rockchip: Make rkpwm a critical clock on rk3288

2019-04-11 Thread Heiko Stübner
Hi Doug, Elaine, Am Donnerstag, 11. April 2019, 16:42:23 CEST schrieb Doug Anderson: > On Wed, Apr 10, 2019 at 8:42 PM elaine.zhang wrote: > > 在 2019/4/10 下午11:25, Doug Anderson 写道: > > > On Tue, Apr 9, 2019 at 11:42 PM elaine.zhang > > > wrote: > > >> 在 2019/4/10 上午4:47, Douglas Anderson 写道:

[PATCH V4] mmc: tegra: add sdhci tegra suspend and resume

2019-04-11 Thread Sowjanya Komatineni
This patch adds suspend and resume PM ops for tegra SDHCI. Acked-by: Thierry Reding Signed-off-by: Sowjanya Komatineni --- drivers/mmc/host/sdhci-tegra.c | 58 +- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v2] arm64: dts: rockchip: add rk3399 UART DMAs

2019-04-11 Thread Robin Murphy
On 2019-04-11 2:48 pm, Robin Murphy wrote: On 11/04/2019 13:46, Heiko Stuebner wrote: Hi Robin, Am Samstag, 30. März 2019, 00:24:16 CEST schrieb Robin Murphy: On 2019-03-27 12:00 pm, Heiko Stuebner wrote: Hi, Am Dienstag, 26. März 2019, 14:49:16 CET schrieb Katsuhiro Suzuki: Hello Robin,

Re: [PATCH v5] arm64: dts: ls1088a: add one more thermal zone node

2019-04-11 Thread Daniel Lezcano
On 11/04/2019 10:32, Yuantian Tang wrote: > Ls1088a has 2 thermal sensors, core cluster and SoC platform. Core cluster > sensor is used to monitor the temperature of core and SoC platform is for > platform. The current dts only support the first sensor. > This patch adds the second sensor node to

Re: [RFC 0/2] opportunistic memory reclaim of a killed process

2019-04-11 Thread Joel Fernandes
On Thu, Apr 11, 2019 at 08:12:43PM +0200, Michal Hocko wrote: > On Thu 11-04-19 12:18:33, Joel Fernandes wrote: > > On Thu, Apr 11, 2019 at 6:51 AM Michal Hocko wrote: > > > > > > On Wed 10-04-19 18:43:51, Suren Baghdasaryan wrote: > > > [...] > > > > Proposed solution uses existing oom-reaper

[PATCH v2] watchdog: pnx4008: readout watchdog state

2019-04-11 Thread Alexandre Belloni
Readout the enabled state so it is possible to get the pre-userspace handler working. Also, avoid disabling the watchdog to ensure it continues working and triggers if there is an issue later in the boot or if userspace fails to start. Signed-off-by: Alexandre Belloni ---

Re: [PATCH v2] acct: fix possible deadlock in acct_pin_kill

2019-04-11 Thread Amir Goldstein
On Thu, Apr 4, 2019 at 10:33 PM Amir Goldstein wrote: > > On Thu, Apr 4, 2019 at 10:05 PM Al Viro wrote: > > > ... > > OK, so... My first reaction had been complete BS. However, the > > same goes for your analysis - it's not an ordering problem at all. > > What happens is that we are replacing

Re: [PATCH v3 2/9] kbuild: Support for Symbols.list creation

2019-04-11 Thread Miroslav Benes
> diff --git a/samples/livepatch/Makefile b/samples/livepatch/Makefile > index 2472ce39a18d..8b9b42a258ad 100644 > --- a/samples/livepatch/Makefile > +++ b/samples/livepatch/Makefile > @@ -1,3 +1,4 @@ > +LIVEPATCH_livepatch-sample := y > obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-sample.o >

Re: [PATCH] clk: rockchip: rk3288: Limit use of USB PHY clock to USB

2019-04-11 Thread Heiko Stübner
Hi Matthias, Am Donnerstag, 11. April 2019, 19:59:17 CEST schrieb Matthias Kaehlcke: > The USB PHY clock can be configured as (grand) parent of uart0_sclk and > sclk_gpu. It has been observed that UART0 doesn't work reliably in high > speed mode with the PHY clock as input when certain USB

Re: [PATCH V2] clk: ux500: add range to usleep_range

2019-04-11 Thread Stephen Boyd
Quoting Nicholas Mc Guire (2019-04-11 04:04:11) > Providing a range for usleep_range() allows the hrtimer subsystem to > coalesce timers - the delay is runtime configurable so a factor 2 > is taken to provide the range. With the expected range for > enable_delay_us being milliseconds, the range

Re: [PATCH -next] clk: tegra: Make tegra_clk_super_mux_ops static

2019-04-11 Thread Stephen Boyd
Quoting Yue Haibing (2019-03-19 08:35:04) > From: YueHaibing > > Fix sparse warning: > > drivers/clk/tegra/clk-super.c:124:22: > warning: symbol 'tegra_clk_super_mux_ops' was not declared. Should it be > static? > > Signed-off-by: YueHaibing > --- Applied to clk-next

Re: [PATCH] clk: davinci: cfgchip: use PTR_ERR_OR_ZERO in da8xx_cfgchip_register_div4p5

2019-04-11 Thread Stephen Boyd
Quoting Ding Xiang (2019-03-15 00:29:24) > use PTR_ERR_OR_ZERO inetead of return code > > Signed-off-by: Ding Xiang > --- Applied to clk-next

Re: [PATCH v2 3/4] RISC-V: Implement nosmp commandline option.

2019-04-11 Thread Atish Patra
On 4/11/19 12:01 AM, Christoph Hellwig wrote: On Wed, Apr 10, 2019 at 04:04:42PM -0700, Atish Patra wrote: nosmp command line option sets max_cpus to zero. No secondary harts will boot if this is enabled. But present cpu mask will still point to all possible masks. Fix present cpu mask for

Re: [PATCH v3 1/2] cpufreq: Add sunxi nvmem based CPU scaling driver

2019-04-11 Thread Frank Lee
Hi, Changes: 1. I removed this sunxi_cpufreq_soc_data structure for now. 2. Convert to less generic name. 3. Update soc_bin xlate. (LINE:484 https://github.com/Allwinner-Homlet/H6-BSP4.9-linux/blob/master/drivers/soc/sunxi/sunxi-sid.c) (maybe attach a file is better) Now

Re: [PATCH v3 1/9] livepatch: Create and include UAPI headers

2019-04-11 Thread Miroslav Benes
> >> + > >> +/* > >> + * livepatch.h - Kernel Live Patching Core > >> + * > >> + * Copyright (C) 2016 Josh Poimboeuf > >> + */ > >> + > >> +#ifndef _UAPI_LIVEPATCH_H > >> +#define _UAPI_LIVEPATCH_H > >> + > >> +#include > > > > > > Why is this include needed? > > > >> +#define KLP_RELA_PREFIX

Re: [PATCH v2 2/2] hugetlb: use same fault hash key for shared and private mappings

2019-04-11 Thread Mike Kravetz
On 3/28/19 4:47 PM, Mike Kravetz wrote: > hugetlb uses a fault mutex hash table to prevent page faults of the > same pages concurrently. The key for shared and private mappings is > different. Shared keys off address_space and file index. Private > keys off mm and virtual address. Consider a

Re: [PATCH 4/5] lib/test_bitmap: add testcases for bitmap_parselist

2019-04-11 Thread Guenter Roeck
On Fri, Apr 05, 2019 at 08:32:10PM +0300, Yury Norov wrote: > Add tests for non-number character, empty regions, integer overflow. > > Signed-off-by: Yury Norov > Reviewed-by: Andy Shevchenko > --- > lib/test_bitmap.c | 18 +- > 1 file changed, 17 insertions(+), 1 deletion(-) >

Re: [PATCH v3 1/2] cpufreq: Add sunxi nvmem based CPU scaling driver

2019-04-11 Thread Frank Lee
Hi, Changes: 1. I removed this sunxi_cpufreq_soc_data structure for now. 2. Convert to less generic name. 3. Update soc_bin xlate. (LINE:484 https://github.com/Allwinner-Homlet/H6-BSP4.9-linux/blob/master/drivers/soc/sunxi/sunxi-sid.c) Now temporarily consider it as

Re: [PATCH] drivers: clk: zynqmp: Allow zero divisor value

2019-04-11 Thread Stephen Boyd
Quoting Jolly Shah (2019-03-04 15:27:46) > From: Rajan Vaja > > Zero divider is valid and default for some of ZynqMP > clocks. Allow zero divisor when CLK_DIVIDER_ALLOW_ZERO > for the clock is set. > > Signed-off-by: Rajan Vaja > Signed-off-by: Jolly Shah > --- Applied to clk-next

Re: [PATCH] drivers: clk: Update clock driver to handle clock attribute

2019-04-11 Thread Stephen Boyd
Quoting Jolly Shah (2019-03-04 15:19:10) > From: Rajan Vaja > > Versal EEMI APIs uses clock device ID which is combination of class, > subclass, type and clock index (e.g. 0x8104006 in which 0-13 bits are > for index(6 in given example), 14-19 bits are for clock type (i.e pll, > out or ref, 1 in

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

2019-04-11 Thread Gustavo A. R. Silva
Hi Miquel, On 2/5/19 6:55 AM, Miquel Raynal wrote: [..] >> @@ -3280,12 +3280,14 @@ static void onenand_check_features(struct mtd_info >> *mtd) >> if ((this->version_id & 0xf) == 0xe) >> this->options |= ONENAND_HAS_NOP_1; >> } >> +

Re: [RESEND][PATCH v2] firmware/psci: add support for SYSTEM_RESET2

2019-04-11 Thread Aaro Koskinen
Hi, On Thu, Apr 11, 2019 at 05:49:36PM +0100, Sudeep Holla wrote: > On Thu, Apr 11, 2019 at 11:42:28AM +, Koskinen, Aaro (Nokia - FI/Espoo) > wrote: > > From: Sudeep Holla [sudeep.ho...@arm.com]: > > > static void psci_sys_reset(enum reboot_mode reboot_mode, const char *cmd) > > > { > > >

Re: [RFC 0/2] opportunistic memory reclaim of a killed process

2019-04-11 Thread Michal Hocko
On Thu 11-04-19 09:47:31, Suren Baghdasaryan wrote: [...] > > I would question whether we really need this at all? Relying on the exit > > speed sounds like a fundamental design problem of anything that relies > > on it. > > Relying on it is wrong, I agree. There are protections like allocation >

Re: [PATCH] arm64: vdso: use $(LD) instead of $(CC) to link VDSO

2019-04-11 Thread Nick Desaulniers
On Thu, Apr 11, 2019 at 2:30 AM Masahiro Yamada wrote: > > We use $(LD) to link vmlinux, modules, decompressors, etc. > > VDSO is the only exceptional case where $(CC) is used as the linker > driver, but I do not know why we need to do so. VDSO uses a special > linker script, and does not link

[PATCH v14 4/4] PM / Domains: Add genpd governor for CPUs

2019-04-11 Thread Ulf Hansson
After some preceding changes, PM domains managed by genpd may contain CPU devices, so idle state residency values should be taken into account during the state selection process. [The residency value is the minimum amount of time to be spent by a CPU (or a group of CPUs) in an idle state in order

Re: [PATCH v3] init: Do not select DEBUG_KERNEL by default

2019-04-11 Thread Sinan Kaya
On 4/11/2019 1:48 AM, Masahiro Yamada wrote: I was going by what Kconfig tells me Symbol: KALLSYMS_ALL [=n] Depends on: DEBUG_KERNEL [=n] && KALLSYMS [=y] Lots of features have 'depends on DEBUG_KERNEL'. What is special about KALLSYMS_ALL here? I had to do some learning about

Re: [PATCH v2 2/4] RISC-V: Fix of_get_cpu_node usage

2019-04-11 Thread Atish Patra
On 4/10/19 11:59 PM, Christoph Hellwig wrote: On Wed, Apr 10, 2019 at 04:04:41PM -0700, Atish Patra wrote: of_get_cpu_node expects a logical cpu id not a hartid. But only because you changed that with your patch 1, so it should be folded into that. Yes. I should merge this to patch 1.

[PATCH v4 1/1] RDMA/odp: convert to use HMM for ODP v4

2019-04-11 Thread jglisse
From: Jérôme Glisse Convert ODP to use HMM so that we can build on common infrastructure for different class of devices that want to mirror a process address space into a device. There is no functional changes. Changes since v3: - fix Kconfig to properly depends on HMM, also make sure

[PATCH v4 0/1] Use HMM for ODP v4

2019-04-11 Thread jglisse
From: Jérôme Glisse Just fixed Kconfig and build when ODP was not enabled, other than that this is the same as v3. Here is previous cover letter: Git tree with all prerequisite: https://cgit.freedesktop.org/~glisse/linux/log/?h=rdma-odp-hmm-v4 This patchset convert RDMA ODP to use HMM

Re: [RFC 0/2] opportunistic memory reclaim of a killed process

2019-04-11 Thread Michal Hocko
On Thu 11-04-19 12:18:33, Joel Fernandes wrote: > On Thu, Apr 11, 2019 at 6:51 AM Michal Hocko wrote: > > > > On Wed 10-04-19 18:43:51, Suren Baghdasaryan wrote: > > [...] > > > Proposed solution uses existing oom-reaper thread to increase memory > > > reclaim rate of a killed process and to make

Re: [RFC PATCH] fork: add CLONE_PIDFD

2019-04-11 Thread Christian Brauner
On April 11, 2019 6:50:47 PM GMT+02:00, Linus Torvalds wrote: >On Wed, Apr 10, 2019 at 4:43 PM Christian Brauner > wrote: >> >> RFC-2: >> This alternative patchset uses anonymous file descriptors instead of >> file descriptors from /proc/. > >I think I prefer this one. Your diffstat makes it

Re: [PATCH 2/2] s390: boot, purgatory: pass $(CLANG_FLAGS) where needed

2019-04-11 Thread Nick Desaulniers
On Thu, Apr 11, 2019 at 1:52 AM Arnd Bergmann wrote: > > On Thu, Apr 11, 2019 at 12:14 AM 'Nick Desaulniers' via Clang Built > Linux wrote: > > On Wed, Apr 10, 2019 at 1:13 PM Arnd Bergmann wrote: > > > > > > The purgatory and boot Makefiles do not inherit the original cflags, > > > so clang

[PATCH] mm/hmm: kconfig split HMM address space mirroring from device memory

2019-04-11 Thread jglisse
From: Jérôme Glisse To allow building device driver that only care about address space mirroring (like RDMA ODP) on platform that do not have all the pre- requisite for HMM device memory (like ZONE_DEVICE on ARM) split the HMM_MIRROR option dependency from the HMM_DEVICE dependency.

Re: [PATCH -next] power/domain_governor: fix a compilation error

2019-04-11 Thread Ulf Hansson
On Thu, 11 Apr 2019 at 16:37, Rafael J. Wysocki wrote: > > On Thu, Apr 11, 2019 at 3:23 PM Ulf Hansson wrote: > > > > On Thu, 11 Apr 2019 at 14:48, Qian Cai wrote: > > > > > > The commit 50899f7d5078 ("PM / Domains: Add genpd governor for CPUs") > > > introduced a compilation error on arm64

[PATCH v2 2/3] security: Move stackleak config to Kconfig.hardening

2019-04-11 Thread Kees Cook
This moves the stackleak plugin options to Kconfig.hardening's memory initialization menu. Signed-off-by: Kees Cook --- scripts/gcc-plugins/Kconfig | 51 - security/Kconfig.hardening | 57 + 2 files changed, 57 insertions(+),

[PATCH v2 0/3] Refactor memory initialization hardening

2019-04-11 Thread Kees Cook
This is a proposed alternative for the memory initialization series, which refactoring the existing gcc plugins into a separate Kconfig file and collects all the related options together with some more language to describe their differences. The last patch adds the Clang auto init option, as done

[PATCH v2 3/3] security: Implement Clang's stack initialization

2019-04-11 Thread Kees Cook
CONFIG_INIT_STACK_ALL turns on stack initialization based on -ftrivial-auto-var-init in Clang builds, which has greater coverage than CONFIG_GCC_PLUGINS_STRUCTLEAK_BYREF_ALL. -ftrivial-auto-var-init Clang option provides trivial initializers for uninitialized local variables, variable fields and

[PATCH v2 1/3] security: Create "kernel hardening" config area

2019-04-11 Thread Kees Cook
Right now kernel hardening options are scattered around various Kconfig files. This can be a central place to collect these kinds of options going forward. This is initially populated with the memory initialization options from the gcc-plugins. Signed-off-by: Kees Cook ---

[PATCH] clk: rockchip: rk3288: Limit use of USB PHY clock to USB

2019-04-11 Thread Matthias Kaehlcke
The USB PHY clock can be configured as (grand) parent of uart0_sclk and sclk_gpu. It has been observed that UART0 doesn't work reliably in high speed mode with the PHY clock as input when certain USB devices are plugged to the USB HOST1 port (see https://crrev.com/c/320543). Prefix the name of

Re: [RFC 2/2] signal: extend pidfd_send_signal() to allow expedited process killing

2019-04-11 Thread Suren Baghdasaryan
On Thu, Apr 11, 2019 at 10:36 AM Matthew Wilcox wrote: > > On Thu, Apr 11, 2019 at 10:33:32AM -0700, Daniel Colascione wrote: > > On Thu, Apr 11, 2019 at 10:09 AM Suren Baghdasaryan > > wrote: > > > On Thu, Apr 11, 2019 at 8:33 AM Matthew Wilcox > > > wrote: > > > > > > > > On Wed, Apr 10,

Re: rseq/arm32: choosing rseq code signature

2019-04-11 Thread Mathieu Desnoyers
- On Apr 11, 2019, at 12:42 PM, Will Deacon will.dea...@arm.com wrote: > Hi Mathieu, > > On Wed, Apr 10, 2019 at 04:29:19PM -0400, Mathieu Desnoyers wrote: >> - On Apr 9, 2019, at 3:32 PM, Mathieu Desnoyers >> mathieu.desnoy...@efficios.com wrote: >> > We are about to include the code

[PATCH RFC 2/2] Add selftests for pidfd polling

2019-04-11 Thread Joel Fernandes (Google)
Other than verifying pidfd based polling, the tests make sure that wait semantics are preserved with the pidfd poll. Notably the 2 cases: 1. If a thread group leader exits while threads still there, then no pidfd poll notifcation should happen. 2. If a non-thread group leader does an execve,

[PATCH RFC 1/2] Add polling support to pidfd

2019-04-11 Thread Joel Fernandes (Google)
pidfd are /proc/pid directory file descriptors referring to a task group leader. Android low memory killer (LMK) needs pidfd polling support to replace code that currently checks for existence of /proc/pid for knowing a process that is signalled to be killed has died, which is both racy and slow.

Re: [PATCH] bitops.h: sanitize rotate primitives

2019-04-11 Thread Ido Schimmel
On Wed, Apr 10, 2019 at 11:19:06PM +0200, Rasmus Villemoes wrote: > The ror32 implementation (word >> shift) | (word << (32 - shift) has > undefined behaviour if shift is outside the [1, 31] range. Similarly > for the 64 bit variants. Most callers pass a compile-time > constant (naturally in that

Re: [RFC 2/2] signal: extend pidfd_send_signal() to allow expedited process killing

2019-04-11 Thread Daniel Colascione
On Thu, Apr 11, 2019 at 10:36 AM Matthew Wilcox wrote: > > On Thu, Apr 11, 2019 at 10:33:32AM -0700, Daniel Colascione wrote: > > On Thu, Apr 11, 2019 at 10:09 AM Suren Baghdasaryan > > wrote: > > > On Thu, Apr 11, 2019 at 8:33 AM Matthew Wilcox > > > wrote: > > > > > > > > On Wed, Apr 10,

Re: [PATCH 1/2] s390: only build for new CPUs with clang

2019-04-11 Thread Nick Desaulniers
On Thu, Apr 11, 2019 at 3:18 AM Arnd Bergmann wrote: > > On Thu, Apr 11, 2019 at 12:20 AM 'Nick Desaulniers' via Clang Built > Linux wrote: > > > > On Wed, Apr 10, 2019 at 1:13 PM Arnd Bergmann wrote: > > > > > > llvm does does not understand -march=z9-109 and older target > > > > Please file

Re: [PATCH] afs: use correct format characters

2019-04-11 Thread Nick Desaulniers
On Thu, Apr 11, 2019 at 9:31 AM Linus Torvalds wrote: > > On Wed, Apr 10, 2019 at 4:01 PM Joe Perches wrote: > > > > I really think this clang message should be ignored. > > Agreed. > > > It's really unnecessary as every vararg argument smaller > > than int size is already promoted to int. > >

Linux Testing Microconference at LPC

2019-04-11 Thread Dhaval Giani
Hi Folks, This is a call for participation for the Linux Testing microconference at LPC this year. For those who were at LPC last year, as the closing panel mentioned, testing is probably the next big push needed to improve quality. From getting more selftests in, to regression testing to ensure

Re: [RFC 2/2] signal: extend pidfd_send_signal() to allow expedited process killing

2019-04-11 Thread Matthew Wilcox
On Thu, Apr 11, 2019 at 10:33:32AM -0700, Daniel Colascione wrote: > On Thu, Apr 11, 2019 at 10:09 AM Suren Baghdasaryan wrote: > > On Thu, Apr 11, 2019 at 8:33 AM Matthew Wilcox wrote: > > > > > > On Wed, Apr 10, 2019 at 06:43:53PM -0700, Suren Baghdasaryan wrote: > > > > Add new SS_EXPEDITE

Re: next/master boot bisection: next-20190215 on beaglebone-black

2019-04-11 Thread Kees Cook
On Thu, Apr 11, 2019 at 9:42 AM Guenter Roeck wrote: > > On Thu, Apr 11, 2019 at 9:19 AM Kees Cook wrote: > > > > On Thu, Mar 7, 2019 at 7:43 AM Dan Williams > > wrote: > > > I went ahead and acquired one of these boards to see if I can can > > > debug this locally. > > > > Hi! Any progress on

<    1   2   3   4   5   6   7   >