Re: [PATCH 02/18] soc: qcom: create "include/soc/qcom/rmnet.h"

2019-05-15 Thread Arnd Bergmann
On Sun, May 12, 2019 at 3:25 AM Alex Elder wrote: > diff --git a/include/soc/qcom/rmnet.h b/include/soc/qcom/rmnet.h > new file mode 100644 > index ..80dcd6e68c3d > --- /dev/null > +++ b/include/soc/qcom/rmnet.h > @@ -0,0 +1,38 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > + > +/* Co

Re: [PATCH 03/18] dt-bindings: soc: qcom: add IPA bindings

2019-05-15 Thread Arnd Bergmann
On Sun, May 12, 2019 at 3:25 AM Alex Elder wrote: > > Add the binding definitions for the "qcom,ipa" device tree node. > > Signed-off-by: Alex Elder > --- > .../devicetree/bindings/net/qcom,ipa.txt | 164 ++ > 1 file changed, 164 insertions(+) > create mode 100644 Documenta

Re: [PATCH RESEND] mm: show number of vmalloc pages in /proc/meminfo

2019-05-15 Thread Anshuman Khandual
On 05/15/2019 05:21 AM, Roman Gushchin wrote: > Vmalloc() is getting more and more used these days (kernel stacks, > bpf and percpu allocator are new top users), and the total % > of memory consumed by vmalloc() can be pretty significant > and changes dynamically. > > /proc/meminfo is the best

Re: [PATCH v6 1/3] media: v4l2-subdev: Verify arguments in v4l2_subdev_call()

2019-05-15 Thread Sakari Ailus
Hi Janusz, On Wed, May 15, 2019 at 12:48:21AM +0200, Janusz Krzysztofik wrote: > -static int check_crop(struct v4l2_subdev *sd, struct v4l2_subdev_crop *crop) > +static inline int check_pad(struct v4l2_subdev *sd, __u32 pad) > { > - if (crop->which != V4L2_SUBDEV_FORMAT_TRY && > - cro

Re: [PATCH v12 2/3] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver

2019-05-15 Thread Lee Jones
On Wed, 15 May 2019, masonccy...@mxic.com.tw wrote: > Hi Jones, > > > > > + > > > +struct rpc_spi { > > > + struct rpc_mfd *mfd; > > > > The term MFD isn't a real thing. What you're obtaining below is > > driver data and is normally articulated as 'ddata' in drivers. > > yes, it's just impl

Re: [PATCH 08/18] soc: qcom: ipa: the generic software interface

2019-05-15 Thread Arnd Bergmann
On Sun, May 12, 2019 at 3:25 AM Alex Elder wrote: > +/** gsi_gpi_channel_scratch - GPI protocol scratch register > + * > + * @max_outstanding_tre: > + * Defines the maximum number of TREs allowed in a single transaction > + * on a channel (in Bytes). This determines the amount of prefetc

Re: [PATCH] vsprintf: Do not break early boot with probing addresses

2019-05-15 Thread Geert Uytterhoeven
Hi Steve, On Tue, May 14, 2019 at 9:35 PM Steven Rostedt wrote: > On Tue, 14 May 2019 21:13:06 +0200 > Geert Uytterhoeven wrote: > > > > Do we care about the value? "(-E%u)"? > > > > > > That too could be confusing. What would (-E22) be considered by a user > > > doing an sprintf() on some strin

RE: 5.1 kernel: khugepaged stuck at 100%

2019-05-15 Thread Justin Piszcz
> -Original Message- > From: Kirill A. Shutemov [mailto:kir...@shutemov.name] > Sent: Thursday, May 09, 2019 7:14 AM > To: Justin Piszcz > Cc: linux-kernel@vger.kernel.org > Subject: Re: 5.1 kernel: khugepaged stuck at 100% > > On Thu, May 09, 2019 at 05:54:56AM -0400, Justin Piszcz wro

Re: [PATCH] clk: Remove io.h from clk-provider.h

2019-05-15 Thread Geert Uytterhoeven
Hi Stephen, On Tue, May 14, 2019 at 7:09 PM Stephen Boyd wrote: > Now that we've gotten rid of clk_readl() we can remove io.h from the > clk-provider header and push out the io.h include to any code that isn't > already including the io.h header but using things like readl/writel, > etc. > > Foun

Re: [PATCH] scripts/spelling.txt: Add spelling fix for prohibited

2019-05-15 Thread Geert Uytterhoeven
On Tue, May 14, 2019 at 11:19 PM Stephen Boyd wrote: > Quoting Chris Paterson (2019-05-14 08:33:41) > > Misspelling 'prohibited' is quite common in the real world, although > > surprisingly not so much in the Linux Kernel. In addition to fixing the > > typo we may as well add it to the spelling ch

Re: Coccinelle: Handling of SmPL disjunctions

2019-05-15 Thread Markus Elfring
Can different run time characteristics become relevant here? >>> >>> Internally, they should be identical. >> >> I got other imaginations in this area. > > You imagination doesn't matter in this case. They might result in collateral software evolution. > What matters is what the code does.

Re: [PATCH 09/18] soc: qcom: ipa: GSI transactions

2019-05-15 Thread Arnd Bergmann
> +static void gsi_trans_tre_fill(struct gsi_tre *dest_tre, dma_addr_t addr, > + u32 len, bool last_tre, bool bei, > + enum ipa_cmd_opcode opcode) > +{ > + struct gsi_tre tre; > + > + tre.addr = cpu_to_le64(addr); > + tre.l

Re: [PATCH] vsprintf: Do not break early boot with probing addresses

2019-05-15 Thread Petr Mladek
On Tue 2019-05-14 14:37:51, Steven Rostedt wrote: > > [ Purple is a nice shade on the bike shed. ;-) ] > > On Tue, 14 May 2019 11:02:17 +0200 > Geert Uytterhoeven wrote: > > > On Tue, May 14, 2019 at 10:29 AM David Laight > > wrote: > > > > And I like Steven's "(fault)" idea. > > > > How abou

[PATCH 1/3] dt-bindings: pci: layerscape-pci: add compatible strings "fsl,ls1028a-pcie"

2019-05-15 Thread Xiaowei Bao
Add the PCIe compatible string for LS1028A Signed-off-by: Xiaowei Bao --- .../devicetree/bindings/pci/layerscape-pci.txt |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/layerscape-pci.txt b/Documentation/devicetree/bindings/pci/

Re: [PATCH v3 4/4] dt-bindings: mfd: Document Macronix MX25F0A controller bindings

2019-05-15 Thread masonccyang
Hi Miquel, > > +Macronix MX25F0A MultiFunction Device Tree Bindings > > + > > + > > +MX25F0A is a MultiFunction Device with SPI and raw NAND, which > > +supports either spi host controller or raw nand controller. > > Acronyms in plain English

[PATCH 3/3] PCI: layerscape: Add LS1028a support

2019-05-15 Thread Xiaowei Bao
Add support for the LS1028a PCIe controller. Signed-off-by: Xiaowei Bao --- drivers/pci/controller/dwc/pci-layerscape.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/pci/controller/dwc/pci-layerscape.c b/drivers/pci/controller/dwc/pci-layerscape.c inde

[PATCH 2/3] arm64: dts: ls1028a: Add PCIe controller DT nodes

2019-05-15 Thread Xiaowei Bao
LS1028a implements 2 PCIe 3.0 controllers. Signed-off-by: Xiaowei Bao --- arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 52 1 files changed, 52 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescal

Re: [PATCH v6 4/4] x86/acrn: Add hypercall for ACRN guest

2019-05-15 Thread Borislav Petkov
On Tue, Apr 30, 2019 at 11:45:26AM +0800, Zhao Yakui wrote: > When the ACRN hypervisor is detected, the hypercall is needed so that the > ACRN guest can query/config some settings. For example: it can be used > to query the resources in hypervisor and manage the CPU/memory/device/ > interrupt for g

Re: [PATCH RFC v2 0/4] mm/ksm: add option to automerge VMAs

2019-05-15 Thread Oleksandr Natalenko
Hi. On Wed, May 15, 2019 at 08:53:11AM +0200, Michal Hocko wrote: > On Wed 15-05-19 08:25:23, Oleksandr Natalenko wrote: > [...] > > > > Please make sure to describe a usecase that warrants adding a new > > > > interface we have to maintain for ever. > > > > I think of two major consumers of this

[RFC PATCH] kbuild: check uniqueness of basename of modules

2019-05-15 Thread Masahiro Yamada
In the recent build test of linux-next, Stephen saw a build error caused by a broken .tmp_versions/*.mod file: https://lkml.org/lkml/2019/5/13/991 drivers/net/phy/asix.ko and drivers/net/usb/asix.ko have the same basename, and there is a race in generating .tmp_versions/asix.mod Kbuild has not

Re: [PATCH] mm: refactor __vunmap() to avoid duplicated call to find_vm_area()

2019-05-15 Thread Anshuman Khandual
On 05/15/2019 05:21 AM, Roman Gushchin wrote: > __vunmap() calls find_vm_area() twice without an obvious reason: > first directly to get the area pointer, second indirectly by calling > vm_remove_mappings()->remove_vm_area(), which is again searching > for the area. > > To remove this redundanc

Re: [PATCH v2 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-05-15 Thread Daniel Vetter
On Tue, May 14, 2019 at 11:36:18AM -0700, Brendan Higgins wrote: > On Tue, May 14, 2019 at 02:05:05PM +0200, Daniel Vetter wrote: > > On Tue, May 14, 2019 at 8:04 AM Brendan Higgins > > wrote: > > > > > > On Mon, May 13, 2019 at 04:44:51PM +0200, Daniel Vetter wrote: > > > > On Sat, May 11, 2019 a

[PATCH v3] powerpc/pseries: Fix cpu_hotplug_lock acquisition in resize_hpt()

2019-05-15 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" The calls to arch_add_memory()/arch_remove_memory() are always made with the read-side cpu_hotplug_lock acquired via memory_hotplug_begin(). On pSeries, arch_add_memory()/arch_remove_memory() eventually call resize_hpt() which in turn calls stop_machine() which acquires

[PATCH RFC] time: validate watchdog clocksource using second best candidate

2019-05-15 Thread Konstantin Khlebnikov
Timekeeping watchdog verifies doubtful clocksources using more reliable candidates. For x86 it likely verifies 'tsc' using 'hpet'. But 'hpet' is far from perfect too. It's better to have second opinion if possible. We're seeing sudden jumps of hpet counter to 0x: timekeeping watchdog on C

Re: [RFC PATCH] kbuild: check uniqueness of basename of modules

2019-05-15 Thread Masahiro Yamada
On Wed, May 15, 2019 at 4:40 PM Masahiro Yamada wrote: > > In the recent build test of linux-next, Stephen saw a build error > caused by a broken .tmp_versions/*.mod file: > > https://lkml.org/lkml/2019/5/13/991 > > drivers/net/phy/asix.ko and drivers/net/usb/asix.ko have the same > basename, an

[PATCH V3 3/4] defconfig: arm64: enable i.MX8 SCU octop driver

2019-05-15 Thread Peng Fan
Build in CONFIG_NVMEM_IMX_OCOTP_SCU. Cc: Catalin Marinas Cc: Will Deacon Cc: Shawn Guo Cc: Andy Gross Cc: Maxime Ripard Cc: Olof Johansson Cc: Jagan Teki Cc: Bjorn Andersson Cc: Leonard Crestez Cc: Marc Gonzalez Cc: Enric Balletbo i Serra Cc: linux-arm-ker...@lists.infradead.org Reviewe

[PATCH V3 1/4] dt-bindings: fsl: scu: add ocotp binding

2019-05-15 Thread Peng Fan
NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system controller(SCU), the ocotp controller is being controlled by the SCU, so Linux need use RPC to SCU for ocotp handling. This patch adds binding doc for i.MX8 SCU OCOTP driver. Cc: Mark Rutland Cc: Shawn Guo Cc: Ulf Hansson Cc: S

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

2019-05-15 Thread Peng Fan
Add i.MX8QXP ocotp node Cc: Rob Herring Cc: Mark Rutland Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: Anson Huang Cc: Daniel Baluta Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Reviewed-by: Dong Aisheng Sig

Re: [PATCH] vsprintf: Do not break early boot with probing addresses

2019-05-15 Thread Petr Mladek
On Wed 2019-05-15 09:23:05, Geert Uytterhoeven wrote: > Hi Steve, > > On Tue, May 14, 2019 at 9:35 PM Steven Rostedt wrote: > > On Tue, 14 May 2019 21:13:06 +0200 > > Geert Uytterhoeven wrote: > > > > > Do we care about the value? "(-E%u)"? > > > > > > > > That too could be confusing. What would

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

2019-05-15 Thread Peng Fan
This patch adds i.MX8 nvmem ocotp driver to access fuse via RPC to i.MX8 system controller. Cc: Srinivas Kandagatla Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Peng Fan --- V3: Use

[ANNOUNCE] 4.4.179-rt181

2019-05-15 Thread Daniel Wagner
Hello RT Folks! I'm pleased to announce the 4.4.179-rt181 stable release. This release is just an update to the new stable v4.4.179 version and no RT specific changes have been made. You'll notice there is also a v4.4.178-rt180 release available. The stable v4.4.178 update includes bdf3c006b9a2 (

Re: [PATCH 2/2] pinctrl: mediatek: Update cur_mask in mask/mask ops

2019-05-15 Thread Nicolas Boichat
On Wed, May 15, 2019 at 4:14 AM Stephen Boyd wrote: > > Quoting Nicolas Boichat (2019-05-13 18:37:58) > > On Tue, May 14, 2019 at 6:29 AM Stephen Boyd wrote: > > > > > > Quoting Nicolas Boichat (2019-04-28 20:55:15) > > > > During suspend/resume, mtk_eint_mask may be called while > > > > wake_mas

Re: [PATCH 2/3] arm64: dts: ls1028a: Add PCIe controller DT nodes

2019-05-15 Thread Arnd Bergmann
On Wed, May 15, 2019 at 9:36 AM Xiaowei Bao wrote: > Signed-off-by: Xiaowei Bao > --- > arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 52 > > 1 files changed, 52 insertions(+), 0 deletions(-) > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi > b/arch

Re: [RFC PATCH] kbuild: check uniqueness of basename of modules

2019-05-15 Thread Arnd Bergmann
On Wed, May 15, 2019 at 9:39 AM Masahiro Yamada wrote: > > In the recent build test of linux-next, Stephen saw a build error > caused by a broken .tmp_versions/*.mod file: > > https://lkml.org/lkml/2019/5/13/991 > > drivers/net/phy/asix.ko and drivers/net/usb/asix.ko have the same > basename, an

Re: [RFC PATCH] kbuild: check uniqueness of basename of modules

2019-05-15 Thread Greg KH
On Wed, May 15, 2019 at 10:08:12AM +0200, Arnd Bergmann wrote: > On Wed, May 15, 2019 at 9:39 AM Masahiro Yamada > wrote: > > > > In the recent build test of linux-next, Stephen saw a build error > > caused by a broken .tmp_versions/*.mod file: > > > > https://lkml.org/lkml/2019/5/13/991 > > > >

[PATCH] mm: fix protection of mm_struct fields in get_cmdline()

2019-05-15 Thread Konstantin Khlebnikov
Since commit 88aa7cc688d4 ("mm: introduce arg_lock to protect arg_start| end and env_start|end in mm_struct") related mm fields are protected with separate spinlock and mmap_sem held for read is not enough for protection. Fixes: 88aa7cc688d4 ("mm: introduce arg_lock to protect arg_start|end and e

[PATCH] mm: use down_read_killable for locking mmap_sem in access_remote_vm

2019-05-15 Thread Konstantin Khlebnikov
This function is used by ptrace and proc files like /proc/pid/cmdline and /proc/pid/environ. Return 0 (bytes read) if current task is killed. Mmap_sem could be locked for a long time or forever if something wrong. Signed-off-by: Konstantin Khlebnikov --- mm/memory.c |4 +++- mm/nommu.c |

Re: [PATCH 12/18] soc: qcom: ipa: immediate commands

2019-05-15 Thread Arnd Bergmann
On Sun, May 12, 2019 at 3:25 AM Alex Elder wrote: > +/* Initialize header space in IPA local memory */ > +int ipa_cmd_hdr_init_local(struct ipa *ipa, u32 offset, u32 size) > +{ > + struct ipa_imm_cmd_hw_hdr_init_local *payload; > + struct device *dev = &ipa->pdev->dev; > + dma_a

Re: [PATCH 13/18] soc: qcom: ipa: IPA network device and microcontroller

2019-05-15 Thread Arnd Bergmann
On Sun, May 12, 2019 at 3:25 AM Alex Elder wrote: > > This patch includes the code that implements a Linux network device, > using one TX and one RX IPA endpoint. It is used to implement the > network device representing the modem and its connection to wireless > networks. There are only a few t

[PATCH v4 0/3] Make IPA use PM_EM

2019-05-15 Thread Quentin Perret
Changes in v4: ** - Added Viresh's Acked-by to all 3 patches - Improved commit message of patch 3/3 to explain how it has no functional impact on existing users (Eduardo) Changes in v3: ** - Changed warning message for unordered tables to something more explicit (V

Re: [PATCH 18/18] arm64: defconfig: enable build of IPA code

2019-05-15 Thread Arnd Bergmann
On Sun, May 12, 2019 at 3:25 AM Alex Elder wrote: > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig > index 2d9c39033c1a..4f4d803e563d 100644 > --- a/arch/arm64/configs/defconfig > +++ b/arch/arm64/configs/defconfig > @@ -268,6 +268,7 @@ CONFIG_SMSC911X=y > CONFIG_SNI_AV

Re: [PATCH] mm: fix protection of mm_struct fields in get_cmdline()

2019-05-15 Thread Oscar Salvador
On Wed, May 15, 2019 at 11:15:37AM +0300, Konstantin Khlebnikov wrote: > Since commit 88aa7cc688d4 ("mm: introduce arg_lock to protect arg_start| > end and env_start|end in mm_struct") related mm fields are protected with > separate spinlock and mmap_sem held for read is not enough for protection.

[PATCH v4 2/3] PM / EM: Expose perf domain struct

2019-05-15 Thread Quentin Perret
In the current state, the perf_domain struct is fully defined only when CONFIG_ENERGY_MODEL=y. Since we need to write code that compiles both with or without that option in the thermal framework, make sure to actually define the struct regardless of the config option. That allows to avoid using stu

[PATCH v4 3/3] thermal: cpu_cooling: Migrate to using the EM framework

2019-05-15 Thread Quentin Perret
The newly introduced Energy Model framework manages power cost tables in a generic way. Moreover, it supports several types of models since the tables can come from DT or firmware (through SCMI) for example. On the other hand, the cpu_cooling subsystem manages its own power cost tables using only D

[PATCH v4 1/3] arm64: defconfig: Enable CONFIG_ENERGY_MODEL

2019-05-15 Thread Quentin Perret
The recently introduced Energy Model (EM) framework manages power cost tables for the CPUs of the system. Its only user right now is the scheduler, in the context of Energy Aware Scheduling (EAS). However, the EM framework also offers a generic infrastructure that could replace subsystem-specific

Re: [PATCH stable 4.9] powerpc/lib: fix book3s/32 boot failure due to code patching

2019-05-15 Thread Greg KH
On Wed, May 15, 2019 at 06:40:47AM +, Christophe Leroy wrote: > [Backport of upstream commit b45ba4a51cde29b2939365ef0c07ad34c8321789] > > On powerpc32, patch_instruction() is called by apply_feature_fixups() > which is called from early_init() > > There is the following note in front of earl

[PATCH V2 1/2] soc: imx: Add SCU SoC info driver support

2019-05-15 Thread Anson Huang
Add i.MX SCU SoC info driver to support i.MX8QXP SoC, introduce driver dependency into Kconfig as CONFIG_IMX_SCU must be selected to support i.MX SCU SoC driver, also need to use platform driver model to make sure IMX_SCU driver is probed before i.MX SCU SoC driver. With this patch, SoC info can b

Re: [PATCH v20 00/28] Intel SGX1 support

2019-05-15 Thread Jarkko Sakkinen
On Tue, May 14, 2019 at 08:08:03AM -0700, Andy Lutomirski wrote: > > Putting everything together, I'd suggest to: > > - Change EADD ioctl to take source page's VMA permission as ("upper > > bound" of) EPCM permission. This make sure no one can circumvent LSM to > > generate executable code on t

[PATCH V2 2/2] arm64: defconfig: Add i.MX SCU SoC info driver

2019-05-15 Thread Anson Huang
This patch selects CONFIG_IMX_SCU_SOC by default to support i.MX system controller unit SoC info driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig ind

Re: [PATCH RFC v2 0/4] mm/ksm: add option to automerge VMAs

2019-05-15 Thread Michal Hocko
On Wed 15-05-19 09:37:23, Oleksandr Natalenko wrote: [...] > > This is way too generic. Please provide something more specific. Ideally > > with numbers. Why those usecases cannot use an existing interfaces. > > Remember you are trying to add a new user interface which we will have > > to maintain

Re: [PATCH v3] driver core: Fix use-after-free and double free on glue directory

2019-05-15 Thread Rafael J. Wysocki
On Wed, May 15, 2019 at 2:57 AM Muchun Song wrote: > > There is a race condition between removing glue directory and adding a new > device under the glue directory. It can be reproduced in following test: > > path 1: Add the child device under glue dir > device_add() > get_device_parent() >

Re: [PATCH] mm: fix protection of mm_struct fields in get_cmdline()

2019-05-15 Thread Konstantin Khlebnikov
On 15.05.2019 11:22, Oscar Salvador wrote: On Wed, May 15, 2019 at 11:15:37AM +0300, Konstantin Khlebnikov wrote: Since commit 88aa7cc688d4 ("mm: introduce arg_lock to protect arg_start| end and env_start|end in mm_struct") related mm fields are protected with separate spinlock and mmap_sem h

Re: [PATCH] mm: fix protection of mm_struct fields in get_cmdline()

2019-05-15 Thread Kirill Tkhai
Hi, Konstantin, On 15.05.2019 11:15, Konstantin Khlebnikov wrote: > Since commit 88aa7cc688d4 ("mm: introduce arg_lock to protect arg_start| > end and env_start|end in mm_struct") related mm fields are protected with > separate spinlock and mmap_sem held for read is not enough for protection. > >

Re: mm: use down_read_killable for locking mmap_sem in access_remote_vm

2019-05-15 Thread Michal Koutný
Hi, making this holder of mmap_sem killable was for the reasons of /proc/... diagnostics was an idea I was pondeering too. However, I think the approach of pretending we read 0 bytes is not correct. The API would IMO need to be extended to allow pass a result such as EINTR to the end caller. Why do

[PATCH 1/5] proc: use down_read_killable for /proc/pid/maps

2019-05-15 Thread Konstantin Khlebnikov
Do not stuck forever if something wrong. This function also used for /proc/pid/smaps. Signed-off-by: Konstantin Khlebnikov --- fs/proc/task_mmu.c |6 +- fs/proc/task_nommu.c |6 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/fs/proc/task_mmu.c b/fs/proc/task

[PATCH 4/5] proc: use down_read_killable for /proc/pid/clear_refs

2019-05-15 Thread Konstantin Khlebnikov
Replace the only unkillable mmap_sem lock in clear_refs_write. Signed-off-by: Konstantin Khlebnikov --- fs/proc/task_mmu.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 78bed6adc62d..7f84d1477b5b 100644 --- a/fs/proc/task

[PATCH 2/5] proc: use down_read_killable for /proc/pid/smaps_rollup

2019-05-15 Thread Konstantin Khlebnikov
Ditto. Signed-off-by: Konstantin Khlebnikov --- fs/proc/task_mmu.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 2bf210229daf..781879a91e3b 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c @@ -832,7 +832,10 @@

LTP: mm: overcommit_memory01, 03...06 failed

2019-05-15 Thread Naresh Kamboju
ltp-mm-tests failed on Linux mainline kernel 5.1.0, * overcommit_memory01 overcommit_memory * overcommit_memory03 overcommit_memory -R 30 * overcommit_memory04 overcommit_memory -R 80 * overcommit_memory05 overcommit_memory -R 100 * overcommit_memory06 overcommit_memory -R 200 mem.c:814

[PATCH 5/5] proc: use down_read_killable for /proc/pid/map_files

2019-05-15 Thread Konstantin Khlebnikov
It seems ->d_revalidate() could return any error (except ECHILD) to abort validation and pass error as result of lookup sequence. Signed-off-by: Konstantin Khlebnikov --- fs/proc/base.c | 27 +-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/fs/proc/bas

[PATCH 3/5] proc: use down_read_killable for /proc/pid/pagemap

2019-05-15 Thread Konstantin Khlebnikov
Ditto. Signed-off-by: Konstantin Khlebnikov --- fs/proc/task_mmu.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 781879a91e3b..78bed6adc62d 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c @@ -1547,7 +1547,9 @@ sta

Re: [PATCH v10 09/12] perf record: implement -z,--compression_level[=] option

2019-05-15 Thread Alexey Budankov
On 15.05.2019 0:46, Arnaldo Carvalho de Melo wrote: > Em Tue, May 14, 2019 at 05:20:41PM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Mon, Mar 18, 2019 at 08:44:42PM +0300, Alexey Budankov escreveu: >>> >>> Implemented -z,--compression_level[=] option that enables compression >>> of mmaped ker

Re: [PATCH] s390: move arch/s390/defconfig to arch/s390/configs/defconfig

2019-05-15 Thread Martin Schwidefsky
On Mon, 13 May 2019 11:11:16 +0900 Masahiro Yamada wrote: > As of Linux 5.1, alpha and s390 are the last architectures that > have defconfig in arch/*/ instead of arch/*/configs/. > > $ find arch -name defconfig | sort > arch/alpha/defconfig > arch/arm64/configs/defconfig > arch/csky/con

Re: [PATCH v4 1/3] arm64: defconfig: Enable CONFIG_ENERGY_MODEL

2019-05-15 Thread Daniel Lezcano
On 15/05/2019 10:23, Quentin Perret wrote: > The recently introduced Energy Model (EM) framework manages power cost > tables for the CPUs of the system. Its only user right now is the > scheduler, in the context of Energy Aware Scheduling (EAS). > > However, the EM framework also offers a generic

[PATCH v3] arm64: dts: ls1028a: Add esdhc node in dts

2019-05-15 Thread Yinbo Zhu
From: Ashish Kumar This patch is to add esdhc node and enable SD UHS-I, eMMC HS200 for ls1028ardb/ls1028aqds board. Signed-off-by: Ashish Kumar Signed-off-by: Yangbo Lu Signed-off-by: Yinbo Zhu --- Change in v3: replace "esdhc@" with "mmc@" arch/arm64/boot/dts/freescale/fsl-

Re: mm: use down_read_killable for locking mmap_sem in access_remote_vm

2019-05-15 Thread Konstantin Khlebnikov
On 15.05.2019 11:38, Michal Koutný wrote: Hi, making this holder of mmap_sem killable was for the reasons of /proc/... diagnostics was an idea I was pondeering too. However, I think the approach of pretending we read 0 bytes is not correct. The API would IMO need to be extended to allow pass a re

Re: [PATCH v20 00/28] Intel SGX1 support

2019-05-15 Thread Jarkko Sakkinen
On Tue, May 14, 2019 at 08:13:36AM -0700, Andy Lutomirski wrote: > On Tue, May 14, 2019 at 3:43 AM Jarkko Sakkinen > wrote: > > > > On Mon, May 13, 2019 at 01:29:26PM +0300, Jarkko Sakkinen wrote: > > > I did study through SDK's file format and realized that it does not > > > does make sense after

Re: [PATCH v3 2/4] mtd: rawnand: Add Macronix MX25F0A NAND controller

2019-05-15 Thread masonccyang
Hi Miquel, > > +// SPDX-License-Identifier: GPL-2.0 > > +// > > +// Copyright (C) 2019 Macronix International Co., Ltd. > > +// > > +// Authors: > > +// Mason Yang > > +// zhengxunli > > This is not a valid name. > > Also if he appears here I suppose he should be credited in the > module

Re: [PATCH -tip v9 0/6] tracing/probes: uaccess: Add support user-space access

2019-05-15 Thread Masami Hiramatsu
Hi Ingo, On Wed, 15 May 2019 07:55:34 +0200 Ingo Molnar wrote: > > * Masami Hiramatsu wrote: > > > Hi, > > > > Here is the v9 series of probe-event to support user-space access. > > Previous version is here. > > > > https://lkml.kernel.org/r/155741476971.28419.15837024173365724167.stgit@dev

Re: [PATCH RFC v2 0/4] mm/ksm: add option to automerge VMAs

2019-05-15 Thread Oleksandr Natalenko
On Wed, May 15, 2019 at 10:33:21AM +0200, Michal Hocko wrote: > > For my current setup with 2 Firefox instances I get 100 to 200 MiB saved > > for the second instance depending on the amount of tabs. > > What does prevent Firefox (an opensource project) to be updated to use > the explicit merging?

Re: [PATCH 0/19] v6 multi-die/package topology support

2019-05-15 Thread Peter Zijlstra
On Mon, May 13, 2019 at 01:58:44PM -0400, Len Brown wrote: > > This patch series does 4 things. > > 1. Parse the new CPUID.1F leaf to discover multi-die/package topology > > 2. Export multi-die topology inside the kernel > > 3. Update 4 places (coretemp, pkgtemp, rapl, perf) that that need to k

Re: [RFC PATCH] kbuild: check uniqueness of basename of modules

2019-05-15 Thread Masahiro Yamada
On Wed, May 15, 2019 at 5:14 PM Greg KH wrote: > > On Wed, May 15, 2019 at 10:08:12AM +0200, Arnd Bergmann wrote: > > On Wed, May 15, 2019 at 9:39 AM Masahiro Yamada > > wrote: > > > > > > In the recent build test of linux-next, Stephen saw a build error > > > caused by a broken .tmp_versions/*.m

Re: [PATCH] clk: Remove io.h from clk-provider.h

2019-05-15 Thread Tero Kristo
On 14/05/2019 20:09, Stephen Boyd wrote: Now that we've gotten rid of clk_readl() we can remove io.h from the clk-provider header and push out the io.h include to any code that isn't already including the io.h header but using things like readl/writel, etc. For drivers/clk/ti portions: Acked-

Re: [PATCH] nvme/pci: Use host managed power state for suspend

2019-05-15 Thread Rafael J. Wysocki
On Wed, May 15, 2019 at 12:21 AM Keith Busch wrote: > > On Tue, May 14, 2019 at 10:04:22AM +0200, Rafael J. Wysocki wrote: > > On Mon, May 13, 2019 at 5:10 PM Keith Busch wrote: > > > > > > On Mon, May 13, 2019 at 03:05:42PM +, mario.limoncie...@dell.com > > > wrote: > > > > This system powe

RE: [PATCH] vsprintf: Do not break early boot with probing addresses

2019-05-15 Thread David Laight
From: Petr Mladek > Sent: 15 May 2019 08:36 > On Tue 2019-05-14 14:37:51, Steven Rostedt wrote: > > > > [ Purple is a nice shade on the bike shed. ;-) ] > > > > On Tue, 14 May 2019 11:02:17 +0200 > > Geert Uytterhoeven wrote: > > > > > On Tue, May 14, 2019 at 10:29 AM David Laight > > > wrote: >

Re: [PATCH v2 1/3] perf vendor events arm64: Remove [[:xdigit:]] wildcard

2019-05-15 Thread John Garry
On 13/05/2019 21:25, Florian Fainelli wrote: ARM64's implementation of get_cpuidr_str() masks out the revision bits [3:0] while reading the CPU identifier, there is no need for the [[:xdigit:]] wildcard. Signed-off-by: Florian Fainelli --- tools/perf/pmu-events/arch/arm64/mapfile.csv | 2 +- 1

Re: [PATCH 1/5] proc: use down_read_killable for /proc/pid/maps

2019-05-15 Thread Cyrill Gorcunov
On Wed, May 15, 2019 at 11:41:12AM +0300, Konstantin Khlebnikov wrote: > Do not stuck forever if something wrong. > This function also used for /proc/pid/smaps. > > Signed-off-by: Konstantin Khlebnikov All patches in series look ok to me (actually I thought if there is a scenario where might_sle

Re: [PATCH v4 2/3] PM / EM: Expose perf domain struct

2019-05-15 Thread Daniel Lezcano
On 15/05/2019 10:23, Quentin Perret wrote: > In the current state, the perf_domain struct is fully defined only when > CONFIG_ENERGY_MODEL=y. Since we need to write code that compiles both > with or without that option in the thermal framework, make sure to > actually define the struct regardless o

Re: [RFC PATCH v1 6/6] soc/tegra: regulators: Add regulators coupler for Tegra30

2019-05-15 Thread Mark Brown
On Tue, May 14, 2019 at 09:30:05PM +0300, Dmitry Osipenko wrote: > 13.05.2019 20:40, Mark Brown пишет: > > The thing with OPPs is that they specify a whole table of values that > > work together including regulator settings, the result being that you > > have many fewer options but don't need to t

[PATCH 2/3] kselftest/cgroup: fix unexcepted testing failure on test_core

2019-05-15 Thread Alex Shi
The cgroup testing relys on the root cgroup's subtree_control setting, If the 'memory' controller isn't set, some test cases will be failed as following: $sudo ./test_core not ok 1 test_cgcore_internal_process_constraint ok 2 test_cgcore_top_down_constraint_enable not ok 3 test_cgcore_top_down_co

[PATCH 1/3] kselftest/cgroup: fix unexcepted testing failure on test_memcontrol

2019-05-15 Thread Alex Shi
The cgroup testing relys on the root cgroup's subtree_control setting, If the 'memory' controller isn't set, all test cases will be failed as following: $ sudo ./test_memcontrol not ok 1 test_memcg_subtree_control not ok 2 test_memcg_current ok 3 # skip test_memcg_min not ok 4 test_memcg_low not o

[PATCH 3/3] kselftest/cgroup: fix incorrect test_core skip

2019-05-15 Thread Alex Shi
The test_core will skip the test_cgcore_no_internal_process_constraint_on_threads test case if the 'cpu' controller missing in root's subtree_control. In fact we need to set the 'cpu' in subtree_control, then the testing is meaningful. ./test_core ... ok 4 # skip test_cgcore_no_internal_process_co

Re: [PATCH v4 2/3] PM / EM: Expose perf domain struct

2019-05-15 Thread Quentin Perret
Hi Daniel, On Wednesday 15 May 2019 at 11:06:18 (+0200), Daniel Lezcano wrote: > On 15/05/2019 10:23, Quentin Perret wrote: > > In the current state, the perf_domain struct is fully defined only when > > CONFIG_ENERGY_MODEL=y. Since we need to write code that compiles both > > with or without that

[PATCH] powerpc: Remove double free

2019-05-15 Thread Tobin C. Harding
kfree() after kobject_put(). Who ever wrote this was on crack. Fixes: 7e8039795a80 ("powerpc/cacheinfo: Fix kobject memleak") Signed-off-by: Tobin C. Harding --- FTR git log --pretty=format:"%h%x09%an%x09%ad%x09%s" | grep 7e8039795a80 7e8039795a80Tobin C. HardingTue Apr 30 11:09:23

Re: [PATCH 1/5] proc: use down_read_killable for /proc/pid/maps

2019-05-15 Thread Kirill Tkhai
On 15.05.2019 11:41, Konstantin Khlebnikov wrote: > Do not stuck forever if something wrong. > This function also used for /proc/pid/smaps. > > Signed-off-by: Konstantin Khlebnikov For the series: Reviewed-by: Kirill Tkhai > --- > fs/proc/task_mmu.c |6 +- > fs/proc/task_nommu.c |

Re: [PATCH] lightnvm: pblk: Fix freeing merged pages

2019-05-15 Thread Javier González
> On 15 May 2019, at 02.39, Heiner Litz wrote: > > bio_add_pc_page() may merge pages when a bio is padded due to a flush. > Fix iteration over the bio to free the correct pages in case of a merge. > > Signed-off-by: Heiner Litz > --- > drivers/lightnvm/pblk-core.c | 18 ++ > 1 fi

Re: [PATCH v7 10/13] selftests/resctrl: Add vendor detection mechanism

2019-05-15 Thread James Morse
Hi André, On 14/05/2019 20:40, André Przywara wrote: > On 14/05/2019 18:20, James Morse wrote: >> On 10/05/2019 18:39, Andre Przywara wrote: >>> On Sat, 9 Feb 2019 18:50:39 -0800 >>> Fenghua Yu wrote: From: Babu Moger RESCTRL feature is supported both on Intel and AMD now. Some f

Re: [PATCH] tty: serial_core: Fix the incorrect configuration of baud rate and data length at the console serial port resume

2019-05-15 Thread hhome liu
Johan Hovold 于2019年5月14日周二 下午3:35写道: > > On Thu, May 09, 2019 at 01:42:39PM +0800, Lanqing Liu wrote: > > When userspace opens a serial port for console, uart_port_startup() > > is called. This function assigns the uport->cons->cflag value to > > TTY->termios.c_cflag, then it is cleared to 0. Whe

Re: LTP: mm: overcommit_memory01, 03...06 failed

2019-05-15 Thread Jan Stancek
- Original Message - > ltp-mm-tests failed on Linux mainline kernel 5.1.0, > * overcommit_memory01 overcommit_memory > * overcommit_memory03 overcommit_memory -R 30 > * overcommit_memory04 overcommit_memory -R 80 > * overcommit_memory05 overcommit_memory -R 100 > * overcommit_

[PATCH 07/60] arm64: cpu_ops: fix a leaked reference by adding missing of_node_put

2019-05-15 Thread Jonathan Cameron
From: Wen Yang The call to of_get_next_child returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./arch/arm64/kernel/cpu_ops.c:102:1-7: ERROR: missing of_node_put; acquired a node po

Re: [PATCH v3 2/4] mtd: rawnand: Add Macronix MX25F0A NAND controller

2019-05-15 Thread masonccyang
Hi Miquel, Sorry, previous email missed this mxic_nand_data_xfer() reply. This Flash Memory Controller implemented the Buffer read-write data transfer for SPI mode and raw NAND mode. That is each time driver write to the transmit of the TXD port and the data is shifted out, new data is rec

Re: [PATCH v4 1/3] arm64: defconfig: Enable CONFIG_ENERGY_MODEL

2019-05-15 Thread Quentin Perret
On Wednesday 15 May 2019 at 10:46:09 (+0200), Daniel Lezcano wrote: > On 15/05/2019 10:23, Quentin Perret wrote: > > The recently introduced Energy Model (EM) framework manages power cost > > tables for the CPUs of the system. Its only user right now is the > > scheduler, in the context of Energy A

Re: [PATCH] clk: Remove io.h from clk-provider.h

2019-05-15 Thread John Crispin
On 14/05/2019 19:09, Stephen Boyd wrote: Now that we've gotten rid of clk_readl() we can remove io.h from the clk-provider header and push out the io.h include to any code that isn't already including the io.h header but using things like readl/writel, etc. for arch/mips/ath79/* Acked-by: Jo

Re: [PATCH] powerpc: Remove double free

2019-05-15 Thread Christophe Leroy
kobject_put() released index_dir->kobj but who will release 'index' ? Christophe Le 15/05/2019 à 11:07, Tobin C. Harding a écrit : kfree() after kobject_put(). Who ever wrote this was on crack. Fixes: 7e8039795a80 ("powerpc/cacheinfo: Fix kobject memleak") Signed-off-by: Tobin C. Harding --

[PATCH] mfd: stmfx: Uninitialized variable in stmfx_irq_handler()

2019-05-15 Thread Dan Carpenter
The problem is that on 64bit systems then we don't clear the higher bits of the "pending" variable. So when we do: ack = pending & ~BIT(STMFX_REG_IRQ_SRC_EN_GPIO); if (ack) { the if (ack) condition relies on uninitialized data. The fix it that I've changed "pending" from an unsi

[PATCH] test_firmware: Use correct snprintf() limit

2019-05-15 Thread Dan Carpenter
The limit here is supposed to be how much of the page is left, but it's just using PAGE_SIZE as the limit. The other thing to remember is that snprintf() returns the number of bytes which would have been copied if we had had enough room. So that means that if we run out of space then this code wo

Re: [PATCH V5 1/4] spi: tegra114: add support for gpio based CS

2019-05-15 Thread Mark Brown
On Tue, May 14, 2019 at 05:18:48PM +, Sowjanya Komatineni wrote: > Tegra SPI doesn’t support inter byte delay directly to meet some SPI slave > requirements. > So we use GPIO control CS in parallel with a dummy HW CS and use inactive > cycles delay of SPI controller to mimic inter byte delay

Re: [PATCH] clk: Remove io.h from clk-provider.h

2019-05-15 Thread Heiko Stuebner
Am Dienstag, 14. Mai 2019, 19:09:31 CEST schrieb Stephen Boyd: > Now that we've gotten rid of clk_readl() we can remove io.h from the > clk-provider header and push out the io.h include to any code that isn't > already including the io.h header but using things like readl/writel, > etc. > > Found

Re: [PATCH] perf/ring_buffer: Fix exposing a temporarily decreased data_head.

2019-05-15 Thread Peter Zijlstra
On Wed, May 15, 2019 at 09:51:07AM +0300, Alexander Shishkin wrote: > Yabin Cui writes: > > > diff --git a/kernel/events/ring_buffer.c b/kernel/events/ring_buffer.c > > index 674b35383491..0b9aefe13b04 100644 > > --- a/kernel/events/ring_buffer.c > > +++ b/kernel/events/ring_buffer.c > > @@ -54,8

[PATCH v9 01/16] sched/core: uclamp: Add CPU's clamp buckets refcounting

2019-05-15 Thread Patrick Bellasi
Utilization clamping allows to clamp the CPU's utilization within a [util_min, util_max] range, depending on the set of RUNNABLE tasks on that CPU. Each task references two "clamp buckets" defining its minimum and maximum (util_{min,max}) utilization "clamp values". A CPU's clamp bucket is active i

[PATCH] dt-bindings: thermal: Make cooling-maps property optional

2019-05-15 Thread Yuantian Tang
There may be no cooling device on system, or there are no enough cooling devices for each thermal zone in multiple thermal zone cases since cooling devices can't be shared. So make this property optional to remove such limitations. Signed-off-by: Yuantian Tang --- .../devicetree/bindings/thermal

  1   2   3   4   5   6   7   8   9   10   >