Re: [PATCH] nohz: Fix missing tick reprog while interrupting inline timer softirq

2018-08-24 Thread Thomas Gleixner
On Fri, 24 Aug 2018, Greg KH wrote: > On Thu, Aug 23, 2018 at 05:57:06PM -0500, Grygorii Strashko wrote: > > This patch was back ported to the Stable linux-4.14.y and It causes > > regression - > > flood of "NOHZ: local_softirq_pending" messages on all TI boards during > > boot (NFS boot): > >

RE: [PATCH] thermal: of-thermal: disable passive polling when thermal zone is disabled

2018-08-24 Thread Anson Huang
Gentle Ping... Anson Huang Best Regards! > -Original Message- > From: Anson Huang > Sent: Tuesday, July 31, 2018 12:57 AM > To: rui.zh...@intel.com; edubez...@gmail.com; linux...@vger.kernel.org; > linux-kernel@vger.kernel.org > Cc: dl-linux-imx ; Nitin Garg > Subject: [PATCH] thermal:

Re: [PATCH] x86/speculation/l1tf: suggest what to do on systems with too much RAM

2018-08-24 Thread Vlastimil Babka
On 08/23/2018 09:27 PM, Michal Hocko wrote: > On Thu 23-08-18 16:28:12, Vlastimil Babka wrote: >> Two users have reported [1] that they have an "extremely unlikely" system >> with more than MAX_PA/2 memory and L1TF mitigation is not effective. Let's >> make the warning more helpful by suggesting th

[PATCH v2 2/2] PCI: meson: add the Amlogic Meson PCIe controller driver

2018-08-24 Thread Hanjie Lin
From: Yue Wang The Amlogic Meson PCIe host controller is based on the Synopsys DesignWare PCI core. This patch adds the driver support for Meson PCIe controller. Signed-off-by: Yue Wang Signed-off-by: Hanjie Lin --- drivers/pci/controller/dwc/Kconfig | 12 + drivers/pci/controller/dwc/Ma

[PATCH v2 0/2] add the Amlogic Meson PCIe controller driver.

2018-08-24 Thread Hanjie Lin
The Amlogic Meson PCIe host controller is based on the Synopsys DesignWare PCI core. This patchset add the driver and dt-bindings of the controller. Changes since v1: [0] - use gpio lib instead open code - move 'apb' and 'port' reset from phy driver - format correcting [0] : https://lkml.org/l

[PATCH v2 1/2] dt-bindings: PCI: meson: add DT bindings for Amlogic Meson PCIe controller

2018-08-24 Thread Hanjie Lin
From: Yue Wang The Amlogic Meson PCIe host controller is based on the Synopsys DesignWare PCI core. This patch adds documentation for the DT bindings in Meson PCIe controller. Signed-off-by: Yue Wang Signed-off-by: Hanjie Lin --- .../devicetree/bindings/pci/amlogic,meson-pcie.txt | 63 +++

Re: [PATCH v6 3/5] clk: imx: add SCCG PLL type

2018-08-24 Thread Sascha Hauer
+Cc Andrey Smirnov who made me aware of this issue. On Wed, Aug 22, 2018 at 04:48:21PM +0300, Abel Vesa wrote: > From: Lucas Stach > > The SCCG is a new PLL type introduced on i.MX8. Add support for this. > The driver currently misses the PLL lock check, as the preliminary > documentation mentio

[GIT PULL] s390 patches for the 4.19 merge window #2

2018-08-24 Thread Martin Schwidefsky
Hi Linus, please pull from the 'for-linus' branch of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus to receive the following updates: - A couple of patches for the zcrypt driver + Add two masks to determine which AP cards and queues are host devices, this w

Re: [PATCH v6 4/5] clk: imx: add imx composite clock

2018-08-24 Thread Sascha Hauer
On Wed, Aug 22, 2018 at 04:48:22PM +0300, Abel Vesa wrote: > Since a lot of clocks on imx8 are formed by a mux, gate, predivider and > divider, the idea here is to combine all of those into one composite clock, > but we need to deal with both predivider and divider at the same time and > therefore

Re: [PATCH v2 1/3] mm: rework memcg kernel stack accounting

2018-08-24 Thread Michal Hocko
On Thu 23-08-18 09:23:50, Roman Gushchin wrote: > On Wed, Aug 22, 2018 at 04:12:13PM +0200, Michal Hocko wrote: [...] > > > @@ -248,9 +253,20 @@ static unsigned long *alloc_thread_stack_node(struct > > > task_struct *tsk, int node) > > > static inline void free_thread_stack(struct task_struct *ts

[tip:x86/urgent] x86/speculation/l1tf: Fix off-by-one error when warning that system has too much RAM

2018-08-24 Thread tip-bot for Vlastimil Babka
Commit-ID: b0a182f875689647b014bc01d36b340217792852 Gitweb: https://git.kernel.org/tip/b0a182f875689647b014bc01d36b340217792852 Author: Vlastimil Babka AuthorDate: Thu, 23 Aug 2018 15:44:18 +0200 Committer: Thomas Gleixner CommitDate: Fri, 24 Aug 2018 09:51:14 +0200 x86/speculation/l1t

[tip:x86/urgent] x86/speculation/l1tf: Suggest what to do on systems with too much RAM

2018-08-24 Thread tip-bot for Vlastimil Babka
Commit-ID: 4b81eae3d37dee69231592182e1e34706f149a6e Gitweb: https://git.kernel.org/tip/4b81eae3d37dee69231592182e1e34706f149a6e Author: Vlastimil Babka AuthorDate: Thu, 23 Aug 2018 16:21:29 +0200 Committer: Thomas Gleixner CommitDate: Fri, 24 Aug 2018 09:51:14 +0200 x86/speculation/l1t

Re: [BUGFIX PATCH -tip] kprobes/x86: Fix to copy RIP relative instruction correctly

2018-08-24 Thread Masami Hiramatsu
On Thu, 23 Aug 2018 21:41:09 -0400 Steven Rostedt wrote: > On Fri, 24 Aug 2018 02:16:12 +0900 > Masami Hiramatsu wrote: > > > Dump of assembler code from 0xa000207a to 0xa00020ea: > > 54 push %rsp > > ... > > 48 83 c4 08 add$0x8,%rsp > > 9d popfq

Re: [PATCH] mm/hugetlb: filter out hugetlb pages if HUGEPAGE migration is not supported.

2018-08-24 Thread Michal Hocko
On Fri 24-08-18 12:03:14, Aneesh Kumar K.V wrote: > When scanning for movable pages, filter out Hugetlb pages if hugepage > migration > is not supported. Without this we hit infinte loop in __offline pages where we > do > pfn = scan_movable_pages(start_pfn, end_pfn); > if (pfn) { /* We

Re: [PATCH v6 5/5] clk: imx: add clock driver for i.MX8MQ CCM

2018-08-24 Thread Sascha Hauer
On Wed, Aug 22, 2018 at 04:48:23PM +0300, Abel Vesa wrote: > From: Lucas Stach > > Add driver for the Clock Control Module found on i.MX8MQ. > > This is largely based on the downstream driver from Anson Huang and > Bai Ping at NXP, with only some small adaptions to mainline from me. It's time t

Re: [PATCH] perf annotate: fix parsing aarch64 branch instructions after objdump update

2018-08-24 Thread Thomas-Mich Richter
On 08/24/2018 02:10 AM, Kim Phillips wrote: > Starting with binutils 2.28, aarch64 objdump adds comments to the > disassembly output to show the alternative names of a condition code [1]. > > It is assumed that commas in objdump comments could occur in other arches > now or in the future, so this

Re: Fix 80d20d35af1e ("nohz: Fix local_timer_softirq_pending()") may have revealed another problem

2018-08-24 Thread Thomas Gleixner
On Fri, 24 Aug 2018, Heiner Kallweit wrote: > On 24.08.2018 06:12, Frederic Weisbecker wrote: > > On Thu, Aug 16, 2018 at 08:13:03AM +0200, Heiner Kallweit wrote: > >> Recently I started to get warning "NOHZ: local_softirq_pending 202" and > >> I think it's related to mentioned commit (didn't bisec

Re: [RFC PATCH 0/2] minor mmu_gather patches

2018-08-24 Thread Peter Zijlstra
On Thu, Aug 23, 2018 at 12:15:37PM -0700, Linus Torvalds wrote: > PeterZ - your "mm/tlb, x86/mm: Support invalidating TLB caches for > RCU_TABLE_FREE" patch looks exactly the same, but it now no longer has > the split of tlb_flush_mmu_tlbonly(), since with Nick's patch to move > the call to tlb_tab

Re: [PATCH v1] KVM: s390: store DXC/VXC in fpc on DATA/Vector-processing exceptions

2018-08-24 Thread David Hildenbrand
On 24.08.2018 08:34, Christian Borntraeger wrote: > > > On 08/23/2018 07:44 PM, David Hildenbrand wrote: >> On 23.08.2018 17:43, Christian Borntraeger wrote: >>> >>> >>> On 08/22/2018 11:53 AM, David Hildenbrand wrote: When DATA exceptions and vector-processing exceptions (program interrupts

Re: linux-next: build warnings from the build of Linus' tree

2018-08-24 Thread Masami Hiramatsu
On Fri, 24 Aug 2018 13:32:06 +1000 Stephen Rothwell wrote: > Hi all, > > After merging the origin tree, today's linux-next build (powerpc > allyesconfig) produced these warnings: > > ld: warning: orphan section `.data..LPBX1' from > `kernel/trace/trace_selftest_dynamic.o' being placed in secti

Re: [PATCH RESEND v1 2/5] drivers: pinctrl: msm: enable PDC interrupt only during suspend

2018-08-24 Thread Stephen Boyd
Quoting Lina Iyer (2018-08-17 12:10:23) > During suspend the system may power down some of the system rails. As a > result, the TLMM hw block may not be operational anymore and wakeup > capable GPIOs will not be detected. The PDC however will be operational > and the GPIOs that are routed to the PD

Re: [PATCH v2 2/2] PCI: meson: add the Amlogic Meson PCIe controller driver

2018-08-24 Thread Jerome Brunet
On Fri, 2018-08-24 at 15:36 +0800, Hanjie Lin wrote: > From: Yue Wang > > The Amlogic Meson PCIe host controller is based on the Synopsys DesignWare > PCI core. This patch adds the driver support for Meson PCIe controller. > > Signed-off-by: Yue Wang > Signed-off-by: Hanjie Lin > --- > driver

Re: [PATCH v2 1/2] dt-bindings: PCI: meson: add DT bindings for Amlogic Meson PCIe controller

2018-08-24 Thread Jerome Brunet
On Fri, 2018-08-24 at 15:36 +0800, Hanjie Lin wrote: > From: Yue Wang > > The Amlogic Meson PCIe host controller is based on the Synopsys DesignWare > PCI core. This patch adds documentation for the DT bindings in Meson PCIe > controller. > > Signed-off-by: Yue Wang > Signed-off-by: Hanjie Lin

Re: [PATCH 1/2] Revert "x86/e820: put !E820_TYPE_RAM regions into memblock.reserved"

2018-08-24 Thread Michal Hocko
On Fri 24-08-18 00:03:25, Naoya Horiguchi wrote: > (CCed related people) Fixup Pavel email. > > Hi Mizuma-san, > > Thank you for the report. > The mentioned patch was created based on feedbacks from reviewers/maintainers, > so I'd like to hear from them about how we should handle the issue. >

Re: [PATCH v8 07/26] PM / Domains: Add genpd governor for CPUs

2018-08-24 Thread Ulf Hansson
On 6 August 2018 at 11:20, Rafael J. Wysocki wrote: > On Fri, Aug 3, 2018 at 4:28 PM, Ulf Hansson wrote: >> On 26 July 2018 at 11:14, Rafael J. Wysocki wrote: >>> On Thursday, July 19, 2018 12:32:52 PM CEST Rafael J. Wysocki wrote: On Wednesday, June 20, 2018 7:22:07 PM CEST Ulf Hansson wro

Re: [PATCH 3/4] mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE

2018-08-24 Thread Peter Zijlstra
On Thu, Aug 23, 2018 at 02:54:20PM +1000, Benjamin Herrenschmidt wrote: > On Wed, 2018-08-22 at 20:59 -0700, Linus Torvalds wrote: > > The problem is that x86 _used_ to do this all correctly long long ago. > > > > And then we switched over to the "generic" table flushing (which > > harkens back t

[PATCH] riscv: move GCC version check for ARCH_SUPPORTS_INT128 to Kconfig

2018-08-24 Thread Masahiro Yamada
This becomes much neater in Kconfig. Signed-off-by: Masahiro Yamada --- arch/riscv/Kconfig | 1 + arch/riscv/Makefile | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index a344980..ed81df4 100644 --- a/arch/riscv/Kconfig +++ b/arch/

Re: [PATCH v6 1/2] mm: migration: fix migration of huge PMD shared pages

2018-08-24 Thread Michal Hocko
On Thu 23-08-18 13:59:16, Mike Kravetz wrote: > The page migration code employs try_to_unmap() to try and unmap the > source page. This is accomplished by using rmap_walk to find all > vmas where the page is mapped. This search stops when page mapcount > is zero. For shared PMD huge pages, the p

Re: [PATCH 2/4] mm/tlb: Remove tlb_remove_table() non-concurrent condition

2018-08-24 Thread Peter Zijlstra
On Wed, Aug 22, 2018 at 09:54:48PM -0700, Linus Torvalds wrote: > It honored it for the *normal* case, which is why it took so long to > notice that the TLB shootdown had been broken on x86 when it moved to > the "generic" code. The *normal* case does this all right, and batches > things up, and t

Re: [PATCH 3/4] mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE

2018-08-24 Thread Peter Zijlstra
On Thu, Aug 23, 2018 at 02:39:59PM +0100, Will Deacon wrote: > The only problem with this approach is that we've lost track of the granule > size by the point we get to the tlb_flush(), so we can't adjust the stride of > the TLB invalidations for huge mappings, which actually works nicely in the >

Re: [PATCH] mm/hugetlb: filter out hugetlb pages if HUGEPAGE migration is not supported.

2018-08-24 Thread Naoya Horiguchi
On Fri, Aug 24, 2018 at 09:58:15AM +0200, Michal Hocko wrote: > On Fri 24-08-18 12:03:14, Aneesh Kumar K.V wrote: > > When scanning for movable pages, filter out Hugetlb pages if hugepage > > migration > > is not supported. Without this we hit infinte loop in __offline pages where > > we > > do >

Re: [perf] perf_event.h ABI visibility question

2018-08-24 Thread Peter Zijlstra
On Thu, Aug 23, 2018 at 02:25:06PM -0400, Vince Weaver wrote: > > I notice that Linux 4.18 has the following changeset which changes the > user visible perf_event.h file > > commit 6cbc304f2f360f25cc8607817239d6f4a2fd3dc5 > Author: Peter Zijlstra > Date: Thu May 10 15:48:41 2

Re: [PATCH] perf: Force USER_DS when recording user stack data.

2018-08-24 Thread Peter Zijlstra
On Thu, Aug 23, 2018 at 03:59:35PM -0700, Yabin Cui wrote: > Perf can record user stack data in response to a synchronous request, such > as a tracepoint firing. If this happens under set_fs(KERNEL_DS), then we > end up reading user stack data using __copy_from_user_inatomic() under > set_fs(KERNEL

Re: [PATCH] x86/speculation/l1tf: fix off-by-one error when warning that system has too much RAM

2018-08-24 Thread George Anchev
On Thu, 23 Aug 2018 08:44:37 -0700 Andi Kleen wrote: > Ah I see it's a client part with very large DIMMs > and someone being very brave and using that much > memory without ECC. It is not about being "brave" but about being informed. As of 2018 you can probably call "brave" everyone who uses any

Re: [PATCH v2 0/8] Tegra SDHCI support HS400 on Tegra210 and Tegra186

2018-08-24 Thread Thierry Reding
On Fri, Aug 10, 2018 at 09:13:57PM +0300, Aapo Vienamo wrote: > Hi all, > This series implements support for HS400 signaling on Tegra210 and > Tegra186. This includes programming the DQS trimmer values, implementing > enhanced strobe and HS400 delay line calibration. > > This series depends on the

[PATCH] Bluetooth: bt3c_cs: Fix obsolete function

2018-08-24 Thread Ding Xiang
simple_strtol and simple_strtoul are obsolete, both place use kstrtoul instead. Signed-off-by: Ding Xiang --- drivers/bluetooth/bt3c_cs.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.c index 25b0cf9..5e4800

Re: [PATCH 1/4] mfd: sec-core: Add SPDX license identifiers

2018-08-24 Thread Lee Jones
On Tue, 07 Aug 2018, Krzysztof Kozlowski wrote: > Replace GPL v2.0+ license statements with SPDX license identifiers. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/mfd/sec-core.c | 16 > drivers/mfd/sec-irq.c | 16 > include/

Re: [PATCH 2/4] mfd: maxim: Add SPDX license identifiers

2018-08-24 Thread Lee Jones
On Tue, 07 Aug 2018, Krzysztof Kozlowski wrote: > Replace GPL v2.0+ license statements with SPDX license identifiers. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/mfd/max14577.c | 28 +--- > drivers/mfd/max77686.c | 32 +-

[PATCH V6 0/9] mmc: add support for sdhci 4.0

2018-08-24 Thread Chunyan Zhang
>From the SD host controller version 4.0 on, SDHCI implementation either is version 3 compatible or version 4 mode. This patch-set covers those changes which are common for SDHCI 4.0 version, regardless of whether they are used with SD or eMMC storage devices. This patchset also added a new sdhci

Re: [PATCH 3/4] mfd: sec-core: Fix indentation of Kconfig description

2018-08-24 Thread Lee Jones
On Tue, 07 Aug 2018, Krzysztof Kozlowski wrote: > The indentation should be a tab followed by two spaces. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/mfd/Kconfig | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) Applied, thanks. -- Lee Jones [李琼斯] Linaro Services Tec

[PATCH V6 1/9] mmc: sdhci: Add version V4 definition

2018-08-24 Thread Chunyan Zhang
Added definitions for v400, v410, v420. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 2 +- drivers/mmc/host/sdhci.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 8793340..f70135c 100644 --- a/driver

Re: [PATCH 4/4] mfd: sec-core: Allow building as module

2018-08-24 Thread Lee Jones
On Tue, 07 Aug 2018, Krzysztof Kozlowski wrote: > The main MFD driver for Samsung PMICs (S2MPSXX, S5M876X) used with > Exynos SoCs can be compiled and used as a module. The dependent clock, > regulator and RTC drivers already can be built as a module. > > Building entire set of drivers as module

[PATCH V6 2/9] mmc: sdhci: Add sd host v4 mode

2018-08-24 Thread Chunyan Zhang
For SD host controller version 4.00 or later ones, there're two modes of implementation - Version 3.00 compatible mode or Version 4 mode. This patch introduced an interface to enable v4 mode. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 29 + drivers/m

[PATCH V6 4/9] mmc: sdhci: Add ADMA2 64-bit addressing support for V4 mode

2018-08-24 Thread Chunyan Zhang
ADMA2 64-bit addressing support is divided into V3 mode and V4 mode. So there are two kinds of descriptors for ADMA2 64-bit addressing i.e. 96-bit Descriptor for V3 mode, and 128-bit Descriptor for V4 mode. 128-bit Descriptor is aligned to 8-byte. For V4 mode, ADMA2 64-bit addressing is enabled vi

[PATCH V6 6/9] mmc: sdhci: Add Auto CMD Auto Select support

2018-08-24 Thread Chunyan Zhang
As SD Host Controller Specification v4.10 documents: Host Controller Version 4.10 defines this "Auto CMD Auto Select" mode. Selection of Auto CMD depends on setting of CMD23 Enable in the Host Control 2 register which indicates whether card supports CMD23. If CMD23 Enable =1, Auto CMD23 is used and

[PATCH V6 5/9] mmc: sdhci: Add 32-bit block count support for v4 mode

2018-08-24 Thread Chunyan Zhang
Host Controller Version 4.10 re-defines SDMA System Address register as 32-bit Block Count for v4 mode, and SDMA uses ADMA System Address register (05Fh-058h) instead if v4 mode is enabled. Also when using 32-bit block count, 16-bit block count register need to be set to zero. Since using 32-bit B

[PATCH V6 3/9] mmc: sdhci: Change SDMA address register for v4 mode

2018-08-24 Thread Chunyan Zhang
According to the SD host controller specification version 4.10, when Host Version 4 is enabled, SDMA uses ADMA System Address register (05Fh-058h) instead of using SDMA System Address register to support both 32-bit and 64-bit addressing. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c

[PATCH V6 9/9] dt-bindings: sdhci-sprd: Add bindings for the sdhci-sprd controller

2018-08-24 Thread Chunyan Zhang
From: Chunyan Zhang This patch adds the device-tree binding documentation for Spreadtrum SDHCI driver. Signed-off-by: Chunyan Zhang --- .../devicetree/bindings/mmc/sdhci-sprd.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/

[PATCH V6 7/9] mmc: sdhci: SDMA may use Auto-CMD23 in v4 mode

2018-08-24 Thread Chunyan Zhang
When Host Version 4 Enable is set to 1, SDMA uses ADMA System Address register (05Fh-058h) instead of using register (000h-004h) to indicate its system address of data location. The register (000h-004h) is re-assigned to 32-bit Block Count and Auto CMD23 argument, so then SDMA may use Auto CMD23.

[PATCH V6 8/9] mmc: sdhci-sprd: Add Spreadtrum's initial host controller

2018-08-24 Thread Chunyan Zhang
From: Chunyan Zhang This patch adds the initial support of Secure Digital Host Controller Interface compliant controller found in some latest Spreadtrum chipsets. This patch has been tested on the version of SPRD-R11 controller. R11 is a variant based on SD v4.0 specification. With this driver,

[PATCH v1] tools/vm/page-types.c: fix "defined but not used" warning

2018-08-24 Thread Naoya Horiguchi
debugfs_known_mountpoints[] is not used any more, so let's remove it. Signed-off-by: Naoya Horiguchi --- tools/vm/page-types.c | 6 -- 1 file changed, 6 deletions(-) diff --git v4.18-mmotm-2018-08-17-15-48/tools/vm/page-types.c v4.18-mmotm-2018-08-17-15-48_patched/tools/vm/page-types.c ind

Re: [PATCH v6 1/2] mm: migration: fix migration of huge PMD shared pages

2018-08-24 Thread Michal Hocko
On Thu 23-08-18 13:59:16, Mike Kravetz wrote: [...] > @@ -1409,6 +1419,32 @@ static bool try_to_unmap_one(struct page *page, struct > vm_area_struct *vma, > subpage = page - page_to_pfn(page) + pte_pfn(*pvmw.pte); > address = pvmw.address; > > + if (PageHu

[PATCH v2 0/2] drm/atmel-hlcdc: revise selection of pixel-clock frequency divider

2018-08-24 Thread Peter Rosin
Hi! Some background can be found here: https://lists.freedesktop.org/archives/dri-devel/2018-August/187182.html The "10 times" discriminator in patch 2/2 can certainly be discussed... Cheers, Peter Changes since v1https://lkml.org/lkml/2018/8/24/187 - added {} to an if body for symmetry -

[PATCH v2 1/2] drm/atmel-hlcdc: prefer a higher rate clock as pixel-clock base

2018-08-24 Thread Peter Rosin
If the divider used to get the pixel-clock is small, the granularity of the frequencies possible for the pixel-clock is quite coarse. E.g. requesting a pixel-clock of 65MHz with a sys_clk of 132MHz results in the divider being set to 3 ending up with 44MHz. By preferring the doubled sys_clk as bas

Re: [PATCH v8 07/26] PM / Domains: Add genpd governor for CPUs

2018-08-24 Thread Ulf Hansson
On 9 August 2018 at 17:39, Lorenzo Pieralisi wrote: > On Mon, Aug 06, 2018 at 11:20:59AM +0200, Rafael J. Wysocki wrote: > > [...] > >> >>> > @@ -245,6 +248,56 @@ static bool always_on_power_down_ok(struct >> >>> > dev_pm_domain *domain) >> >>> > return false; >> >>> > } >> >>> > >> >>> > +s

[GIT PULL] namespace fixes for v4.19-rc1

2018-08-24 Thread Eric W. Biederman
Linus, Please pull the userns-linus branch from the git tree: git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git userns-linus HEAD: 82c9a927bc5df6e06b72d206d24a9d10cced4eb5 getxattr: use correct xattr length This is a set of 4 fairly obvious bug fixes. A switch f

[PATCH v1] tools/vm/slabinfo.c: fix sign-compare warning

2018-08-24 Thread Naoya Horiguchi
Currently we get the following compiler warning: slabinfo.c:854:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (s->object_size < min_objsize) ^ due to the mismatch of signed/unsigned comparison. ->object_size and -

[PATCH V2] Bluetooth: bt3c_cs: Fix obsolete function

2018-08-24 Thread Ding Xiang
simple_strtol and simple_strtoul are obsolete, both place use kstrtoul instead. V2: fix error tmp += tn Signed-off-by: Ding Xiang --- drivers/bluetooth/bt3c_cs.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.

[GIT PULL] Urgent ACPI Kconfig fix for v4.19-rc1

2018-08-24 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-4.19-rc1-3 with top-most commit f5d707ede37a962bc3cb9b3f8531a870dae29e46 ACPI: fix menuconfig presentation of ACPI submenu on top of commit df2def49c57b4146520a1f4ca37bc3f494e2cd67

Re: [PATCH] sched/fair: vruntime should normalize when switching from fair

2018-08-24 Thread Peter Zijlstra
On Mon, Aug 20, 2018 at 04:54:25PM -0700, Miguel de Dios wrote: > On 08/17/2018 11:27 AM, Steve Muckle wrote: > > From: John Dias > > > > When rt_mutex_setprio changes a task's scheduling class to RT, > > we're seeing cases where the task's vruntime is not updated > > correctly upon return to the

Re: [PATCH] cpuidle: menu: Retain tick when shallow state is selected

2018-08-24 Thread Rafael J. Wysocki
On Tuesday, August 21, 2018 10:44:10 AM CEST Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The case addressed by commit 5ef499cd571c (cpuidle: menu: Handle > stopped tick more aggressively) in the stopped tick case is present > when the tick has not been stopped yet too. Namely, if only

Re: [RFC PATCH] EDAC, ghes: Enable per-layer error reporting for ARM

2018-08-24 Thread James Morse
Hi Tyler, On 23/08/18 16:46, Tyler Baicar wrote: > On Thu, Aug 23, 2018 at 5:29 AM James Morse wrote: >> On 19/07/18 19:36, Tyler Baicar wrote: >>> On 7/19/2018 10:46 AM, James Morse wrote: On 19/07/18 15:01, Borislav Petkov wrote: > On Mon, Jul 16, 2018 at 01:26:49PM -0400, Tyler Baicar

[PATCH 1/2] iio: adc: sc27xx: Add raw data support

2018-08-24 Thread Baolin Wang
The headset device will use channel 20 of ADC controller to detect events, but it needs the raw ADC data to do conversion according to its own formula. Thus we should configure the channel mask separately and configure channel 20 as IIO_CHAN_INFO_RAW, as well as adding raw data read support. Sign

[PATCH 2/2] iio: adc: sc27xx: Add ADC scale calibration

2018-08-24 Thread Baolin Wang
This patch adds support to read calibration values from the eFuse controller to calibrate the ADC channel scales, which can make ADC sample data more accurate. Signed-off-by: Baolin Wang --- .../bindings/iio/adc/sprd,sc27xx-adc.txt |4 ++ drivers/iio/adc/sc27xx_adc.c

Re: [PATCH v5 1/2] dt-bindings: leds: Add bindings for lm3697 driver

2018-08-24 Thread Pavel Machek
On Fri 2018-08-17 10:15:27, Dan Murphy wrote: > Add the device tree bindings for the lm3697 > LED driver for backlighting and display. > > Signed-off-by: Dan Murphy Acked-by: Pavel Machek Some nits are below. > +The LM3697 11-bit LED driver provides high- > +performance backlight dimming for

Re: [PATCH] sched/fair: vruntime should normalize when switching from fair

2018-08-24 Thread Peter Zijlstra
> > On 08/17/2018 11:27 AM, Steve Muckle wrote: > > > When rt_mutex_setprio changes a task's scheduling class to RT, > > > we're seeing cases where the task's vruntime is not updated > > > correctly upon return to the fair class. > > > Specifically, the following is being observed: > > > - task i

[PATCH] arm64: dts: rockchip: Add idle-states to device tree for rk3399

2018-08-24 Thread Tony Xie
Tony Xie (1): arm64: dts: rockchip: Add idle-states to device tree for rk3399 arch/arm64/boot/dts/rockchip/rk3399.dtsi | 28 1 file changed, 28 insertions(+) -- 1.9.1

[PATCH] arm64: dts: rockchip: Add idle-states to device tree for rk3399

2018-08-24 Thread Tony Xie
Signed-off-by: Tony Xie --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index e0040b6..49fb57f 100644 --- a/arch/arm64/boot/dts/rockc

Re: [PATCH v5 2/2] leds: lm3697: Introduce the lm3697 driver

2018-08-24 Thread Pavel Machek
Hi! > +/** > + * struct lm3697 - > + * @enable_gpio - Hardware enable gpio > + * @regulator - LED supply regulator pointer > + * @client - Pointer to the I2C client > + * @regmap - Devices register map > + * @dev - Pointer to the devices device struct > + * @lock - Lock for reading/writing the dev

Re: [PATCH] Input: elants_i2c - Fix sw reset delays

2018-08-24 Thread Andi Shyti
Hi Derek, > > > On Thu, Aug 23, 2018 at 04:10:13PM -0700, Derek Basehore wrote: > > > > We only need to wait 10ms instead of 30ms before starting fastboot or > > > > sending IAP on the touchscreen. Also, instead of delaying everytime > > > > sw_reset is called, this delays 10ms in the function tha

Re: [PATCH] staging: greybus: Fix null pointer dereference

2018-08-24 Thread Ding Xiang
Hi, Johan     sorry, it's my fault. On 8/24/2018 2:29 PM, Johan Hovold wrote: On Fri, Aug 24, 2018 at 12:07:11AM -0400, Ding Xiang wrote: If fw is null then fw->size will trigger null pointer dereference Signed-off-by: Ding Xiang --- drivers/staging/greybus/bootrom.c | 2 +- 1 file chang

Re: [PATCH v5 1/2] leds: core: Introduce LED pattern trigger

2018-08-24 Thread Pavel Machek
Hi! > I think that it would be more flexible if software pattern fallback > was applied in case of pattern_set failure. Otherwise, it would > lead to the situation where LED class devices that support hardware > blinking couldn't be applied the same set of patterns as LED class > devices that don'

Re: [PATCH] staging: greybus: Fix null pointer dereference

2018-08-24 Thread Dan Carpenter
On Fri, Aug 24, 2018 at 12:07:11AM -0400, Ding Xiang wrote: > If fw is null then fw->size will trigger null pointer dereference > > Signed-off-by: Ding Xiang > --- > drivers/staging/greybus/bootrom.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/greybu

Re: [PATCH v9 21/22] KVM: s390: CPU model support for AP virtualization

2018-08-24 Thread Halil Pasic
On 08/23/2018 07:40 PM, David Hildenbrand wrote: On 23.08.2018 19:35, Tony Krowiak wrote: On 08/23/2018 10:59 AM, Pierre Morel wrote: On 23/08/2018 15:38, David Hildenbrand wrote: On 23.08.2018 15:22, Halil Pasic wrote: On 08/23/2018 02:47 PM, Pierre Morel wrote: On 23/08/2018 13:12, Da

[PATCH V5 3/8] backlight: qcom-wled: Add new properties for PMI8998

2018-08-24 Thread Kiran Gunda
Update the bindings with the new properties used for PMI8998. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson --- Changes from V3: - Removed the default values. - Removed pmi8998 example. Changes from V4: - modified qcom,e

[PATCH V5 2/8] backlight: qcom-wled: restructure the qcom-wled bindings

2018-08-24 Thread Kiran Gunda
Restructure the qcom-wled bindings for the better readability. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson --- Changes from V3: Added Reviewed-by and Acked-by tags. Changes from V4: None .../bindings/leds/backlight/qcom-

[PATCH V5 7/8] backlight: qcom-wled: add support for short circuit handling

2018-08-24 Thread Kiran Gunda
Handle the short circuit interrupt and check if the short circuit interrupt is valid. Re-enable the module to check if it goes away. Disable the module altogether if the short circuit event persists. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson --- Changes from V3: - Added Reviewe

[PATCH] tpm: factor out TPM 1.x duration calculation to tpm1-cmd.c

2018-08-24 Thread Jarkko Sakkinen
From: Tomas Winkler Factor out TPM 1.x commands calculation into tpm1-cmd.c file and change the prefix from "tpm_" to "tpm1_". No functional changes are done here. Signed-off-by: Tomas Winkler Reviewed-by: Jarkko Sakkinen --- Applied Tomas' patch with "patch -p1 -u", added SPDIX header and fix

Re: [PATCH] x86/speculation/l1tf: suggest what to do on systems with too much RAM

2018-08-24 Thread Vlastimil Babka
On 08/24/2018 09:32 AM, Vlastimil Babka wrote: > On 08/23/2018 09:27 PM, Michal Hocko wrote: >> On Thu 23-08-18 16:28:12, Vlastimil Babka wrote: >>> Two users have reported [1] that they have an "extremely unlikely" system >>> with more than MAX_PA/2 memory and L1TF mitigation is not effective. Let

Re: [PATCH v8 07/26] PM / Domains: Add genpd governor for CPUs

2018-08-24 Thread Lorenzo Pieralisi
On Fri, Aug 24, 2018 at 11:26:19AM +0200, Ulf Hansson wrote: [...] > > That's a good question and it maybe gives a path towards a solution. > > > > AFAICS the genPD governor only selects the idle state parameter that > > determines the idle state at, say, GenPD cpumask level it does not touch > >

Re: [PATCH v1 1/1] Bluetooth: hci_qca: Add poweroff support during hci down for wcn3990

2018-08-24 Thread Balakrishna Godavarthi
Hi Stephen, On 2018-08-24 12:17, Stephen Boyd wrote: Quoting Balakrishna Godavarthi (2018-08-23 04:29:35) This patch enables power off support for hci down and power on support for hci up. As wcn3990 power sources are ignited by regulators, we will turn off them during hci down, i.e. an compl

[PATCH V3] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-08-24 Thread Dilip Kota
From: Girish Mahadevan This driver supports GENI based SPI Controller in the Qualcomm SOCs. The Qualcomm Generic Interface (GENI) is a programmable module supporting a wide range of serial interfaces including SPI. This driver supports SPI operations using FIFO mode of transfer. Signed-off-by: G

[RFC PATCH 12/20] x86/intel_rdt: Correct the closid when staging configuration changes

2018-08-24 Thread James Morse
Now that apply_config() and update_domains() know the code/data/both value of what they are writing, and ctrl_val is correctly sized: use the hardware closid slot, based on the configuration type. This means cbm_idx() and its illusionary cache-properties can go. Signed-off-by: James Morse --- a

[RFC PATCH 13/20] x86/intel_rdt: Allow different CODE/DATA configurations to be staged

2018-08-24 Thread James Morse
Now that the staged configuration holds its CDP type and hardware closid, allow resctrl to stage more than configuration at a time for a single resource. To detect the same schema being specified twice when the schemata file is written, the same slot in the staged_configuration array must be used

[RFC PATCH 02/20] x86/intel_rdt: Split struct rdt_domain

2018-08-24 Thread James Morse
resctrl is the defacto Linux ABI for SoC resource partitioning features. To support it on another architecture, we need to abstract it from Intel RDT, and move it to /fs/. Split struct rdt_domain up too. Move everything that that is particular to resctrl into a new header file. resctrl code paths

[RFC PATCH 01/20] x86/intel_rdt: Split struct rdt_resource

2018-08-24 Thread James Morse
resctrl is the defacto Linux ABI for SoC resource partitioning features. To support it on another architecture, we need to abstract it from Intel RDT, and move it to /fs/. Lets start by splitting struct rdt_resource, (the name is kept for now to keep the noise down), and add some type-trickery to

[RFC PATCH 06/20] x86/intel_rdt: Add a helper to read a closid's configuration for show_doms()

2018-08-24 Thread James Morse
The configuration values used by the arch code may not be the same as the bitmaps generated by resctrl, resctrl shouldn't read or write them directly. update_domains() and the staged config are suitable for letting the arch code perform any conversion. Add a helper to read the current configuratio

[RFC PATCH 08/20] x86/intel_rdt: Make cdp enable/disable global

2018-08-24 Thread James Morse
If the CPU supports Intel's Code and Data Prioritization (CDP), software can specify a separate bitmap for code and data. This feature needs enabling in a model-specific-register, and changes the properties of the cache-controls: it halves the effective number of closids. This changes how closids

[RFC PATCH 00/20] x86/intel_rdt: Start abstraction for a second arch

2018-08-24 Thread James Morse
Hi folks, ARM have some upcoming CPU features that are similar to Intel RDT. Resctrl is the defacto ABI for this sort of thing, but it lives under arch/x86. To get existing software working, we need to make resctrl work with arm64. This series is the first chunk of that. The aim is to move the fi

[RFC PATCH 05/20] x86/intel_rdt: make update_domains() learn the affected closids

2018-08-24 Thread James Morse
Now that the closid is present in the staged configuration, update_domains() can learn which low/high values it should update. Remove the single passed in closid, and update msr_param as we apply each staged config. Once the L2/L2CODE/L2DATA resources are merged this will allow update_domains() t

[RFC PATCH 09/20] x86/intel_rdt: Track the actual number of closids separately

2018-08-24 Thread James Morse
num_closid is different for the illusionary CODE/DATA caches, and these resource's ctrlval is sized on this parameter. When it comes to writing the configuration values into hardware, a correction is applied. The next step in moving this behaviour into the resctrl code is to make the arch code alw

[RFC PATCH 10/20] x86/intel_rdt: Let resctrl change the resources's num_closid

2018-08-24 Thread James Morse
Today we switch between different alloc_enabled resources which have differing preset num_closid to account for CDP. We want to merge these illusionary caches together, at which point something needs to change the resctrl's view of num_closid. The arch code now has its own idea of how many closids

[RFC PATCH 17/20] x86/intel_rdt: Stop using Lx CODE/DATA resources

2018-08-24 Thread James Morse
Now that CDP enable/disable is global, and the closid offset correction is based on the configuration being applied, we can use the same Lx resource twice for CDP's CODE/DATA schema. This keeps the illusion of separate caches in the resctrl code. When CDP is enabled for a cache, create two schema

[RFC PATCH 16/20] x86/intel_rdt: Move the schemata names into struct resctrl_schema

2018-08-24 Thread James Morse
Move the names used for the schemata file out of the resource and into struct resctrl_schema. This lets us give one resource two different names, based on the other schema properties. For now we copy the name, once we merge the L2/L2CODE/L2DATA resources resctrl will generate it. Remove the arch

[RFC PATCH 15/20] x86/intel_rdt: Walk the resctrl schema list instead of the arch's resource list

2018-08-24 Thread James Morse
Now that resctrl has a list of resources it is using, walk that list instead of the architectures list. This lets us keep schema properties with the resource that is using them. Most users of for_each_alloc_enabled_rdt_resource() are per-schema, switch these to walk the schema list. The remainder

[RFC PATCH 14/20] x86/intel_rdt: Add a separate resource list for resctrl

2018-08-24 Thread James Morse
We want to merge the L2/L2CODE/L2DATA resources together so that there is one resource per cache. The CDP properties are then part of the configuration. Currently the cdp type to use with the configuration is hidden in the resource. This needs to be part of the schema, but resctrl doesn't have a s

[RFC PATCH 04/20] x86/intel_rdt: Add closid to the staged config

2018-08-24 Thread James Morse
Once we merge the L2/L2CODE/L2DATA resources, we still want to have two configurations staged for one resource when CDP is enabled. These two configurations would have different closid as far as the hardware is concerned. In preparation, add closid as a staged parameter, and pass it down when the

[RFC PATCH 11/20] x86/intel_rdt: Pass in the code/data/both configuration value when parsing

2018-08-24 Thread James Morse
The illusion of three types of cache at each level is a neat trick to allow a static table of resources to be used. This is a problem if the cache topology and partitioning abilities have to be discovered at boot. We want to fold the three code/data/both caches into one, and move the CDP configura

[RFC PATCH 18/20] x86/intel_rdt: Remove the CODE/DATA illusionary caches

2018-08-24 Thread James Morse
Now that nothing uses these caches, remove them. Signed-off-by: James Morse --- arch/x86/kernel/cpu/intel_rdt.c | 69 - arch/x86/kernel/cpu/intel_rdt.h | 4 -- 2 files changed, 73 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt.c b/arch/x86/kernel/cpu/in

[RFC PATCH 07/20] x86/intel_rdt: Expose update_domains() as an arch helper

2018-08-24 Thread James Morse
update_domains() applies the staged configuration to the hw_dom's configuration array and updates the hardware. Make it part of the interface between resctrl and the arch code. Signed-off-by: James Morse --- arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 4 ++-- include/linux/resctrl.h

  1   2   3   4   >