[PATCH v6 01/10] dt-bindings: opp: Introduce qcom-opp bindings

2018-12-11 Thread Rajendra Nayak
On Qualcomm Technologies, Inc. platforms, an OPP node needs to describe an additional level/corner value that is then communicated to a remote microprocessor by the CPU, which then takes some actions (like adjusting voltage values across various rails) based on the value passed. Describe these bin

[PATCH] printk: Remove print_prefix() calls with NULL buffer.

2018-12-11 Thread Tetsuo Handa
We can save lines/size by removing print_prefix() with buf == NULL. This patch makes no functional change. Signed-off-by: Tetsuo Handa --- kernel/printk/printk.c | 39 ++- 1 file changed, 14 insertions(+), 25 deletions(-) diff --git a/kernel/printk/printk.c b

[PATCH v6 02/10] dt-bindings: power: Add qcom rpm power domain driver bindings

2018-12-11 Thread Rajendra Nayak
Add DT bindings to describe the rpm/rpmh power domains found on Qualcomm Technologies, Inc. SoCs. These power domains communicate a performance state to RPM/RPMh, which then translates it into corresponding voltage on a PMIC rail. Signed-off-by: Rajendra Nayak Signed-off-by: Viresh Kumar Reviewe

[PATCH 0/2] scsi: ufs: add real time/inline crypto support to UFS HCD

2018-12-11 Thread Parshuram Thombare
Hello, This patch series add inline / real time encryption support to UFS host controller driver. It include following patches 0001-block-add-bi_crypto_ctx-variable-in-struct-bio.patch Add 'void *bi_crypto_ctx' variable in 'struct bio' to embded crypto configuration information, which is used by l

[PATCH v6 09/10] soc: qcom: rpmpd: Use simple_opp_to_performance_state() helper

2018-12-11 Thread Rajendra Nayak
Get rid of the duplicate code across rpmpd and rpmhpd to read the performance state value from Device tree and use the simple_opp_to_performance_state() helper instead. Suggested-by: Stephen Boyd Signed-off-by: Rajendra Nayak --- drivers/soc/qcom/rpmhpd.c | 11 +-- drivers/soc/qcom/rpmp

[PATCH v6 00/10] Add power domain driver for corners on msm8996/sdm845

2018-12-11 Thread Rajendra Nayak
Changes in v6: * OPP binding updates for qcom,level reviewed by Rob * DT bindings for rpmpd and rpmhpd updated to specify the OPP tables as child nodes of the power-controller itself * Removed some module specific remains from the drivers, now that they can only be built-in * Added a simple_opp_to_

[PATCH v6 07/10] arm64: dts: sdm845: Add rpmh powercontroller node

2018-12-11 Thread Rajendra Nayak
Add the DT node for the rpmhpd powercontroller. Signed-off-by: Rajendra Nayak Acked-by: Viresh Kumar --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 51 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845

[PATCH 2/2] scsi: ufs: add inline crypto support to UFS HCD

2018-12-11 Thread Parshuram Thombare
Add real time crypto support to UFS HCD using new device mapper 'crypto-ufs'. dmsetup tool can be used to enable real time / inline crypto support using device mapper 'crypt-ufs'. Signed-off-by: Parshuram Thombare --- MAINTAINERS |7 + block/Kconfig|

RE: [PATCHv2 22/25] dt-bindings: pci: Add NXP Layerscape SoCs PCIe Gen4 controller

2018-12-11 Thread Z.q. Hou
Hi Rob, Thanks a lot for your comments! > -Original Message- > From: Rob Herring > Sent: 2018年12月6日 6:39 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; mark.rutl...@

[PATCH v6 03/10] soc: qcom: rpmpd: Add a Power domain driver to model corners

2018-12-11 Thread Rajendra Nayak
The Power domains for corners just pass the performance state set by the consumers to the RPM (Remote Power manager) which then takes care of setting the appropriate voltage on the corresponding rails to meet the performance needs. We add all power domain data needed on msm8996 here. This driver c

[PATCH v6 08/10] PM / Domains: Add a simple_opp_to_performance_state() helper

2018-12-11 Thread Rajendra Nayak
Now that we have atleast 2 genpd providers, both using a simple routine to read a performance state value from device tree and return it, in order to implement the .opp_to_performance_state callback, add a simple_opp_to_performance_state() helper to do it, so it can be resued across all such genpd

[PATCH v6 10/10] soc: qcom: rpmhpd: Mark mx as a parent for cx

2018-12-11 Thread Rajendra Nayak
Specify the active + sleep and active-only MX power domains as the parents of the corresponding CX power domains. This will ensure that performance state requests on CX automatically generate equivalent requests on MX power domains. This is used to enforce a requirement that exists for various har

[PATCH v6 04/10] soc: qcom: rpmpd: Add support for get/set performance state

2018-12-11 Thread Rajendra Nayak
Add support for the .set_performace_state() and .opp_to_performance_state() callbacks in the rpmpd driver. Signed-off-by: Rajendra Nayak Signed-off-by: Viresh Kumar Reviewed-by: Ulf Hansson --- drivers/soc/qcom/rpmpd.c | 44 1 file changed, 44 insertion

Re: [PATCH v2] cpuidle: Add 'above' and 'below' idle state metrics

2018-12-11 Thread Rafael J. Wysocki
On Mon, Dec 10, 2018 at 11:51 PM Peter Zijlstra wrote: > > On Mon, Dec 10, 2018 at 10:36:40PM +0100, Rafael J. Wysocki wrote: > > On Mon, Dec 10, 2018 at 1:21 PM Peter Zijlstra wrote: > > > > One question on this; why is this tracked unconditionally? > > > > Because I didn't quite see how to make

Re: [PATCH][clk-next] clk: imx: remove redundant initialization of ret to zero

2018-12-11 Thread Colin Ian King
On 11/12/2018 09:48, Dan Carpenter wrote: > On Sun, Dec 09, 2018 at 03:08:32PM +, Colin King wrote: >> From: Colin Ian King >> >> The initialization of ret is redundant as it is being re-assigned to >> the return value from the call to imx8m_clk_composite_compute_dividers. >> Clean this up by

Re: [PATCH v4 00/18] MT8183 IOMMU SUPPORT

2018-12-11 Thread Joerg Roedel
On Sat, Dec 08, 2018 at 04:39:13PM +0800, Yong Wu wrote: > Arvind Yadav (1): > iommu/mediatek: Constify iommu_ops > > Yong Wu (17): > dt-bindings: mediatek: Add binding for mt8183 IOMMU and SMI > iommu/mediatek: Use a struct as the platform data > memory: mtk-smi: Use a general config_port

[PATCH -next] i5000_edac: remove set but not used variables 'maxdimmperch, maxch, channel_count'

2018-12-11 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/edac/i5000_edac.c: In function 'i5000_get_mc_regs': drivers/edac/i5000_edac.c:1138:6: warning: variable 'maxdimmperch' set but not used [-Wunused-but-set-variable] drivers/edac/i5000_edac.c:1137:6: warning: variable 'maxch' set but not used

[PATCH 2/2] regulator: arizona-ldo1: Rely on core to handle GPIO descriptor

2018-12-11 Thread Linus Walleij
After making sure that the regulator core always take over handling of the GPIO descriptors, the gpiod_put() on the errorpath of the Arizona LDO1 driver becomes redundant. Reported-by: Charles Keepax Signed-off-by: Linus Walleij --- drivers/regulator/arizona-ldo1.c | 3 --- 1 file changed, 3 de

[PATCH 1/2] regulator: wm8994: Rely on core to handle GPIO descriptor

2018-12-11 Thread Linus Walleij
After making sure that the regulator core always take over handling of the GPIO descriptors, the gpiod_put() on the errorpath of the wm8994 driver becomes redundant. Reported-by: Charles Keepax Signed-off-by: Linus Walleij --- drivers/regulator/wm8994-regulator.c | 11 ++- 1 file change

Re: [PATCH V3 1/2] mmc: mmci: add variant property to set command stop bit

2018-12-11 Thread Ludovic BARRE
On 12/11/18 10:47 AM, Ulf Hansson wrote: On Thu, 6 Dec 2018 at 16:13, Ludovic Barre wrote: From: Ludovic Barre On cmd12 (STOP_TRANSMISSION), STM32 sdmmc variant needs to set cmdstop bit in command register. The CPSM ("Command Path State Machine") treats the command as a Stop Transmission

Re: [PATCH v6 00/21] IOMMU: Tegra GART driver clean up and optimization

2018-12-11 Thread Joerg Roedel
On Sun, Dec 09, 2018 at 11:29:29PM +0300, Dmitry Osipenko wrote: > Dmitry Osipenko (21): > iommu/tegra: gart: Remove pr_fmt and clean up includes > iommu/tegra: gart: Clean up driver probe errors handling > iommu/tegra: gart: Ignore devices without IOMMU phandle in DT > iommu: Introduce iot

Re: [PATCH] mfd: cros_ec_dev: Add missing mfd_remove_devices() call in remove

2018-12-11 Thread Enric Balletbo i Serra
Hi Lee, On 11/12/18 7:12, Lee Jones wrote: > On Mon, 10 Dec 2018, Enric Balletbo i Serra wrote: > >> The driver adds different MFD child devices via mfd_add_devices() and >> hence it is required to call mfd_remove_devices() to remove MFD child >> devices. >> >> Fixes: 5e0115581bbc ("cros_ec: Move

RE: [PATCH v1 2/2] usb:cdns3 Add Cadence USB3 DRD Driver

2018-12-11 Thread Pawel Laszczak
Hi, >On 10/12/18 14:39, Pawel Laszczak wrote: >> This patch introduce new Cadence USBSS DRD driver >> to linux kernel. >> >> The Cadence USBSS DRD Driver is a highly >> configurable IP Core which can be >> instantiated as Dual-Role Device (DRD), >> Peripheral Only and Host Only (XHCI) >> configura

Re: [PATCH] kernel/hung_task.c: force ignore_loglevel before panic

2018-12-11 Thread Tetsuo Handa
On 2018/12/11 10:16, Liu, Chuansheng wrote: > We may enhance it by: > - if (sysctl_hung_task_warnings) { > + if (sysctl_hung_task_panic || sysctl_hung_task_warnings) { > if (sysctl_hung_task_warnings > 0) > sysctl_hung_task_warnings--; Why ignore

INFO: task hung in ctrl_getfamily

2018-12-11 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:40e020c129cf Linux 4.20-rc6 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=146ff5a340 kernel config: https://syzkaller.appspot.com/x/.config?x=c8970c89a0efbb23 dashboard link: https://syzkaller.a

Re: INFO: task hung in ctrl_getfamily

2018-12-11 Thread Dmitry Vyukov
On Tue, Dec 11, 2018 at 11:03 AM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:40e020c129cf Linux 4.20-rc6 > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=146ff5a340 > kernel config: https://syzkaller.appspot.com/x

Re: [PATCH] ksm: React on changing "sleep_millisecs" parameter faster

2018-12-11 Thread Cyrill Gorcunov
On Tue, Dec 11, 2018 at 12:23:11PM +0300, Kirill Tkhai wrote: ... > > Kirill, can we rather reuse @ksm_thread variable from ksm_init > > (by moving it to static file level variable). > > I've considered using it, but this is not looks good for me. > The problem is ksm thread may be parked, or it e

[PATCH] arm64: kexec_file: include linux/vmalloc.h

2018-12-11 Thread Arnd Bergmann
This is needed for compilation in some configurations that don't include it implicitly: arch/arm64/kernel/machine_kexec_file.c: In function 'arch_kimage_file_post_load_cleanup': arch/arm64/kernel/machine_kexec_file.c:37:2: error: implicit declaration of function 'vfree'; did you mean 'kvfree'? [

Re: [PATCH 2/4] ARM: tegra: avoid section mismatch warning

2018-12-11 Thread Thierry Reding
On Mon, Dec 10, 2018 at 10:58:37PM +0100, Arnd Bergmann wrote: > WARNING: vmlinux.o(.text+0x39ecc): Section mismatch in reference from the > function tegra114_gic_cpu_pm_registration() to the (unknown reference) > .init.rodata:(unknown) > The function tegra114_gic_cpu_pm_registration() references

[PATCH] usb: renesas_usbhs: mark PM functions as __maybe_unused

2018-12-11 Thread Arnd Bergmann
Without CONFIG_PM, we get a new build warning here: drivers/usb/renesas_usbhs/common.c:860:12: error: 'usbhsc_resume' defined but not used [-Werror=unused-function] static int usbhsc_resume(struct device *dev) ^ drivers/usb/renesas_usbhs/common.c:844:12: error: 'usbhsc_su

Re: [PATCH v3 2/3] ACPI / OSL: Allow PCI to be disabled

2018-12-11 Thread Rafael J. Wysocki
On Mon, Dec 10, 2018 at 7:13 PM Sinan Kaya wrote: > > Getting ready to allow PCI to be disabled with ACPI enabled. Stub > out calls that depend on PCI. I would prefer the subject to say something like "Allow CONFIG_PCI to be unset" or "Allow PCI to be disabled in Kconfig". It is somewhat ambiguo

Re: [PATCH] host1x: cdma: use completion instead of semaphore

2018-12-11 Thread Thierry Reding
On Mon, Dec 10, 2018 at 10:51:04PM +0100, Arnd Bergmann wrote: > In this usage, the two are completely equivalent, but the > completion documents better what is going on, and we generally > try to avoid semaphores these days. > > Signed-off-by: Arnd Bergmann > --- > drivers/gpu/host1x/cdma.c | 6

Re: [PATCH] staging: vchiq: rework remove_event handling

2018-12-11 Thread Dan Carpenter
On Mon, Dec 10, 2018 at 10:11:58PM +0100, Arnd Bergmann wrote: > Note that I'm changing it back to 'killable' after the previous patch > changed 'killable' to 'interruptible', apparently based on a misunderstanding > of the subtle down_interruptible() macro override in vchiq_killable.h. Oh wow...

Re: [PATCH 2/4] ARM: tegra: avoid section mismatch warning

2018-12-11 Thread Arnd Bergmann
On Tue, Dec 11, 2018 at 11:05 AM Thierry Reding wrote: > > On Mon, Dec 10, 2018 at 10:58:37PM +0100, Arnd Bergmann wrote: > > WARNING: vmlinux.o(.text+0x39ecc): Section mismatch in reference from the > > function tegra114_gic_cpu_pm_registration() to the (unknown reference) > > .init.rodata:(unk

[RESEND PATCH v3 3/3] regulator: mcp16502: add regulator driver for MCP16502

2018-12-11 Thread Andrei.Stefanescu
This patch adds a regulator driver for the MCP16502 PMIC. This drivers supports basic operations through the regulator interface such as: - setting/reading voltage - setting/reading operating mode - reading current status - transitioning to/from suspend-to-ram and standby power states Signed-off

[RESEND PATCH v3 2/3] MAINTAINERS: add maintainer for MCP16502 PMIC driver

2018-12-11 Thread Andrei.Stefanescu
This patch adds a maintainer for the MCP16502 PMIC driver. Signed-off-by: Andrei Stefanescu --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b755a89..6a74a65 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9730,6 +9730,13 @@ M: Ludov

[RESEND PATCH v3 1/3] regulator: dt-bindings: add MCP16502 regulator bindings

2018-12-11 Thread Andrei.Stefanescu
This patch describes the compatible and the device tree bindings necessary for the MCP16502 PMIC. Signed-off-by: Andrei Stefanescu Reviewed-by: Rob Herring --- .../bindings/regulator/mcp16502-regulator.txt | 143 + 1 file changed, 143 insertions(+) create mode 100644

Re: [PATCH v16 06/16] lib: fdt: add a helper function for handling memory range property

2018-12-11 Thread James Morse
Hi Akashi, On 11/12/2018 06:17, AKASHI, Takahiro wrote: > On Fri, Dec 07, 2018 at 10:12:47AM +, James Morse wrote: >> On 06/12/2018 15:54, Will Deacon wrote: >>> On Thu, Dec 06, 2018 at 08:47:04AM -0600, Rob Herring wrote: On Wed, Nov 14, 2018 at 11:52 PM AKASHI Takahiro wrote:

[RESEND PATCH v3 0/3] add support for MCP16502 PMIC

2018-12-11 Thread Andrei.Stefanescu
The resend is because I forgot to add Mark. MCP16502 is a Power Management IC from Microchip. It has 4 Buck outputs and 2 LDOs. The buck regulators can be used in two modes: normal(FPWM) and low-power(Auto PFM). This patch series adds support for the MCP16502 PMIC. v3: - use CONFIG_SUSPEND and C

Re: [PATCH v10 3/3] ALSA: hda: add support for Huawei WMI micmute LED

2018-12-11 Thread Andy Shevchenko
On Tue, Dec 11, 2018 at 8:02 AM Ayman Bagabas wrote: > > Some of Huawei laptops come with a LED in the micmute key. This patch > enables the use of micmute LED for these devices: > 1. Matebook X (19e5:3200), (19e5:3201) > 2. Matebook X Pro (19e5:3204) > > Reviewed-by: Takashi Iwai > Signed-off-by

Re: [PATCH 4/4] ARM: pxa: avoid section mismatch warning

2018-12-11 Thread Arnd Bergmann
On Tue, Dec 11, 2018 at 10:40 AM Ulf Hansson wrote: > > On Mon, 10 Dec 2018 at 23:00, Arnd Bergmann wrote: > > > > WARNING: vmlinux.o(.text+0x19f90): Section mismatch in reference from the > > function littleton_init_lcd() to the function .init.text:pxa_set_fb_info() > > The function littleton_i

Re: [LKP] [f2fs] 089842de57: aim7.jobs-per-min 15.4% improvement

2018-12-11 Thread Chao Yu
Hi all, The commit only clean up codes which are unused currently, so why we can improve performance with it? could you retest to make sure? Thanks, On 2018/12/11 17:59, kernel test robot wrote: > Greeting, > > FYI, we noticed a 15.4% improvement of aim7.jobs-per-min due to commit: > > > comm

Re: [PATCH] host1x: cdma: use completion instead of semaphore

2018-12-11 Thread Arnd Bergmann
On Tue, Dec 11, 2018 at 11:08 AM Thierry Reding wrote: > > On Mon, Dec 10, 2018 at 10:51:04PM +0100, Arnd Bergmann wrote: > > In this usage, the two are completely equivalent, but the > > completion documents better what is going on, and we generally > > try to avoid semaphores these days. > > > >

Re: [PATCH v2 1/3] ACPI: Allow PCI to be disabled for reboot

2018-12-11 Thread Rafael J. Wysocki
On Sat, Dec 8, 2018 at 10:47 PM Sinan Kaya wrote: > > Make PCI reboot conditional on PCI support being present on the kernel > configuration. > > Signed-off-by: Sinan Kaya Same comment as for patch [2/3]: make the subject say clearly that this is about CONFIG_PCI. > --- > drivers/acpi/reboot.c

[PATCH] scsi: ufs: revamp string descriptor reading

2018-12-11 Thread Tomas Winkler
Define new a type: uc_string_id for easier string handling and less casting. Reduce number or string copies in price of a dynamic allocation. Signed-off-by: Tomas Winkler --- drivers/scsi/ufs/ufs-sysfs.c | 20 ++--- drivers/scsi/ufs/ufs.h | 2 +- drivers/scsi/ufs/ufshcd.c| 164 +

Re: [PATCH] platform/x86: touchscreen_dmi: Add info for the Mediacom Flexbook Edge 11

2018-12-11 Thread Andy Shevchenko
On Tue, Dec 4, 2018 at 11:20 AM Hans de Goede wrote: > > Add a DMI match for the Mediacom Flexbook Edge 11, this is the same hw > as the Trekstor Primebook C11, so we use the same settings. > Pushed, thanks! > Reported-by: rmbg > Signed-off-by: Hans de Goede > --- > drivers/platform/x86/touch

Re: [PATCH v10 2/3] x86: add support for Huawei WMI hotkeys.

2018-12-11 Thread Andy Shevchenko
On Tue, Dec 11, 2018 at 8:02 AM Ayman Bagabas wrote: > > This driver adds support for missing hotkeys on some Huawei laptops. > Laptops such as the Matebook X have non functioning hotkeys. Whereas > newer laptops such as the Matebook X Pro come with working hotkeys out > of the box. > > Old laptop

Re: [PATCH 2/2] ACPI / scan: Refactor _CCA enforcement

2018-12-11 Thread Rafael J. Wysocki
On Fri, Dec 7, 2018 at 5:31 PM Robin Murphy wrote: > > Rather than checking the DMA attribute at each callsite, just pass it > through for acpi_dma_configure() to handle directly. That can then deal > with the relatively exceptional DEV_DMA_NOT_SUPPORTED case by explicitly > installing dummy DMA o

Re: [PATCH v1 1/2] dt-bindings: add binding for USBSS-DRD controller.

2018-12-11 Thread Roger Quadros
Pawel, On 10/12/18 14:39, Pawel Laszczak wrote: > This patch aim at documenting USB related dt-bindings for the > Cadence USBSS-DRD controller. > > Signed-off-by: Pawel Laszczak > --- > .../devicetree/bindings/usb/cdns3-usb.txt | 31 +++ > 1 file changed, 31 insertions(+) >

[PATCH] dts: arm64: add CoreSight trace support for hi3660

2018-12-11 Thread Wanglai Shi
This patch adds devicetree entries for the CoreSight trace components on hi3660. Signed-off-by: Wanglai Shi --- .../arm64/boot/dts/hisilicon/hi3660-coresight.dtsi | 428 + 1 file changed, 428 insertions(+) create mode 100644 arch/arm64/boot/dts/hisilicon/hi3660-coresight.dt

Re: [PATCH 1/2] platform/x86: intel_pmc_core: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-11 Thread Andy Shevchenko
On Wed, Dec 5, 2018 at 5:13 PM Yangtao Li wrote: > > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > Both patches had been pushed, thanks! > Signed-off-by: Yangtao Li > --- > drivers/platform/x86/intel_pmc_core.c | 49 +-- > 1 file changed, 8 insertions(+), 41 d

Re: linux-next: manual merge of the arm64 tree with Linus' tree

2018-12-11 Thread Catalin Marinas
On Tue, Dec 11, 2018 at 08:52:57AM +1100, Stephen Rothwell wrote: > Today's linux-next merge of the arm64 tree got conflicts in: > > Documentation/arm64/silicon-errata.txt > arch/arm64/Kconfig > > between commit: > > ce8c80c536da ("arm64: Add workaround for Cortex-A76 erratum 1286807") >

Re: [Bug 201949] New: KASAN: use-after-free Read in __handle_mm_fault

2018-12-11 Thread Dmitry Vyukov
On Tue, Dec 11, 2018 at 12:45 AM Andrew Morton wrote: > > (switched to email. Please respond via emailed reply-to-all, not via the > bugzilla web interface). Looking at the reproducer this looks like a bug in sg ioctl. +block/scsi_ioctl.c maintainers > On Mon, 10 Dec 2018 10:56:31 + bugzill

Re: [PATCH] mm, memory_hotplug: Don't bail out in do_migrate_range prematurely

2018-12-11 Thread Michal Hocko
On Tue 11-12-18 09:50:42, Oscar Salvador wrote: > do_migrate_ranges() takes a memory range and tries to isolate the > pages to put them into a list. > This list will be later on used in migrate_pages() to know > the pages we need to migrate. > > Currently, if we fail to isolate a single page, we p

Re: [PATCH] mfd: cros_ec_dev: Add missing mfd_remove_devices() call in remove

2018-12-11 Thread Lee Jones
On Tue, 11 Dec 2018, Enric Balletbo i Serra wrote: > Hi Lee, > > On 11/12/18 7:12, Lee Jones wrote: > > On Mon, 10 Dec 2018, Enric Balletbo i Serra wrote: > > > >> The driver adds different MFD child devices via mfd_add_devices() and > >> hence it is required to call mfd_remove_devices() to remo

Re: [PATCH] mfd: cros_ec_dev: Add missing mfd_remove_devices() call in remove

2018-12-11 Thread Lee Jones
On Mon, 10 Dec 2018, Enric Balletbo i Serra wrote: > The driver adds different MFD child devices via mfd_add_devices() and > hence it is required to call mfd_remove_devices() to remove MFD child > devices. > > Fixes: 5e0115581bbc ("cros_ec: Move cros_ec_dev module to drivers/mfd") > Cc: sta...@vg

Re: Coresight etmv4 enable over 32bit kernel

2018-12-11 Thread leo . yan
Hi Lei, On Tue, Dec 11, 2018 at 05:11:02PM +0800, Lei Wen wrote: > On Tue, Dec 11, 2018 at 2:02 AM Mathieu Poirier > wrote: > > > > Good day Adrian, > > > > On Sat, 8 Dec 2018 at 05:05, Lei Wen wrote: > > > > > > Hi Mathieu, > > > > > > I am enabling etmv4 coresight over one Cortex-A7 soc, using

Re: [PATCH v2 1/4] KVM: arm/arm64: vgic: Do not cond_resched_lock() with IRQs disabled

2018-12-11 Thread Christoffer Dall
On Mon, Nov 26, 2018 at 06:26:44PM +, Julien Thierry wrote: > To change the active state of an MMIO, halt is requested for all vcpus of > the affected guest before modifying the IRQ state. This is done by calling > cond_resched_lock() in vgic_mmio_change_active(). However interrupts are > disab

Re: [PATCH] mm, memory_hotplug: Don't bail out in do_migrate_range prematurely

2018-12-11 Thread Michal Hocko
On Tue 11-12-18 10:35:53, David Hildenbrand wrote: > So somehow remember if we had issues with one page and instead of > reporting 0, report e.g. -EAGAIN? There is no consumer of the return value right now and it is not really clear whether we need one. I would just make do_migrate_range return vo

RE: [PATCHv2 4/4] PCI: dwc: add prefetchable memory range support

2018-12-11 Thread Z.q. Hou
Hi Lorenzo, Thanks a lot for your comments! > -Original Message- > From: Lorenzo Pieralisi > Sent: 2018年11月29日 2:00 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; jingooh...@gmail.com; > gustavo.pimen...@synopsys.com; Roy Zang ; Ming

Re: [PATCH v6 10/10] soc: qcom: rpmhpd: Mark mx as a parent for cx

2018-12-11 Thread Ulf Hansson
On Tue, 11 Dec 2018 at 10:50, Rajendra Nayak wrote: > > Specify the active + sleep and active-only MX power domains as > the parents of the corresponding CX power domains. This will ensure that > performance state requests on CX automatically generate equivalent requests > on MX power domains. > >

Re: [PATCH v7 0/5] arm64: dts: qcom: sdm845: Add UFS DT nodes

2018-12-11 Thread Kishon Vijay Abraham I
On 11/12/18 12:58 AM, Evan Green wrote: > Update the device tree bindings for the QMP PHY to properly > specify the registers for dual-lane PHYs. Update the driver to use > those new registers. Add the DT nodes for UFS on SDM845 and MTP. > Finally, fix up the USB3 PHY on SDM845, which also has a

[PATCH v2] ksm: React on changing "sleep_millisecs" parameter faster

2018-12-11 Thread Kirill Tkhai
ksm thread unconditionally sleeps in ksm_scan_thread() after each iteration: schedule_timeout_interruptible( msecs_to_jiffies(ksm_thread_sleep_millisecs)) The timeout is configured in /sys/kernel/mm/ksm/sleep_millisecs. In case of user writes a big value by a mistake, and

Re: [PATCH] printk: Add caller information to printk() output.

2018-12-11 Thread Tetsuo Handa
>From bdb80508390694456f3f864f9651d047ded109bf Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Tue, 11 Dec 2018 19:23:30 +0900 Subject: [PATCH v4] printk: Add caller information to printk() output. Sometimes we want to print a series of printk() messages to consoles without being disturbed by c

Re: [PATCH] host1x: cdma: use completion instead of semaphore

2018-12-11 Thread Thierry Reding
On Tue, Dec 11, 2018 at 11:11:38AM +0100, Arnd Bergmann wrote: > On Tue, Dec 11, 2018 at 11:08 AM Thierry Reding > wrote: > > > > On Mon, Dec 10, 2018 at 10:51:04PM +0100, Arnd Bergmann wrote: > > > In this usage, the two are completely equivalent, but the > > > completion documents better what is

Re: [PATCH v10 3/3] ALSA: hda: add support for Huawei WMI micmute LED

2018-12-11 Thread Takashi Iwai
On Tue, 11 Dec 2018 11:09:59 +0100, Andy Shevchenko wrote: > > On Tue, Dec 11, 2018 at 8:02 AM Ayman Bagabas wrote: > > > > Some of Huawei laptops come with a LED in the micmute key. This patch > > enables the use of micmute LED for these devices: > > 1. Matebook X (19e5:3200), (19e5:3201) > > 2.

Re: Can we drop upstream Linux x32 support?

2018-12-11 Thread John Paul Adrian Glaubitz
Hello! I'm Debian's principal maintainer of the x32 port. On 12/11/18 2:23 AM, Andy Lutomirski wrote: > 1. It's not entirely clear that it has users. As far as I know, it's > supported on Gentoo and Debian, and the Debian popcon graph for x32 > has been falling off dramatically. I don't think t

Re: [PATCH 2/4] ARM: tegra: avoid section mismatch warning

2018-12-11 Thread Thierry Reding
On Tue, Dec 11, 2018 at 11:08:53AM +0100, Arnd Bergmann wrote: > On Tue, Dec 11, 2018 at 11:05 AM Thierry Reding > wrote: > > > > On Mon, Dec 10, 2018 at 10:58:37PM +0100, Arnd Bergmann wrote: > > > WARNING: vmlinux.o(.text+0x39ecc): Section mismatch in reference from the > > > function tegra114_

Re: [patch] futex: Cure exit race

2018-12-11 Thread Thomas Gleixner
On Mon, 10 Dec 2018, Sasha Levin wrote: > On Mon, Dec 10, 2018 at 10:16:03PM +0100, Thomas Gleixner wrote: > > On Mon, 10 Dec 2018, Sasha Levin wrote: > > > How should we proceed with this patch? > > > > I'll look into that once this is sorted... I so love these rotten kernels. > > It seems we ne

Re: [PATCH v2 4/4] KVM: arm/arm64: vgic: Make vgic_cpu->ap_list_lock a raw_spinlock

2018-12-11 Thread Christoffer Dall
On Mon, Nov 26, 2018 at 06:26:47PM +, Julien Thierry wrote: > vgic_cpu->ap_list_lock must always be taken with interrupts disabled as > it is used in interrupt context. > > For configurations such as PREEMPT_RT_FULL, this means that it should > be a raw_spinlock since RT spinlocks are interrup

Re: [patch] futex: Cure exit race

2018-12-11 Thread Thomas Gleixner
Stefan, On Tue, 11 Dec 2018, Stefan Liebler wrote: > does this also handle the ESRCH returned by > attach_to_pi_owner(...) > {... > if (!pid) > return -ESRCH; > p = find_get_task_by_vpid(pid); > if (!p) > return -ESRCH; > ... > > I think pid should ne

Re: [PATCH v6 10/10] soc: qcom: rpmhpd: Mark mx as a parent for cx

2018-12-11 Thread Rajendra Nayak
On 12/11/2018 3:52 PM, Ulf Hansson wrote: On Tue, 11 Dec 2018 at 10:50, Rajendra Nayak wrote: Specify the active + sleep and active-only MX power domains as the parents of the corresponding CX power domains. This will ensure that performance state requests on CX automatically generate equiv

[tip:x86/urgent] x86/mm: Fix guard hole handling

2018-12-11 Thread tip-bot for Kirill A. Shutemov
Commit-ID: 16877a5570e0c5f4270d5b17f9bab427bcae9514 Gitweb: https://git.kernel.org/tip/16877a5570e0c5f4270d5b17f9bab427bcae9514 Author: Kirill A. Shutemov AuthorDate: Fri, 30 Nov 2018 23:23:27 +0300 Committer: Thomas Gleixner CommitDate: Tue, 11 Dec 2018 11:19:24 +0100 x86/mm: Fix guar

Re: [PATCH 0/3] Add devicetree support for ad5933

2018-12-11 Thread Ardelean, Alexandru
On Mon, 2018-12-10 at 21:27 +, Jonathan Cameron wrote: > On Sat, 8 Dec 2018 22:10:43 +0100 > Greg KH wrote: > > > On Sat, Dec 08, 2018 at 04:56:45PM -0200, Marcelo Schmitt wrote: > > > Parts of this work came from contributions of Alexandru Ardelean and > > > Dragos Bogdan, I and Gabriel woul

[tip:x86/urgent] x86/dump_pagetables: Fix LDT remap address marker

2018-12-11 Thread tip-bot for Kirill A. Shutemov
Commit-ID: 254eb5505ca0ca749d3a491fc6668b6c16647a99 Gitweb: https://git.kernel.org/tip/254eb5505ca0ca749d3a491fc6668b6c16647a99 Author: Kirill A. Shutemov AuthorDate: Fri, 30 Nov 2018 23:23:28 +0300 Committer: Thomas Gleixner CommitDate: Tue, 11 Dec 2018 11:19:24 +0100 x86/dump_pagetab

Re: [PATCH] mm, memory_hotplug: Don't bail out in do_migrate_range prematurely

2018-12-11 Thread David Hildenbrand
On 11.12.18 11:20, Michal Hocko wrote: > On Tue 11-12-18 10:35:53, David Hildenbrand wrote: >> So somehow remember if we had issues with one page and instead of >> reporting 0, report e.g. -EAGAIN? > > There is no consumer of the return value right now and it is not really > clear whether we need

[PATCH] dma-debug: fix soft lockup when a lot of debug are enabled

2018-12-11 Thread Anders Roxell
When running a kernel in qemu with enough debugging options (slub-debug, ftrace, kcov, kasan, ubsan, ...) enabled together, that results in a slow initcall. So a 'watchdog: BUG: soft lockup' happens: [ 44.105619] Call trace: [ 44.106709] __slab_alloc+0x70/0x88 [ 44.107757] kmem_cache_alloc

[PATCH] kasan: mark kasan_check_(read|write) as 'notrace'

2018-12-11 Thread Anders Roxell
When option CONFIG_KASAN is enabled toghether with ftrace, function ftrace_graph_caller() gets in to a recursion, via functions kasan_check_read() and kasan_check_write(). Breakpoint 2, ftrace_graph_caller () at ../arch/arm64/kernel/entry-ftrace.S:179 179 mcount_get_pc x0

Re: [PATCH] arm64: kexec_file: include linux/vmalloc.h

2018-12-11 Thread Will Deacon
On Tue, Dec 11, 2018 at 11:05:46AM +0100, Arnd Bergmann wrote: > This is needed for compilation in some configurations that don't > include it implicitly: > > arch/arm64/kernel/machine_kexec_file.c: In function > 'arch_kimage_file_post_load_cleanup': > arch/arm64/kernel/machine_kexec_file.c:37:2:

[tip:x86/pti] x86/speculation/l1tf: Drop the swap storage limit restriction when l1tf=off

2018-12-11 Thread tip-bot for Michal Hocko
Commit-ID: d7409e79dbec2d2834fb6ccca53664197ab65505 Gitweb: https://git.kernel.org/tip/d7409e79dbec2d2834fb6ccca53664197ab65505 Author: Michal Hocko AuthorDate: Tue, 13 Nov 2018 19:49:10 +0100 Committer: Thomas Gleixner CommitDate: Tue, 11 Dec 2018 11:13:32 +0100 x86/speculation/l1tf:

Re: Can we drop upstream Linux x32 support?

2018-12-11 Thread Florian Weimer
* John Paul Adrian Glaubitz: > As for the enterprise support, this seems to be correct. I don't know > of any enterprise distribution with x32 support either. Me neither. I would expect a pure userspace port, with limitations in what ioctls you can use, and perhaps support from GCC to share more

Re: kvm: RDTSCP on AMD

2018-12-11 Thread Daniel P . Berrangé
On Mon, Dec 10, 2018 at 06:08:43PM -0200, Eduardo Habkost wrote: > On Mon, Dec 10, 2018 at 08:42:58PM +0100, Borislav Petkov wrote: > > On Mon, Dec 10, 2018 at 05:06:00PM -0200, Eduardo Habkost wrote: > > > I mean documenting it. We already have code that will print > > > warnings if a feature isn

Re: linux-next: manual merge of the akpm-current tree with the arm64 tree

2018-12-11 Thread Will Deacon
On Tue, Dec 11, 2018 at 05:12:30PM +1100, Stephen Rothwell wrote: > On Tue, 11 Dec 2018 17:11:02 +1100 Stephen Rothwell > wrote: > > > > Today's linux-next merge of the akpm-current tree got a conflict in: > > > > arch/arm64/mm/proc.S > > > > between commits: > > > > 67e7fdfcc682 ("arm64:

Re: [RFC PATCH glibc 1/4] glibc: Perform rseq(2) registration at nptl init and thread creation (v4)

2018-12-11 Thread Florian Weimer
* Mathieu Desnoyers: > I want to keep the __rseq_refcount symbol so out-of-libc users can > register rseq if they are linked against a pre-2.29 libc. Sorry, I was confused. > diff --git a/csu/Makefile b/csu/Makefile > index 88fc77662e..81d471587f 100644 > --- a/csu/Makefile > +++ b/csu/Makefile

Re: [PATCH v2] cpufreq: powernv: add of_node_put()

2018-12-11 Thread Rafael J. Wysocki
On Wednesday, November 21, 2018 5:02:04 AM CET Viresh Kumar wrote: > On 20-11-18, 11:05, Yangtao Li wrote: > > The of_find_node_by_path() returns a node pointer with refcount > > incremented,but there is the lack of use of the of_node_put() when > > done.Add the missing of_node_put() to release the

Re: [PATCH 4/4] ARM: pxa: avoid section mismatch warning

2018-12-11 Thread Linus Walleij
On Tue, Dec 11, 2018 at 10:40 AM Ulf Hansson wrote: > On Mon, 10 Dec 2018 at 23:00, Arnd Bergmann wrote: > > > > WARNING: vmlinux.o(.text+0x19f90): Section mismatch in reference from the > > function littleton_init_lcd() to the function .init.text:pxa_set_fb_info() > > The function littleton_ini

Re: [PATCH] PM / QoS: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-12-11 Thread Rafael J. Wysocki
On Sunday, November 11, 2018 12:29:55 PM CET Pavel Machek wrote: > > --V88s5gaDVPzZ0KCq > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Tue 2018-11-06 09:38:06, Yangtao Li wrote: > > Use DEFINE_SHOW_ATTRIBUTE macro to

Re: Can we drop upstream Linux x32 support?

2018-12-11 Thread John Paul Adrian Glaubitz
On 12/11/18 11:37 AM, Florian Weimer wrote: > Note that OpenJDK (well, Hotspot) has its own 32-bit pointer support for > the Java heap (compressed oops), so only the native code parts (and JNI) > benefit from x32 anyway. Yeah, I was actually only talking about this single commit by me to add Zero

Re: [PATCH v7 2/2] media: platform: Add Aspeed Video Engine driver

2018-12-11 Thread Hans Verkuil
On 12/10/18 11:26 PM, Eddie James wrote: > The Video Engine (VE) embedded in the Aspeed AST2400 and AST2500 SOCs > can capture and compress video data from digital or analog sources. With > the Aspeed chip acting a service processor, the Video Engine can capture > the host processor graphics output

Re: [PATCH] cpufreq: s3c24xx: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-12-11 Thread Rafael J. Wysocki
On Thursday, November 8, 2018 5:45:03 AM CET Viresh Kumar wrote: > On 07-11-18, 11:13, Yangtao Li wrote: > > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > > > Signed-off-by: Yangtao Li > > --- > > drivers/cpufreq/s3c24xx-cpufreq-debugfs.c | 46 +++ > > 1 file chan

Re: [PATCH 1/2] cpufreq: intel_pstate: Force HWP min perf before offline

2018-12-11 Thread Rafael J. Wysocki
On Friday, November 16, 2018 11:24:19 PM CET Srinivas Pandruvada wrote: > Force HWP Request MAX = HWP Request MIN = HWP Capability MIN and EPP to > 0xFF. In this way the performance limits on the offlined CPU will not > influence performance limits on its sibling CPU, which is still online. > > If

Re: [PATCH v2] cpufreq: pmac64: add of_node_put()

2018-12-11 Thread Rafael J. Wysocki
On Monday, November 26, 2018 7:02:26 AM CET Viresh Kumar wrote: > On 23-11-18, 08:33, Yangtao Li wrote: > > of_find_node_by_path() acquires a reference to the node > > returned by it and that reference needs to be dropped by its caller. > > g5_neo2_cpufreq_init() doesn't do that, so fix it. > > >

Re: [tip:x86/pti] x86/speculation/l1tf: Drop the swap storage limit restriction when l1tf=off

2018-12-11 Thread Thomas Gleixner
On Tue, 11 Dec 2018, Ingo Molnar wrote: > >off Disables hypervisor mitigations and doesn't emit any > > warnings. > > + It also drops the swap size and available RAM limit restrictions > > +on both hypervisor and bare metal. > > + > > Note tha

Re: [PATCH] drm/sun4i: fix HSYNC and VSYNC polarity

2018-12-11 Thread Jonathan Liu
Hi Giulio, On Thu, 6 Dec 2018 at 22:00, Giulio Benetti wrote: > > Hi Jonathan, > > Il 06/12/2018 08:29, Jonathan Liu ha scritto: > > Hi Giulio, > > > > On Thu, 15 Feb 2018 at 17:54, Giulio Benetti > > wrote: > >> > >> Differently from other Lcd signals, HSYNC and VSYNC signals > >> result invert

Re: [PATCH 1/2] cpufreq: imx6q: remove unused code

2018-12-11 Thread Rafael J. Wysocki
On Monday, November 26, 2018 3:59:45 AM CET Anson Huang wrote: > In voltage scale down path, the return value is NOT > used at all, remove them to simplify the code. > > Signed-off-by: Anson Huang > --- > drivers/cpufreq/imx6q-cpufreq.c | 12 +++- > 1 file changed, 3 insertions(+), 9 del

Re: [PATCH] i2c: nvidia-gpu: mark resume function as __maybe_unused

2018-12-11 Thread Andy Shevchenko
On Mon, Dec 10, 2018 at 09:53:45PM +0100, Arnd Bergmann wrote: > When CONFIG_PM is disabled, this is needed to avoid a harmless > unused-function warning: > > drivers/i2c/busses/i2c-nvidia-gpu.c:345:12: error: 'gpu_i2c_resume' defined > but not used [-Werror=unused-function] > FWIW, Reviewed-by

Re: [PATCH v2 1/6] misc: dt-bindings: Add Qualcomm Fastrpc bindings

2018-12-11 Thread Srinivas Kandagatla
On 07/12/18 18:23, Mark Rutland wrote: + cb@1 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <1>; + iommus = <&lpass_q6_smmu 1>; These iommus should be associated with the device (i.e. the DSP itself). Are you referring to implement this

Re: [PATCH 4.19 014/110] usb: xhci: Prevent bus suspend if a port connect change or polling state is detected

2018-12-11 Thread Thomas Zeitlhofer

[tip:x86/pti] x86/speculation/l1tf: Drop the swap storage limit restriction when l1tf=off

2018-12-11 Thread tip-bot for Michal Hocko
Commit-ID: 5b5e4d623ec8a34689df98e42d038a3b594d2ff9 Gitweb: https://git.kernel.org/tip/5b5e4d623ec8a34689df98e42d038a3b594d2ff9 Author: Michal Hocko AuthorDate: Tue, 13 Nov 2018 19:49:10 +0100 Committer: Thomas Gleixner CommitDate: Tue, 11 Dec 2018 11:46:13 +0100 x86/speculation/l1tf:

Re: [PATCH v6 00/20] lib, rtc: Print rtc_time via %ptR[dt][r]

2018-12-11 Thread Alexandre Belloni
On 04/12/2018 23:23:10+0200, Andy Shevchenko wrote: > At some point I have noticed too many users of struct rtc_time that > printing its content field by field. > > In this series I introduce %ptR[dt][r] specifier to make life a bit > easier. > > There are still users of detailed output of the st

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