[PATCH] mm, memcg: do not set reclaim_state on soft limit reclaim

2019-08-28 Thread Michal Hocko
From: Michal Hocko Adric Blake has noticed[1] the following warning: [38491.963105] WARNING: CPU: 7 PID: 175 at mm/vmscan.c:245 set_task_reclaim_state+0x1e/0x40 [...] [38491.963239] Call Trace: [38491.963246] mem_cgroup_shrink_node+0x9b/0x1d0 [38491.963250] mem_cgroup_soft_limit_reclaim+0x10c/

Re: [PATCH 1/2] kbuild: refactor scripts/Makefile.extrawarn

2019-08-28 Thread Sedat Dilek
On Wed, Aug 28, 2019 at 7:55 AM Masahiro Yamada wrote: > > Instead of the warning-[123] magic, let's accumulate compiler options > to KBUILD_CFLAGS directly as the top Makefile does. I think this makes > easier to understand what is going on in this file. > > This commit slightly changes the behav

Re: [PATCH 0/3] Rewrite x86/ftrace to use text_poke()

2019-08-28 Thread Song Liu
Hi Peter, > On Aug 27, 2019, at 11:06 AM, Peter Zijlstra wrote: > > Ftrace was one of the last W^X violators; these patches move it over to the > generic text_poke() interface and thereby get rid of this oddity. > > The first patch has been posted before and was/is part of my (in-progress) > st

Re: 答复: [PATCH RFC v2] ubi: ubi_wl_get_peb: Increase the number of attempts while getting PEB

2019-08-28 Thread Richard Weinberger
- Ursprüngliche Mail - > Von: "chengzhihao1" > An: "Richard Weinberger" > CC: "richard" , "yi zhang" , "linux-mtd" > , > "linux-kernel" > Gesendet: Mittwoch, 28. August 2019 03:59:37 > Betreff: 答复: [PATCH RFC v2] ubi: ubi_wl_get_peb: Increase the number of > attempts while getting PEB

[PATCH v3 1/6] ARM: dts: mmp2: trivial whitespace fix

2019-08-28 Thread Lubomir Rintel
A missing space before a curly brace. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- arch/arm/boot/dts/mmp2.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index b6f40743e07b0..50b6c38b39cc3 100644 ---

[PATCH v3 6/6] ARM: dts: mmp2: add OLPC XO 1.75 machine

2019-08-28 Thread Lubomir Rintel
This is a fairly complete description of an OLPC XO 1.75 laptop. What's missing for now is the GPU, LCD controller, DCON, the panel and audio. The machine is booted with OpenFirmware and thus has a devicetree. However, older versions are unable to create a valid FDT and don't follow the Linux bind

[PATCH v3 3/6] ARM: dts: mmp2: rename the USB PHY node

2019-08-28 Thread Lubomir Rintel
This device is not an OTG phy, it's a regular USB HS phy. Follow the generic node name recommendation, and rename it to "usb-phy". Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- arch/arm/boot/dts/mmp2.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/ar

[PATCH v3 2/6] ARM: dts: mmp2: fix the SPI nodes

2019-08-28 Thread Lubomir Rintel
The SPI bus has a single address cell and not size cells. Also, dtc thinks the SPI nodes are preferrably called "spi" and it is right to think so. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- arch/arm/boot/dts/mmp2.dtsi | 16 1 file changed, 12 insertions(+), 4 del

[PATCH v3 0/6] ARM: dts: mmp2: devicetree updates

2019-08-28 Thread Lubomir Rintel
Hi, Here's a couple of updates for the MMP2 SoC devicetree files. I'm wondering if they could be applied to the armsoc tree? Compared to previous submission, the only change is the addition of Acks from Pavel. Lubo

[PATCH v3 5/6] ARM: dts: mmp2: specify reg-shift for the UARTs

2019-08-28 Thread Lubomir Rintel
This makes the 8250_of driver happy. There are two more drivers in the tree that bind to mrvl,mmp-uart compatibles: pxa and 8250_pxa and neither of them requires the reg-shift property, assuming it's always 2. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- arch/arm/boot/dts/mmp2.dtsi

[PATCH v3 4/6] ARM: dts: mmp2: add camera interfaces

2019-08-28 Thread Lubomir Rintel
Supported by the mmp-camera driver. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- arch/arm/boot/dts/mmp2.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 21432cb9143f7..68b5470773232 10064

Re: [PATCH 3/3] KVM: x86: announce KVM_CAP_HYPERV_ENLIGHTENED_VMCS support only when it is available

2019-08-28 Thread Vitaly Kuznetsov
Sean Christopherson writes: > On Tue, Aug 27, 2019 at 09:54:39AM -0700, Jim Mattson wrote: >> On Tue, Aug 27, 2019 at 9:04 AM Vitaly Kuznetsov wrote: >> > >> > It was discovered that after commit 65efa61dc0d5 ("selftests: kvm: provide >> > common function to enable eVMCS") hyperv_cpuid selftest

Re: [PATCH v2 0/6] Rework REFCOUNT_FULL using atomic_fetch_* operations

2019-08-28 Thread Peter Zijlstra
On Tue, Aug 27, 2019 at 05:31:58PM +0100, Will Deacon wrote: > Will Deacon (6): > lib/refcount: Define constants for saturation and max refcount values > lib/refcount: Ensure integer operands are treated as signed > lib/refcount: Remove unused refcount_*_checked() variants > lib/refcount: M

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

2019-08-28 Thread Namhyung Kim
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 becomes active. Userspace might need to synthesize those events for existin

[PATCHSET 0/9] perf: Improve cgroup profiling (v1)

2019-08-28 Thread Namhyung Kim
Hello, This work is to improve cgroup profiling in perf. Currently it only supports profiling tasks in a specific cgroup and there's no way to identify which cgroup the current sample belongs to. So I added PERF_SAMPLE_CGROUP to add cgroup info into each sample. It's a 64-bit integer having ino

[PATCH 4/9] perf tools: Maintain cgroup hierarchy

2019-08-28 Thread Namhyung Kim
Each cgroup is kept in the global cgroup_tree sorted by the inode number. Hist entries have cgroup ino number can compare it directly and later it can be used to find a group name using this tree. Signed-off-by: Namhyung Kim --- tools/perf/util/cgroup.c | 72 +++

[PATCH 2/9] perf/core: Add PERF_SAMPLE_CGROUP feature

2019-08-28 Thread Namhyung Kim
The PERF_SAMPLE_CGROUP bit is to save (perf_event) cgroup information in the sample. It will add a 64-bit integer to identify current cgroup and it's the inode number in the cgroup file system. Userspace should use this information with PERF_RECORD_CGROUP event to match which cgroup it belongs.

[PATCH 8/9] perf top: Add --all-cgroups option

2019-08-28 Thread Namhyung Kim
The --all-cgroups option is to enable cgroup profiling support. It tells kernel to record CGROUP events in the ring buffer so that perf report can identify task/cgroup association later. Signed-off-by: Namhyung Kim --- tools/perf/Documentation/perf-top.txt | 4 tools/perf/builtin-top.c

[PATCH 9/9] perf script: Add --show-cgroup-events option

2019-08-28 Thread Namhyung Kim
The --show-cgroup-events option is to print CGROUP events in the output like others. Signed-off-by: Namhyung Kim --- tools/perf/Documentation/perf-script.txt | 3 ++ tools/perf/builtin-script.c | 41 2 files changed, 44 insertions(+) diff --git a/tools/per

Re: [PATCH 1/2] mm: Don't manually decrement num_poisoned_pages

2019-08-28 Thread Oscar Salvador
On Tue, Aug 27, 2019 at 03:36:54PM +1000, Alastair D'Silva wrote: > From: Alastair D'Silva > > Use the function written to do it instead. > > Signed-off-by: Alastair D'Silva Reviewed-by: Oscar Salvador > --- > mm/sparse.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff

[PATCH 7/9] perf record: Add --all-cgroups option

2019-08-28 Thread Namhyung Kim
The --all-cgroups option is to enable cgroup profiling support. It tells kernel to record CGROUP events in the ring buffer so that perf report can identify task/cgroup association later. Signed-off-by: Namhyung Kim --- tools/perf/Documentation/perf-record.txt | 5 - tools/perf/builtin-recor

[PATCH 5/9] perf report: Add 'cgroup' sort key

2019-08-28 Thread Namhyung Kim
The cgroup sort key is to show cgroup membership of each task. Currently it shows full path in the cgroupfs (not relative to the root of cgroup namespace) since it'd be more intuitive IMHO. Otherwise root cgroup in different namespaces will all show same name - "/". The cgroup sort key should com

[PATCH 6/9] perf record: Support synthesizing cgroup events

2019-08-28 Thread Namhyung Kim
Synthesize cgroup events by iterating cgroup filesystem directories. The cgroup event only saves the portion of cgroup path after the mount point and the inode number. Signed-off-by: Namhyung Kim --- tools/perf/builtin-record.c | 5 ++ tools/perf/util/cgroup.c| 3 +- tools/perf/util/cgro

[PATCH 3/9] perf tools: Basic support for CGROUP event

2019-08-28 Thread Namhyung Kim
Implement basic functionality to support cgroup tracking. Each cgroup can be identified by inode number which can be read from userspace too. The actual cgroup processing will come in the later patch. Cc: Adrian Hunter Signed-off-by: Namhyung Kim --- tools/include/uapi/linux/perf_event.h | 17

Re: [PATCH v2 1/2] ASoC: sun4i-i2s: Revert "ASoC: sun4i-i2s: Remove duplicated quirks structure"

2019-08-28 Thread Chen-Yu Tsai
Hi, On Tue, Aug 27, 2019 at 8:31 PM Maxime Ripard wrote: > > From: Maxime Ripard > > This reverts commit 3e9acd7ac6933cdc20c441bbf9a38ed9e42e1490. > > It turns out that while one I2S controller is described in the A83t > datasheet, the driver supports another, undocumented, one that has been > i

Re: [PATCH v2 0/5] ARM: make DaVinci part of the ARM v5 multiplatform build

2019-08-28 Thread Bartosz Golaszewski
pon., 5 sie 2019 o 10:31 Bartosz Golaszewski napisał(a): > > czw., 25 lip 2019 o 16:57 Arnd Bergmann napisał(a): > > > > On Thu, Jul 25, 2019 at 3:13 PM Bartosz Golaszewski wrote: > > > > > > From: Bartosz Golaszewski > > > > > > This series makes DaVinci part of the multiplatform build for ARM

Re: [PATCH v3 0/7] backlight: gpio: simplify the driver

2019-08-28 Thread Bartosz Golaszewski
pt., 16 sie 2019 o 17:48 Bartosz Golaszewski napisał(a): > > czw., 8 sie 2019 o 10:17 Bartosz Golaszewski napisał(a): > > > > śr., 24 lip 2019 o 10:25 Bartosz Golaszewski napisał(a): > > > > > > From: Bartosz Golaszewski > > > > > > While working on my other series related to gpio-backlight[1]

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

2019-08-28 Thread Mika Westerberg
On Wed, Aug 28, 2019 at 03:09:07PM +0800, Brad Campbell wrote: > G'day All, Hi, > 5.2 is the first kernel that has allowed me to use 2 Apple Thunderbolt > display on a 2011 vintage iMac. Awesome work and many thanks! > > I boot this machine in BIOS (Bootcamp) mode as that gave me brightness > co

[PATCH v2 2/7] dt-bindings: usb: mtk-xhci: support USB wakeup for MT8183

2019-08-28 Thread Chunfeng Yun
Support USB wakeup by ip-sleep mode for MT8183 Signed-off-by: Chunfeng Yun --- v2: no changes --- Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt b/Documentation/devicetre

[PATCH v2 7/7] arm64: dts: mt8183: tune disconnect threshold of u2phy

2019-08-28 Thread Chunfeng Yun
Set DISCTH to max-15, replace the default value 8, due to default disconnect threshold is lower than USB SPEC define Signed-off-by: Chunfeng Yun --- v2: new patch --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.

[PATCH v2 1/7] dt-bindings: usb: mtu3: support USB wakeup for MT8183

2019-08-28 Thread Chunfeng Yun
Support USB wakeup by ip-sleep mode for MT8183 Signed-off-by: Chunfeng Yun --- v2: no changes --- Documentation/devicetree/bindings/usb/mediatek,mtu3.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtu3.txt b/Documentation/devicetree/bindin

[PATCH v2 4/7] usb: mtk-xhci: support ip-sleep wakeup for MT8183

2019-08-28 Thread Chunfeng Yun
Support USB wakeup by ip-sleep mode for MT8183, it's similar to MT8173 Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-mtk.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index

[PATCH v2 6/7] arm64: dts: mt8183: enable USB remote wakeup

2019-08-28 Thread Chunfeng Yun
Enable USB remote wakeup for MT8183 Signed-off-by: Chunfeng Yun --- v2: no changes --- arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 1 + arch/arm64/boot/dts/mediatek/mt8183.dtsi| 8 2 files changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/a

[PATCH v2 3/7] usb: mtu3: support ip-sleep wakeup for MT8183

2019-08-28 Thread Chunfeng Yun
Support USB wakeup by ip-sleep mode for MT8183, it's similar to MT8173 Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/mtu3/mtu3_host.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/usb/mtu3/mtu3_host.c b/drivers/usb/mtu3/mtu3_host.c in

[PATCH v2 5/7] arm64: dts: mt8183: add usb and phy nodes

2019-08-28 Thread Chunfeng Yun
Add USB related nodes for MT8183, set it as host mode by default. Signed-off-by: Chunfeng Yun --- v2: no changes --- arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 22 + arch/arm64/boot/dts/mediatek/mt8183.dtsi| 55 + 2 files changed, 77 insertions(+) diff --git a

[PATCH v2 0/7] add support USB for MT8183

2019-08-28 Thread Chunfeng Yun
This series support USB DRD controller and enable it's remote wakeup functoin for MT8183, they depend on the following series patches: 1. this series add support MT6358 PMIC [v5,01/10] mfd: mt6397: clean up code https://patchwork.kernel.org/patch/0487/ 2. this series add support pericfg s

RE: [PATCH v2 01/10] PCI: designware-ep: Add multiple PFs support for DWC

2019-08-28 Thread Xiaowei Bao
> -Original Message- > From: Andrew Murray > Sent: 2019年8月27日 21:11 > To: Xiaowei Bao > Cc: bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; Leo Li ; kis...@ti.com; > lorenzo.pieral...@arm.co; a...@arndb.de; gre...@linuxfoundation.org; M.h. > Lian ;

RE: [PATCH v5 4/6] drm/i915/gvt: Deliver vGPU refresh event to userspace

2019-08-28 Thread Zhang, Tina
> -Original Message- > From: Tian, Kevin > Sent: Wednesday, August 28, 2019 3:10 PM > To: Zhang, Tina ; Zhenyu Wang > > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; Yuan, Hang > ; alex.william...@redhat.com; kra...@redhat.com; > Lu, Kechen ; intel-gvt-...@lists.freedesktop.or

[RESEND PATCH] ARM: multi_v7_defconfig: enable MMP2 platform

2019-08-28 Thread Lubomir Rintel
Marvell MMP/PXA/MMP2 platforms seem to be excluded from the defconfig for no good reasons. Enable the DT-based boards and the modules for their peripherals. Signed-off-by: Lubomir Rintel --- arch/arm/configs/multi_v7_defconfig | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch

[PATCH] mm: fix -Wmissing-prototypes warnings

2019-08-28 Thread Yi Wang
We get two warnings when build kernel W=1: mm/shuffle.c:36:12: warning: no previous prototype for ‘shuffle_show’ [-Wmissing-prototypes] mm/sparse.c:220:6: warning: no previous prototype for ‘subsection_mask_set’ [-Wmissing-prototypes] Make the function static to fix this. Signed-off-by: Yi Wang

Re: [PATCH v2 0/5] ARM: make DaVinci part of the ARM v5 multiplatform build

2019-08-28 Thread Sekhar Nori
On 28/08/19 1:03 PM, Bartosz Golaszewski wrote: > pon., 5 sie 2019 o 10:31 Bartosz Golaszewski napisał(a): >> >> czw., 25 lip 2019 o 16:57 Arnd Bergmann napisał(a): >>> >>> On Thu, Jul 25, 2019 at 3:13 PM Bartosz Golaszewski wrote: From: Bartosz Golaszewski This series makes

Re: [PATCH 02/13] fuse: Use default_file_splice_read for direct IO

2019-08-28 Thread Miklos Szeredi
On Wed, Aug 21, 2019 at 7:38 PM Vivek Goyal wrote: > > From: Miklos Szeredi Nice patch, except I have no idea why I did this. Splice with FOPEN_DIRECT_IO seems to work fine without it. Anyway, I'll just drop this, unless someone has an idea why it is actually needed. Thanks, Miklos

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

2019-08-28 Thread VMware
On 8/27/19 2:56 PM, Borislav Petkov wrote: Also, you could restructure that function something like this to save yourself an indentation level or two and make it more easily readable: static uint32_t __init vmware_platform(void) { unsigned int hyper_vendor_id[3]; unsigned int

Re: [PATCH 2/2] clk: mediatek: add pericfg clocks for MT8183

2019-08-28 Thread Chunfeng Yun
Hi Weiyi, On Wed, 2019-08-28 at 14:55 +0800, Weiyi Lu wrote: > On Wed, 2019-08-28 at 13:55 +0800, Chunfeng Yun wrote: > > Add pericfg clocks for MT8183, it's used when support USB > > remote wakeup > > > > Cc: Weiyi Lu > > Signed-off-by: Chunfeng Yun > > --- > > drivers/clk/mediatek/clk-mt8183

Re: [RESEND PATCH V3 1/8] perf/x86/intel: Set correct mask for TOPDOWN.SLOTS

2019-08-28 Thread Peter Zijlstra
On Mon, Aug 26, 2019 at 07:47:33AM -0700, kan.li...@linux.intel.com wrote: > From: Kan Liang > > TOPDOWN.SLOTS(0x0400) is not a generic event. It is only available on > fixed counter3. > > Don't extend its mask to generic counters. > > Signed-off-by: Kan Liang > diff --git a/arch/x86/include

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: > Move BTS index to 47. Because bit 48 in the PERF_GLOBAL_STATUS is used > to indicate the overflow status of PERF_METRICS counters now. > diff --git a/arch/x86/include/asm/perf_event.h > b/arch/x86/include/asm/perf_event.

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

2019-08-28 Thread Jorge Ramirez
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 analysis, sent you  a fix that >> ma

Re: [PATCH 13/15] sched,fair: propagate sum_exec_runtime up the hierarchy

2019-08-28 Thread Dietmar Eggemann
On 22/08/2019 04:17, Rik van Riel wrote: > Now that enqueue_task_fair and dequeue_task_fair no longer iterate up > the hierarchy all the time, a method to lazily propagate sum_exec_runtime > up the hierarchy is necessary. > > Once a tick, propagate the newly accumulated exec_runtime up the hierarc

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/core.c b/arch/x86/events/core.c > index 81b005e4c7d9..54534ff00940 100644 > --- a/arch/x86/events/core.c > +++ b/arch/x86/events/core.c > @@ -1033,18 +1033,30 @@ static inline void x86_assign_

Re: [PATCH] habanalabs: Make the Coresight timestamp perpetual

2019-08-28 Thread Oded Gabbay
On Tue, Aug 27, 2019 at 7:14 PM Tomer Tayar wrote: > > The Coresight timestamp is enabled for a specific debug session using > the HL_DEBUG_OP_TIMESTAMP opcode of the debug IOCTL. > In order to have a perpetual timestamp that would be comparable between > various debug sessions, this patch moves t

Re: [PATCH] platform/chrome: cros_ec_rpmsg: Add host command AP sleep state support

2019-08-28 Thread Enric Balletbo i Serra
Hi, On 14/8/19 10:17, Yilun Lin wrote: > Add EC host command to inform EC of AP suspend/resume status. > > Signed-off-by: Yilun Lin Applied for 5.4. Thanks, Enric > --- > > drivers/platform/chrome/cros_ec_rpmsg.c | 20 > 1 file changed, 20 insertions(+) > > diff --git

Re: [PATCH v2 0/5] ARM: make DaVinci part of the ARM v5 multiplatform build

2019-08-28 Thread Bartosz Golaszewski
śr., 28 sie 2019 o 09:44 Sekhar Nori napisał(a): > > On 28/08/19 1:03 PM, Bartosz Golaszewski wrote: > > pon., 5 sie 2019 o 10:31 Bartosz Golaszewski napisał(a): > >> > >> czw., 25 lip 2019 o 16:57 Arnd Bergmann napisał(a): > >>> > >>> On Thu, Jul 25, 2019 at 3:13 PM Bartosz Golaszewski wrote:

Re: [v2 PATCH -mm] mm: account deferred split THPs into MemAvailable

2019-08-28 Thread Michal Hocko
On Tue 27-08-19 10:06:20, Yang Shi wrote: > > > On 8/27/19 5:59 AM, Kirill A. Shutemov wrote: > > On Tue, Aug 27, 2019 at 03:17:39PM +0300, Kirill A. Shutemov wrote: > > > On Tue, Aug 27, 2019 at 02:09:23PM +0200, Michal Hocko wrote: > > > > On Tue 27-08-19 14:01:56, Vlastimil Babka wrote: > > >

[PATCH v2 0/2] KVM: x86: don't announce KVM_CAP_HYPERV_ENLIGHTENED_VMCS when it is unavailable

2019-08-28 Thread Vitaly Kuznetsov
It was discovered that hyperv_cpuid test now fails on AMD as it tries to enable KVM_CAP_HYPERV_ENLIGHTENED_VMCS which is (wrongfully) reported as available. Changes since v1: - This is a v2 for '[PATCH 0/3] KVM: x86: fix a couple of issues with Enlightened VMCS enablement' renamed as the first pa

[PATCH v2 2/2] KVM: x86: announce KVM_CAP_HYPERV_ENLIGHTENED_VMCS support only when it is available

2019-08-28 Thread Vitaly Kuznetsov
It was discovered that after commit 65efa61dc0d5 ("selftests: kvm: provide common function to enable eVMCS") hyperv_cpuid selftest is failing on AMD. The reason is that the commit changed _vcpu_ioctl() to vcpu_ioctl() in the test and this one can't fail. Instead of fixing the test is seems to make

[PATCH v2 1/2] KVM: x86: svm: remove unneeded nested_enable_evmcs() hook

2019-08-28 Thread Vitaly Kuznetsov
Since commit 5158917c7b019 ("KVM: x86: nVMX: Allow nested_enable_evmcs to be NULL") the code in x86.c is prepared to see nested_enable_evmcs being NULL and in VMX case it actually is when nesting is disabled. Remove the unneeded stub from SVM code. Signed-off-by: Vitaly Kuznetsov Reviewed-by: Jim

[PATCH v4 1/5] dt-bindings: reserved-memory: Add binding for Armada framebuffer

2019-08-28 Thread Lubomir Rintel
This is the binding for memory that is set aside for allocation of Marvell Armada framebuffer objects. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v2: - Collected the Reviewed-by tag Changes since v1: - Moved from bindings/display/armada/ - Removed the marvell,dove

Re: [PATCH v2] fs/proc/page: Skip uninitialized page when iterating page structures

2019-08-28 Thread Michal Hocko
On Tue 27-08-19 16:22:38, Michal Hocko wrote: > Dan, isn't this something we have discussed recently? This was http://lkml.kernel.org/r/20190725023100.31141-3-t-fukas...@vx.jp.nec.com and talked about /proc/kpageflags but this is essentially the same thing AFAIU. I hope we get a consistent soluti

[PATCH v4 5/5] dt-bindings: display: armada: Document bus-width property

2019-08-28 Thread Lubomir Rintel
This makes it possible to choose a different pixel format for the endpoint. Modelled after what other LCD controllers use, including marvell,pxa2xx-lcdc and atmel,hlcdc-display-controller and perhaps more. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v2: - Collected

Re: [RESEND [PATCH] 0/2] mm/mmap.c: reduce subtree gap propagation a little

2019-08-28 Thread Vlastimil Babka
On 8/28/19 8:06 AM, Wei Yang wrote: > When insert and delete a vma, it will compute and propagate related subtree > gap. After some investigation, we can reduce subtree gap propagation a little. > > [1]: This one reduce the propagation by update *next* gap after itself, since > *next* must be

Re: [PATCH] perf/x86/amd/ibs: Fix sample bias for dispatched micro-ops

2019-08-28 Thread Peter Zijlstra
On Mon, Aug 26, 2019 at 02:57:30PM -0500, Kim Phillips wrote: > diff --git a/arch/x86/events/amd/ibs.c b/arch/x86/events/amd/ibs.c > index 62f317c9113a..f2625b4a5a8b 100644 > --- a/arch/x86/events/amd/ibs.c > +++ b/arch/x86/events/amd/ibs.c > @@ -663,8 +663,15 @@ static int perf_ibs_handle_irq(str

Re: [PATCH 0/2] arm64: dts: meson: g12a: add tdm resets

2019-08-28 Thread Jerome Brunet
On Tue 27 Aug 2019 at 16:42, Kevin Hilman wrote: > Jerome Brunet writes: > >> This patchset adds the dedicated reset of the tdm formatters which >> have been added on the g12a SoC family. Using these help with the channel >> mapping when the formatter uses more than 1 i2s lane. > > Because I for

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

2019-08-28 Thread VMware
From: Thomas Hellstrom Vmware has historically used an "inl" instruction for this, but recent hardware versions support using VMCALL/VMMCALL instead, so use this method if supported at platform detection time. Explicitly code separate macro versions since the alternatives self-patching has not be

[PATCH v3 2/4] x86/vmware: Add a header file for hypercall definitions

2019-08-28 Thread VMware
From: Thomas Hellstrom The new header is intended to be used by drivers using the backdoor. Follow the KVM example using alternatives self-patching to choose between vmcall, vmmcall and io instructions. Also define two new CPU feature flags to indicate hypervisor support for vmcall- and vmmcall

[PATCH v3 3/4] drm/vmwgfx: Update the backdoor call with support for new instructions

2019-08-28 Thread VMware
From: Thomas Hellstrom Use the definition provided by include/asm/vmware.h Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: Signed-off-by: Thomas Hellstrom Reviewed-by: Doug Covelli Acked-by: Dave Airlie --- drivers/gpu/drm/vmwgfx/vmwgfx_msg.c | 21 ++

[PATCH v2 -next] crypto: hisilicon: select CRYPTO_LIB_DES while compiling SEC driver

2019-08-28 Thread Mao Wenan
When CRYPTO_DEV_HISI_SEC=y, below compilation error is found after 'commit 894b68d8be4b ("crypto: hisilicon/des - switch to new verification routines")': drivers/crypto/hisilicon/sec/sec_algs.o: In function `sec_alg_skcipher_setkey_des_cbc': sec_algs.c:(.text+0x11f0): undefined reference to `de

[PATCH v3 0/4] Add support for updated vmware hypercall instruction

2019-08-28 Thread VMware
Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: VMware has started using "vmcall" / "vmmcall" instead of an inl instruction for the "backdoor" interface. This series detects support for those instructions. Outside of the platform code we use the "ALTERNATIVES"

[PATCH v3 4/4] input/vmmouse: Update the backdoor call with support for new instructions

2019-08-28 Thread VMware
From: Thomas Hellstrom Use the definition provided by include/asm/vmware.h CC: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: Signed-off-by: Thomas Hellstrom Reviewed-by: Doug Covelli Acked-by: Dmitry Torokhov --- drivers/input/mouse/vmmouse.c | 6 +++--- 1

[PATCH] x86/Hyper-V: Fix reference of pv_ops with CONFIG_PARAVIRT=N

2019-08-28 Thread lantianyu1986
From: Tianyu Lan hv_setup_sched_clock() references pv_ops and this should be under CONFIG_PARAVIRT=Y. Fix it. Signed-off-by: Tianyu Lan --- This patch is based on git://git.kernel.org/pub/scm/linux/ kernel/git/tip/tip.git timers/core. arch/x86/kernel/cpu/mshyperv.c | 2 ++ 1 file changed, 2 i

Re: [PATCH v2] KVM: LAPIC: Periodically revaluate to get conservative lapic_timer_advance_ns

2019-08-28 Thread Wanpeng Li
On Wed, 28 Aug 2019 at 01:47, Radim Krčmář wrote: > > 2019-08-15 12:03+0800, Wanpeng Li: > > From: Wanpeng Li > > > > Even if for realtime CPUs, cache line bounces, frequency scaling, presence > > of higher-priority RT tasks, etc can still cause different response. These > > interferences should

Re: [PATCH v2 0/5] 0/6] arm64: meson-sm1: add support for DVFS

2019-08-28 Thread Jerome Brunet
On Tue 27 Aug 2019 at 15:35, Kevin Hilman wrote: > Kevin Hilman writes: > >> Jerome Brunet writes: >> >>> On Mon 26 Aug 2019 at 09:25, Neil Armstrong wrote: >>> Following DVFS support for the Amlogic G12A and G12B SoCs, this serie enables DVFS on the SM1 SoC for the SEI610 board. >>>

Re: [PATCH] x86/cpufeature: explicit comments for duplicate macro

2019-08-28 Thread Cao jin
On 8/28/19 2:42 PM, Borislav Petkov wrote: > On Wed, Aug 28, 2019 at 02:11:00PM +0800, Cao jin wrote: > > For the future: > >> Subject: Re: [PATCH] x86/cpufeature: explicit comments for duplicate macro > > your subject needs to have a verb and start with a capital letter after > the subsystem/pa

Re: [PATCH 2/2] dt-bindings: imx6q-pcie: add "fsl,pcie-phy-refclk-internal" for i.MX7D

2019-08-28 Thread André Draszik
Hi Rob, On Tue, 2019-08-27 at 10:56 -0500, Rob Herring wrote: > On Tue, Aug 13, 2019 at 11:37:59AM +0100, André Draszik wrote: > > The i.MX7D variant of the IP can use either an external > > crystal oscillator input or an internal clock input as > > a reference clock input for the PCIe PHY. > > >

[PATCH v3 1/2] KVM: LAPIC: Tune lapic_timer_advance_ns smoothly

2019-08-28 Thread Wanpeng Li
From: Wanpeng Li Using a moving average based on per-vCPU lapic_timer_advance_ns to tune smoothly, filter out drastic fluctuation which prevents this before, let's assume it is 1 cycles. Cc: Paolo Bonzini Cc: Radim Krčmář Signed-off-by: Wanpeng Li --- arch/x86/kvm/lapic.c | 18

[PATCH v3 2/2] KVM: LAPIC: Periodically revaluate to get conservative lapic_timer_advance_ns

2019-08-28 Thread Wanpeng Li
From: Wanpeng Li Even if for realtime CPUs, cache line bounces, frequency scaling, presence of higher-priority RT tasks, etc can still cause different response. These interferences should be considered and periodically revaluate whether or not the lapic_timer_advance_ns value is the best, do n

Re: [PATCH RESEND v2 1/6] dt-bindings: watchdog: Add YAML schemas for the generic watchdog bindings

2019-08-28 Thread Maxime Ripard
On Wed, Aug 21, 2019 at 04:38:30PM +0200, Maxime Ripard wrote: > From: Maxime Ripard > > The watchdogs have a bunch of generic properties that are needed in a > device tree. Add a YAML schemas for those. > > Reviewed-by: Rob Herring > Signed-off-by: Maxime Ripard Ping? Maxime -- Maxime Ripar

Re: [PATCH v2 08/24] EDAC: Introduce mci_for_each_dimm() iterator

2019-08-28 Thread Robert Richter
On 14.08.19 17:18:24, Borislav Petkov wrote: > On Mon, Jun 24, 2019 at 03:09:11PM +, Robert Richter wrote: > > Make code more readable by introducing a mci_for_each_dimm() iterator. > > Now, we just get a pointer to a struct dimm_info. Direct array access > > using an index is no longer needed

[PATCH v5 2/4] tpm: Add a flag to indicate TPM power is managed by firmware

2019-08-28 Thread Stephen Boyd
On some platforms, the TPM power is managed by firmware and therefore we don't need to stop the TPM on suspend when going to a light version of suspend such as S0ix ("freeze" suspend state). Add a chip flag, TPM_CHIP_FLAG_FIRMWARE_POWER_MANAGED, to indicate this so that certain platforms can probe

[PATCH v5 3/4] tpm: tpm_tis_spi: Introduce a flow control callback

2019-08-28 Thread Stephen Boyd
Cr50 firmware has a different flow control protocol than the one used by this TPM PTP SPI driver. Introduce a flow control callback so we can override the standard sequence with the custom one that Cr50 uses. Cc: Andrey Pronin Cc: Duncan Laurie Cc: Jason Gunthorpe Cc: Arnd Bergmann Cc: Greg Kr

[PATCH v5 4/4] tpm: tpm_tis_spi: Support cr50 devices

2019-08-28 Thread Stephen Boyd
Add TPM2.0 PTP FIFO compatible SPI interface for chips with Cr50 firmware. The firmware running on the currently supported H1 Secure Microcontroller requires a special driver to handle its specifics: - need to ensure a certain delay between SPI transactions, or else the chip may miss some part

[PATCH v5 1/4] dt-bindings: tpm: document properties for cr50

2019-08-28 Thread Stephen Boyd
From: Andrey Pronin Add TPM2.0 PTP FIFO compatible SPI interface for chips with Cr50 firmware. Cc: Andrey Pronin Cc: Duncan Laurie Cc: Jason Gunthorpe Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Cc: Guenter Roeck Cc: Alexander Steffen Cc: Heiko Stuebner Signed-off-by: Andrey Pronin Reviewe

[PATCH v5 0/4] tpm: Add driver for cr50

2019-08-28 Thread Stephen Boyd
This patch series adds support for the the H1 secure microcontroller running cr50 firmware found on various recent Chromebooks. This driver is necessary to boot into a ChromeOS userspace environment. It implements support for several functions, including TPM-like functionality over a SPI interface.

[PATCH v2 2/2] clk: mediatek: add pericfg clocks for MT8183

2019-08-28 Thread Chunfeng Yun
Add pericfg clocks for MT8183, it's used when support USB remote wakeup Cc: Weiyi Lu Signed-off-by: Chunfeng Yun --- v2: use GATE_MTK to define GATE_PERI suggested by Weiyi --- drivers/clk/mediatek/clk-mt8183.c | 30 ++ include/dt-bindings/clock/mt8183-clk.h | 4

[PATCH v2 1/2] dt-bindings: clock: mediatek: add pericfg for MT8183

2019-08-28 Thread Chunfeng Yun
This patch adds binding of pericfg for MT8183. Signed-off-by: Chunfeng Yun --- v2: no changes --- .../devicetree/bindings/arm/mediatek/mediatek,pericfg.txt| 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.txt b/Documenta

Re: [PATCH 1/2] PTP: introduce new versions of IOCTLs

2019-08-28 Thread Felipe Balbi
Hi, Joe Perches writes: > On Mon, 2019-08-19 at 08:43 -0700, Richard Cochran wrote: >> On Sun, Aug 18, 2019 at 03:07:18PM -0700, Joe Perches wrote: >> > Also the original patch deletes 2 case entries for >> > PTP_PIN_GETFUNC and PTP_PIN_SETFUNC and converts them to >> > PTP_PIN_GETFUNC2 and PTP

Re: [PATCH 2/2] ALSA: hda: Allow HDA to be runtime suspended when dGPU is not bound

2019-08-28 Thread Kai-Heng Feng
Hi Bjorn, at 06:31, Bjorn Helgaas wrote: On Tue, Aug 27, 2019 at 09:47:56PM +0800, Kai-Heng Feng wrote: It's a common practice to let dGPU unbound and use PCI port PM to disable its power through _PR3. When the dGPU comes with an HDA function, the HDA won't be suspended if the dGPU is unbound

RE: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse

2019-08-28 Thread David Laight
From: Joe Perches > Sent: 27 August 2019 19:33 > On Tue, 2019-08-27 at 19:59 +0200, Geert Uytterhoeven wrote: > > On Tue, Aug 27, 2019 at 7:46 PM Al Viro wrote: > > > On Tue, Aug 27, 2019 at 07:29:52PM +0200, Geert Uytterhoeven wrote: > > > > On Tue, Aug 27, 2019 at 4:17 PM David Laight > > > >

Re: [RESEND [PATCH] 0/2] mm/mmap.c: reduce subtree gap propagation a little

2019-08-28 Thread Wei Yang
On Wed, Aug 28, 2019 at 10:01:40AM +0200, Vlastimil Babka wrote: >On 8/28/19 8:06 AM, Wei Yang wrote: >> When insert and delete a vma, it will compute and propagate related subtree >> gap. After some investigation, we can reduce subtree gap propagation a >> little. >> >> [1]: This one reduce the

Re: [PATCH] usb: storage: Add ums-cros-aoa driver

2019-08-28 Thread Greg Kroah-Hartman
On Tue, Aug 27, 2019 at 04:14:09PM -0700, Julius Werner wrote: > This patch adds a new "unusual" USB mass storage device driver. This > driver will be used for a virtual USB storage device presented by an > Android phone running the 'Chrome OS Recovery'* Android app. This app > uses the Android Ope

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

2019-08-28 Thread Zhang 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. This i

Re: [RESEND, PATCH v13 11/12] soc: mediatek: cmdq: add cmdq_dev_get_client_reg function

2019-08-28 Thread Bibby Hsieh
On Tue, 2019-08-27 at 12:13 +0200, Matthias Brugger wrote: > > On 27/08/2019 05:59, Bibby Hsieh wrote: > > On Fri, 2019-08-23 at 16:21 +0200, Matthias Brugger wrote: > >> > >> On 20/08/2019 10:49, Bibby Hsieh wrote: > >>> GCE cannot know the register base address, this function > >>> can help cmdq

Re: [PATCH V8 1/3] mmc: sdhci-pci-o2micro: Change O2 Host PLL and DLL register name

2019-08-28 Thread Adrian Hunter
On 21/08/19 9:38 PM, Shirley Her (SC) wrote: > Change O2 Host PLL and DLL register name > > Signed-off-by: Shirley Her Acked-by: Adrian Hunter > --- > change in V8: > 1. fix patch format error > > change in V7: > 1. change subject > > change in V6: > 1. change subject and commit message t

[PATCH 1/2] driver core: platform: Introduce platform_get_irq_optional()

2019-08-28 Thread Thierry Reding
From: Thierry Reding In some cases the interrupt line of a device is optional. Introduce a new platform_get_irq_optional() that works much like platform_get_irq() but does not output an error on failure to find the interrupt. Signed-off-by: Thierry Reding --- drivers/base/platform.c |

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

2019-08-28 Thread Zhang 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't explicit

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

2019-08-28 Thread Wanpeng Li
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:21, Marcelo Tosatti wrote: > > > > > > > > On Thu, Aug 01, 2019 at

Re: [PATCH V8 2/3] mmc: sdhci-pci-o2micro: Modify get CD status function

2019-08-28 Thread Adrian Hunter
On 21/08/19 9:39 PM, Shirley Her (SC) wrote: > Modify get CD status function You have lost the V7 changes to the subject and commit message. > > Signed-off-by: Shirley Her > --- > change in V8: > 1. fix patch format error > > change in V7: > 1. change subject to match the patch > 2. move fu

Re: [PATCH 1/2] gpio: gpio-pca953x.c: Correct type of reg_direction

2019-08-28 Thread Bartosz Golaszewski
wt., 27 sie 2019 o 08:46 David Jander napisał(a): > > The type of reg_direction needs to match the type of the regmap, which is > u8. > > Signed-off-by: David Jander > --- > drivers/gpio/gpio-pca953x.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpio/gp

Re: [PATCH V8 3/3] mmc: sdhci-pci-o2micro: Fix O2 Host data read/write DLL Lock phase shift issue

2019-08-28 Thread Adrian Hunter
On 21/08/19 9:39 PM, Shirley Her (SC) wrote: > Fix data read/write error in HS200 mode due to chip DLL lock phase shift > > Signed-off-by: Shirley Her 2 comments below: > --- > change in V8: > 1. fix patch format error > > change in V7: > 1. change subject > 2. change the sdhci_o2_wait_dll_

Re: [PATCH] leds: lm3532: Avoid potentially unpaired regulator calls

2019-08-28 Thread Pavel Machek
Hi! > We may currently get unpaired regulator calls when configuring the LED > brightness via sysfs in case of regulator calls producing errors. Let's > fix this by maintaining local state for enabled. > > Signed-off-by: Tony Lindgren Acked-by: Pavel Machek > +++ b/drivers/leds/leds-lm3532.c

Re: [PATCH 2/2] gpio: pca953x.c: Use pca953x_read_regs instead of regmap_bulk_read

2019-08-28 Thread Bartosz Golaszewski
wt., 27 sie 2019 o 08:47 David Jander napisał(a): > > The register number needs to be translated for chips with more than 8 > ports. This patch fixes a bug causing all chips with more than 8 GPIO pins > to not work correctly. > > Signed-off-by: David Jander > --- > drivers/gpio/gpio-pca953x.c |

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