[PATCH v1 6/8] PM / devfreq: tegra: Drop spinlock

2019-04-11 Thread Dmitry Osipenko
There is no real need to use locking since we can simply read out the volatile variable value once and the watermark changing shouldn't clash with the changes made by the interrupt handler. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra-devfreq.c | 21 - 1 file

[PATCH v1 1/8] PM / devfreq: tegra: Fix kHz to Hz conversion

2019-04-11 Thread Dmitry Osipenko
The kHz to Hz is incorrectly converted in a few places in the code, this results in a wrong frequency being calculated because devfreq core uses OPP frequencies that are given in Hz to clamp the rate, while tegra-devfreq gives to the core value in kHz and then it also expects to receive value in

[PATCH v1 7/8] PM / devfreq: tegra: Remove OPP entries on driver removal

2019-04-11 Thread Dmitry Osipenko
This fixes "_opp_is_duplicate" warning messages on driver's module reload. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra-devfreq.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/devfreq/tegra-devfreq.c b/drivers/devfreq/tegra-devfreq.c index

[PATCH v1 4/8] PM / devfreq: tegra: Don't release IRQ manually on driver removal

2019-04-11 Thread Dmitry Osipenko
The IRQ releasing is handled by "managed resources", hence there is no need to release IRQ manually. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra-devfreq.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/devfreq/tegra-devfreq.c b/drivers/devfreq/tegra-devfreq.c index

[PATCH v1 8/8] PM / devfreq: tegra: Support Tegra30

2019-04-11 Thread Dmitry Osipenko
The devfreq driver can be used on Tegra30 without any code change and it works perfectly fine, the default Tegra124 parameters are good enough for Tegra30. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/Kconfig | 2 +- drivers/devfreq/tegra-devfreq.c | 1 + 2 files changed, 2

[PATCH v1 3/8] PM / devfreq: tegra: Don't ignore clk errors

2019-04-11 Thread Dmitry Osipenko
The clk_set_min_rate() could fail and in this case clk_set_rate() sets rate to 0, which may drop EMC rate to minimum and make machine very difficult to use. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra-devfreq.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff

[PATCH v1 0/8] devfreq: Tegra devfreq fixes / improvements and Tegra30 support

2019-04-11 Thread Dmitry Osipenko
Hello, I tried to utilize the Tegra devfreq driver on Tegra30 and found out that it doesn't work properly due to improper Hz<->kHz conversions made by the driver. After fixing that problem and doing some more testing I noticed that there are things that could be improved and in result here is

Re: [PATCH] cros_ec: Add trace event to trace EC commands

2019-04-11 Thread Raul Rangel
On Thu, Apr 11, 2019 at 11:55:40PM +0200, Enric Balletbo Serra wrote: > Hi, > > Many thanks for sending this patch upstream. Looks really interesting. > Some few comments below ... > > Please prefix the patch with "chrome/platform: cros_ec_proto: ..." > > Missatge de Raul E Rangel del dia dc.,

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

2019-04-11 Thread Sinan Kaya
On 4/11/2019 6:21 PM, Kees Cook wrote: Proposed alternative plan: let's add a new symbol, something like DEBUG_MISC ("Miscellaneous debug code that should be under a more specific debug option but isn't"), make it depend on DEBUG_KERNEL and be "default DEBUG_KERNEL" but allow itself to be turned

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

2019-04-11 Thread Kees Cook
On Thu, Apr 11, 2019 at 3:16 PM Josh Triplett wrote: > > On Wed, Apr 10, 2019 at 11:13:52PM -0400, Sinan Kaya wrote: > > On 4/10/2019 11:02 PM, Josh Triplett wrote: > > > Then let's fix*that*, and get checkpatch to help enforce it in the > > > future. EXPERT doesn't affect code generation, and

[ANNOUNCE] 3.18.138-rt115

2019-04-11 Thread Tom Zanussi
Hello RT Folks! I'm pleased to announce the 3.18.138-rt115 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.18-rt Head SHA1: 0b31ad979fb6e00b1aa16f873c05fa2cb486b00f Or to build 3.18.138-rt115

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

2019-04-11 Thread Gustavo A. R. Silva
On 4/11/19 5:10 PM, Miquel Raynal wrote: > Hi Gustavo, > > "Gustavo A. R. Silva" wrote on Thu, 11 Apr > 2019 13:30:31 -0500: > >> 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)

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

2019-04-11 Thread Josh Triplett
On Thu, Apr 11, 2019 at 10:00:24AM -0700, Kees Cook wrote: > On Wed, Apr 10, 2019 at 10:34 PM Masahiro Yamada > wrote: > > > > On Thu, Apr 11, 2019 at 11:47 AM Kees Cook wrote: > > > > > > On Wed, Apr 10, 2019 at 5:56 PM Sinan Kaya wrote: > > > > > > > > We can't seem to have a kernel with

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

2019-04-11 Thread Josh Triplett
On Wed, Apr 10, 2019 at 11:13:52PM -0400, Sinan Kaya wrote: > On 4/10/2019 11:02 PM, Josh Triplett wrote: > > Then let's fix*that*, and get checkpatch to help enforce it in the future. > > EXPERT doesn't affect code generation, and neither should this. > > I think we have to do both. We need to

Re: [PATCH v2 01/21] docs/memory-barriers.txt: Rewrite "KERNEL I/O BARRIER EFFECTS" section

2019-04-11 Thread Benjamin Herrenschmidt
On Fri, 2019-04-05 at 14:59 +0100, Will Deacon wrote: > + 1. All readX() and writeX() accesses to the same peripheral are ordered > +with respect to each other. For example, this ensures that MMIO > register > + writes by the CPU to a particular device will arrive in program

[PATCH v1 1/4] memory: tegra: Fix missed registers values latching

2019-04-11 Thread Dmitry Osipenko
Some of Memory Controller registers are shadowed and require latching in order to copy assembly state into the active, MC_EMEM_ARB_CFG is one of these registers. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/mc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v1 3/4] memory: tegra: Replace readl-writel with mc_readl-mc_writel

2019-04-11 Thread Dmitry Osipenko
There is no need for a memory barriers on reading/writing of register values as we only care about the read/write order, hence let's use the common helpers. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/mc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH v1 2/4] memory: tegra: Fix integer overflow on tick value calculation

2019-04-11 Thread Dmitry Osipenko
Multiplying the Memory Controller clock rate by the tick count results in an integer overflow and in result the truncated tick value is being programmed into hardware, such that the GR3D memory client performance is reduced by two times. Cc: stable Signed-off-by: Dmitry Osipenko ---

[PATCH v1 0/4] memory: tegra: Fix memory arbitration programming

2019-04-11 Thread Dmitry Osipenko
Hello, this series properly addresses the bugged memory arbitration programming and in result the previous suspend-resume workaround change is reverted as it was not entirely correct. Dmitry Osipenko (4): memory: tegra: Fix missed registers values latching memory: tegra: Fix integer overflow

[PATCH v1 4/4] Revert "ARM: tegra: Restore memory arbitration on resume from LP1 on Tegra30+"

2019-04-11 Thread Dmitry Osipenko
Turned out that the actual bug was in the Memory Controller driver that programmed shadowed registers without latching the new values and then there was a bug on EMEM arbitration configuration calculation that results in a wrong value being latched on resume from suspend. The Memory Controller has

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

2019-04-11 Thread Miquel Raynal
Hi Gustavo, "Gustavo A. R. Silva" wrote on Thu, 11 Apr 2019 13:30:31 -0500: > 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) >

[PATCH v1 2/4] mmc/sdhci: Rename sdhci.c to sdhci-core.c

2019-04-11 Thread Raul E Rangel
Preparing to add an sdhci-trace.o to the sdhci module. Signed-off-by: Raul E Rangel --- drivers/mmc/host/Makefile | 1 + drivers/mmc/host/{sdhci.c => sdhci-core.c} | 0 2 files changed, 1 insertion(+) rename drivers/mmc/host/{sdhci.c => sdhci-core.c} (100%) diff --git

[PATCH v1 0/4] Add tracing for SDHCI register access

2019-04-11 Thread Raul E Rangel
I was debugging a SDHC hardware bug and got tired of having to translate the register values by hand. This patch set makes it so all SDHC register read and write operations can be traced and easily read by a human. An example trace can be seen here: https://pastebin.com/x73d5cvL I ended up

[PATCH v1 4/4] mmc/host/sdhci: Make sdhci_read/sdhci_write call trace functions

2019-04-11 Thread Raul E Rangel
An example trace can be seen here: https://pastebin.com/x73d5cvL I was unable to leave sdhci_readX and sdhci_writeX as macros because they are used in other modules (i.e., sdhci-pci). This means they can't call the trace_sdhci_XXX functions without explicitly exporting the private trace function

[PATCH v1 3/4] mmc/host/sdhci: Add register read and write trace events

2019-04-11 Thread Raul E Rangel
Adds an sdhci-trace object file that is linked with the sdhci module. This will allow sdhci-core to call the trace functions. There weren't constants defined for some of the fields, so I just used the raw values. See the next change for usage. Signed-off-by: Raul E Rangel ---

[PATCH v1 1/4] trace_events: Add trace_print_register to print register fields

2019-04-11 Thread Raul E Rangel
This is a hybrid method that combines the functionality of trace_print_flags_seq and trace_print_symbols_seq. It supports printing bit fields, enum fields, and numeric fields. Given the following register definition: * 0 - Enabled * 1 - Width, 0 = 1-bits, 1 = 4-bits * 2:3 - DMA, 0 =

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

2019-04-11 Thread Marek Behun
Hi Dan, this probaly was discussed, but I did not follow brightness model discussions: what will happen if I set yellow by writing into yellow mode brightness, and then orange by writing orange model brightness? Will the resulting color be a mix of yellow and orange, or will the orange overwrite

Re: [PATCH 1/3] Revert "clk: rockchip: mark noc and some special clk as critical on rk3288"

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

[PATCH v1 3/5] clk: tegra: emc: Fix EMC max-rate clamping

2019-04-11 Thread Dmitry Osipenko
When a clk user requests rate that is higher than the maximum possible, the rate shall be clamped to the maximum and not to the current value. Signed-off-by: Dmitry Osipenko --- drivers/clk/tegra/clk-emc.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git

[PATCH v1 1/5] clk: tegra: emc: Don't enable EMC clock manually

2019-04-11 Thread Dmitry Osipenko
The EMC clock marked as critical, hence it is already enabled at the registration time. Signed-off-by: Dmitry Osipenko --- drivers/clk/tegra/clk-emc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/tegra/clk-emc.c b/drivers/clk/tegra/clk-emc.c index 0621a3a82ea6..23416982e7c7

[PATCH v1 5/5] clk: tegra: divider: Mark Memory Controller clock as read-only

2019-04-11 Thread Dmitry Osipenko
The Memory Controller clock rate can't be simply changed and nothing in kernel need to change the rate, hence let's make the clock read-only. Signed-off-by: Dmitry Osipenko --- drivers/clk/tegra/clk-divider.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH v1 4/5] clk: tegra: emc: Replace BUG() with WARN_ONCE()

2019-04-11 Thread Dmitry Osipenko
There is no justification for the BUG() in this code. Signed-off-by: Dmitry Osipenko --- drivers/clk/tegra/clk-emc.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/clk/tegra/clk-emc.c b/drivers/clk/tegra/clk-emc.c index 9a0179235939..93ecb538e59b 100644 ---

[PATCH v1 0/5] clk: tegra: EMC/MC clock fixes and improvements

2019-04-11 Thread Dmitry Osipenko
Hello, I was helping with fixing EMC clock scaling on T124 Nyan Big and in process found some weak points in the code. Primarily the ram code parsing didn't work if device-tree defines memory timings for multiple ram codes and after fixing that I spotted few other things that could be improved.

[PATCH v1 2/5] clk: tegra: emc: Support multiple ram codes parsing

2019-04-11 Thread Dmitry Osipenko
The timings parser doesn't append timings, but instead it parses only the first timing and hence doesn't store all of the timings when device-tree has timings for multiple ram codes. In a result EMC scaling doesn't work if timings are missing. Tested-by: Steev Klimaszewski Signed-off-by: Dmitry

Re: [PATCH] pinctrl: Add kernel config PINCTRL_MTK_V2

2019-04-11 Thread Sean Wang
Hi, Light On Thu, Apr 11, 2019 at 2:32 AM Light Hsieh wrote: > > Since no single Mediatek chip use code for PINCTRL_MTK and code for > PINCTRL_MTK_MOORE/PINCTRL_MTK_PARIS simultaneously, it is better to use > different config to determine if related code will be built or not on > building

[PATCH 2/4] mtd: rawnand: meson: use of_property_count_elems_of_size helper

2019-04-11 Thread Martin Blumenstingl
Use the of_property_count_elems_of_size() helper instead of open-coding it's logic. As a bonus this will now error out if the "reg" property values use an incorrect size (anything other than sizeof(u32)). Signed-off-by: Martin Blumenstingl --- drivers/mtd/nand/raw/meson_nand.c | 5 + 1 file

[PATCH 0/4] meson-nand: small code improvements

2019-04-11 Thread Martin Blumenstingl
This series comes with four small improvements for the meson-nand driver: * the first patches are replacing open-coded logic with existing utilities / helpers * the third patch drops some unnecessary casting after changing the type of the info buffer parameter from "u8 *" to "void *" * the

[PATCH 4/4] mtd: rawnand: meson: only initialize the RB completion once

2019-04-11 Thread Martin Blumenstingl
Documentation/scheduler/completion.txt states: Calling init_completion() on the same completion object twice is most likely a bug as it re-initializes the queue to an empty queue and enqueued tasks could get "lost" - use reinit_completion() in that case, but be aware of other races.

[PATCH 1/4] mtd: rawnand: meson: use struct_size macro

2019-04-11 Thread Martin Blumenstingl
Use the recently introduced struct_size macro instead of open-coding it's logic. No functional changes. Signed-off-by: Martin Blumenstingl --- drivers/mtd/nand/raw/meson_nand.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/meson_nand.c

[PATCH 3/4] mtd: rawnand: meson: use a void pointer for meson_nfc_dma_buffer_setup

2019-04-11 Thread Martin Blumenstingl
This simplifies the code because it gets rid of the casts to an u8-pointer when passing "info_buf" from struct meson_nfc_nand_chip. Also it gets rid of the cast of the u8 databuf pointer to a void pointer. The logic inside meson_nfc_dma_buffer_setup() doesn't care about the pointer types

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 2:45 PM Roman Gushchin wrote: > > On Thu, Apr 11, 2019 at 10:09:06AM -0700, 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 flag

Re: [PATCH] cros_ec: Add trace event to trace EC commands

2019-04-11 Thread Enric Balletbo Serra
Hi, Many thanks for sending this patch upstream. Looks really interesting. Some few comments below ... Please prefix the patch with "chrome/platform: cros_ec_proto: ..." Missatge de Raul E Rangel del dia dc., 10 d’abr. 2019 a les 22:25: > > This is useful to see which EC commands are being

Re: [PATCH 1/6] arch: riscv: add support for building DTB files from DT source data

2019-04-11 Thread Atish Patra
On 4/11/19 2:12 PM, Paul Walmsley wrote: On Thu, 11 Apr 2019, Christoph Hellwig wrote: On Thu, Apr 11, 2019 at 01:42:59AM -0700, Paul Walmsley wrote: Similar to ARM64, add support for building DTB files from DT source data for RISC-V boards. This patch starts with the infrastructure needed

[PATCH v1 0/2] clk: Tegra124 PLLM fixes

2019-04-11 Thread Dmitry Osipenko
Hello, here are two trivial patches that are correcting PLLM on Tegra124. First fixes system lockup due to a bad hardware configuration, second removes usage of a non-existent register bit. Dmitry Osipenko (2): clk: tegra: Fix PLLM programming on Tegra124+ when PMC overrides divider clk:

[PATCH v1 2/2] clk: tegra124: Remove lock-enable bit from PLLM

2019-04-11 Thread Dmitry Osipenko
According to the Tegra124 TRM documentation, PLLM_MISC2 register doesn't have the lock-enable bit as well as any other PLLM-related register. Hence PLLM re-locking can't be initiated by software. The incorrect bit setting should have been harmless since that bit is undefined according to TRM.

[PATCH v1 1/2] clk: tegra: Fix PLLM programming on Tegra124+ when PMC overrides divider

2019-04-11 Thread Dmitry Osipenko
There are wrongly set parenthesis in the code that are resulting in a wrong configuration being programmed for PLLM. The original fix was made by Danny Huang in the downstream kernel. The patch was tested on Nyan Big Tegra124 chromebook, PLLM rate changing works correctly now and system doesn't

[PATCH] ext4: bad mount opts in no journal mode

2019-04-11 Thread Debabrata Banerjee
Fixes: commit 1e381f60dad9 ("ext4: do not allow journal_opts for fs w/o journal") Instead of removing EXT4_MOUNT_JOURNAL_CHECKSUM from s_def_mount_opt as I assume was intended, all other options were blown away leading to _ext4_show_options() output being incorrect. I don't see why this or other

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

2019-04-11 Thread Roman Gushchin
On Thu, Apr 11, 2019 at 10:09:06AM -0700, 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 flag to be used when sending SIGKILL via > > > pidfd_send_signal()

Re: [PATCH v3] platform/chrome: wilco_ec: Add h1_gpio status to debugfs

2019-04-11 Thread Enric Balletbo Serra
Hi Nick, Some comments below ... Missatge de Nick Crews del dia dj., 11 d’abr. 2019 a les 0:09: > > As part of Chrome OS's FAFT (Fully Automated Firmware Testing) > tests, we need to ensure that the H1 chip is properly setting > some GPIO lines. The h1_gpio attribute exposes the state > of the

Re: [PATCH 2/2] clk: meson-g12a: Add Temperature Sensor clock

2019-04-11 Thread Martin Blumenstingl
Hi Guillaume, On Thu, Apr 11, 2019 at 10:46 AM Guillaume La Roque wrote: > > Add TS clock used by two temperature sensor thank you for working on this! > Signed-off-by: Guillaume La Roque > --- > drivers/clk/meson/g12a.c | 31 +++ > drivers/clk/meson/g12a.h | 3

Re: [PATCH 1/6] arch: riscv: add support for building DTB files from DT source data

2019-04-11 Thread Atish Patra
On 4/11/19 4:46 AM, Christoph Hellwig wrote: On Thu, Apr 11, 2019 at 01:42:59AM -0700, Paul Walmsley wrote: Similar to ARM64, add support for building DTB files from DT source data for RISC-V boards. This patch starts with the infrastructure needed for SiFive boards. Boards from other vendors

Re: [PATCH] module: Make srcu_struct ptr array as read-only

2019-04-11 Thread Paul E. McKenney
On Thu, Apr 11, 2019 at 04:24:21PM -0400, Joel Fernandes (Google) wrote: > Since commit title ("srcu: Allocate per-CPU data for DEFINE_SRCU() in > modules"), modules that call DEFINE_{STATIC,}SRCU will have a new array > of srcu_struct pointers, which is used by srcu code to initialize and > clean

[PATCH] mm/hotplug: treat CMA pages as unmovable

2019-04-11 Thread Qian Cai
When offlining a memory block that contains reserved CMA areas, it will set those page blocks migration type as MIGRATE_ISOLATE. Then, onlining will set them as MIGRATE_MOVABLE. As the results, those page blocks lose their original types, i.e., MIGRATE_CMA, and then it causes troubles like

linux-next: Fixes tag needs some work in the apparmor tree

2019-04-11 Thread Stephen Rothwell
Hi all, In commit 270ad142eb0f ("apparmor: fix missing ZLIB defines") Fixes tag Fixes: 876dd866c084 ("apparmor: Initial implementation of raw policy blob co has these problem(s): - Subject has leading but no trailing parentheses - Subject has leading but no trailing quotes Please do

linux-next: Fixes tag needs some work in the mmc-fixes tree

2019-04-11 Thread Stephen Rothwell
Hi all, In commit 5c41ea6d5200 ("mmc: sdhci-omap: Don't finish_mrq() on a command error during tuning") Fixes tag Fixes: 5b0d62108b46 ("mmc: sdhci-omap: Add platform specific reset has these problem(s): - Subject has leading but no trailing parentheses - Subject has leading but no

Re: [PATCH v4 2/2] tty: serial: add driver for the SiFive UART

2019-04-11 Thread Atish Patra
On 4/11/19 2:02 AM, Paul Walmsley wrote: Add a serial driver for the SiFive UART, found on SiFive FU540 devices (among others). The underlying serial IP block is relatively basic, and currently does not support serial break detection. Further information on the IP block can be found in the

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:54:24PM +0200, Peter Zijlstra wrote: > 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

Re: [PATCH v4 2/2] tty: serial: add driver for the SiFive UART

2019-04-11 Thread Paul Walmsley
On Thu, 11 Apr 2019, Andreas Schwab wrote: > On Apr 11 2019, Paul Walmsley wrote: > > > +static void sifive_serial_set_termios(struct uart_port *port, > > + struct ktermios *termios, > > + struct ktermios *old) > > +{ > > +

Re: [PATCH 1/6] arch: riscv: add support for building DTB files from DT source data

2019-04-11 Thread Paul Walmsley
On Thu, 11 Apr 2019, Christoph Hellwig wrote: > On Thu, Apr 11, 2019 at 01:42:59AM -0700, Paul Walmsley wrote: > > Similar to ARM64, add support for building DTB files from DT source > > data for RISC-V boards. > > > > This patch starts with the infrastructure needed for SiFive boards. > >

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

2019-04-11 Thread Joel Fernandes
On Thu, Apr 11, 2019 at 10:11:51PM +0200, Michal Hocko wrote: > 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: > > >

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

2019-04-11 Thread Tony Lindgren
Hi, * Daniel Lezcano [190411 19:21]: > 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

[PATCH 4/7] s390: vfio-ap: allow hot plug/unplug of AP resources using mdev device

2019-04-11 Thread Tony Krowiak
Let's allow adapters, domains and control domains to be assigned to or unassigned from an AP matrix mdev device while it is in use by a guest. When an adapter, domain or control domain is assigned to or unassigned from an mdev device while a guest is using it, the guest's CRYCB will be updated

[PATCH 0/7] s390: vfio-ap: dynamic configuration support

2019-04-11 Thread Tony Krowiak
This patch series extends the crypto adapter pass-through support to provide safeguards against inadvertent sharing of AP resources between guests and/or the host, and to implement more of the s390 AP architecture related to provisioning and dynamic configuration of AP resources. Tony Krowiak

[PATCH 2/7] s390: vfio-ap: implement in-use callback for vfio_ap driver

2019-04-11 Thread Tony Krowiak
Let's implement the callback to indicate when an APQN is in use by the vfio_ap device driver. The callback is invoked whenever a change to the apmask or aqmask may result in one or APQNs being removed from the driver. The vfio_ap device driver will indicate a resource is in use if any of the

[PATCH 7/7] s390: vfio-ap: update documentation

2019-04-11 Thread Tony Krowiak
Updates to the documentation to reflect changes introduced by this patch series. This patch also clarifies the section on configuring the apmask and aqmask. Signed-off-by: Tony Krowiak --- Documentation/s390/vfio-ap.txt | 147 +++-- 1 file changed, 113

[PATCH 5/7] s390: vfio-ap: wait for queue empty on queue reset

2019-04-11 Thread Tony Krowiak
Refactors the AP queue reset function to wait until the queue is empty after the PQAP(ZAPQ) instruction is executed to zero out the queue as required by the AP architecture. Signed-off-by: Tony Krowiak --- drivers/s390/crypto/vfio_ap_ops.c | 35 --- 1 file

[PATCH 3/7] s390: vfio-ap: allow assignment of unavailable AP resources to mdev device

2019-04-11 Thread Tony Krowiak
The AP architecture does not preclude assignment of AP resources that are not yet in the AP configuration (i.e., not available or not online). Let's go ahead and implement this facet of the AP architecture for linux guests. Access to AP resources is controlled by bit masks in a guest's SIE state

[PATCH 6/7] s390: vfio-ap: handle dynamic config/deconfig of AP adapter

2019-04-11 Thread Tony Krowiak
Once an APQN is assigned to an mdev device it will remained assigned until it is explicitly unassigned from the mdev device. The associated AP queue devices, however, can come and go due to failures or deliberate actions by a sysadmin. For example, a sysadmin can dynamically remove an AP adapter

[PATCH 1/7] s390: zcrypt: driver callback to indicate resource in use

2019-04-11 Thread Tony Krowiak
Introduces a new driver callback to prevent a root user from unbinding an AP queue from its device driver if the queue is in use. This prevents a root user from inadvertently taking a queue away from a guest and giving it to the host, or vice versa. The callback will be invoked whenever a change

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: > Note, BTW, that umount coming between isolate and drop is not a problem; > it call shrink_dcache_parent() on the root. And if shrink_dcache_parent() > finds something on (another) shrink list, it won't put it to the shrink > list of its

Re: [PATCH 09/17] fpga: dfl: add id_table for dfl private feature driver

2019-04-11 Thread Alan Tull
On Tue, Apr 2, 2019 at 10:09 AM Moritz Fischer wrote: > > Hi Wu, > > On Mon, Mar 25, 2019 at 11:07:36AM +0800, Wu Hao wrote: > > This patch adds id_table for each dfl private feature driver, > > it allows to reuse same private feature driver to match and support > > multiple dfl private features.

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

2019-04-11 Thread Dan Murphy
Hello On 4/11/19 2:38 PM, Dan Murphy wrote: > 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 s/LP5036/3024/18->LP5036/30/24/18 Dan

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

2019-04-11 Thread Guenter Roeck
On Thu, Apr 11, 2019 at 1:22 PM Dan Williams wrote: > > On Thu, Apr 11, 2019 at 1:08 PM Guenter Roeck wrote: > > > > 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

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

2019-04-11 Thread Dan Murphy
Hello On 4/11/19 2:38 PM, Dan Murphy wrote: > 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

[PATCH v2] arm64: dts: qcom: Add Lenovo Miix 630

2019-04-11 Thread Jeffrey Hugo
This adds the initial DT for the Lenovo Miix 630 laptop. Supported functionality includes USB (host), microSD-card, keyboard, and trackpad. Signed-off-by: Jeffrey Hugo --- v2: -Changed "cls" to "clam" since feedback indicated "cls" is too opaque, but "clamshell" is a mouthfull. "clam" seems

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

2019-04-11 Thread Mike Rapoport
On Thu, Apr 11, 2019 at 01:08:15PM -0700, Guenter Roeck wrote: > 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

Re: [PATCH 10/17] fpga: dfl: afu: export __port_enable/disable function.

2019-04-11 Thread Alan Tull
On Tue, Apr 2, 2019 at 10:50 AM Moritz Fischer wrote: Hi Hao, > > On Mon, Mar 25, 2019 at 11:07:37AM +0800, Wu Hao wrote: > > As these two functions are used by other private features. e.g. > > in error reporting private feature, it requires to check port status > > and reset port for error

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

2019-04-11 Thread Rafael J. Wysocki
On Thu, Apr 11, 2019 at 8:17 PM Ulf Hansson wrote: > > 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

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

2019-04-11 Thread Tony Lindgren
Hi, * Daniel Lezcano [190411 20:13]: > I can see those fixes in timers/core: > > Fixes: 592ea6bd1fad ("clocksource: timer-ti-dm: Make unexported > functions static") Hmm so this one was over a year ago related to the PWM series :) > Fixes: 008258d995a6 ("clocksource/drivers/timer-ti-dm: Make

Re: [PATCH 12/17] fpga: dfl: afu: add STP (SignalTap) support

2019-04-11 Thread Alan Tull
On Tue, Apr 2, 2019 at 10:07 AM Moritz Fischer wrote: > > Hi Wu, > > On Mon, Mar 25, 2019 at 11:07:39AM +0800, Wu Hao wrote: > > STP (SignalTap) is one of the private features under the port for > > debugging. This patch adds private feature driver support for it > > to allow userspace

Re: [PATCH 1/2] dt-bindings: clock: jz4725b-cgu: Add UDC PHY clock

2019-04-11 Thread Stephen Boyd
Quoting Paul Cercueil (2019-03-19 07:05:35) > Add macro for the UDC PHY clock of the JZ4725B. > > Signed-off-by: Paul Cercueil > --- Applied to clk-next

Re: [PATCH 2/2] clk: ingenic: jz4725b: Add UDC PHY clock

2019-04-11 Thread Stephen Boyd
Quoting Paul Cercueil (2019-03-19 07:05:36) > Add clock for the USB Device Controller PHY. > > Signed-off-by: Paul Cercueil > --- Applied to clk-next

Re: [PATCH 3/3] clk: qcom: Add QCS404 TuringCC

2019-04-11 Thread Stephen Boyd
Quoting Bjorn Andersson (2019-03-06 09:47:58) > + > +static int turingcc_probe(struct platform_device *pdev) > +{ > + int ret; > + > + pm_runtime_enable(>dev); > + ret = pm_clk_create(>dev); Neat solution. Thanks! > + if (ret) > + goto disable_pm_runtime; >

Re: crypto: Kernel memory overwrite attempt detected to spans multiple pages

2019-04-11 Thread Kees Cook
On Thu, Apr 11, 2019 at 12:26 PM Eric Biggers wrote: > Well, I guess I'll just add __GFP_COMP so I at least don't get spammed with > useless bug reports. Thanks, I appreciate it. > But I don't think it's in any way acceptable to change the semantics of the > kernel's page allocator but only

Re: [PATCH 3/3] clk: qcom: Add QCS404 TuringCC

2019-04-11 Thread Stephen Boyd
Quoting Bjorn Andersson (2019-03-06 09:47:58) > The Turing Clock Controller provides resources related to running the > Turing subsystem. > > PM runtime is used to ensure that the associated AHB clock is ticking > while the clock framework is accessing the registers in the Turing clock >

Re: [PATCH 2/3] clk: qcom: branch: Add AON clock ops

2019-04-11 Thread Stephen Boyd
Quoting Bjorn Andersson (2019-03-06 09:47:57) > Some clocks can only be turned on by resetting the block containing > them, provide a clock type that allow us to reference these clocks and > have the client drivers enable and "disable" them. > > Signed-off-by: Bjorn Andersson > --- Applied to

Re: [PATCH 1/3] dt-bindings: clock: Introduce Qualcomm Turing Clock controller

2019-04-11 Thread Stephen Boyd
Quoting Bjorn Andersson (2019-03-06 09:47:56) > Add devicetree binding for the turing clock controller found in QCS404. > > Signed-off-by: Bjorn Andersson > --- Applied to clk-next

Re: [PATCH] clk: qcom: gcc-qcs404: Add CDSP related clocks and resets

2019-04-11 Thread Stephen Boyd
Quoting Bjorn Andersson (2019-03-05 21:51:48) > Add the clocks and resets need in order to control the Turing > remoteproc. > > Signed-off-by: Bjorn Andersson > --- Applied to clk-next

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

[PATCH] module: Make srcu_struct ptr array as read-only

2019-04-11 Thread Joel Fernandes (Google)
Since commit title ("srcu: Allocate per-CPU data for DEFINE_SRCU() in modules"), modules that call DEFINE_{STATIC,}SRCU will have a new array of srcu_struct pointers, which is used by srcu code to initialize and clean up these structures and save valuable per-cpu reserved space. There is no

Re: [PATCH v5 9/9] clk: mediatek: Allow changing PLL rate when it is off

2019-04-11 Thread Stephen Boyd
Quoting Weiyi Lu (2019-03-04 21:05:46) > From: James Liao > > Some modules may need to change its clock rate before turn on it. > So changing PLL's rate when it is off should be allowed. > This patch removes PLL enabled check before set rate, so that > PLLs can set new frequency even if they are

Re: [PATCH v5 8/9] clk: mediatek: Add MT8183 clock support

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

Re: [PATCH v5 8/9] clk: mediatek: Add MT8183 clock support

2019-04-11 Thread Stephen Boyd
Quoting Nicolas Boichat (2019-03-08 06:46:01) > > > > + > > > +#define GATE_AUDIO0(_id, _name, _parent, _shift) \ > > > + GATE_MTK(_id, _name, _parent, _cg_regs, _shift, \ > > > + _clk_gate_ops_no_setclr) > > This macro (or variants that end up being

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

2019-04-11 Thread Dan Williams
On Thu, Apr 11, 2019 at 1:08 PM Guenter Roeck wrote: > > 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 > >

Re: [PATCH v5 7/9] clk: mediatek: Add configurable pcw_chg_reg to mtk_pll_data

2019-04-11 Thread Stephen Boyd
Quoting Weiyi Lu (2019-03-04 21:05:44) > In previous MediaTek PLL design, it assumes the pcw change control > is always on the CON1 register. > However, the pcw change bit on MT8183 was moved onto CON0 because > the the PCW length of audio PLLs are extended to 32-bit. > Add configurable

Re: [PATCH v5 6/9] clk: mediatek: Add flags support for mtk_gate data

2019-04-11 Thread Stephen Boyd
Quoting Weiyi Lu (2019-03-04 21:05:43) > On some Mediatek platforms, there are critical clocks of > clock gate type. > To register clock gate with flags CLK_IS_CRITICAL, > we need to add the flags field in mtk_gate data and register APIs. > > Signed-off-by: Weiyi Lu This patch doesn't apply,

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

2019-04-11 Thread Joel Fernandes
On Thu, Apr 11, 2019 at 10:02:32PM +0200, Christian Brauner wrote: > 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 >

[PATCH v2 0/6] Handle MCA banks in a per_cpu way

2019-04-11 Thread Ghannam, Yazen
From: Yazen Ghannam The focus of this patchset is define and use the MCA bank structures and bank count per logical CPU. With the exception of patch 4, this set applies to systems in production today. Patch 1: Moves the declaration of struct mce_banks[] to the only file it's used. Patch 2:

[PATCH v2 3/6] x86/MCE/AMD: Don't cache block addresses on SMCA systems

2019-04-11 Thread Ghannam, Yazen
From: Yazen Ghannam On legacy systems, the addresses of the MCA_MISC* registers need to be recursively discovered based on a Block Pointer field in the registers. On Scalable MCA systems, the register space is fixed, and particular addresses can be derived by regular offsets for bank and

[PATCH v2 1/6] x86/MCE: Make struct mce_banks[] static

2019-04-11 Thread Ghannam, Yazen
From: Yazen Ghannam The struct mce_banks[] array is only used in mce/core.c so move the definition of struct mce_bank to mce/core.c and make the array static. Also, change the "init" field to bool type. Signed-off-by: Yazen Ghannam --- Link:

<    1   2   3   4   5   6   7   >