[PATCH v2 3/3] HID: logitech-hidpp: do all FF cleanup in hidpp_ff_destroy()

2019-10-16 Thread Andrey Smirnov
All of the FF-related resources belong to corresponding FF device, so they should be freed as a part of hidpp_ff_destroy() to avoid potential race condidions. Fixes: ff21a635dd1a ("HID: logitech-hidpp: Force feedback support for the Logitech G920") Suggested-by: Benjamin Tissoires

[PATCH v2 1/3] HID: logitech-hidpp: split g920_get_config()

2019-10-16 Thread Andrey Smirnov
Original version of g920_get_config() contained two kind of actions: 1. Device specific communication to query/set some parameters which requires active communication channel with the device, or, put in other way, for the call to be sandwiched between

[PATCH v8] tpm_crb: fix fTPM on AMD Zen+ CPUs

2019-10-16 Thread ivan . lazeev
From: Ivan Lazeev Bug link: https://bugzilla.kernel.org/show_bug.cgi?id=195657 cmd/rsp buffers are expected to be in the same ACPI region. For Zen+ CPUs BIOS's might report two different regions, some of them also report region sizes inconsistent with values from TPM registers. Memory

Re: [PATCH 2/2] net: lpc_eth: parse phy nodes from device tree

2019-10-16 Thread David Miller
From: Alexandre Belloni Date: Thu, 10 Oct 2019 22:45:30 +0200 > When connected to a micrel phy, phy_find_first doesn't work properly > because the first phy found is on address 0, the broadcast address but, the > first thing the phy driver is doing is disabling this broadcast address. > The phy

[PATCH] MAINTAINERS: Use @kernel.org address for Paul Burton

2019-10-16 Thread Paul Burton
From: Paul Burton Switch to using my paulbur...@kernel.org email address in order to avoid subject mangling that's being imposed on my previous address. Signed-off-by: Paul Burton Signed-off-by: Paul Burton --- .mailmap| 3 ++- MAINTAINERS | 10 +- 2 files changed, 7

[PATCH 06/10] thermal: devfreq_cooling: Remove unneeded conversions to bool

2019-10-16 Thread Andrew F. Davis
Found with scripts/coccinelle/misc/boolconv.cocci. Signed-off-by: Andrew F. Davis --- drivers/thermal/devfreq_cooling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/devfreq_cooling.c b/drivers/thermal/devfreq_cooling.c index ef59256887ff..e386a3241700

[PATCH 07/10] [SCSI] Buslogic: Remove unneeded conversions to bool

2019-10-16 Thread Andrew F. Davis
Found with scripts/coccinelle/misc/boolconv.cocci. Signed-off-by: Andrew F. Davis --- drivers/scsi/BusLogic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c index c25e8a54e869..6a0a74e9edc9 100644 ---

[PATCH 08/10] i40e: Remove unneeded conversions to bool

2019-10-16 Thread Andrew F. Davis
Found with scripts/coccinelle/misc/boolconv.cocci. Signed-off-by: Andrew F. Davis --- drivers/net/ethernet/intel/i40e/i40e_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c index

[PATCH 04/10] atl1c: remove unneeded conversions to bool

2019-10-16 Thread Andrew F. Davis
Found with scripts/coccinelle/misc/boolconv.cocci. Signed-off-by: Andrew F. Davis --- drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c

[PATCH 09/10] ixgbe: Remove unneeded conversions to bool

2019-10-16 Thread Andrew F. Davis
Found with scripts/coccinelle/misc/boolconv.cocci. Signed-off-by: Andrew F. Davis --- drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c

[PATCH 05/10] mlxsw: Remove unneeded conversions to bool

2019-10-16 Thread Andrew F. Davis
Found with scripts/coccinelle/misc/boolconv.cocci. Signed-off-by: Andrew F. Davis --- drivers/net/ethernet/mellanox/mlxsw/switchx2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlxsw/switchx2.c

[PATCH 10/10] ath5k: Remove unneeded conversions to bool

2019-10-16 Thread Andrew F. Davis
Found with scripts/coccinelle/misc/boolconv.cocci. Signed-off-by: Andrew F. Davis --- drivers/net/wireless/ath/ath5k/ani.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath5k/ani.c b/drivers/net/wireless/ath/ath5k/ani.c index

Re: [PATCH v1 07/17] cpufreq: tegra20: Use generic cpufreq-dt driver (Tegra30 supported now)

2019-10-16 Thread Dmitry Osipenko
16.10.2019 17:58, Peter Geis пишет: > On Wed, Oct 16, 2019 at 9:29 AM Dmitry Osipenko wrote: >> >> 16.10.2019 08:18, Viresh Kumar пишет: >>> On 16-10-19, 00:16, Dmitry Osipenko wrote: Re-parenting to intermediate clock is supported now by the clock driver and thus there is no need in a

[PATCH 03/10] mtd: nand: qcom: remove unneeded conversions to bool

2019-10-16 Thread Andrew F. Davis
Found with scripts/coccinelle/misc/boolconv.cocci. Signed-off-by: Andrew F. Davis --- drivers/mtd/nand/raw/qcom_nandc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c index 7bb9a7e8e1e7..b437b0c79cf2

[PATCH 02/10] cxl: remove unneeded conversions to bool

2019-10-16 Thread Andrew F. Davis
Found with scripts/coccinelle/misc/boolconv.cocci. Signed-off-by: Andrew F. Davis --- drivers/misc/cxl/sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/cxl/sysfs.c b/drivers/misc/cxl/sysfs.c index f0263d1a1fdf..c57ec87bc0a6 100644 ---

Re: [PATCH v1] PM / Domains: Add tracepoints

2019-10-16 Thread Matthias Kaehlcke
On Wed, Oct 16, 2019 at 03:47:44PM +0200, Ulf Hansson wrote: > On Tue, 15 Oct 2019 at 19:19, Matthias Kaehlcke wrote: > > > > Hi Ulf, > > > > On Tue, Oct 15, 2019 at 02:37:42PM +0200, Ulf Hansson wrote: > > > On Tue, 1 Oct 2019 at 18:35, Matthias Kaehlcke wrote: > > > > > > > > On Fri, Sep 27,

Re: [PATCH 1/4] KVM: VMX: rename {vmx,nested_vmx}_vcpu_setup functions

2019-10-16 Thread Krish Sadhukhan
On 10/15/19 6:27 PM, Xiaoyao Li wrote: On 10/16/2019 6:05 AM, Krish Sadhukhan wrote: On 10/15/2019 09:40 AM, Xiaoyao Li wrote: Rename {vmx,nested_vmx}_vcpu_setup to {vmx,nested_vmx}_vmcs_setup, to match what they really do. No functional change. Signed-off-by: Xiaoyao Li ---  

[PATCH 01/10] drm/nouveau: remove unneeded conversions to bool

2019-10-16 Thread Andrew F. Davis
Found with scripts/coccinelle/misc/boolconv.cocci. Signed-off-by: Andrew F. Davis --- drivers/gpu/drm/nouveau/nouveau_ttm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_ttm.c b/drivers/gpu/drm/nouveau/nouveau_ttm.c index

[PATCH] omapfb/dss: remove unneeded conversions to bool

2019-10-16 Thread Andrew F. Davis
Found with scripts/coccinelle/misc/boolconv.cocci. Signed-off-by: Andrew F. Davis --- drivers/video/fbdev/omap2/omapfb/dss/dispc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dispc.c

linux-next: 20191016: remove_proc_entry: removing non-empty directory 'net/dev_snmp6', leaking at least 'lo'

2019-10-16 Thread Naresh Kamboju
Linux next 20191016 booting on x86_64, arm and arm64 popping up kernel warning while booting. Please find full log link and kernel config. Linux version 5.4.0-rc3-next-20191016 (oe-user@oe-host) (gcc version 7.3.0 (GCC)) #1 SMP Wed Oct 16 05:26:04 UTC 2019 [4.212923] [ cut here

Re: [RFT][PATCH 2/3] cpufreq: Use per-policy frequency QoS

2019-10-16 Thread Dmitry Osipenko
[ cut here ] [ 43.363403] WARNING: CPU: 2 PID: 224 at lib/refcount.c:156 dev_pm_opp_of_add_table+0x59/0x128 [ 43.364119] refcount_t: increment on 0; use-after-free. [ 43.364562] Modules linked in: cpufreq_dt(+) tegra30_devfreq [last unloaded: cpufreq_dt] [ 43.365268] C

Re: [PATCH v4 1/2] lib: devres: add a helper function for ioremap_uc

2019-10-16 Thread Tuowen Zhao
On Wed, 2019-10-16 at 12:56 +, Luis Chamberlain wrote: > Indeed, can you add that? If you are not comfortable the way to leave > behind lazy architectures is the HAS_FOO feature and then have your > driver require that or depend on the archs that support this. This > allows non-lazy

Re: [PATCH v8 0/5] arm64: ftrace with regs

2019-10-16 Thread Mark Rutland
On Wed, Oct 16, 2019 at 01:42:59PM +0200, Jiri Kosina wrote: > On Wed, 24 Jul 2019, Mark Rutland wrote: > > > > > > > So what's the status now? Besides debatable minor style > > > > > > issues there were no more objections to v8. Would this > > > > > > go through the ARM repo or via the ftrace

Re: [Outreachy kernel] [PATCH] staging: vc04_services: fix line over 80 characters checks warning

2019-10-16 Thread Jules Irenge
On Wed, 16 Oct 2019, Julia Lawall wrote: > > #ifndef VCHI_BULK_GRANULARITY > > # if __VCCOREVER__ >= 0x0400 > > -# define VCHI_BULK_GRANULARITY 32 // Allows for the need to do cache > > cleans > > +# define VCHI_BULK_GRANULARITY 32 // Allows for the need of cache cleans > > #

Re: [PATCH net-next 00/12] net: hns3: add some bugfixes and optimizations

2019-10-16 Thread David Miller
From: Jakub Kicinski Date: Wed, 16 Oct 2019 10:19:43 -0700 > On Wed, 16 Oct 2019 15:16:59 +0800, Huazhong Tan wrote: >> This patch-set includes some bugfixes and code optimizations >> for the HNS3 ethernet controller driver. > > The code LGTM, mostly, but it certainly seems like patches 2, 3

Re: [PATCH v1 1/4] net: ag71xx: port to phylink

2019-10-16 Thread David Miller
From: Andrew Lunn Date: Wed, 16 Oct 2019 15:32:15 +0200 > I don't know if there are any strict rules, but i tend to use To: for > the maintainer you expect to merge the patch, and Cc: for everybody > else, and the lists. This is a good way to handle things.

Re: [PATCH] net: bpf: add static in net/core/filter.c

2019-10-16 Thread David Miller
From: Ben Dooks Date: Wed, 16 Oct 2019 14:11:52 +0100 > Hmm, your config it does, I get /none/ of these warnings. > > I guess a lot of this is being built whether or not is then used. When you are making changes like this, unless you have done a full grep over the tree and are %100 sure it is

Re: [PATCH v2 bpf-next] bpf/stackmap: fix deadlock with rq_lock in bpf_get_stack()

2019-10-16 Thread Alexei Starovoitov
On Mon, Oct 14, 2019 at 10:12 AM Song Liu wrote: > > bpf stackmap with build-id lookup (BPF_F_STACK_BUILD_ID) can trigger A-A > deadlock on rq_lock(): > > rcu: INFO: rcu_sched detected stalls on CPUs/tasks: > [...] > Call Trace: > try_to_wake_up+0x1ad/0x590 > wake_up_q+0x54/0x80 >

Re: [PATCH v9 09/17] x86/split_lock: Handle #AC exception for split lock

2019-10-16 Thread Sean Christopherson
On Wed, Oct 16, 2019 at 09:23:37AM -0700, Sean Christopherson wrote: > On Wed, Oct 16, 2019 at 05:43:53PM +0200, Paolo Bonzini wrote: > > On 16/10/19 17:41, Sean Christopherson wrote: > > > On Wed, Oct 16, 2019 at 04:08:14PM +0200, Paolo Bonzini wrote: > > >> SIGBUS (actually a new

Re: [PATCH] thermal: create softlink by name for thermal_zone and cooling_device

2019-10-16 Thread Amit Kucheria
On Wed, Oct 16, 2019 at 10:20 PM Amit Kucheria wrote: > > On Tue, Oct 15, 2019 at 11:43 AM Wei Wang wrote: > > > > The paths thermal_zone%d and cooling_device%d are not intuitive and the > > numbers are subject to change due to device tree change. This usually > > leads to tree traversal in

Re: [PATCH 0/6] arm64: dts: rockchip: ROC-PC fixes

2019-10-16 Thread Jagan Teki
Hi Heiko, On Thu, Sep 19, 2019 at 10:58 AM Jagan Teki wrote: > > This series is trying to fix the Linux boot and other > regulators stuff for ROC-RK3399-PC board. > > patch 1: attach pinctrl to pwm2 pin > > patch 2-4: libretech naming conventions > > patch 5-6: regulator renaming, input rails

Re: [PATCH net-next 00/12] net: hns3: add some bugfixes and optimizations

2019-10-16 Thread Jakub Kicinski
On Wed, 16 Oct 2019 15:16:59 +0800, Huazhong Tan wrote: > This patch-set includes some bugfixes and code optimizations > for the HNS3 ethernet controller driver. The code LGTM, mostly, but it certainly seems like patches 2, 3 and 4 should be a separate series targeting the net tree :(

Re: [PATCH net-next 11/12] net: hns3: do not allocate linear data for fraglist skb

2019-10-16 Thread Jakub Kicinski
On Wed, 16 Oct 2019 15:17:10 +0800, Huazhong Tan wrote: > From: Yunsheng Lin > > Currently, napi_alloc_skb() is used to allocate skb for fraglist > when the head skb is not enough to hold the remaining data, and > the remaining data is added to the frags part of the fraglist skb, > leaving the

Re: [PATCH 1/2] iommu/dmar: collect fault statistics

2019-10-16 Thread Bjorn Helgaas
Hi Yuri, On Tue, Oct 15, 2019 at 05:11:11PM +0200, Yuri Volchkov wrote: > Currently dmar_fault handler only prints a message in the dmesg. This > commit introduces counters - how many faults have happened, and > exposes them via sysfs. Each pci device will have an entry > 'dmar_faults' reading

Re: [PATCH v3 2/3] selftests/livepatch: Make dynamic debug setup and restore generic

2019-10-16 Thread Kamalesh Babulal
On 10/16/19 5:03 PM, Miroslav Benes wrote: > From: Joe Lawrence > > Livepatch selftests currently save the current dynamic debug config and > tweak it for the selftests. The config is restored at the end. Make the > infrastructure generic, so that more variables can be saved and > restored. > >

Re: [PATCH net-next 08/12] net: hns3: introduce ring_to_netdev() in enet module

2019-10-16 Thread Jakub Kicinski
On Wed, 16 Oct 2019 15:17:07 +0800, Huazhong Tan wrote: > From: Yunsheng Lin > > There are a few places that need to access the netdev of a ring > through ring->tqp->handle->kinfo.netdev, and ring->tqp is a struct > which both in enet and hclge modules, it is better to use the > struct that is

Re: [PATCH 1/6] arm64: dts: rockchip: Fix rk3399-roc-pc pwm2 pin

2019-10-16 Thread Jagan Teki
c7, no such setting is > necessary, and the board boots happily. > > I cannot find the use of "active" pinctrl state in the > `drivers/pwm/pwm-rockchip.c`. If the pinctrl state needs to be setup as > default, the `pinctrl-names` needs to be "default" or &qu

[PATCH 2/2] arm64: dts: meson-gxbb-vega-s95: set rc-vega-s9x ir keymap

2019-10-16 Thread Christian Hewitt
Add the rc-vega-s9x keymap to the existing IR node in the device tree. Signed-off-by: Christian Hewitt --- arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi

[PATCH 0/2] arm64: dts: meson: Tronsmart Vega ir keymap updates

2019-10-16 Thread Christian Hewitt
The Tronsmart Vega S95 (S905) and S96 (S912) Android STBs use the same IR remote. The rc-vega-s9x keymap has been accepted for Linux v5.5 [0] so add the keymap to the respective dts. [0] https://patchwork.linuxtv.org/patch/59434/ Christian Hewitt (2): arm64: dts: meson-gxm-vega-s96: set

[PATCH 1/2] arm64: dts: meson-gxm-vega-s96: set rc-vega-s9x ir keymap

2019-10-16 Thread Christian Hewitt
Add an IR node to the Vega S96 dts to include the rc-vega-s9x keymap. Signed-off-by: Christian Hewitt --- arch/arm64/boot/dts/amlogic/meson-gxm-vega-s96.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-vega-s96.dts

Re: [PATCH] kvm: clear kvmclock MSR on reset

2019-10-16 Thread Vitaly Kuznetsov
Paolo Bonzini writes: > After resetting the vCPU, the kvmclock MSR keeps the previous value but it is > not enabled. This can be confusing, so fix it. > > Signed-off-by: Paolo Bonzini > --- > arch/x86/kvm/x86.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git

Re: [PATCH v3 3/3] selftests/livepatch: Test interaction with ftrace_enabled

2019-10-16 Thread Kamalesh Babulal
On 10/16/19 5:03 PM, Miroslav Benes wrote: > From: Joe Lawrence > > Since livepatching depends upon ftrace handlers to implement "patched" > code functionality, verify that the ftrace_enabled sysctl value > interacts with livepatch registration as expected. At the same time, > ensure that

[PATCH v2 2/2] arm: dts: vf-colibri: add recovery mode to i2c

2019-10-16 Thread Philippe Schenker
This patch enables the recovery mode now available. Signed-off-by: Philippe Schenker --- Changes in v2: - Added scl/sda gpios arch/arm/boot/dts/vf-colibri.dtsi | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/vf-colibri.dtsi

[PATCH v2 1/2] arm: dts: imx*(colibri|apalis): add missing recovery modes to i2c

2019-10-16 Thread Philippe Schenker
This patch adds missing i2c recovery modes and corrects wrongly named ones. Signed-off-by: Philippe Schenker --- Changes in v2: - Added scl/sda gpio - Added missing recovery mode to i2c2 on imx6qdl-colibri arch/arm/boot/dts/imx6qdl-apalis.dtsi | 30 +-

Re: [PATCH 12/14] KVM: retpolines: x86: eliminate retpoline from vmx.c exit handlers

2019-10-16 Thread Paolo Bonzini
On 16/10/19 18:50, Andrea Arcangeli wrote: >> It still doesn't add up. 0.3ms / 5 is 1/15000th of a second; 43us is >> 1/25000th of a second. Do you have multiple vCPU perhaps? > > Why would I run any test on UP guests? Rather then spending time doing > the math on my results, it's probably

Re: reeze while write on external usb 3.0 hard disk [Bug 204095]

2019-10-16 Thread Alan Stern
On Sun, 13 Oct 2019, Piergiorgio Sartor wrote: > On Mon, Sep 30, 2019 at 08:25:01PM +0200, Piergiorgio Sartor wrote: > > On Sun, Sep 29, 2019 at 09:01:48PM -0400, Alan Stern wrote: > > > On Sun, 29 Sep 2019, Piergiorgio Sartor wrote: > > > > > > > On Wed, Sep 25, 2019 at 02:31:58PM -0400, Alan

Re: [PATCH v5 05/14] software node: clean up property_copy_string_array()

2019-10-16 Thread Dmitry Torokhov
On Wed, Oct 16, 2019 at 10:53:00AM +0300, Andy Shevchenko wrote: > On Tue, Oct 15, 2019 at 11:12:11AM -0700, Dmitry Torokhov wrote: > > On Tue, Oct 15, 2019 at 03:07:26PM +0300, Andy Shevchenko wrote: > > > On Fri, Oct 11, 2019 at 04:07:12PM -0700, Dmitry Torokhov wrote: > > > > Because

Re: [PATCH v3 0/3] Fix typo in RWH_WRITE_LIFE_NOT_SET constant name

2019-10-16 Thread Song Liu
Hi Jeff and J. Bruce, On Wed, Oct 2, 2019 at 9:55 AM Song Liu wrote: > > On Tue, Oct 1, 2019 at 5:55 PM Jens Axboe wrote: > > > > On 10/1/19 5:12 PM, Song Liu wrote: > > > On Fri, Sep 20, 2019 at 8:58 AM Eugene Syromiatnikov > > > wrote: > > >> > > >> Hello. > > >> > > >> This is a small fix

Re: [PATCH] KVM: SVM: Fix potential wrong physical id in avic_handle_ldr_update

2019-10-16 Thread Vitaly Kuznetsov
Miaohe Lin writes: > Guest physical APIC ID may not equal to vcpu->vcpu_id in some case. > We may set the wrong physical id in avic_handle_ldr_update as we > always use vcpu->vcpu_id. > > Signed-off-by: Miaohe Lin > --- > arch/x86/kvm/svm.c | 4 +++- > 1 file changed, 3 insertions(+), 1

Re: [PATCH v5 10/14] software node: rename is_array to is_inline

2019-10-16 Thread Dmitry Torokhov
On Wed, Oct 16, 2019 at 10:59:40AM +0300, Andy Shevchenko wrote: > On Tue, Oct 15, 2019 at 11:22:06AM -0700, Dmitry Torokhov wrote: > > On Mon, Oct 14, 2019 at 10:37:20AM +0300, Andy Shevchenko wrote: > > > On Fri, Oct 11, 2019 at 04:07:17PM -0700, Dmitry Torokhov wrote: > > > > We do not need a

Re: [PATCH 1/3] auxdisplay: Make charlcd.[ch] more general

2019-10-16 Thread Miguel Ojeda
On Wed, Oct 16, 2019 at 10:24 AM Lars Poeschel wrote: > > charlcd.c contains lots of hd44780 hardware specific stuff. It is nearly > impossible to reuse the interface for other character based displays. > The current users of charlcd are the hd44780 and the panel drivers. > This does factor out

[PATCH] x86/PCI: sta2x11: use default DMA address translation ops

2019-10-16 Thread Nicolas Saenz Julienne
The devices found behind this PCIe chip have unusual DMA mapping constraints as there is an AMBA interconnect placed in between them and the different PCI endpoints. The offset between physical memory addresses and AMBA's view is provided by reading a PCI config register, which is saved and used

Re: [PATCH 12/14] KVM: retpolines: x86: eliminate retpoline from vmx.c exit handlers

2019-10-16 Thread Andrea Arcangeli
On Wed, Oct 16, 2019 at 09:07:39AM +0200, Paolo Bonzini wrote: > Yet you would add CPUID to the list even though it is not even there in > your benchmarks, and is *never* invoked in a hot path by *any* sane I justified CPUID as a "short term" benchmark gadget, it's one of those it shouldn't be a

Re: [PATCH] thermal: create softlink by name for thermal_zone and cooling_device

2019-10-16 Thread Amit Kucheria
On Tue, Oct 15, 2019 at 11:43 AM Wei Wang wrote: > > The paths thermal_zone%d and cooling_device%d are not intuitive and the > numbers are subject to change due to device tree change. This usually > leads to tree traversal in userspace code. > The patch creates `tz-by-name' and `cdev-by-name' for

Re: [PATCH] staging: exfat: add exfat filesystem code to staging

2019-10-16 Thread Greg Kroah-Hartman
On Wed, Oct 16, 2019 at 06:32:31PM +0200, Pali Rohár wrote: > On Wednesday 16 October 2019 09:22:11 Greg Kroah-Hartman wrote: > > On Wed, Oct 16, 2019 at 06:03:49PM +0200, Pali Rohár wrote: > > > > Can I assume you will be implementing TexFAT support once the spec is > > > > available? > > > > >

Re: [PATCH V2] mm/page_alloc: Add alloc_contig_pages()

2019-10-16 Thread David Hildenbrand
On 16.10.19 17:31, Anshuman Khandual wrote: On 10/16/2019 06:11 PM, Michal Hocko wrote: On Wed 16-10-19 14:29:05, David Hildenbrand wrote: On 16.10.19 13:51, Michal Hocko wrote: On Wed 16-10-19 16:43:57, Anshuman Khandual wrote: On 10/16/2019 04:39 PM, David Hildenbrand wrote: [...]

Re: [PATCH v7 0/7] Add support of New Amlogic temperature sensor for G12 SoCs

2019-10-16 Thread Daniel Lezcano
Hi Kevin, On 16/10/2019 18:39, Kevin Hilman wrote: > Eduardo, > > Guillaume La Roque writes: > >> This patchs series add support of New Amlogic temperature sensor and minimal >> thermal zone for SEI510 and ODROID-N2 boards. > > [...] > >> Guillaume La Roque (7): >> dt-bindings: thermal:

Re: [PATCH v5 11/14] software node: move small properties inline when copying

2019-10-16 Thread Dmitry Torokhov
On Wed, Oct 16, 2019 at 07:23:08PM +0300, Andy Shevchenko wrote: > On Wed, Oct 16, 2019 at 07:18:45PM +0300, Andy Shevchenko wrote: > > On Wed, Oct 16, 2019 at 09:01:26AM -0700, Dmitry Torokhov wrote: > > > On Wed, Oct 16, 2019 at 10:48:57AM +0300, Andy Shevchenko wrote: > > > > On Tue, Oct 15,

Re: [PATCH 0/2] arm64: dts: meson: sm1: add audio support

2019-10-16 Thread Kevin Hilman
Kevin Hilman writes: > Jerome Brunet writes: > >> This patchset adds audio support on the sm1 SoC family and the >> sei610 platform > > Queued for v5.5. > >> Kevin, The patchset depends on: >> - The ARB binding merged by Philipp [0] >> - The audio clock controller bindings I just applied. A

Re: [PATCH v7 4/7] arm64: dts: meson: g12: Add minimal thermal zone

2019-10-16 Thread Kevin Hilman
Guillaume La Roque writes: > Add minimal thermal zone for two temperature sensor > One is located close to the DDR and the other one is > located close to the PLLs (between the CPU and GPU) nit: subject should be "arm64: dts: amlogic" (not meson). I fixed it up when applying, Kevin

Re: [PATCH v1 1/2] arm: dts: imx*(colibri|apalis): add missing recovery modes to i2c

2019-10-16 Thread Philippe Schenker
On Wed, 2019-10-16 at 16:28 +, Philippe Schenker wrote: > This patch adds missing i2c recovery modes and corrects wrongly named > ones. > > Signed-off-by: Philippe Schenker That went too fast... Will send a v2 shortly. > --- > > arch/arm/boot/dts/imx6qdl-apalis.dtsi | 26

Re: [PATCH V4 1/3] cpuidle: play_idle: Make play_idle more flexible

2019-10-16 Thread Daniel Lezcano
On 15/10/2019 15:06, Ulf Hansson wrote: > On Fri, 4 Oct 2019 at 10:32, Daniel Lezcano wrote: >> >> The play_idle function has two users, the intel powerclamp and the >> idle_injection. >> >> The idle injection cooling device uses the function via the >> idle_injection powercap's APIs.

Re: [PATCH v7 0/7] Add support of New Amlogic temperature sensor for G12 SoCs

2019-10-16 Thread Kevin Hilman
Eduardo, Guillaume La Roque writes: > This patchs series add support of New Amlogic temperature sensor and minimal > thermal zone for SEI510 and ODROID-N2 boards. [...] > Guillaume La Roque (7): > dt-bindings: thermal: Add DT bindings documentation for Amlogic > Thermal > thermal:

Re: [PATCH] hugetlb: Fix clang compilation warning

2019-10-16 Thread Vincenzo Frascino
Hi Mike, On 10/16/19 4:21 PM, Mike Kravetz wrote: > On 10/16/19 7:23 AM, Vincenzo Frascino wrote: >> Building the kernel with a recent version of clang I noticed the warning >> below: >> >> mm/hugetlb.c:4055:40: warning: expression does not compute the number of >> elements in this array; element

Re: [PATCH v9 09/17] x86/split_lock: Handle #AC exception for split lock

2019-10-16 Thread Paolo Bonzini
On 16/10/19 18:25, Xiaoyao Li wrote: >> >>    3 | Y | Y   |  N  |   Y |   x   | Switch >> MSR_TEST_CTRL on >> |   | | | |   | enter/exit, >> plus: >> |   | | | |   | A) #AC >> forwarded to guest.

Re: mt76x2e hardware restart

2019-10-16 Thread Lorenzo Bianconi
> Hello. > > On 15.10.2019 18:52, Oleksandr Natalenko wrote: > > Thanks for the answer and the IRC discussion. As agreed I've applied > > [1] and [2], and have just swapped the card to try it again. So far, > > it works fine in 5 GHz band in 802.11ac mode as an AP. > > > > I'll give it more load

Re: [PATCHv7 19/33] lib/vdso: Prepare for time namespace support

2019-10-16 Thread Vincenzo Frascino
Hi Thomas, On 10/16/19 4:07 PM, Thomas Gleixner wrote: [...] > Can you pretty please finally start to trim your replies? I really apologize. I can't explain to myself how did I miss the information. It will not happen again. -- Regards, Vincenzo

Re: [PATCH] staging: exfat: add exfat filesystem code to staging

2019-10-16 Thread Pali Rohár
On Wednesday 16 October 2019 09:22:11 Greg Kroah-Hartman wrote: > On Wed, Oct 16, 2019 at 06:03:49PM +0200, Pali Rohár wrote: > > > Can I assume you will be implementing TexFAT support once the spec is > > > available? > > > > I cannot promise that I would implement something which I do not know

Re: [PATCH v2 1/5] pidfd: verify task is alive when printing fdinfo

2019-10-16 Thread Christian Brauner
On Wed, Oct 16, 2019 at 06:24:09PM +0200, Oleg Nesterov wrote: > On 10/16, Christian Brauner wrote: > > > > +static inline bool task_alive(struct pid *pid, enum pid_type type) > > +{ > > + return !hlist_empty(>tasks[type]); > > +} > > So you decided to add a helper ;) OK, but note that its name

Re: mt76x2e hardware restart

2019-10-16 Thread Oleksandr Natalenko
Hello. On 15.10.2019 18:52, Oleksandr Natalenko wrote: Thanks for the answer and the IRC discussion. As agreed I've applied [1] and [2], and have just swapped the card to try it again. So far, it works fine in 5 GHz band in 802.11ac mode as an AP. I'll give it more load with my phone over

[PATCH v1 2/2] arm: dts: vf-colibri: add recovery mode to i2c

2019-10-16 Thread Philippe Schenker
This patch enables the recovery mode now available. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/vf-colibri.dtsi | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/vf-colibri.dtsi b/arch/arm/boot/dts/vf-colibri.dtsi index

[PATCH] [V2] NFSv4: add declaration of current_stateid

2019-10-16 Thread Ben Dooks (Codethink)
From: Ben Dooks The current_stateid is exported from nfs4state.c but not declared in any of the headers. Add to nfs4_fs.h to remove the following warning: fs/nfs/nfs4state.c:80:20: warning: symbol 'current_stateid' was not declared. Should it be static? Signed-off-by: Ben Dooks --- Cc: Trond

[PATCH v1 1/2] arm: dts: imx*(colibri|apalis): add missing recovery modes to i2c

2019-10-16 Thread Philippe Schenker
This patch adds missing i2c recovery modes and corrects wrongly named ones. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 26 +- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 6 +++--- 2 files changed, 24 insertions(+), 8 deletions(-) diff

Re: [PATCH] NFSv4: add declaration of current_stateid

2019-10-16 Thread Ben Dooks
On 15/10/2019 17:31, Christoph Hellwig wrote: On Tue, Oct 15, 2019 at 01:19:53PM +0100, Ben Dooks wrote: The current_stateid is exported from nfs4state.c but not declared in any of the headers. Add to nfs4_fs.h to remove the following warning: I think you also need to remove the extern in

Re: [PATCH v9 09/17] x86/split_lock: Handle #AC exception for split lock

2019-10-16 Thread Xiaoyao Li
On 10/16/2019 11:37 PM, Paolo Bonzini wrote: On 16/10/19 16:43, Thomas Gleixner wrote: N | #AC | #AC enabled | SMT | Ctrl| Guest | Action R | available | on host | | exposed | #AC | --|---|-|-|-|---|- | |

[PATCH v3 0/5] elide extraneous generated code for folded p4d/pud/pmd

2019-10-16 Thread Vineet Gupta
Hi, This series came out of seemingly benign excursion into understanding/removing __ARCH_USE_5LEVEL_HACK from ARC port showing some extraneous code being generated despite folded p4d/pud/pmd | bloat-o-meter2 vmlinux-[AB]* | add/remove: 0/0 grow/shrink: 3/0 up/down: 130/0 (130) | function

Re: [PATCH v2 1/5] pidfd: verify task is alive when printing fdinfo

2019-10-16 Thread Oleg Nesterov
On 10/16, Christian Brauner wrote: > > +static inline bool task_alive(struct pid *pid, enum pid_type type) > +{ > + return !hlist_empty(>tasks[type]); > +} So you decided to add a helper ;) OK, but note that its name is very confusing and misleading. Even more than pid_alive() we already

[PATCH v3 2/5] asm-generic/tlb: stub out pud_free_tlb() if nopud ...

2019-10-16 Thread Vineet Gupta
... independent of __ARCH_HAS_4LEVEL_HACK This came up when removing __ARCH_HAS_5LEVEL_HACK for ARC as code bloat. With this patch we see the following code reduction | bloat-o-meter2 vmlinux-B-elide-ARCH_USE_5LEVEL_HACK vmlinux-C-elide-pud_free_tlb | add/remove: 0/0 grow/shrink: 0/1 up/down:

[PATCH v3 5/5] asm-generic/mm: stub out p{4,u}d_clear_bad() if __PAGETABLE_P{4,U}D_FOLDED

2019-10-16 Thread Vineet Gupta
This came up when removing __ARCH_HAS_5LEVEL_HACK for ARC as code bloat. With this patch we see the following code reduction. | bloat-o-meter2 vmlinux-D-elide-p4d_free_tlb vmlinux-E-elide-p?d_clear_bad | add/remove: 0/2 grow/shrink: 0/0 up/down: 0/-40 (-40) | function

[PATCH v3 3/5] asm-generic/tlb: stub out p4d_free_tlb() if nop4d ...

2019-10-16 Thread Vineet Gupta
... independent of __ARCH_HAS_5LEVEL_HACK This came up when removing __ARCH_HAS_5LEVEL_HACK for ARC as code bloat. With this patch we see the following code reduction | bloat-o-meter2 vmlinux-C-elide-pud_free_tlb vmlinux-D-elide-p4d_free_tlb | add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-104

[PATCH v3 1/5] ARC: mm: remove __ARCH_USE_5LEVEL_HACK

2019-10-16 Thread Vineet Gupta
With paging code made 5-level compliant, this is no longer needed. ARC has software page walker with 2 lookup levels (pgd -> pte) This was expected to be non functional change but ended with slight code bloat due to needless inclusions of p*d_free_tlb() macros which will be addressed in further

[PATCH v3 4/5] asm-generic/tlb: stub out pmd_free_tlb() if nopmd

2019-10-16 Thread Vineet Gupta
This came up when removing __ARCH_HAS_5LEVEL_HACK for ARC as code bloat. With this patch we see the following code reduction. | bloat-o-meter2 vmlinux-E-elide-p?d_clear_bad vmlinux-F-elide-pmd_free_tlb | add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-112 (-112) | function

Re: [PATCH v9 09/17] x86/split_lock: Handle #AC exception for split lock

2019-10-16 Thread Sean Christopherson
On Wed, Oct 16, 2019 at 05:43:53PM +0200, Paolo Bonzini wrote: > On 16/10/19 17:41, Sean Christopherson wrote: > > On Wed, Oct 16, 2019 at 04:08:14PM +0200, Paolo Bonzini wrote: > >> SIGBUS (actually a new KVM_EXIT_INTERNAL_ERROR result from KVM_RUN is > >> better, but that's the idea) is for when

Re: [PATCH] tpm: Salt tpm_get_random() result with get_random_bytes()

2019-10-16 Thread Jarkko Sakkinen
On Wed, Oct 16, 2019 at 02:16:20PM +0300, Janne Karhunen wrote: > On Wed, Oct 16, 2019 at 1:41 PM Jarkko Sakkinen > wrote: > > > > > get_random_bytes(). TPM could have a bug (making results predicatable), > > > > backdoor or even an inteposer in the bus. Salting gives protections > > > >

Re: [PATCH v5 11/14] software node: move small properties inline when copying

2019-10-16 Thread Andy Shevchenko
On Wed, Oct 16, 2019 at 07:18:45PM +0300, Andy Shevchenko wrote: > On Wed, Oct 16, 2019 at 09:01:26AM -0700, Dmitry Torokhov wrote: > > On Wed, Oct 16, 2019 at 10:48:57AM +0300, Andy Shevchenko wrote: > > > On Tue, Oct 15, 2019 at 11:25:53AM -0700, Dmitry Torokhov wrote: > > > > You store a value

Re: [PATCH] staging: exfat: add exfat filesystem code to staging

2019-10-16 Thread Greg Kroah-Hartman
On Wed, Oct 16, 2019 at 06:03:49PM +0200, Pali Rohár wrote: > > Can I assume you will be implementing TexFAT support once the spec is > > available? > > I cannot promise that I would implement something which I do not know > how is working... It depends on how complicated TexFAT is and also how >

Re: [RFC,3/3] drm/komeda: Allow non-component drm_bridge only endpoints

2019-10-16 Thread Brian Starkey
Hi, On Wed, Oct 16, 2019 at 03:51:39PM +, Mihail Atanassov wrote: > Hi James, > > On Wednesday, 9 October 2019 06:54:15 BST james qian wang (Arm Technology > China) wrote: > > On Fri, Oct 04, 2019 at 02:34:42PM +, Mihail Atanassov wrote: > > > To support transmitters other than the

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

2019-10-16 Thread Alex Deucher
Applied. Thanks! Alex On Tue, Oct 15, 2019 at 8:22 PM Stephen Rothwell wrote: > > Hi all, > > After merging the drm-misc tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/gpu/drm/amd/amdgpu/amdgpu_tmz.c:23:10: fatal error: drm/drmP.h: No > such file or

RE: [PATCH] PCI:cadence:Driver refactored to use as a core library.

2019-10-16 Thread Tom Joseph
Hi Kishon, > -Original Message- > From: Kishon Vijay Abraham I > Sent: 15 October 2019 12:23 > To: Tom Joseph ; linux-...@vger.kernel.org > Cc: Lorenzo Pieralisi ; Bjorn Helgaas > ; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] PCI:cadence:Driver refactored to use as a core

Re: [PATCH 2/2] arm64: tegra: Assume no CLKREQ presence by default

2019-10-16 Thread Thierry Reding
On Sat, Oct 05, 2019 at 10:12:12PM +0530, Vidya Sagar wrote: > Although Tegra194 has support for CLKREQ sideband signal and P2972 > has routing of the same till the slot, it is the case most of the time > that the connected device doesn't have CLKREQ support. Hence, it makes > sense to assume that

Re: [PATCH] staging: exfat: add exfat filesystem code to staging

2019-10-16 Thread Sasha Levin
On Wed, Oct 16, 2019 at 06:03:49PM +0200, Pali Rohár wrote: On Wednesday 16 October 2019 10:31:13 Sasha Levin wrote: On Wed, Oct 16, 2019 at 04:03:53PM +0200, Pali Rohár wrote: > On Friday 30 August 2019 09:56:47 Pali Rohár wrote: > > On Thursday 29 August 2019 19:35:06 Sasha Levin wrote: > > >

Re: [PATCH 1/2] PCI: tegra: Fix CLKREQ dependency programming

2019-10-16 Thread Thierry Reding
On Sat, Oct 05, 2019 at 10:12:11PM +0530, Vidya Sagar wrote: > Corrects the programming to provide REFCLK to the downstream device > when there is no CLKREQ sideband signal routing present from root port > to the endpont. > > Signed-off-by: Vidya Sagar > --- >

Re: [PATCH] Revert "Bluetooth: hci_ll: set operational frequency earlier"

2019-10-16 Thread Adam Ford
On Wed, Oct 2, 2019 at 3:31 PM Sebastian Reichel wrote: > > Hi, > > On Wed, Oct 02, 2019 at 06:46:26AM -0500, Adam Ford wrote: > > As nice as it would be to update firmware faster, that patch broke > > at least two different boards, an OMAP4+WL1285 based Motorola Droid > > 4, as reported by

Re: [PATCH v5 11/14] software node: move small properties inline when copying

2019-10-16 Thread Andy Shevchenko
On Wed, Oct 16, 2019 at 09:01:26AM -0700, Dmitry Torokhov wrote: > On Wed, Oct 16, 2019 at 10:48:57AM +0300, Andy Shevchenko wrote: > > On Tue, Oct 15, 2019 at 11:25:53AM -0700, Dmitry Torokhov wrote: > > You store a value as union, but going to read as a member of union? > > I'm pretty sure it

Re: [PATCH v3 06/10] ARM: dts: imx: Rename "iram" node to "sram"

2019-10-16 Thread Krzysztof Kozlowski
On Mon, 14 Oct 2019 at 14:33, Shawn Guo wrote: > > On Wed, Oct 02, 2019 at 06:43:12PM +0200, Krzysztof Kozlowski wrote: > > The device node name should reflect generic class of a device so rename > > the "iram" node to "sram". This will be also in sync with upcoming DT > > schema. No functional

Re: [PATCH v1 4/4] net: dsa: add support for Atheros AR9331 build-in switch

2019-10-16 Thread Fabio Estevam
On Wed, Oct 16, 2019 at 1:01 PM Andrew Lunn wrote: > I think C files should use /* */, and header files //, for SPDX. Not really. >From Documentation/process/license-rules.rst: "C source: // SPDX-License-Identifier: C header: /* SPDX-License-Identifier: */ "

[PATCH] linux/bitopts.h: Add for_each_set_clump8 documentation

2019-10-16 Thread William Breathitt Gray
Document in kerneldoc form the for_each_set_clump8 macro. Signed-off-by: William Breathitt Gray --- include/linux/bitops.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/bitops.h b/include/linux/bitops.h index fb94a10f7853..76ec8f0ce3e8 100644 ---

Re: [PATCH 0/2] arm64: dts: meson: sm1: add audio support

2019-10-16 Thread Kevin Hilman
Jerome Brunet writes: > This patchset adds audio support on the sm1 SoC family and the > sei610 platform Queued for v5.5. > Kevin, The patchset depends on: > - The ARB binding merged by Philipp [0] > - The audio clock controller bindings I just applied. A tag is >available for you here

Re: [PATCH] arm64: dts: sun50i: sopine-baseboard: Expose serial1, serial2 and serial3

2019-10-16 Thread Alistair Francis
On Wed, Oct 16, 2019 at 7:54 AM Chen-Yu Tsai wrote: > > On Wed, Oct 16, 2019 at 10:49 PM Maxime Ripard wrote: > > > > Hi, > > > > On Sat, Oct 12, 2019 at 01:05:24PM -0700, Alistair Francis wrote: > > > Follow what the sun50i-a64-pine64.dts does and expose all 5 serial > > > connections. > > > >

[PATCH v9 22/22] RISC-V: KVM: Add MAINTAINERS entry

2019-10-16 Thread Anup Patel
Add myself as maintainer for KVM RISC-V and Atish as designated reviewer. Signed-off-by: Atish Patra Signed-off-by: Anup Patel Acked-by: Paolo Bonzini Reviewed-by: Paolo Bonzini Reviewed-by: Alexander Graf --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git

<    3   4   5   6   7   8   9   10   11   12   >