Re: Linux 4.14.74

2018-10-04 Thread Greg KH
diff --git a/Documentation/hwmon/ina2xx b/Documentation/hwmon/ina2xx index cfd31d94c872..f8bf14055c2f 100644 --- a/Documentation/hwmon/ina2xx +++ b/Documentation/hwmon/ina2xx @@ -32,7 +32,7 @@ Supported chips: Datasheet: Publicly available at the Texas Instruments website http:

Linux 4.14.74

2018-10-04 Thread Greg KH
I'm announcing the release of the 4.14.74 kernel. All users of the 4.14 kernel series must upgrade. The updated 4.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y and can be browsed at the normal kernel.org git web browser:

Linux 4.9.131

2018-10-04 Thread Greg KH
I'm announcing the release of the 4.9.131 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.9.131

2018-10-04 Thread Greg KH
diff --git a/Documentation/hwmon/ina2xx b/Documentation/hwmon/ina2xx index cfd31d94c872..f8bf14055c2f 100644 --- a/Documentation/hwmon/ina2xx +++ b/Documentation/hwmon/ina2xx @@ -32,7 +32,7 @@ Supported chips: Datasheet: Publicly available at the Texas Instruments website http:

Re: [PATCH 5/6] cpuidle: menu: Avoid computations for very close timers

2018-10-04 Thread Daniel Lezcano
On Tue, Oct 02, 2018 at 11:46:28PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > If the next timer event (with the tick excluded) is closer than the > target residency of the second state or the PM QoS latency constraint > is below its exit latency, state[0] will be used regardles

Re: [GIT PULL] fixes for soc/fsl drivers for v4.19 take 2

2018-10-04 Thread Arnd Bergmann
On Thu, Oct 4, 2018 at 11:39 AM Laurentiu Tudor wrote: > > > > > NXP/FSL SoC driver fixes for v4.19 round 2 > > > > - Fix crash of qman_portal by deferring its probe if qman is not probed > > > > -

Re: [PATCH RFC 0/2] mach-omap2: handle autoidle denial

2018-10-04 Thread Tero Kristo
On 04/10/18 18:07, Tony Lindgren wrote: * Tero Kristo [181004 14:47]: On 04/10/18 17:25, Tony Lindgren wrote: It seems we should just provide a generic interface for clk_allow_autoidle() and clk_deny_autoidle()? Otherwise we'll be forever stuck with pdata callbacks it seems. The TI clock dri

[PATCH] Input: mousedev - add a schedule point in mousedev_write()

2018-10-04 Thread Eric Dumazet
syzbot was able to trigger rcu stalls by calling write() with large number of bytes. Add a cond_resched() in the loop to avoid this. Link: https://lkml.org/lkml/2018/8/23/1106 Signed-off-by: Eric Dumazet Reported-by: syzbot+9436b02171ac0894d...@syzkaller.appspotmail.com Cc: Dmitry Torokhov Cc:

[PATCH v2] ARM: dts: imx6sx-sdb: Fix enet phy regulator

2018-10-04 Thread Leonard Crestez
Bindings for "fixed-regulator" only explicitly support "gpio" property, not "gpios". Fix by correcting the property name. The enet PHYs on imx6sx-sdb needs to be explicitly reset after a power cycle, handle this by adding the phy-reset-gpios property. Both phys share a single reset, a scenario si

[PATCH] kvm/x86 : fix some typo

2018-10-04 Thread Peng Hao
From: Peng Hao Signed-off-by: Peng Hao --- arch/x86/kvm/mmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index d7e9bce..281e20e 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -4546,7 +4546,7 @@ static void updat

Re: [PATCH 4.14 000/137] 4.14.74-stable review

2018-10-04 Thread Greg Kroah-Hartman
On Thu, Oct 04, 2018 at 01:42:48PM +0100, Jon Hunter wrote: > > On 02/10/18 14:23, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.74 release. > > There are 137 patches in this series, all will be posted as a response > > to this one. If anyone has any issu

[PATCH] media: isif: fix a NULL pointer dereference bug

2018-10-04 Thread Wenwen Wang
In isif_probe(), there is a while loop to get the ISIF base address and linearization table0 and table1 address. In the loop body, the function platform_get_resource() is called to get the resource. If platform_get_resource() returns NULL, the loop is terminated and the execution goes to 'fail_noba

Re: [PATCH v4 1/2] drivers: base: cacheinfo: Do not populate sysfs for unknown cache types

2018-10-04 Thread Greg KH
On Thu, Oct 04, 2018 at 09:20:05AM -0600, Jeffrey Hugo wrote: > If a cache has an unknown type because neither the hardware nor the > firmware told us, an entry in the sysfs tree will be made, but the type > file will not be present. lscpu depends on the type file being present > for every entry,

[PATCH] PCI / ACPI: Mark expected switch fall-through

2018-10-04 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1472052 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/pci/pci-acpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pc

[GIT PULL] A Single RISC-V Fix for 4.19-rc7

2018-10-04 Thread Palmer Dabbelt
The following changes since commit 17b57b1883c1285f3d0dc2266e8f79286a7bef38: Linux 4.19-rc6 (2018-09-30 07:15:35 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/palmer/riscv-linux.git tags/riscv-for-linus-4.19-rc7 for you to fetch changes up to

[PATCH v8 03/10] edac: synopsys: Modify the comments in the driver

2018-10-04 Thread Manish Narani
There are some comments which can be updated for better readability of the driver. Update abbreviations to capital letters in the comments. Signed-off-by: Manish Narani --- drivers/edac/synopsys_edac.c | 98 ++-- 1 file changed, 48 insertions(+), 50 deleti

[PATCH v8 07/10] edac: synopsys: Add macro defines for ZynqMP DDRC

2018-10-04 Thread Manish Narani
Add macro defines for ZynqMP DDR controller. These macros will be used for ZynqMP ECC operations. Signed-off-by: Manish Narani --- drivers/edac/synopsys_edac.c | 168 +++ 1 file changed, 168 insertions(+) diff --git a/drivers/edac/synopsys_edac.c b/driver

[PATCH v8 06/10] dt: bindings: Document ZynqMP DDRC in Synopsys documentation

2018-10-04 Thread Manish Narani
Add information of ZynqMP DDRC which reports the single bit errors that are corrected and the double bit errors that are detected. Signed-off-by: Manish Narani Reviewed-by: Rob Herring --- .../bindings/memory-controllers/synopsys.txt | 27 ++ 1 file changed, 22 inserti

[PATCH v8 00/10] EDAC: Enhancements to Synopsys EDAC driver

2018-10-04 Thread Manish Narani
This patch series enhances the current EDAC driver to support different platforms. This series adds support for ZynqMP DDRC controller in synopsys EDAC driver. This series also adds Device tree properties and relevant binding documentation. Changes in v2: - Moved checking of DDR_ECC_INTR_S

[PATCH v8 08/10] edac: synopsys: Add EDAC ECC support for ZynqMP DDRC

2018-10-04 Thread Manish Narani
Add EDAC ECC support for ZynqMP DDRC IP. The IP supports interrupts for corrected and uncorrected errors. Add interrupt handlers for the same. Signed-off-by: Manish Narani --- drivers/edac/Kconfig | 2 +- drivers/edac/synopsys_edac.c | 328 --- 2

[PATCH v8 10/10] edac: synopsys: Add Error Injection support for ZynqMP DDRC

2018-10-04 Thread Manish Narani
Add support for Error Injection for ZynqMP DDRC IP. For injecting errors, the Row, Column, Bank, Bank Group and Rank bits positions are determined via Address Map registers of Synopsys DDRC. Signed-off-by: Manish Narani --- drivers/edac/synopsys_edac.c | 421 +

[PATCH v8 04/10] edac: synopsys: Make return type void for functions always returning 0

2018-10-04 Thread Manish Narani
The current driver has functions which are always returning 0. Those functions can be modified to void. Signed-off-by: Manish Narani --- drivers/edac/synopsys_edac.c | 22 -- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/drivers/edac/synopsys_edac.c b/drivers

[PATCH v8 05/10] edac: synps: Add platform specific structures for ddrc controller

2018-10-04 Thread Manish Narani
Add platform specific structures, so that we can add different IP support later using quirks. Signed-off-by: Manish Narani --- drivers/edac/synopsys_edac.c | 91 +++- 1 file changed, 65 insertions(+), 26 deletions(-) diff --git a/drivers/edac/synopsys_eda

[PATCH v8 09/10] arm64: zynqmp: Add DDRC node

2018-10-04 Thread Manish Narani
Add ddrc memory controller node in dts. The size mentioned in dts is 0x3, because we need to access DDR_QOS INTR registers located at 0xFD090208 from this driver. Signed-off-by: Manish Narani --- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v8 02/10] edac: synopsys: Rename the static functions to a shorter name

2018-10-04 Thread Manish Narani
Rename the static functions to a shorter name. Since this is Synopsys EDAC driver, better to remove unnecessary 'synps_' prefix in function names. Signed-off-by: Manish Narani --- drivers/edac/synopsys_edac.c | 56 ++-- 1 file changed, 28 insertions(+), 28

[PATCH v8 01/10] edac: synopsys: Update the driver code for better readability

2018-10-04 Thread Manish Narani
Modify the driver with some changes for code clean up. Update the debug messages for EDAC errors reported. Increase the indentation of the macros for better readability. Signed-off-by: Manish Narani --- drivers/edac/synopsys_edac.c | 104 +-- 1 file change

Re: [PATCH] firmware: tegra-bpmp: mark PM function as __maybe_unused

2018-10-04 Thread Arnd Bergmann
On Thu, Oct 4, 2018 at 5:11 PM Timo Alho wrote: > On 03.10.2018 11:26, Jonathan Hunter wrote: > > On 02/10/18 22:21, Arnd Bergmann wrote: > >> The newly added tegra_bpmp_resume function is unused when CONFIG_PM > >> is disabled: > >> > >> drivers/firmware/tegra/bpmp.c:847:12: error: 'tegra_bpmp_re

Re: [PATCH v3] perf record: encode -k clockid frequency into Perf trace

2018-10-04 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 03, 2018 at 07:57:12PM +0300, Alexey Budankov escreveu: > > Store -k clockid frequency into Perf trace to enable timestamps > derived metrics conversion into wall clock time on reporting stage. Humm, looking at where this is documented, we already have this in the tools/perf/Document

Re: [PATCH V2 2/2] cpuidle/drivers/menu: Remove get_loadavg in the performance multiplier

2018-10-04 Thread Rafael J. Wysocki
On Thu, Oct 4, 2018 at 2:04 PM Daniel Lezcano wrote: > > The function get_loadavg() returns almost always zero. To be more > precise, statistically speaking for a total of 1023379 times passing > in the function, the load is equal to zero 1020728 times, greater than > 100, 610 times, the remaining

[PATCH v4 0/2] PPTT handle Handle architecturally unknown cache types

2018-10-04 Thread Jeffrey Hugo
The ARM Architecture Reference Manual allows for caches to be "invisible" and thus not specified in the system registers under some scenarios such as if the cache cannot be managed by set/way operations. However, such caches may be specified in the ACPI PPTT table for workload performance/scheduli

[PATCH v4 1/2] drivers: base: cacheinfo: Do not populate sysfs for unknown cache types

2018-10-04 Thread Jeffrey Hugo
If a cache has an unknown type because neither the hardware nor the firmware told us, an entry in the sysfs tree will be made, but the type file will not be present. lscpu depends on the type file being present for every entry, and will error out without printing system information if lscpu cannot

[PATCH v4 2/2] ACPI/PPTT: Handle architecturally unknown cache types

2018-10-04 Thread Jeffrey Hugo
The type of a cache might not be specified by architectural mechanisms (ie system registers), but its type might be specified in the PPTT. In this case, we should populate the type of the cache, rather than leave it undefined. This fixes the issue where the cacheinfo driver will not populate sysf

Re: [PATCH v4 2/6] dt-bindings: power: Add qcom rpm power domain driver bindings

2018-10-04 Thread Rob Herring
On Thu, Oct 4, 2018 at 3:36 AM Viresh Kumar wrote: > > On 25-09-18, 14:43, Rob Herring wrote: > > On Tue, Sep 25, 2018 at 5:25 AM Rajendra Nayak > > wrote: > > > > > > Hi Rob, > > > > > > []... > > > > + rpmhpd_opp_table: opp-table { > > > > + compatible = "operating-points-v

Re: [PATCH v5 1/2] dt-bindings: iio: vadc: Update example to include unit address for node 'usb-id-nopull'

2018-10-04 Thread Doug Anderson
Hi, On Wed, Oct 3, 2018 at 5:14 PM Matthias Kaehlcke wrote: > > The node has a reg property, therefore its name should include a unit > address. > > Also change the name from 'usb_id_nopull' to 'usb-id-nopull' to follow > DT conventions. > > Signed-off-by: Matthias Kaehlcke > --- > Changes in v4

Re: [PATCH 1/2] ARM: multi_v7_defconfig: enable CONFIG_MMC_UNIPHIER

2018-10-04 Thread Arnd Bergmann
On Wed, Oct 3, 2018 at 2:19 AM Masahiro Yamada wrote: > > Enable the UniPhier SD controller driver. > > Signed-off-by: Masahiro Yamada Applied to next/defconfig, thanks! Note: I think it would actually be better to update both defconfig files in one patch, since you are doing the same change on

Re: [PATCH] firmware: tegra-bpmp: mark PM function as __maybe_unused

2018-10-04 Thread Timo Alho
On 03.10.2018 11:26, Jonathan Hunter wrote: On 02/10/18 22:21, Arnd Bergmann wrote: The newly added tegra_bpmp_resume function is unused when CONFIG_PM is disabled: drivers/firmware/tegra/bpmp.c:847:12: error: 'tegra_bpmp_resume' defined but not used [-Werror=unused-function] static int

Re: [PATCH 2/2] arm64: defconfig: enable CONFIG_MMC_UNIPHIER

2018-10-04 Thread Arnd Bergmann
On Wed, Oct 3, 2018 at 2:19 AM Masahiro Yamada wrote: > > Enable the UniPhier SD controller driver. > > Signed-off-by: Masahiro Yamada Applied to next/defconfig, thanks! Arnd

Re: [GIT PULL v2] ARM: dts: uniphier: UniPhier DT updates for v4.20

2018-10-04 Thread Arnd Bergmann
On Thu, Oct 4, 2018 at 2:54 AM Masahiro Yamada wrote: > UniPhier ARM SoC DT updates for v4.20 > > - Add more clocks to NAND controller nodes > > - Add SPI controller nodes > > - Add SD controller nodes > > - Add USB 3.0 and its PHY nodes > > - Add PHY nodes for USB 2.0 Pulled into next/dt, thank

Re: [PATCH RFC 0/2] mach-omap2: handle autoidle denial

2018-10-04 Thread Tony Lindgren
* Tero Kristo [181004 14:47]: > On 04/10/18 17:25, Tony Lindgren wrote: > > It seems we should just provide a generic interface for > > clk_allow_autoidle() and clk_deny_autoidle()? Otherwise we'll > > be forever stuck with pdata callbacks it seems. > > The TI clock driver is actually providing t

Re: [GIT PULL] ARM: at91: DT for 4.20 #2

2018-10-04 Thread Arnd Bergmann
On Wed, Oct 3, 2018 at 3:45 PM Ludovic Desroches wrote: > > Arnd, Olof, > > Here are the second round of DT changes for 4.20. It consists in NAND > description fixes (size and partitions). Pulled into next/dt, thanks! Arnd

Re: [PATCH] fs: fix access beyond unterminated strings in prints

2018-10-04 Thread David Howells
Amir Goldstein wrote: > @@ -47,7 +47,7 @@ static struct dentry *coda_lookup(struct inode *dir, struct > dentry *entry, unsig > int type = 0; > > if (length > CODA_MAXNAMLEN) { > - pr_err("name too long: lookup, %s (%*s)\n", > + pr_err("name too long: lookup,

Re: [PATCH v9 03/11] PM / Domains: Document flags for genpd

2018-10-04 Thread Ulf Hansson
On 4 October 2018 at 15:48, Tony Lindgren wrote: > Hi, > > * Ulf Hansson [181003 14:43]: >> + * GENPD_FLAG_IRQ_SAFE: This informs genpd that its backend >> callbacks, >> + * ->power_on|off(), doesn't sleep. Hence, these >> + * can

Re: [PATCH 4/6] cpuidle: menu: Do not update last_state_idx in menu_select()

2018-10-04 Thread Daniel Lezcano
On Tue, Oct 02, 2018 at 11:45:07PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > It is not necessary to update data->last_state_idx in menu_select() > as it only is used in menu_update() which only runs when > data->needs_update is set and that is set only when updating > data->la

Re: Linux 4.19-rc4 released, an apology, and a maintainership note

2018-10-04 Thread Eric W. Biederman
Pavel Snajdr writes: > > We started our organization (vpsFree.org) on top of OpenVZ patch set and are > now > working to get vanilla up to the task of replacing the venerable 2.6.32-based > OpenVZ 6 Linux-like thing. The new Code of Conduct is a guarantee for us, that > we won't be laughed out of

Re: [PATCH 3/6] cpuidle: menu: Get rid of first_idx from menu_select()

2018-10-04 Thread Daniel Lezcano
On Tue, Oct 02, 2018 at 11:44:06PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Rearrange the code in menu_select() so that the loop over idle states > always starts from 0 and get rid of the first_idx variable. > > While at it, add two empty lines to separate conditional statem

[PATCH] ALSA: usb-audio: update quirk for B&W PX to remove microphone

2018-10-04 Thread Nicolas Huaman
A quirk in snd-usb-audio was added to automate setting sample rate to 4800k and remove the previously exposed nonfunctional microphone for the Bowers & Wilkins PX: commit 240a8af929c7c57dcde28682725b29cf8474e8e5 https://lore.kernel.org/patchwork/patch/919689/ However the headphones where updated

Re: [PATCH 1/3] VFS: introduce MAY_ACT_AS_OWNER

2018-10-04 Thread Jan Harkes
Same for Coda. uid/gid/mode don't mean anything, access is based on the directory ACL and the authentication token that is held by the userspace cache manager and ultimately decided by the servers. Unless someone broke this recently and made permission checks uid based I would expect no change

Re: [PATCH RFC 0/2] mach-omap2: handle autoidle denial

2018-10-04 Thread Tero Kristo
On 04/10/18 17:25, Tony Lindgren wrote: * Andreas Kemnade [181004 05:56]: On the gta04 with a dm3730 omap_hdq does not work properly when the device enters lower power states. Idling uart1 and 2 is enough to show up that problem, if there are no other things enabled. Further research reveals th

Re: [PATCH] PM / core: Clear the direct_complete flag on errors

2018-10-04 Thread Ulf Hansson
On 4 October 2018 at 15:59, Alan Cooper wrote: >> On 4 October 2018 at 11:08, Rafael J. Wysocki wrote: >> > From: Rafael J. Wysocki >> > >> > If __device_suspend() returns early on an error or pending wakeup >> > and the power.direct_complete flag has been set for the device >> > already, the su

Re: [PATCH RFC 1/2] clk: ti: add a usecount for autoidle

2018-10-04 Thread Tero Kristo
On 04/10/18 08:51, Andreas Kemnade wrote: We have the scenario that first autoidle is disabled for all clocks, then it is disabled for selected ones and then enabled for all. So we should have some counting here, also according to the comment in _setup_iclk_autoidle() Signed-off-by: Andreas Kem

Re: [GIT PULL] parisc fixes for kernel v4.19

2018-10-04 Thread Helge Deller
On 04.10.2018 16:30, Helge Deller wrote: > On 04.10.2018 15:34, Arnd Bergmann wrote: >> On Thu, Oct 4, 2018 at 10:42 AM Helge Deller wrote: >>> On 04.10.2018 01:02, gregkh wrote: On Wed, Oct 03, 2018 at 09:49:08PM +0200, Arnd Bergmann wrote: > On Wed, Oct 3, 2018 at 8:16 PM Greg Kroah-Har

Re: [PATCH v6 09/10] dt-binding: mtd: Document gpio-addr-flash

2018-10-04 Thread Ricardo Ribalda Delgado
Hi Boris On Thu, Oct 4, 2018 at 4:02 PM Boris Brezillon wrote: > > On Thu, 4 Oct 2018 15:01:09 +0200 > Ricardo Ribalda Delgado wrote: > > > Add documentation for gpio-addr-flash. This binding allow creating > > flash devices that are paged using GPIOs. > > > > Cc: devicet...@vger.kernel.org > >

Re: [GIT PULL] parisc fixes for kernel v4.19

2018-10-04 Thread Helge Deller
On 04.10.2018 15:34, Arnd Bergmann wrote: > On Thu, Oct 4, 2018 at 10:42 AM Helge Deller wrote: >> On 04.10.2018 01:02, gregkh wrote: >>> On Wed, Oct 03, 2018 at 09:49:08PM +0200, Arnd Bergmann wrote: On Wed, Oct 3, 2018 at 8:16 PM Greg Kroah-Hartman wrote: > On Wed, Oct 03, 2018 at

Re: [PATCH] ARM: OMAP1: ams-delta: Fix impossible .irq < 0

2018-10-04 Thread Tony Lindgren
* Aaro Koskinen [181002 17:52]: > Hi, > > On Tue, Oct 02, 2018 at 11:45:29AM +0200, Janusz Krzysztofik wrote: > > Since the very beginning, unsigned int .irq member of struct > > plat_serial8250_port introduced by commit eff443df679e ("OMAP1: > > AMS_DELTA: add modem support") was statically init

[PATCH v10 10/10] mtd: maps: gpio-addr-flash: Add support for device-tree devices

2018-10-04 Thread Ricardo Ribalda Delgado
Allow creating gpio-addr-flash via device-tree and not just via platform data. Mimic what physmap_of_versatile and physmap_of_gemini does to reduce code duplicity. Signed-off-by: Ricardo Ribalda Delgado --- drivers/mtd/maps/Kconfig | 8 +++ drivers/mtd/maps/Makefile | 3 +-

[PATCH v10 09/10] dt-binding: mtd: Document gpio-addr-flash

2018-10-04 Thread Ricardo Ribalda Delgado
Add documentation for gpio-addr-flash. This binding allow creating flash devices that are paged using GPIOs. Cc: devicet...@vger.kernel.org Reviewed-by: Rob Herring Signed-off-by: Ricardo Ribalda Delgado --- Documentation/devicetree/bindings/mtd/mtd-physmap.txt | 2 ++ 1 file changed, 2 inserti

Re: [PATCH] ata: ep93xx: Use proper enums for directions

2018-10-04 Thread Jens Axboe
On 10/3/18 8:37 PM, Nathan Chancellor wrote: > Clang warns when one enumerated type is implicitly converted to another. > > drivers/ata/pata_ep93xx.c:662:36: warning: implicit conversion from > enumeration type 'enum dma_data_direction' to different enumeration type > 'enum dma_transfer_direction'

Re: [PATCH RFC 0/2] mach-omap2: handle autoidle denial

2018-10-04 Thread Tony Lindgren
* Andreas Kemnade [181004 05:56]: > On the gta04 with a dm3730 omap_hdq does not work properly when the > device enters lower power states. Idling uart1 and 2 is enough > to show up that problem, if there are no other things enabled. > Further research reveals that hdq iclk must not be turned off

Re: [PATCH v7 0/5] riscv: Add support to no-FPU systems

2018-10-04 Thread Alan Kao
On Thu, Sep 06, 2018 at 02:45:04AM -0700, Palmer Dabbelt wrote: > On Sun, 26 Aug 2018 18:07:50 PDT (-0700), alan...@andestech.com wrote: > >This patchset adds an option, CONFIG_FPU, to enable/disable floating- > >point procedures. > > > >Kernel's new behavior will be as follows: > > > >* with CONFI

Re: [PATCH 2/6] cpuidle: menu: Compute first_idx when latency_req is known

2018-10-04 Thread Daniel Lezcano
On Tue, Oct 02, 2018 at 11:42:56PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Since menu_select() can only set first_idx to 1 if the exit latency > of the second state is not greater than the latency limit, it should > first determine that limit. Thus first_idx should be compu

Re: [RFC PATCH] mtd: rawnand: ams-delta: use ->exec_op()

2018-10-04 Thread Boris Brezillon
On Thu, 04 Oct 2018 16:11:42 +0200 Janusz Krzysztofik wrote: > > Legacy nand_wait_ready() uses a hardcoded timeout value of 400 ms. Should > we > follow the same approach in nand_gpio_waitrdy(), or should we rather let > drivers pass the timeout value, like in case of nand_soft_waitrdy()?

Re: linux-next: Tree for Oct 4

2018-10-04 Thread Geert Uytterhoeven
On Thu, Oct 4, 2018 at 3:47 PM Guenter Roeck wrote: > Time for a status report. > > Build results: > total: 135 pass: 121 fail: 14 > Failed builds: > arm:allmodconfig > i386:allyesconfig > i386:allmodconfig > m68k:defconfig > m68k:allmodconfig >

[PATCH RT 0/2] Linux v4.4.148-rt166-rc1

2018-10-04 Thread Daniel Wagner
Dear RT Folks, This is the RT stable review cycle of patch v4.4.148-rt166-rc1. Please scream at me if I messed something up. Please test the patches too. The -rc release will be uploaded to kernel.org and will be deleted when the final release is out. This is just a review release (or release ca

Re: [PATCH 1/3] VFS: introduce MAY_ACT_AS_OWNER

2018-10-04 Thread David Howells
NeilBrown wrote: > diff --git a/fs/afs/security.c b/fs/afs/security.c > index 81dfedb7879f..ac2e39de8bff 100644 > --- a/fs/afs/security.c > +++ b/fs/afs/security.c > @@ -349,6 +349,16 @@ int afs_permission(struct inode *inode, int mask) > if (mask & MAY_NOT_BLOCK) > return -EC

Re: [PATCH] kernel/sysctl.c: remove duplicated include

2018-10-04 Thread Richard Weinberger
On Thu, Oct 4, 2018 at 3:48 PM Michael Schupikov wrote: > > Remove one include of . > No functional changes. > > Signed-off-by: Michael Schupikov > --- > kernel/sysctl.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/kernel/sysctl.c b/kernel/sysctl.c > index cc02050fd0c4..523cb36b72eb 1

Re: [RFC PATCH] mtd: rawnand: ams-delta: use ->exec_op()

2018-10-04 Thread Janusz Krzysztofik
On Thursday, October 4, 2018 3:59:33 PM CEST Boris Brezillon wrote: > On Thu, 04 Oct 2018 15:52:57 +0200 > Janusz Krzysztofik wrote: > > > Hi Boris, > > > > On Wednesday, October 3, 2018 4:06:34 PM CEST Boris Brezillon wrote: > > > On Wed, 03 Oct 2018 15:55:25 +0200 > > > Janusz Krzysztofik wro

Re: [PATCH v5 12/21] tpm: move pcr extend code to tpm2-cmd.c

2018-10-04 Thread Roberto Sassu
On 10/4/2018 3:46 PM, Winkler, Tomas wrote: On 10/4/2018 1:45 PM, Winkler, Tomas wrote: -Original Message- From: Jarkko Sakkinen [mailto:jarkko.sakki...@linux.intel.com] Sent: Thursday, October 04, 2018 14:35 To: Winkler, Tomas Cc: Jason Gunthorpe ; Nayna Jain ; Usyskin, Alexander ;

Re: [PATCH RT 1/2] x86/kconfig: Use ticket spinlocks for -rt

2018-10-04 Thread Sebastian Andrzej Siewior
On 2018-10-04 15:46:21 [+0200], Daniel Wagner wrote: > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 6df130a37d41..21f9418d850f 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -42,7 +42,7 @@ config X86 > select ARCH_USE_BUILTIN_BSWAP > select ARCH_USE_CMPXCHG_LO

Re: [PATCH] bcache: add separate workqueue for journal_write to avoid deadlock

2018-10-04 Thread Eddie Chapman
On 28/09/18 03:32, Coly Li wrote: On 9/27/18 11:53 PM, Eddie Chapman wrote: On 27/09/18 16:23, Coly Li wrote: On 9/27/18 9:45 PM, guoju wrote: After write SSD completed, bcache schedule journal_write work to system_wq, that is a public workqueue in system, without WQ_MEM_RECLAIM flag. s

[PATCH 01/11] x86/entry: remove _TIF_ALLWORK_MASK

2018-10-04 Thread Sebastian Andrzej Siewior
There is no user of _TIF_ALLWORK_MASK since commit 21d375b6b34ff ("x86/entry/64: Remove the SYSCALL64 fast path"). Remove unused define _TIF_ALLWORK_MASK. Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/include/asm/thread_info.h | 8 1 file changed, 8 deletions(-) diff --git a/ar

[PATCH 00/11 v3] x86: load FPU registers on return to userland

2018-10-04 Thread Sebastian Andrzej Siewior
This is a refurbished series originally started by by Rik van Riel. The goal is load the FPU registers on return to userland and not on every context switch. By this optimisation we can: - avoid loading the registers if the task stays in kernel and does not return to userland - make kernel_fpu_be

[PATCH 04/11] x86/fpu: eager switch PKRU state

2018-10-04 Thread Sebastian Andrzej Siewior
From: Rik van Riel While most of a task's FPU state is only needed in user space, the protection keys need to be in place immediately after a context switch. The reason is that any accesses to userspace memory while running in kernel mode also need to abide by the memory permissions specified in

[PATCH 06/11] x86/pkeys: make init_pkru_value static

2018-10-04 Thread Sebastian Andrzej Siewior
The variable init_pkru_value isn't used outside of this file. Make init_pkru_value static. Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/mm/pkeys.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/mm/pkeys.c b/arch/x86/mm/pkeys.c index 4409ada551c5e..a150984171684 100644 ---

[PATCH 03/11] x86/fpu: make __raw_xsave_addr() use feature number instead of mask

2018-10-04 Thread Sebastian Andrzej Siewior
Most users of __raw_xsave_addr() use a feature number, shift it to a mask and then __raw_xsave_addr() shifts it back to the feature number. Make __raw_xsave_addr() use the feature number as argument. Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/kernel/fpu/xstate.c | 16

[PATCH 07/11] x86/pkeys: Drop the preempt-disable section

2018-10-04 Thread Sebastian Andrzej Siewior
From: Rik van Riel The fpu->initialized flag should not be changed underneath us. This might be a fallout during the removal of the LazyFPU support. The FPU is marked initialized as soon as the state has been set to an initial value. It does not signal if the CPU's FPU registers are loaded. Sign

[PATCH 05/11] x86/fpu: set PKRU state for kernel threads

2018-10-04 Thread Sebastian Andrzej Siewior
The PKRU value is not set for kernel threads because they do not have the ->initialized value set. As a result the kernel thread has a random PKRU value set which it inherits from the previous task. It has been suggested by Paolo Bonzini to set it for kernel threads, too because it might be a fix.

[PATCH 09/11] x86/entry: add TIF_LOAD_FPU

2018-10-04 Thread Sebastian Andrzej Siewior
Add TIF_LOAD_FPU. This is reserved for loading the FPU registers before returning to userpace. This flag must not be set for systems without a FPU. It is introduced now, so we can add code handling it now before adding the main feature. Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/inclu

[PATCH 08/11] x86/fpu: Always store the registers in copy_fpstate_to_sigframe()

2018-10-04 Thread Sebastian Andrzej Siewior
From: Rik van Riel copy_fpstate_to_sigframe() has two callers and both invoke the function only if fpu->initialized is set. So the check in the function for ->initialized makes no sense. It might be a relict from the lazy-FPU time: If the FPU registers were "loaded" then we could save them direct

[PATCH 10/11] x86/fpu: prepare copy_fpstate_to_sigframe for TIF_LOAD_FPU

2018-10-04 Thread Sebastian Andrzej Siewior
From: Rik van Riel If TIF_LOAD_FPU is set, then the registers are saved (not loaded). In that case we skip the saving part. Signed-off-by: Rik van Riel Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/kernel/fpu/signal.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletion

[PATCH 11/11] x86/fpu: defer FPU state load until return to userspace

2018-10-04 Thread Sebastian Andrzej Siewior
From: Rik van Riel Defer loading of FPU state until return to userspace. This gives the kernel the potential to skip loading FPU state for tasks that stay in kernel mode, or for tasks that end up with repeated invocations of kernel_fpu_begin. It also increases the chances that a task's FPU state

[PATCH 02/11] x86/fpu: add (__)make_fpregs_active helpers

2018-10-04 Thread Sebastian Andrzej Siewior
From: Rik van Riel Add helper function that ensures the floating point registers for the current task are active. Use with preemption disabled. Signed-off-by: Rik van Riel Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/include/asm/fpu/internal.h | 27 ++- 1 file

[PATCH RT 1/2] x86/kconfig: Use ticket spinlocks for -rt

2018-10-04 Thread Daniel Wagner
v4.4.148-rt166-rc1 stable review patch. If anyone has any objections, please let me know. --- Sebastian writes: """ We reproducibly observe cache line starvation on a Core2Duo E6850 (2 cores), a i5-6400 SKL (4 cores) and on a NXP LS2044A ARM Cortex-A72 (4 cores). The problem can be tri

[PATCH] media: ivtv: make const array addr_list static

2018-10-04 Thread Colin King
From: Colin Ian King The const array addr_list can be made static, saves populating it on the stack and will make it read-only. Signed-off-by: Colin Ian King --- drivers/media/pci/ivtv/ivtv-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/ivtv/ivtv-i2

Re: [PATCH v6 09/10] dt-binding: mtd: Document gpio-addr-flash

2018-10-04 Thread Boris Brezillon
On Thu, 4 Oct 2018 15:01:09 +0200 Ricardo Ribalda Delgado wrote: > Add documentation for gpio-addr-flash. This binding allow creating > flash devices that are paged using GPIOs. > > Cc: devicet...@vger.kernel.org > Reviewed-by: Rob Herring > Signed-off-by: Ricardo Ribalda Delgado > --- > ...

Re: [RFC PATCH] mtd: rawnand: ams-delta: use ->exec_op()

2018-10-04 Thread Boris Brezillon
On Thu, 04 Oct 2018 15:52:57 +0200 Janusz Krzysztofik wrote: > Hi Boris, > > On Wednesday, October 3, 2018 4:06:34 PM CEST Boris Brezillon wrote: > > On Wed, 03 Oct 2018 15:55:25 +0200 > > Janusz Krzysztofik wrote: > > > > > > > > > > > > Implementation of NAND_OP_WAITRDY_INSTR has been b

Re: [PATCH] PM / core: Clear the direct_complete flag on errors

2018-10-04 Thread Alan Cooper
> On 4 October 2018 at 11:08, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > If __device_suspend() returns early on an error or pending wakeup > > and the power.direct_complete flag has been set for the device > > already, the subsequent device_resume() will be confused by it > > an

[PATCH] power: max8925: mark expected switch fall-through

2018-10-04 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 201510 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/power/supply/max8925_power.c | 1 + 1 file changed, 1 insertion(+) diff --git a/d

[PATCH RT 2/2] Linux 4.4.148-rt166-rc1

2018-10-04 Thread Daniel Wagner
v4.4.148-rt166-rc1 stable review patch. If anyone has any objections, please let me know. --- Signed-off-by: Daniel Wagner --- localversion-rt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localversion-rt b/localversion-rt index 2c9cfa2ea86c..f3735ed9a3c0 100644 -

Re: [PATCH] regulator: fixed: Use more standard GPIO binding

2018-10-04 Thread Mark Brown
On Thu, Oct 04, 2018 at 01:32:13PM +0200, Linus Walleij wrote: > On Thu, Oct 4, 2018 at 12:50 PM Mark Brown wrote: > > On Thu, Oct 04, 2018 at 11:06:54AM +0200, Linus Walleij wrote: > > > Optional properties: > > > -- gpio: gpio to use for enable control > > > +- gpios: gpio to use for enable co

Re: [RFC PATCH] mtd: rawnand: ams-delta: use ->exec_op()

2018-10-04 Thread Janusz Krzysztofik
Hi Boris, On Wednesday, October 3, 2018 4:06:34 PM CEST Boris Brezillon wrote: > On Wed, 03 Oct 2018 15:55:25 +0200 > Janusz Krzysztofik wrote: > > > > > > > > > Implementation of NAND_OP_WAITRDY_INSTR has been based on legacy > > > > nand_wait_ready(), > > > > > > I don't remember what th

Re: [SCHEDULER] Performance drop in 4.19 compared to 4.18 kernel

2018-10-04 Thread Jon Masters
On 9/7/18 5:34 AM, Jirka Hladky wrote: > We would also be more than happy to test the new patches for the > performance - please let us know if you are interested. We have a > pool of 1 NUMA up to 8 NUMA boxes for that, both AMD and Intel, > covering different CPU generations from Sandy Bridge ti

Re: [PATCH] rtc: m41t80: fix fall-through annotation

2018-10-04 Thread Gustavo A. R. Silva
On 10/4/18 2:53 PM, Alexandre Belloni wrote: > Hi, > > On 04/10/2018 14:35:28+0200, Gustavo A. R. Silva wrote: >> Replace "Fall" with a proper "Fall through" annotation. >> >> This fix is part of the ongoing efforts to enabling >> -Wimplicit-fallthrough >> > > Can we agree that this is absolut

Re: [PATCH v9 03/11] PM / Domains: Document flags for genpd

2018-10-04 Thread Tony Lindgren
Hi, * Ulf Hansson [181003 14:43]: > + * GENPD_FLAG_IRQ_SAFE: This informs genpd that its backend > callbacks, > + * ->power_on|off(), doesn't sleep. Hence, these > + * can be invoked from within atomic context, which > + *

[PATCH] kernel/sysctl.c: remove duplicated include

2018-10-04 Thread Michael Schupikov
Remove one include of . No functional changes. Signed-off-by: Michael Schupikov --- kernel/sysctl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/sysctl.c b/kernel/sysctl.c index cc02050fd0c4..523cb36b72eb 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -66,7 +66,6 @@ #include

Re: linux-next: Tree for Oct 4

2018-10-04 Thread Guenter Roeck
On Thu, Oct 04, 2018 at 06:34:49PM +1000, Stephen Rothwell wrote: > Hi all, > > Changes since 20181003: > > The bpf-next tree still had its build failure so I used the version > from next-20181002. > > The kvm-arm tree gained conflicts against the arm64 tree. > > The tty tree gained a build fai

RE: [PATCH v5 12/21] tpm: move pcr extend code to tpm2-cmd.c

2018-10-04 Thread Winkler, Tomas
> > On 10/4/2018 1:45 PM, Winkler, Tomas wrote: > > > > > >> -Original Message- > >> From: Jarkko Sakkinen [mailto:jarkko.sakki...@linux.intel.com] > >> Sent: Thursday, October 04, 2018 14:35 > >> To: Winkler, Tomas > >> Cc: Jason Gunthorpe ; Nayna Jain > >> ; Usyskin, Alexander > >> ; St

[PATCH V2 0/4] Add TIOCM Signals support for RPMSG char devices

2018-10-04 Thread Arun Kumar Neelakantam
Glink transport support signals to exchange state notification between local and remote side clients. Adding support to send/receive the signal command and notify the clients through callback and POLL notification. Changes since v1: - Split the patches as per functional areas like core, char, glin

Re: [PATCH v9 5/5] lib/dlock-list: Scale dlock_lists_empty()

2018-10-04 Thread Waiman Long
On 10/04/2018 03:16 AM, Jan Kara wrote: > On Wed 12-09-18 15:28:52, Waiman Long wrote: >> From: Davidlohr Bueso >> >> Instead of the current O(N) implementation, at the cost >> of adding an atomic counter, we can convert the call to >> an atomic_read(). The counter only serves for accounting >> em

[PATCH V2 3/4] rpmsg: char: Add TIOCMGET/TIOCMSET ioctl support

2018-10-04 Thread Arun Kumar Neelakantam
Add TICOMGET and TIOCMSET ioctl support for rpmsg char device nodes to get/set the low level transport signals. Signed-off-by: Arun Kumar Neelakantam --- drivers/rpmsg/rpmsg_char.c | 54 +++--- 1 file changed, 51 insertions(+), 3 deletions(-) diff --git a

[PATCH v8 01/10] mtd: physmap_of: Release resources on error

2018-10-04 Thread Ricardo Ribalda Delgado
During probe, if there was an error the memory region and the memory map were not properly released.This can lead a system unusable if deferred probe is in use. Replace mem_request and map with devm_ioremap_resource Signed-off-by: Ricardo Ribalda Delgado --- drivers/mtd/maps/physmap_of_core.c |

<    1   2   3   4   5   6   7   >