Re: [RESEND PATCH V3 2/8] perf/x86/intel: Basic support for metrics counters

2019-08-28 Thread Peter Zijlstra
On Mon, Aug 26, 2019 at 07:47:34AM -0700, kan.li...@linux.intel.com wrote: > diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c > index 1b2c37ed49db..f4d6335a18e2 100644 > --- a/arch/x86/events/intel/core.c > +++ b/arch/x86/events/intel/core.c > @@ -2131,7 +2131,7 @@ static i

Re: Patch "x86/pm: Introduce quirk framework to save/restore extra MSR registers around suspend/resume" has been added to the 4.4-stable tree

2019-08-28 Thread Greg KH
On Wed, Aug 28, 2019 at 12:12:39AM -0400, Sasha Levin wrote: > This is a note to let you know that I've just added the patch titled > > x86/pm: Introduce quirk framework to save/restore extra MSR registers > around suspend/resume > > to the 4.4-stable tree which can be found at: > > htt

Re: [PATCH] cpuidle-haltpoll: Enable kvm guest polling when dedicated physical CPUs are available

2019-08-28 Thread Rafael J. Wysocki
On Wed, Aug 28, 2019 at 10:34 AM Wanpeng Li wrote: > > On Tue, 27 Aug 2019 at 08:43, Wanpeng Li wrote: > > > > Cc Michael S. Tsirkin, > > On Tue, 27 Aug 2019 at 04:42, Marcelo Tosatti wrote: > > > > > > On Tue, Aug 13, 2019 at 08:55:29AM +0800, Wanpeng Li wrote: > > > > On Sun, 4 Aug 2019 at 04:

Re: [PATCH v2 1/4] x86/vmware: Update platform detection code for VMCALL/VMMCALL hypercalls

2019-08-28 Thread Borislav Petkov
On Wed, Aug 28, 2019 at 09:45:19AM +0200, Thomas Hellström (VMware) wrote: > Hmm, we're missing a return 0; here. The number of return points and the > moved up variable declarations worries me a little. I'll see if I can clean > this up a bit, but would prefer to make a follow-up patch in that cas

Re: [PATCH] cpuidle-haltpoll: Enable kvm guest polling when dedicated physical CPUs are available

2019-08-28 Thread Wanpeng Li
On Wed, 28 Aug 2019 at 16:45, Rafael J. Wysocki wrote: > > On Wed, Aug 28, 2019 at 10:34 AM Wanpeng Li wrote: > > > > On Tue, 27 Aug 2019 at 08:43, Wanpeng Li wrote: > > > > > > Cc Michael S. Tsirkin, > > > On Tue, 27 Aug 2019 at 04:42, Marcelo Tosatti wrote: > > > > > > > > On Tue, Aug 13, 201

Re: [PATCH 4/5] misc: fastrpc: fix double refcounting on dmabuf

2019-08-28 Thread Srinivas Kandagatla
On 28/08/2019 08:50, Jorge Ramirez wrote: On 8/27/19 23:45, Srinivas Kandagatla wrote: On 23/08/2019 16:23, Jorge Ramirez-Ortiz wrote: can you add me as a co-author to this patch please? No problem I can do that if you feel so! yes please. thanks! since I spent about a day doing the anal

RE: [PATCH V3 1/5] thermal: qoriq: Add clock operations

2019-08-28 Thread Anson Huang
Hi, Rui > On Wed, 2019-08-28 at 16:32 +0800, Zhang Rui wrote: > > On Tue, 2019-08-27 at 12:41 +, Leonard Crestez wrote: > > > On 27.08.2019 04:51, Anson Huang wrote: > > > > > In an earlier series the CLK_IS_CRITICAL flags was removed from > > > > > the TMU clock so if the thermal driver doesn

[PATCH V3 05/10] ACPI: cpufreq: Switch to QoS requests instead of cpufreq notifier

2019-08-28 Thread Viresh Kumar
The cpufreq core now takes the min/max frequency constraints via QoS requests and the CPUFREQ_ADJUST notifier shall get removed later on. Switch over to using the QoS request for maximum frequency constraint for acpi driver. Signed-off-by: Viresh Kumar --- V3: - Before updating qos request, make

Re: Patch "x86/pm: Introduce quirk framework to save/restore extra MSR registers around suspend/resume" has been added to the 4.4-stable tree

2019-08-28 Thread Yu Chen
On Wed, Aug 28, 2019 at 10:43:51AM +0200, Greg KH wrote: > On Wed, Aug 28, 2019 at 12:12:39AM -0400, Sasha Levin wrote: > > This is a note to let you know that I've just added the patch titled > > > > x86/pm: Introduce quirk framework to save/restore extra MSR registers > > around suspend/res

RE: [PATCH V3 1/5] thermal: qoriq: Add clock operations

2019-08-28 Thread Anson Huang
Hi, Rui > On Tue, 2019-08-27 at 12:41 +, Leonard Crestez wrote: > > On 27.08.2019 04:51, Anson Huang wrote: > > > > In an earlier series the CLK_IS_CRITICAL flags was removed from > > > > the TMU clock so if the thermal driver doesn't explicitly enable > > > > it the system will hang on probe.

Re: [PATCH] thermal: rcar_gen3_thermal: Fix Wshift-negative-value

2019-08-28 Thread Zhang Rui
On Fri, 2019-06-14 at 12:52 +0200, Daniel Lezcano wrote: > Hi Nathan, > > On 13/06/2019 23:12, Nathan Huckleberry wrote: > > Clang produces the following warning > > > > vers/thermal/rcar_gen3_thermal.c:147:33: warning: shifting a > > negative > > signed value is undefined [-Wshift-negative-value

Re: [RESEND PATCH V3 2/8] perf/x86/intel: Basic support for metrics counters

2019-08-28 Thread Peter Zijlstra
On Mon, Aug 26, 2019 at 07:47:34AM -0700, kan.li...@linux.intel.com wrote: > +#define INTEL_PMC_IDX_FIXED_METRIC_BASE (INTEL_PMC_IDX_FIXED + > 16) > +#define INTEL_PMC_IDX_TD_RETIRING > (INTEL_PMC_IDX_FIXED_METRIC_BASE + 0) > +#define INTEL_PMC_IDX_TD_BAD_SPEC

[FYI] lm3532: right registration to work with LED-backlight

2019-08-28 Thread Pavel Machek
Hi! Eventually, these will be needed. Best regards, Pavel commit 38d956977a7d6cbdc811676f9b4033da7487e045 Author: Pavel Date: Wed Aug 7 12:43:52 2019 +0200 d4: lm3532 needs to use right register function for backlight to wor

Re: [PATCH] thermal: armada: Fix -Wshift-negative-value

2019-08-28 Thread Zhang Rui
On Mon, 2019-08-19 at 10:21 +0200, Miquel Raynal wrote: > Hello, > > Daniel Lezcano wrote on Thu, 15 Aug 2019 > 01:06:21 +0200: > > > On 15/08/2019 00:12, Nick Desaulniers wrote: > > > On Tue, Aug 13, 2019 at 10:28 AM 'Nathan Huckleberry' via Clang > > > Built > > > Linux wrote: > > > > > >

[PATCH v2 1/6] dt-bindings: pci: Update iProc PCI binding for INTx support

2019-08-28 Thread Srinath Mannam
From: Ray Jui Update the iProc PCIe binding document for better modeling of the legacy interrupt (INTx) support Signed-off-by: Ray Jui Signed-off-by: Srinath Mannam --- .../devicetree/bindings/pci/brcm,iproc-pcie.txt| 48 ++ 1 file changed, 41 insertions(+), 7 deletion

[PATCH v2 3/6] arm: dts: Change PCIe INTx mapping for Cygnus

2019-08-28 Thread Srinath Mannam
From: Ray Jui Change the PCIe INTx mapping to model the 4 INTx interrupts in the IRQ domain of the iProc PCIe controller itself Signed-off-by: Ray Jui Signed-off-by: Srinath Mannam --- arch/arm/boot/dts/bcm-cygnus.dtsi | 30 ++ 1 file changed, 26 insertions(+), 4 d

linux-next: build failure after merge of the drm-misc tree

2019-08-28 Thread Stephen Rothwell
Hi all, After merging the drm-misc tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/gpu/drm/virtio/virtgpu_object.c:31:67: error: expected ')' before 'int' module_param_named(virglhack, virtio_gpu_virglrenderer_workaround, int, 0400);

[PATCH v2 6/6] arm64: dts: Change PCIe INTx mapping for NS2

2019-08-28 Thread Srinath Mannam
From: Ray Jui Change the PCIe INTx mapping to model the 4 INTx interrupts in the IRQ domain of the iProc PCIe controller itself Signed-off-by: Ray Jui Signed-off-by: Srinath Mannam --- arch/arm64/boot/dts/broadcom/northstar2/ns2.dtsi | 28 1 file changed, 24 insertion

[PATCH v2 5/6] arm: dts: Change PCIe INTx mapping for HR2

2019-08-28 Thread Srinath Mannam
From: Ray Jui Change the PCIe INTx mapping to model the 4 INTx interrupts in the IRQ domain of the iProc PCIe controller itself Signed-off-by: Ray Jui Signed-off-by: Srinath Mannam --- arch/arm/boot/dts/bcm-hr2.dtsi | 30 ++ 1 file changed, 26 insertions(+), 4 dele

[PATCH v2 2/6] PCI: iproc: Add INTx support with better modeling

2019-08-28 Thread Srinath Mannam
From: Ray Jui Add PCIe legacy interrupt INTx support to the iProc PCIe driver by modeling it with its own IRQ domain. All 4 interrupts INTA, INTB, INTC, INTD share the same interrupt line connected to the GIC in the system, while the status of each INTx can be obtained through the INTX CSR regist

[PATCH v2 4/6] arm: dts: Change PCIe INTx mapping for NSP

2019-08-28 Thread Srinath Mannam
From: Ray Jui Change the PCIe INTx mapping to model the 4 INTx interrupts in the IRQ domain of the iProc PCIe controller itself Signed-off-by: Ray Jui Signed-off-by: Srinath Mannam --- arch/arm/boot/dts/bcm-nsp.dtsi | 45 -- 1 file changed, 39 insertion

[PATCH v2 0/6] PAXB INTx support with proper model

2019-08-28 Thread Srinath Mannam
This patch series adds PCIe legacy interrupt (INTx) support to the iProc PCIe driver by modeling it with its own IRQ domain. All 4 interrupts INTA, INTB, INTC, INTD share the same interrupt line connected to the GIC in the system. This is now modeled by using its own IRQ domain. Also update all re

Re: [PATCH v2 1/5] ACPI: Enable driver and firmware hints to control power at probe time

2019-08-28 Thread Rafael J. Wysocki
On Mon, Aug 26, 2019 at 3:34 PM Greg Kroah-Hartman wrote: > > On Mon, Aug 26, 2019 at 01:32:00PM +0300, Sakari Ailus wrote: > > Hi Greg, > > > > On Mon, Aug 26, 2019 at 10:43:43AM +0200, Greg Kroah-Hartman wrote: > > > > ... > > > > > > diff --git a/include/linux/device.h b/include/linux/device.h

[PATCH] genirq/affinity: Fix build waring in __irq_build_affinity_masks

2019-08-28 Thread Ming Lei
When CONFIG_CPUMASK_OFFSTACK isn't enabled, 'cpumask_var_t' will be defined as 'typedef struct cpumask cpumask_var_t[1]', so we can't declare the argument of 'node_to_cpumask' as 'const cpumask_var_t *' for alloc_nodes_vectors(). Fixes the following warning: kernel/irq/affinity.c: In function

Re: numlist API Re: [RFC PATCH v4 1/9] printk-rb: add a new printk ringbuffer implementation

2019-08-28 Thread Petr Mladek
On Wed 2019-08-28 09:13:39, John Ogness wrote: > On 2019-08-27, Petr Mladek wrote: > > The API is complicated because of the callbacks. It depends on a logic > > that is implemented externally. It makes it abstract to some extent. > > > > My view is that the API would be much cleaner and easier to

Re: objtool warning "uses BP as a scratch register" with clang-9

2019-08-28 Thread Arnd Bergmann
On Tue, Aug 27, 2019 at 11:22 PM 'Nick Desaulniers' via Clang Built Linux wrote: > On Tue, Aug 27, 2019 at 12:47 PM Arnd Bergmann wrote: > > On Tue, Aug 27, 2019 at 9:23 PM Josh Poimboeuf wrote: > > > On Tue, Aug 27, 2019 at 09:00:52PM +0200, Arnd Bergmann wrote: > > > > On Tue, Aug 27, 2019 at

Re: [PATCH V3 1/5] thermal: qoriq: Add clock operations

2019-08-28 Thread Zhang Rui
On Wed, 2019-08-28 at 08:49 +, Anson Huang wrote: > Hi, Rui > > > On Wed, 2019-08-28 at 16:32 +0800, Zhang Rui wrote: > > > On Tue, 2019-08-27 at 12:41 +, Leonard Crestez wrote: > > > > On 27.08.2019 04:51, Anson Huang wrote: > > > > > > In an earlier series the CLK_IS_CRITICAL flags was r

Re: [PATCH v2 08/10] PCI: layerscape: Add EP mode support for ls1088a and ls2088a

2019-08-28 Thread Andrew Murray
On Wed, Aug 28, 2019 at 04:29:32AM +, Xiaowei Bao wrote: > > > > -Original Message- > > From: Andrew Murray > > Sent: 2019年8月27日 21:34 > > To: Xiaowei Bao > > Cc: bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; > > shawn...@kernel.org; Leo Li ; kis...@ti.com; > > lore

Re: [RESEND PATCH V3 2/8] perf/x86/intel: Basic support for metrics counters

2019-08-28 Thread Peter Zijlstra
On Wed, Aug 28, 2019 at 10:44:16AM +0200, Peter Zijlstra wrote: > Let me clean up this mess for you. Here, how's that. Now we don't check is_metric_idx() _3_ times on the enable/disable path and all the topdown crud is properly placed in the fixed counter functions. Please think; don't tinker.

Re: [PATCH V3 1/5] thermal: qoriq: Add clock operations

2019-08-28 Thread Zhang Rui
On Wed, 2019-08-28 at 08:51 +, Anson Huang wrote: > Hi, Rui > > > On Tue, 2019-08-27 at 12:41 +, Leonard Crestez wrote: > > > On 27.08.2019 04:51, Anson Huang wrote: > > > > > In an earlier series the CLK_IS_CRITICAL flags was removed > > > > > from > > > > > the TMU clock so if the therma

Re: linux-next: build warning after merge of the devfreq tree

2019-08-28 Thread Rafael J. Wysocki
On Monday, August 26, 2019 2:46:08 PM CEST MyungJoo Ham wrote: > Thank you for pointing this out! > > I've added a fix to the tree: > https://git.kernel.org/pub/scm/linux/kernel/git/mzx/devfreq.git/log/?h=for-next > (and shared the patch in a previous reply) > > Rafael, could you please pull the

[PATCH] mmc: mediatek: enable SDIO IRQ low level trigger function

2019-08-28 Thread Yong Mao
From: yong mao SDIO IRQ is not defaultly triggered by low level, but by falling edge. It needs to set related register to enable SDIO IRQ low level trigger function. Otherwise the SDIO IRQ may be lost in some specail condition. Signed-off-by: Yong Mao Signed-off-by: Chaotian Jing --- drivers/

Re: [PATCH 6/6] PCI: tegra: Add support to enable slot regulators

2019-08-28 Thread Thierry Reding
On Tue, Aug 27, 2019 at 06:13:34PM +0100, Andrew Murray wrote: > On Tue, Aug 27, 2019 at 09:54:17PM +0530, Vidya Sagar wrote: > > On 8/27/2019 9:17 PM, Andrew Murray wrote: > > > On Mon, Aug 26, 2019 at 01:01:43PM +0530, Vidya Sagar wrote: > > > > Add support to get regulator information of 3.3V an

Re: [PATCH 0/6] PCI: tegra: Enable PCIe C5 controller of Tegra194 in p2972-0000 platform

2019-08-28 Thread Thierry Reding
On Mon, Aug 26, 2019 at 01:01:37PM +0530, Vidya Sagar wrote: > This patch series enables Tegra194's C5 controller which owns x16 slot in > p2972- platform. C5 controller's PERST# and CLKREQ# are not configured as > output and bi-directional signals by default and hence they need to be > configu

RE: [PATCH V3 1/5] thermal: qoriq: Add clock operations

2019-08-28 Thread Anson Huang
Hi, Rui > On Wed, 2019-08-28 at 08:51 +, Anson Huang wrote: > > Hi, Rui > > > > > On Tue, 2019-08-27 at 12:41 +, Leonard Crestez wrote: > > > > On 27.08.2019 04:51, Anson Huang wrote: > > > > > > In an earlier series the CLK_IS_CRITICAL flags was removed > > > > > > from the TMU clock so i

[PATCH v7 08/13] soc: mediatek: Add basic_clk_id to scp_power_data

2019-08-28 Thread Weiyi Lu
Try to stop extending the clk_id or clk_names if there are more and more new BASIC clocks. To get its own clocks by the basic_clk_id of each power domain. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 29 + 1 file changed, 21 insertions(+), 8 deletio

[PATCH v7 05/13] soc: mediatek: Refactor clock control

2019-08-28 Thread Weiyi Lu
Put clock enable and disable control in separate function. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 45 --- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scp

RE: [PATCH V3 1/5] thermal: qoriq: Add clock operations

2019-08-28 Thread Anson Huang
Hi, Rui > On Wed, 2019-08-28 at 08:49 +, Anson Huang wrote: > > Hi, Rui > > > > > On Wed, 2019-08-28 at 16:32 +0800, Zhang Rui wrote: > > > > On Tue, 2019-08-27 at 12:41 +, Leonard Crestez wrote: > > > > > On 27.08.2019 04:51, Anson Huang wrote: > > > > > > > In an earlier series the CLK_I

[PATCH v7 06/13] soc: mediatek: Refactor sram control

2019-08-28 Thread Weiyi Lu
Put sram enable and disable control in separate functions. Signed-off-by: Weiyi Lu Reviewed-by: Nicolas Boichat --- drivers/soc/mediatek/mtk-scpsys.c | 79 +-- 1 file changed, 51 insertions(+), 28 deletions(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c

[PATCH v7 02/13] dt-bindings: soc: Add MT8183 power dt-bindings

2019-08-28 Thread Weiyi Lu
Add power dt-bindings of MT8183 and introduces "BASIC" and "SUBSYS" clock types in binding document. The "BASIC" type is compatible to the original power control with clock name [a-z]+[0-9]*, e.g. mm, vpu1. The "SUBSYS" type is used for bus protection control with clock name [a-z]+-[0-9]+, e.g. isp

[PATCH v7 10/13] soc: mediatek: Add subsys clock control for bus protection

2019-08-28 Thread Weiyi Lu
Add subsys CG control flow before/after the bus protect control due to bus protection need SMI bus relative CGs enabled to feedback its ack. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 72 +-- 1 file changed, 70 insertions(+), 2 deletions(-

[PATCH v7 13/13] arm64: dts: Add power controller device node of MT8183

2019-08-28 Thread Weiyi Lu
Add power controller node and smi-common node for MT8183 In scpsys node, it contains clocks and regmapping of infracfg and smi-common for bus protection. Signed-off-by: Weiyi Lu --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 62 1 file changed, 62 insertions(+)

Re: Patch "x86/pm: Introduce quirk framework to save/restore extra MSR registers around suspend/resume" has been added to the 4.4-stable tree

2019-08-28 Thread Greg KH
On Wed, Aug 28, 2019 at 05:00:44PM +0800, Yu Chen wrote: > On Wed, Aug 28, 2019 at 10:43:51AM +0200, Greg KH wrote: > > On Wed, Aug 28, 2019 at 12:12:39AM -0400, Sasha Levin wrote: > > > This is a note to let you know that I've just added the patch titled > > > > > > x86/pm: Introduce quirk fr

[PATCH v7 11/13] soc: mediatek: Add extra sram control

2019-08-28 Thread Weiyi Lu
For some power domains like vpu_core on MT8183 whose sram need to do clock and internal isolation while power on/off sram. We add a flag "sram_iso_ctrl" in scp_domain_data to judge if we need to do the extra sram isolation control or not. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scps

[PATCH v7 04/13] soc: mediatek: Refactor regulator control

2019-08-28 Thread Weiyi Lu
Put regulator enable and disable control in separate functions. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 32 +++- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys

[PATCH v7 09/13] soc: mediatek: Add multiple step bus protection control

2019-08-28 Thread Weiyi Lu
Both MT8183 & MT6765 have more control steps of bus protection than previous project. And there add more bus protection registers reside at infracfg & smi-common. Also add new APIs for multiple step bus protection control with more customized arguments. Signed-off-by: Weiyi Lu --- drivers/soc/me

[PATCH v7 07/13] soc: mediatek: Refactor bus protection control

2019-08-28 Thread Weiyi Lu
Put bus protection enable and disable control in separate functions. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 44 ++- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediat

[PATCH v7 00/13] Mediatek MT8183 scpsys support

2019-08-28 Thread Weiyi Lu
This series is based on v5.3-rc1 with MT8183 SMI dt-binding patch v11[1]. [1] [v11,01/23] dt-bindings: mediatek: Add binding for mt8183 IOMMU and SMI (https://patchwork.kernel.org/patch/2769/) changes since v6: - remove the patch of SPDX license identifier because it's already fixed chan

[PATCH v7 03/13] soc: mediatek: Refactor polling timeout and documentation

2019-08-28 Thread Weiyi Lu
Use USEC_PER_SEC to indicate the polling timeout directly. And add documentation of scp_domain_data. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/me

RE: [PATHC v2] video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver

2019-08-28 Thread Wei Hu
> -Original Message- > From: Michael Kelley > > From: Wei Hu Sent: Tuesday, August 27, 2019 4:25 AM > > > > Without deferred IO support, hyperv_fb driver informs the host to refresh > > the entire guest frame buffer at fixed rate, e.g. at 20Hz, no matter there > > is screen update or

[PATCH v7 12/13] soc: mediatek: Add MT8183 scpsys support

2019-08-28 Thread Weiyi Lu
Add scpsys driver for MT8183 Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 226 ++ 1 file changed, 226 insertions(+) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c index 85c6bf4..e072810 100644 --- a/driv

[PATCH v7 01/13] dt-bindings: mediatek: Add property to mt8183 smi-common

2019-08-28 Thread Weiyi Lu
For scpsys driver using regmap based syscon driver API. Signed-off-by: Weiyi Lu --- .../devicetree/bindings/memory-controllers/mediatek,smi-common.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-commo

Re: [PATCH] arcnet: capmode: remove redundant assignment to pointer pkt

2019-08-28 Thread Sergei Shtylyov
Hello! On 27.08.2019 14:29, Colin King wrote: From: Colin Ian King Pointer pkt is being initialized with a value that is never read and pkg is being re-assigned a little later on. The assignment is ^^^ pkt redundant and hence can be removed. Addresses-Coverity: ("Ununsed value") Sig

Re: [PATCH v2 1/2] input: keyboard: snvs_pwrkey: Send key events for i.MX6 S, DL and Q

2019-08-28 Thread Marco Felsch
Hi Robin, thanks for the patch. On 19-08-27 14:32, Robin van der Gracht wrote: > The first generation i.MX6 processors does not send an interrupt when the > power key is pressed. It sends a power down request interrupt if the key is > released before a hard shutdown (5 second press). This should

[PATCH v2] ext4: use percpu_counters for extent_status cache hits/misses

2019-08-28 Thread Shaokun Zhang
From: Yang Guo @es_stats_cache_hits and @es_stats_cache_misses are accessed frequently in ext4_es_lookup_extent function, it would influence the ext4 read/write performance in NUMA system. Let's optimize it using percpu_counter, it is profitable for the performance. The test command is as below:

Re: [PATCH 1/4] binder: add a mount option to show global stats

2019-08-28 Thread Greg Kroah-Hartman
On Tue, Aug 27, 2019 at 01:41:49PM -0700, Hridya Valsaraju wrote: > Currently, all binder state and statistics live in debugfs. > We need this information even when debugfs is not mounted. > This patch adds the mount option 'stats' to enable a binderfs > instance to have binder debug information pr

Re: [RFC V2 0/1] mm/debug: Add tests for architecture exported page table helpers

2019-08-28 Thread Anshuman Khandual
On 08/26/2019 06:43 PM, Matthew Wilcox wrote: > On Mon, Aug 26, 2019 at 08:07:13AM +0530, Anshuman Khandual wrote: >> On 08/09/2019 07:22 PM, Matthew Wilcox wrote: >>> On Fri, Aug 09, 2019 at 04:05:07PM +0530, Anshuman Khandual wrote: On 08/09/2019 03:46 PM, Matthew Wilcox wrote: > On F

Re: [PATCH RT v2 2/3] sched: migrate_enable: Use sleeping_lock to indicate involuntary sleep

2019-08-28 Thread Sebastian Andrzej Siewior
On 2019-08-27 08:53:06 [-0700], Paul E. McKenney wrote: > > > On the other hand, within a PREEMPT=n kernel, the call to schedule() > > > would split even an rcu_read_lock() critical section. Which is why I > > > asked earlier if sleeping_lock_inc() and sleeping_lock_dec() are no-ops > > > in !PREE

Re: [PATCH v1] printk: add dummy vprintk_emit for when CONFIG_PRINTK=n

2019-08-28 Thread Brendan Higgins
On Tue, Aug 27, 2019 at 10:24 PM Sergey Senozhatsky wrote: > > On (08/27/19 21:45), Brendan Higgins wrote: > [..] > > I actually use it in a very similar way as dev_printk() does. I am using > > it to define an equivalent kunit_printk(), which takes a log level, and > > adds its own test informati

[Question] What is the main function of sym_calc_value() under scripts/kconfig/symbol.c

2019-08-28 Thread
Hi, When "make KCONFIG_ALLCONFIG= mytmp.config alldefconfig", I find sym_calc_value() under scripts/kconfig/symbol.c is called many times. But I don't understand what does sym_calc_value() do. make KCONFIG_ALLCONFIG= mytmp.config alldefconfig -> scripts/kconfig/conf.c main() -> switch case

Re: [PATCH v3 2/2] PCI/AER: Split the AER stats into multiple sysfs attributes

2019-08-28 Thread Greg KH
On Tue, Aug 27, 2019 at 03:21:45PM -0700, Rajat Jain wrote: > Split the AER stats into multiple sysfs atributes. Note that > this changes the ABI of the AER stats, but hopefully, there > aren't active users that need to change. This is how the AERs > are being exposed now: > > localhost /sys/devic

[PATCH v2] kunit: fix failure to build without printk

2019-08-28 Thread Brendan Higgins
Previously KUnit assumed that printk would always be present, which is not a valid assumption to make. Fix that by removing call to vprintk_emit, and calling printk directly. Reported-by: Randy Dunlap Link: https://lore.kernel.org/linux-kselftest/0352fae9-564f-4a97-715a-fabe01625...@kernel.org/T

Re: [PATCH -v2 0/5] Further sanitize INTEL_FAM6 naming

2019-08-28 Thread Peter Zijlstra
On Tue, Aug 27, 2019 at 11:51:35PM +0200, Peter Zijlstra wrote: > On Tue, Aug 27, 2019 at 08:44:23PM +, Luck, Tony wrote: > > > I'm reposting because the version Ingo applied and partially fixed up > > > still > > > generates build bot failure. > > > > Looks like this version gets them all. I

[PATCH 3/4] f2fs: fix to fallback to buffered IO in IO aligned mode

2019-08-28 Thread Chao Yu
In LFS mode, we allow OPU for direct IO, however, we didn't consider IO alignment feature, so direct IO can trigger unaligned IO, let's just fallback to buffered IO to keep correct IO alignment semantics in all places. Fixes: f847c699cff3 ("f2fs: allow out-place-update for direct IO in LFS mode")

Re: Thunderbolt DP oddity on v5.2.9 on iMac 12,2

2019-08-28 Thread Brad Campbell
On 28/8/19 5:12 pm, Brad Campbell wrote: On 28/8/19 3:33 pm, Mika Westerberg wrote: I'm suspecting that the boot firmware does configure second DP path also and we either fail to discover it properly or the boot firmware fails to set it up. Also if you boot with one monitor connected and then

Re: [PATCH] thermal: mediatek: add suspend/resume callback

2019-08-28 Thread Zhang Rui
On Tue, 2019-07-02 at 17:16 +0800, michael@mediatek.com wrote: > From: Louis Yu > > Add suspend/resume callback to disable/enable Mediatek thermal sensor > respectively. Since thermal power domain is off in suspend, thermal > driver > needs re-initialization during resume. > > Signed-off-by:

Re: [PATCH] x86: tpm: Remove a busy bit of the NVS area for supporting AMD's fTPM

2019-08-28 Thread Seunghun Han
> > On Wed, Aug 28, 2019 at 01:36:30AM +0900, Seunghun Han wrote: > > > I got your point. Is there any problem if some regions which don't > > need to be handled in NVS area are saved and restored? If there is a > > problem, how about adding code for ignoring the regions in NVS area to > > the nvs.

Re: [PATCH v7 7/9] drm: tegra: use cec_notifier_conn_(un)register

2019-08-28 Thread Thierry Reding
On Wed, Aug 14, 2019 at 12:45:05PM +0200, Dariusz Marcinkiewicz wrote: > Use the new cec_notifier_conn_(un)register() functions to > (un)register the notifier for the HDMI connector, and fill in > the cec_connector_info. > > Changes since v4: > - only create a CEC notifier for HDMI connector

Re: [RESEND PATCH V3 2/8] perf/x86/intel: Basic support for metrics counters

2019-08-28 Thread Peter Zijlstra
On Wed, Aug 28, 2019 at 11:02:17AM +0200, Peter Zijlstra wrote: > @@ -2192,8 +2227,22 @@ static void intel_pmu_read_event(struct > static void intel_pmu_enable_fixed(struct perf_event *event) > { > struct hw_perf_event *hwc = &event->hw; > - int idx = hwc->idx - INTEL_PMC_IDX_FIXED; >

Re: [PATCH 6/6] PCI: tegra: Add support to enable slot regulators

2019-08-28 Thread Andrew Murray
On Wed, Aug 28, 2019 at 11:07:57AM +0200, Thierry Reding wrote: > On Tue, Aug 27, 2019 at 06:13:34PM +0100, Andrew Murray wrote: > > On Tue, Aug 27, 2019 at 09:54:17PM +0530, Vidya Sagar wrote: > > > On 8/27/2019 9:17 PM, Andrew Murray wrote: > > > > On Mon, Aug 26, 2019 at 01:01:43PM +0530, Vidya

Re: [PATCH v7 02/13] dt-bindings: soc: Add MT8183 power dt-bindings

2019-08-28 Thread Matthias Brugger
On 28/08/2019 11:11, Weiyi Lu wrote: > Add power dt-bindings of MT8183 and introduces "BASIC" and > "SUBSYS" clock types in binding document. > The "BASIC" type is compatible to the original power control with > clock name [a-z]+[0-9]*, e.g. mm, vpu1. > The "SUBSYS" type is used for bus protecti

Re: [PATCH v3 04/11] modpost: add support for symbol namespaces

2019-08-28 Thread Jessica Yu
+++ Matthias Maennich [27/08/19 15:41 +0100]: On Mon, Aug 26, 2019 at 06:21:38PM +0200, Jessica Yu wrote: +++ Matthias Maennich [21/08/19 12:49 +0100]: Add support for symbols that are exported into namespaces. For that, extract any namespace suffix from the symbol name. In addition, emit a war

Re: [PATCH v7 03/13] soc: mediatek: Refactor polling timeout and documentation

2019-08-28 Thread Matthias Brugger
On 28/08/2019 11:11, Weiyi Lu wrote: > Use USEC_PER_SEC to indicate the polling timeout directly. > And add documentation of scp_domain_data. > > Signed-off-by: Weiyi Lu > --- Queued for v5.4-next/soc Thanks! > drivers/soc/mediatek/mtk-scpsys.c | 13 - > 1 file changed, 12 inser

Re: [PATCH 1/9] perf/core: Add PERF_RECORD_CGROUP event

2019-08-28 Thread Peter Zijlstra
On Wed, Aug 28, 2019 at 04:31:22PM +0900, Namhyung Kim wrote: > To support cgroup tracking, add CGROUP event to save a link between > cgroup path and inode number. The attr.cgroup bit was also added to > enable cgroup tracking from userspace. > > This event will be generated when a new cgroup bec

Re: [PATCH] sched/cpufreq: Align trace event behavior of fast switching

2019-08-28 Thread Rafael J. Wysocki
On Monday, August 26, 2019 11:40:58 AM CEST Peter Zijlstra wrote: > On Mon, Aug 26, 2019 at 11:10:52AM +0200, Rafael J. Wysocki wrote: > > On Wednesday, August 7, 2019 5:33:40 PM CEST Douglas RAILLARD wrote: > > > Fast switching path only emits an event for the CPU of interest, whereas > > > the >

Re: [PATCH v7 04/13] soc: mediatek: Refactor regulator control

2019-08-28 Thread Matthias Brugger
On 28/08/2019 11:11, Weiyi Lu wrote: > Put regulator enable and disable control in separate functions. > > Signed-off-by: Weiyi Lu Applied to v5.4-next/soc Thanks! > --- > drivers/soc/mediatek/mtk-scpsys.c | 32 +++- > 1 file changed, 23 insertions(+), 9 deletion

[PATCH v2] mmc: mediatek: enable SDIO IRQ low level trigger function

2019-08-28 Thread Yong Mao
From: yong mao SDIO IRQ is not defaultly triggered by low level, but by falling edge. It needs to set related register to enable SDIO IRQ low level trigger function. Otherwise the SDIO IRQ may be lost in some specail condition. Signed-off-by: Yong Mao Signed-off-by: Chaotian Jing --- drivers/

[PATCH v2] mmc: mediatek: enable SDIO IRQ low level trigger function

2019-08-28 Thread Yong Mao
In-Reply-To:

Re: [PATCH 1/9] perf/core: Add PERF_RECORD_CGROUP event

2019-08-28 Thread Peter Zijlstra
On Wed, Aug 28, 2019 at 04:31:22PM +0900, Namhyung Kim wrote: > To support cgroup tracking, add CGROUP event to save a link between > cgroup path and inode number. The attr.cgroup bit was also added to > enable cgroup tracking from userspace. > > This event will be generated when a new cgroup bec

Re: [PATCH v2 4/4] sched/fair: Prevent active LB from preempting higher sched classes

2019-08-28 Thread Valentin Schneider
On 27/08/2019 13:28, Vincent Guittot wrote: > On Thu, 15 Aug 2019 at 16:52, Valentin Schneider > wrote: >> >> The CFS load balancer can cause the cpu_stopper to run a function to >> try and steal a remote rq's running task. However, it so happens >> that while only CFS tasks will ever be migrated

Re: [PATCH v7 05/13] soc: mediatek: Refactor clock control

2019-08-28 Thread Matthias Brugger
On 28/08/2019 11:11, Weiyi Lu wrote: > Put clock enable and disable control in separate function. > > Signed-off-by: Weiyi Lu Applied, thanks! > --- > drivers/soc/mediatek/mtk-scpsys.c | 45 > --- > 1 file changed, 28 insertions(+), 17 deletions(-) > >

Re: [PATCH v2] kunit: fix failure to build without printk

2019-08-28 Thread Sergey Senozhatsky
On (08/28/19 02:31), Brendan Higgins wrote: [..] > Previously KUnit assumed that printk would always be present, which is > not a valid assumption to make. Fix that by removing call to > vprintk_emit, and calling printk directly. > > Reported-by: Randy Dunlap > Link: > https://lore.kernel.org/li

Re: [PATCH v3 04/11] modpost: add support for symbol namespaces

2019-08-28 Thread Matthias Maennich
On Wed, Aug 28, 2019 at 11:43:26AM +0200, Jessica Yu wrote: +++ Matthias Maennich [27/08/19 15:41 +0100]: On Mon, Aug 26, 2019 at 06:21:38PM +0200, Jessica Yu wrote: +++ Matthias Maennich [21/08/19 12:49 +0100]: Add support for symbols that are exported into namespaces. For that, extract any n

Re: [PATCH v2 1/5] ACPI: Enable driver and firmware hints to control power at probe time

2019-08-28 Thread Sakari Ailus
Hi Rafael, On Wed, Aug 28, 2019 at 10:55:42AM +0200, Rafael J. Wysocki wrote: > On Mon, Aug 26, 2019 at 3:34 PM Greg Kroah-Hartman > wrote: > > > > On Mon, Aug 26, 2019 at 01:32:00PM +0300, Sakari Ailus wrote: > > > Hi Greg, > > > > > > On Mon, Aug 26, 2019 at 10:43:43AM +0200, Greg Kroah-Hartman

Re: [PATCH v2 00/14] treewide: prefer __section from compiler_attributes.h

2019-08-28 Thread Sedat Dilek
On Tue, Aug 27, 2019 at 10:40 PM Nick Desaulniers wrote: > > GCC unescapes escaped string section names while Clang does not. Because > __section uses the `#` stringification operator for the section name, it > doesn't need to be escaped. > > This fixes an Oops observed in distro's that use system

Re: [PATCH] thermal: rcar_gen3_thermal: Use devm_add_action_or_reset() helper

2019-08-28 Thread Zhang Rui
On Wed, 2019-07-31 at 20:44 +0200, Niklas Söderlund wrote: > Hi Geert, > > Thanks for your work. > > On 2019-07-31 14:50:53 +0200, Geert Uytterhoeven wrote: > > Use the devm_add_action_or_reset() helper instead of open-coding > > the > > same operations. > > > > Signed-off-by: Geert Uytterhoeven

linux-next: Tree for Aug 28

2019-08-28 Thread Stephen Rothwell
Hi all, Changes since 20190827: The drm-misc tree gained a build failure for which I applied a patch. The phy-next tree lost its build failure. Non-merge commits (relative to Linus' tree): 8690 8857 files changed, 435848 insertions(+), 251879 deletions(-) -

Re: [PATCH 0/6] PCI: tegra: Enable PCIe C5 controller of Tegra194 in p2972-0000 platform

2019-08-28 Thread Vidya Sagar
On 8/28/2019 2:40 PM, Thierry Reding wrote: On Mon, Aug 26, 2019 at 01:01:37PM +0530, Vidya Sagar wrote: This patch series enables Tegra194's C5 controller which owns x16 slot in p2972- platform. C5 controller's PERST# and CLKREQ# are not configured as output and bi-directional signals by de

[GIT PULL] ARM: mvebu: dt for v5.4 (#1)

2019-08-28 Thread Gregory CLEMENT
Hi, Here is the first pull request for dt for mvebu for v5.4. Gregory The following changes since commit 5f9e832c137075045d15cd6899ab0505cfb2ca4b: Linus 5.3-rc1 (2019-07-21 14:05:38 -0700) are available in the Git repository at: git://git.infradead.org/linux-mvebu.git tags/mvebu-dt-5.4-1

Re: [PATCH v4 3/3] vfio/pci: make use of irq_update_devid and optimize irq ops

2019-08-28 Thread Ben Luo
在 2019/8/28 上午4:33, Alex Williamson 写道: On Thu, 22 Aug 2019 23:34:43 +0800 Ben Luo wrote: When userspace (e.g. qemu) triggers a switch between KVM irqfd and userspace eventfd, only dev_id of irq action (i.e. the "trigger" in this patch's context) will be changed, but a free-then-request-irq

Re: [PATCH v2 0/8] regulator: support Silergy SY8824C/SY8824E etc.

2019-08-28 Thread Mark Brown
On Wed, Aug 28, 2019 at 06:08:09AM +, Jisheng Zhang wrote: > Add support for Silergy SY8824C/SY8824E/SY20276/SY20278 regulator. > > Changes since v1: > - use c++ comment style for SPDX header > - add prefix for BUCK_EN and MODE I already applied v1, please just send incremental updates fi

[GIT PULL] ARM: mvebu: dt64 for v5.4 (#1)

2019-08-28 Thread Gregory CLEMENT
Hi, Here is the first pull request for dt64 for mvebu for v5.4. Gregory The following changes since commit 5f9e832c137075045d15cd6899ab0505cfb2ca4b: Linus 5.3-rc1 (2019-07-21 14:05:38 -0700) are available in the Git repository at: git://git.infradead.org/linux-mvebu.git tags/mvebu-dt64-5.

[tip: x86/urgent] x86/build: Add -Wnoaddress-of-packed-member to REALMODE_CFLAGS, to silence GCC9 build warning

2019-08-28 Thread tip-bot2 for Ingo Molnar
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 183e6429186150690cee034eb85745cf2b15ccb4 Gitweb: https://git.kernel.org/tip/183e6429186150690cee034eb85745cf2b15ccb4 Author:Ingo Molnar AuthorDate:Wed, 28 Aug 2019 10:56:48 +02:00 Committer:

Re: [PATCH] arm/arm64: defconfig: Update configs to use the new CROS_EC options

2019-08-28 Thread Enric Balletbo i Serra
Hi Bjorn, Arnd, On 27/8/19 18:12, Arnd Bergmann wrote: > On Tue, Aug 27, 2019 at 6:08 PM Bjorn Andersson > wrote: >> >> On Tue 27 Aug 08:48 PDT 2019, Enric Balletbo i Serra wrote: >> >>> Recently we refactored the CrOS EC drivers moving part of the code from >>> the MFD subsystem to the platform

Re: [PATCH 00/10] OOM Debug print selection and additional information

2019-08-28 Thread Tetsuo Handa
On 2019/08/28 16:08, Michal Hocko wrote: > On Tue 27-08-19 19:47:22, Edward Chron wrote: >> For production systems installing and updating EBPF scripts may someday >> be very common, but I wonder how data center managers feel about it now? >> Developers are very excited about it and it is a very po

Re: [PATCH 2/8] regulator: add support for SY8824C regulator

2019-08-28 Thread Mark Brown
On Wed, Aug 28, 2019 at 03:38:29AM +, Jisheng Zhang wrote: > On Tue, 27 Aug 2019 20:44:37 +0100 Mark Brown wrote: > > > > Please send a patch which updates the entire comment block to be > > C++ style so it looks consistent. > Do you mean update the following style > A: > > // SPDX-License

[tip: timers/core] posix-cpu-timers: Provide task validation functions

2019-08-28 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the timers/core branch of tip: Commit-ID: 6ae40e3fdcd33a6ff3c490b9302d6a1861093f65 Gitweb: https://git.kernel.org/tip/6ae40e3fdcd33a6ff3c490b9302d6a1861093f65 Author:Thomas Gleixner AuthorDate:Wed, 21 Aug 2019 21:08:48 +02:00 Commi

[tip: timers/core] posix-cpu-timers: Switch thread group sampling to array

2019-08-28 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the timers/core branch of tip: Commit-ID: b7be4ef1365dcb56fdffc6689e41058b23f5996d Gitweb: https://git.kernel.org/tip/b7be4ef1365dcb56fdffc6689e41058b23f5996d Author:Thomas Gleixner AuthorDate:Wed, 21 Aug 2019 21:09:16 +02:00 Commi

[tip: timers/core] posix-cpu-timers: Deduplicate rlimit handling

2019-08-28 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the timers/core branch of tip: Commit-ID: 8991afe2640d05a805eba01277856e8549cdc838 Gitweb: https://git.kernel.org/tip/8991afe2640d05a805eba01277856e8549cdc838 Author:Thomas Gleixner AuthorDate:Wed, 21 Aug 2019 21:09:23 +02:00 Commi

Re: [PATCH v3 04/11] modpost: add support for symbol namespaces

2019-08-28 Thread Jessica Yu
+++ Matthias Maennich [28/08/19 10:55 +0100]: On Wed, Aug 28, 2019 at 11:43:26AM +0200, Jessica Yu wrote: +++ Matthias Maennich [27/08/19 15:41 +0100]: On Mon, Aug 26, 2019 at 06:21:38PM +0200, Jessica Yu wrote: +++ Matthias Maennich [21/08/19 12:49 +0100]: Add support for symbols that are ex

<    1   2   3   4   5   6   7   8   9   10   >