Re: [PATCH] perf/core: fix multiplexing event scheduling issue

2019-10-17 Thread Song Liu
> On Oct 17, 2019, at 11:19 PM, Stephane Eranian wrote: > > On Thu, Oct 17, 2019 at 11:13 PM Song Liu wrote: >> >> >> >>> On Oct 17, 2019, at 5:27 PM, Stephane Eranian wrote: >>> >>> This patch complements the following commit: >>> 7fa343b7fdc4 ("perf/core: Fix corner case in perf_rotate

[PATCH net-next] net: axienet: In kconfig add ARM64 as supported platform

2019-10-17 Thread Radhey Shyam Pandey
xilinx axi_emac driver is supported on ZynqMP UltraScale platform(ARM64). So enable it in kconfig. Basic sanity testing is done on zu+ mpsoc zcu102 evaluation board. Signed-off-by: Radhey Shyam Pandey --- drivers/net/ethernet/xilinx/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletion

IWL AC 8260, suspect GRP implementation, broken connectivity

2019-10-17 Thread Norbert Preining
Dear all, (please cc) linux 5.3.N (currently .7), but also older kernels Debian/sid Thinkpad X260 iwlwifi :04:00.0: Detected Intel(R) Dual Band Wireless AC 8260, REV=0x208 iwlwifi :04:00.0: loaded firmware version 36.8fd77bb3.0 op_mode iwlmvm In one particular location I see completely b

Re: [PATCH v3 06/15] powerpc/32: prepare for CONFIG_VMAP_STACK

2019-10-17 Thread Christophe Leroy
Le 17/10/2019 à 09:36, Andrew Donnellan a écrit : On 10/9/19 7:16 pm, Christophe Leroy wrote: +#if defined(CONFIG_VMAP_STACK) && CONFIG_THREAD_SHIFT < PAGE_SHIFT +#define THREAD_SHIFT    PAGE_SHIFT +#else   #define THREAD_SHIFT    CONFIG_THREAD_SHIFT +#endif   #define THREAD_SIZE

Re: [PATCH 1/2] x86, mce, therm_throt: Optimize logging of thermal throttle messages

2019-10-17 Thread Borislav Petkov
On Thu, Oct 17, 2019 at 11:53:18PM +, Luck, Tony wrote: > > * we throttle the machine from within the kernel - whatever that may mean > > * if that doesn't help, we stop scheduling !root tasks > > * if that doesn't help, we halt > > The silicon will do that "halt" step all by itself if the tem

Re: [PATCH v3 3/6] dt-bindings: regulator: max77650: convert the binding document to yaml

2019-10-17 Thread Bartosz Golaszewski
czw., 17 paź 2019 o 20:35 Rob Herring napisał(a): > > On Thu, Oct 17, 2019 at 09:12:31AM +0200, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Convert the binding document for MAX77650 regulator module to YAML. > > > > Signed-off-by: Bartosz Golaszewski > > --- > > .../binding

Re: [PATCH v3 1/6] dt-bindings: mfd: max77650: convert the binding document to yaml

2019-10-17 Thread Bartosz Golaszewski
czw., 17 paź 2019 o 20:31 Rob Herring napisał(a): > > On Thu, Oct 17, 2019 at 09:12:29AM +0200, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Convert the binding document for MAX77650 core MFD module to YAML. > > > > Signed-off-by: Bartosz Golaszewski > > --- > > .../devicetr

Re: [PATCH] vfio/type1: remove hugepage checks in is_invalid_reserved_pfn()

2019-10-17 Thread Ben Luo
A friendly reminder :) Thanks,     Ben 在 2019/10/4 上午12:41, Andrea Arcangeli 写道: On Thu, Oct 03, 2019 at 11:49:42AM +0800, Ben Luo wrote: Currently, no hugepage split code can transfer the reserved bit from head to tail during the split, so checking the head can't make a difference in a raci

Re: [RFC 2/2] vhost: IFC VF vdpa layer

2019-10-17 Thread Zhu, Lingshan
Hello Jason, Thanks for your comments, I am on a conference travel, I will reply next Monday. Thanks, BR Zhu Lingshan On 10/16/2019 6:19 PM, Jason Wang wrote: On 2019/10/16 上午9:30, Zhu Lingshan wrote: This commit introduced IFC VF operations for vdpa, which complys to vhost_mdev interfaces,

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

2019-10-17 Thread Miaohe Lin
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. Get physical APIC ID from vAPIC page instead. Export and use kvm_xapic_id here and in avic_handle_apic_id_update as suggested by Vitaly. Si

Re: memory offline infinite loop after soft offline

2019-10-17 Thread Naoya Horiguchi
On Fri, Oct 18, 2019 at 08:06:35AM +0200, Michal Hocko wrote: > On Fri 18-10-19 02:19:06, Naoya Horiguchi wrote: > > On Thu, Oct 17, 2019 at 08:27:59PM +0200, Michal Hocko wrote: > > > On Thu 17-10-19 14:07:13, Qian Cai wrote: > > > > On Thu, 2019-10-17 at 12:01 +0200, Michal Hocko wrote: > > > > >

Re: [PATCH V2 3/3] bnxt_en: Add support to collect crash dump via ethtool

2019-10-17 Thread Vasundhara Volam
On Fri, Oct 18, 2019 at 12:52 AM Jakub Kicinski wrote: > > On Thu, 17 Oct 2019 17:31:22 +0530, Sheetal Tigadoli wrote: > > From: Vasundhara Volam > > > > Driver supports 2 types of core dumps. > > > > 1. Live dump - Firmware dump when system is up and running. > > 2. Crash dump - Dump which is co

Re: BUG: bad usercopy in ld_usb_read (3)

2019-10-17 Thread Johan Hovold
On Wed, Oct 16, 2019 at 06:42:11PM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:22be26f7 usb-fuzzer: main usb gadget fuzzer driver > git tree: https://github.com/google/kasan.git usb-fuzzer > console output: https://syzkaller.appspot.com/x/log.t

Re: memory offline infinite loop after soft offline

2019-10-17 Thread Naoya Horiguchi
On Thu, Oct 17, 2019 at 08:27:59PM +0200, Michal Hocko wrote: > On Thu 17-10-19 14:07:13, Qian Cai wrote: > > On Thu, 2019-10-17 at 12:01 +0200, Michal Hocko wrote: > > > On Thu 17-10-19 09:34:10, Naoya Horiguchi wrote: > > > > On Mon, Oct 14, 2019 at 10:39:14AM +0200, Michal Hocko wrote: > > > >

Re: PCI/MSI: Remove the PCI_MSI_IRQ_DOMAIN architecture whitelist

2019-10-17 Thread Michal Simek
Hi, On 17. 10. 19 20:19, Palmer Dabbelt wrote: > This came up in the context of the microblaze port, where a patch was > recently posted to extend the whitelist. I hoped you were aware about this discussion we have with Christoph. https://lkml.org/lkml/2019/10/8/682 It means 1/3 and 2/3 should b

Re: [PATCH] perf/core: fix multiplexing event scheduling issue

2019-10-17 Thread Stephane Eranian
On Thu, Oct 17, 2019 at 11:13 PM Song Liu wrote: > > > > > On Oct 17, 2019, at 5:27 PM, Stephane Eranian wrote: > > > > This patch complements the following commit: > > 7fa343b7fdc4 ("perf/core: Fix corner case in perf_rotate_context()") > > > > The fix from Song addresses the consequences of the

Re: [PATCH] perf/core: fix multiplexing event scheduling issue

2019-10-17 Thread Song Liu
> On Oct 17, 2019, at 5:27 PM, Stephane Eranian wrote: > > This patch complements the following commit: > 7fa343b7fdc4 ("perf/core: Fix corner case in perf_rotate_context()") > > The fix from Song addresses the consequences of the problem but > not the cause. This patch fixes the causes and c

Re: [PATCH] MAINTAINERS: mtd/ubi/ubifs: Remove inactive maintainers

2019-10-17 Thread Adrian Hunter
On 17/10/19 5:22 PM, Miquel Raynal wrote: > Despite their substantial personal investment in the MTD/UBI/UBIFS a > few years back, David, Brian, Artem and Adrian are not actively > maintaining the subsystem anymore. We warmly salute them for all the > work they have achieved and will of course stil

Re: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

2019-10-17 Thread Zhihao Cheng
Can the current modification method be confirmed? 在 2019/9/16 6:00, Richard Weinberger 写道: > I need to give this another thought

Re: [PATCH] MAINTAINERS: mtd/ubi/ubifs: Remove inactive maintainers

2019-10-17 Thread Artem Bityutskiy
On Thu, 2019-10-17 at 16:22 +0200, Miquel Raynal wrote: > Despite their substantial personal investment in the MTD/UBI/UBIFS a > few years back, David, Brian, Artem and Adrian are not actively > maintaining the subsystem anymore. We warmly salute them for all the > work they have achieved and will

Re: [PATCH 3/8] riscv: init: merge split string literals in preprocessor directive

2019-10-17 Thread Paul Walmsley
On Fri, 18 Oct 2019, Luc Van Oostenryck wrote: > I quickly checked and gcc also complain about the second line: > $ cat y.c > #ifndef __riscv_cmodel_medany > #error "setup_vm() is called from head.S before relocate so it should " >"not use absolute addressing." > #endif > > $

Re: memory offline infinite loop after soft offline

2019-10-17 Thread Michal Hocko
On Fri 18-10-19 02:19:06, Naoya Horiguchi wrote: > On Thu, Oct 17, 2019 at 08:27:59PM +0200, Michal Hocko wrote: > > On Thu 17-10-19 14:07:13, Qian Cai wrote: > > > On Thu, 2019-10-17 at 12:01 +0200, Michal Hocko wrote: > > > > On Thu 17-10-19 09:34:10, Naoya Horiguchi wrote: > > > > > On Mon, Oct

Re: [PATCH 5/8] riscv: add missing prototypes

2019-10-17 Thread Paul Walmsley
On Fri, 18 Oct 2019, Luc Van Oostenryck wrote: > On Thu, Oct 17, 2019 at 05:49:26PM -0700, Paul Walmsley wrote: > > sparse identifies these missing prototypes when building arch/riscv: > > > > arch/riscv/kernel/cpu.c:149:29: warning: symbol 'cpuinfo_op' was not > > declared. Should it be static?

Re: [PATCH v3 2/6] thermal: Initialize thermal subsystem earlier

2019-10-17 Thread Viresh Kumar
On 17-10-19, 17:57, Amit Kucheria wrote: > Now that the thermal framework is built-in, in order to facilitate > thermal mitigation as early as possible in the boot cycle, move the > thermal framework initialization to core_initcall. > > Signed-off-by: Amit Kucheria > --- > drivers/thermal/therma

Re: [PATCH v3 5/6] clk: qcom: Initialise clock drivers earlier

2019-10-17 Thread Viresh Kumar
On 17-10-19, 10:47, Stephen Boyd wrote: > Quoting Amit Kucheria (2019-10-17 05:27:37) > > Initialise the clock drivers on sdm845 and qcs404 in core_initcall so we > > can have earlier access to cpufreq during booting. > > > > Signed-off-by: Amit Kucheria > > --- > > Acked-by: Stephen Boyd > >

Re: [PATCH] cpufreq: flush any pending policy update work scheduled before freeing

2019-10-17 Thread Viresh Kumar
On 18-10-19, 06:55, Sudeep Holla wrote: > On Thu, Oct 17, 2019 at 11:26:54PM +0200, Rafael J. Wysocki wrote: > > On Thu, Oct 17, 2019 at 9:36 PM Rafael J. Wysocki wrote: > > > > > > On Thu, Oct 17, 2019 at 6:35 PM Sudeep Holla wrote: > > > > > > > > dev_pm_qos_remove_request ends calling {max,min

Re: RISC-V nommu support v5

2019-10-17 Thread Anup Patel
Hi Paul/Palmer, On Thu, Oct 17, 2019 at 11:07 PM Christoph Hellwig wrote: > > Hi all, > > below is a series to support nommu mode on RISC-V. For now this series > just works under qemu with the qemu-virt platform, but Damien has also > been able to get kernel based on this tree with additional d

Re: [PATCH v2 4/5] cpufreq: vexpress-spc: remove lots of debug messages

2019-10-17 Thread Sudeep Holla
On Fri, Oct 18, 2019 at 11:27:20AM +0530, Viresh Kumar wrote: > On 17-10-19, 13:35, Sudeep Holla wrote: > > This driver have been used and tested for year now and the extensive > > debug/log messages in the driver are not really required anymore. > > Get rid of those unnecessary log messages. > >

Re: possible audio regression for usb-audio with 5.3 kernel (5.3.1), sounds like variants of 8-bit audio

2019-10-17 Thread Takashi Iwai
On Wed, 02 Oct 2019 17:01:29 +0200, Matt wrote: > > Hi Takashi, > > there appears to be a sound regression for plug-n-play usb-audio DACs > with 5.3 kernel. > > I'm using the following one: > > https://www.aliexpress.com/item/33012416525.html?spm=a2g0s.9042311.0.0.4f314c4dv3EF0p > > which incl

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

2019-10-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: lib/Kconfig.debug between commit: 57f5677e535b ("printf: add support for printing symbolic error names") from the printk tree and patch: "kernel-hacking: move DEBUG_BUGVERBOSE to 'printk and dmesg options'" fr

Re: [PATCH v2 5/5] cpufreq: vexpress-spc: fix some coding style issues

2019-10-17 Thread Sudeep Holla
On Fri, Oct 18, 2019 at 11:25:17AM +0530, Viresh Kumar wrote: > On 17-10-19, 13:35, Sudeep Holla wrote: > > Fix the following checkpatch checks/warnings: > > > > CHECK: Unnecessary parentheses around the code > > CHECK: Alignment should match open parenthesis > > CHECK: Prefer kernel type 'u32' ov

Re: [PATCH v2 1/2] dt-bindings: gpio: brcm: Add bindings for xgs-iproc

2019-10-17 Thread Bartosz Golaszewski
czw., 17 paź 2019 o 21:24 Rob Herring napisał(a): > > On Thu, Oct 17, 2019 at 04:10:50PM +1300, Chris Packham wrote: > > This GPIO controller is present on a number of Broadcom switch ASICs > > with integrated SoCs. It is similar to the nsp-gpio and iproc-gpio > > blocks but different enough to re

[PATCH] arm64: dts: qcom: c630: Add WiFi node

2019-10-17 Thread Bjorn Andersson
Specify regulators and enable the &wifi node. The firmware uses the 8 bit version of the host capability message, so specify this quirk. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/a

[PATCH] arm64: dts: qcom: c630: Enable UFS device reset

2019-10-17 Thread Bjorn Andersson
Setup the TLMM UFS_RESET to make the UFS core reset the UFS memory device during initialization. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts b/

Re: [PATCH] Bluetooth: hci_qca: fix in-band sleep enablement

2019-10-17 Thread Claire Chang
Hi Balakrishna, Sorry for the late reply. I was on vacation for the past few days. The chipset we use is QCA6174A-3 and rjliao has already confirmed that IBS won't work without RAM fw downloaded. Please ignore this change. Thanks, Claire On Fri, Oct 11, 2019 at 3:21 PM Balakrishna Godavarthi w

Re: [PATCH v2 4/5] cpufreq: vexpress-spc: remove lots of debug messages

2019-10-17 Thread Viresh Kumar
On 17-10-19, 13:35, Sudeep Holla wrote: > This driver have been used and tested for year now and the extensive > debug/log messages in the driver are not really required anymore. > Get rid of those unnecessary log messages. > > Signed-off-by: Sudeep Holla > --- > drivers/cpufreq/vexpress-spc-cpu

[PATCH v2] arm64: dts: qcom: c630: Enable adsp, cdsp and mpss

2019-10-17 Thread Bjorn Andersson
Specify the firmware-name for the adsp, cdsp and mpss and enable the nodes. Signed-off-by: Bjorn Andersson --- .../boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts b/arch/arm64

Re: [PATCH] cpufreq: flush any pending policy update work scheduled before freeing

2019-10-17 Thread Sudeep Holla
On Thu, Oct 17, 2019 at 11:26:54PM +0200, Rafael J. Wysocki wrote: > On Thu, Oct 17, 2019 at 9:36 PM Rafael J. Wysocki wrote: > > > > On Thu, Oct 17, 2019 at 6:35 PM Sudeep Holla wrote: > > > > > > dev_pm_qos_remove_request ends calling {max,min}_freq_req QoS notifiers > > > which schedule policy

Re: [RFC][PATCH 2/3] usb: roles: Add usb role switch notifier.

2019-10-17 Thread John Stultz
On Wed, Oct 16, 2019 at 12:27 AM Hans de Goede wrote: > On 10/15/19 7:39 AM, John Stultz wrote: > > On Thu, Oct 3, 2019 at 1:51 PM Hans de Goede wrote: > >> On 03-10-2019 22:37, John Stultz wrote: > >>> Fair point. I'm sort of taking a larger patchset and trying to break > >>> it up into more eas

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

2019-10-17 Thread Anshuman Khandual
>> Acked-by: David Hildenbrand >> Acked-by: Michal Hocko >> Signed-off-by: Anshuman Khandual >> --- >> This is based on https://patchwork.kernel.org/patch/11190213/ > > Hi Anshuman, > > I'm having trouble finding a tree that this applies cleanly too

linux-next: manual merge of the char-misc tree with the char-misc.current tree

2019-10-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the char-misc tree got a conflict in: drivers/android/binder.c between commit: 45d02f79b539 ("binder: Don't modify VMA bounds in ->mmap handler") from the char-misc.current tree and commit: 990be7476485 ("binder: Use common definition of SZ_1K") from

[PATCH] x86: Don't use MWAIT if explicitly requested

2019-10-17 Thread Zhenzhong Duan
If 'idle=nomwait' is specified or process matching what's in processor_idle_dmi_table, we should't use MWAIT at bootup stage before cpuidle driver loaded, even if it's preferred by default on Intel. Add a check so that HALT instruction is used in those cases. Signed-off-by: Zhenzhong Duan Cc: Th

Re: [PATCH v2 5/5] cpufreq: vexpress-spc: fix some coding style issues

2019-10-17 Thread Viresh Kumar
On 17-10-19, 13:35, Sudeep Holla wrote: > Fix the following checkpatch checks/warnings: > > CHECK: Unnecessary parentheses around the code > CHECK: Alignment should match open parenthesis > CHECK: Prefer kernel type 'u32' over 'uint32_t' > WARNING: Missing a blank line after declarations > > Sign

Re: [PATCH 07/15] riscv: implement remote sfence.i using IPIs

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > The RISC-V ISA only supports flushing the instruction cache for the > local CPU core. Currently we always offload the remote TLB flushing to > the SBI, which then issues an IPI under the hoods. But with M-mode > we do not have an SBI

Re: [PATCH v2 2/5] cpufreq: merge arm_big_little and vexpress-spc

2019-10-17 Thread Sudeep Holla
On Fri, Oct 18, 2019 at 11:17:40AM +0530, Viresh Kumar wrote: > On 17-10-19, 13:35, Sudeep Holla wrote: > > diff --git a/drivers/cpufreq/arm_big_little.c > > b/drivers/cpufreq/vexpress-spc-cpufreq.c > > similarity index 90% > > rename from drivers/cpufreq/arm_big_little.c > > rename to drivers/cpu

Re: [PATCH 08/15] riscv: add support for MMIO access to the timer registers

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > When running in M-mode we can't use the SBI to set the timer, and > don't have access to the time CSR as that usually is emulated by > M-mode. Instead provide code that directly accesses the MMIO for > the timer. > > Signed-off-by: Chr

Re: [PATCH] cpufreq: flush any pending policy update work scheduled before freeing

2019-10-17 Thread Sudeep Holla
On Thu, Oct 17, 2019 at 09:36:30PM +0200, Rafael J. Wysocki wrote: > On Thu, Oct 17, 2019 at 6:35 PM Sudeep Holla wrote: > > > > dev_pm_qos_remove_request ends calling {max,min}_freq_req QoS notifiers > > which schedule policy update work. It may end up racing with the freeing > > the policy and u

Re: [PATCH 3/8] riscv: init: merge split string literals in preprocessor directive

2019-10-17 Thread Luc Van Oostenryck
On Thu, Oct 17, 2019 at 09:38:18PM -0700, Paul Walmsley wrote: > On Fri, 18 Oct 2019, Luc Van Oostenryck wrote: > > > On Thu, Oct 17, 2019 at 05:49:24PM -0700, Paul Walmsley wrote: > > > sparse complains loudly when string literals associated with > > > preprocessor directives are split into multi

Re: [PATCH v2 2/5] cpufreq: merge arm_big_little and vexpress-spc

2019-10-17 Thread Viresh Kumar
On 17-10-19, 13:35, Sudeep Holla wrote: > diff --git a/drivers/cpufreq/arm_big_little.c > b/drivers/cpufreq/vexpress-spc-cpufreq.c > similarity index 90% > rename from drivers/cpufreq/arm_big_little.c > rename to drivers/cpufreq/vexpress-spc-cpufreq.c > index 7fe52fcddcf1..b7e1aa000c80 100644 > --

Re: [PATCH] lib/vdso: Use __arch_use_vsyscall() to indicate fallback

2019-10-17 Thread Andy Lutomirski
On Thu, Oct 17, 2019 at 7:57 PM Huacai Chen wrote: > > In do_hres(), we currently use whether the return value of __arch_get_ > hw_counter() is negtive to indicate fallback, but this is not a good > idea. Because: > > 1, ARM64 returns ULL_MAX but MIPS returns 0 when clock_mode is invalid; > 2, For

BUG: unable to handle kernel paging request in is_bpf_text_address

2019-10-17 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:283ea345 coccinelle: api/devm_platform_ioremap_resource: r.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=122f199b60 kernel config: https://syzkaller.appspot.com/x/.config?x=f0a8b0a0736a2ac1 da

Re: [PATCH 12/15] riscv: clear the instruction cache and all registers when booting

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > When we get booted we want a clear slate without any leaks from previous > supervisors or the firmware. Flush the instruction cache and then clear > all registers to known good values. This is really important for the > upcoming nommu

Re: [PATCH 13/15] riscv: add nommu support

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > The kernel runs in M-mode without using page tables, and thus can't run > bare metal without help from additional firmware. > > Most of the patch is just stubbing out code not needed without page > tables, but there is an interesting de

Re: [RFT][PATCH 0/3] cpufreq / PM: QoS: Introduce frequency QoS and use it in cpufreq

2019-10-17 Thread Viresh Kumar
On 17-10-19, 18:34, Rafael J. Wysocki wrote: > [BTW, Viresh, it looks like cpufreq_set_policy() should still ensure > that the new min is less than the new max, because the QoS doesn't do > that.] The ->verify() callback does that for us I believe. -- viresh

Re: [RFT][PATCH 1/3] PM: QoS: Introduce frequency QoS

2019-10-17 Thread Viresh Kumar
On 17-10-19, 16:16, Rafael J. Wysocki wrote: > [Also note that the current code in device PM QoS uses MIN and MAX > here in the same way. :-)] Stupid me, enough embarrassment for the day :( -- viresh

Re: [PATCH] cpufreq: flush any pending policy update work scheduled before freeing

2019-10-17 Thread Viresh Kumar
On 17-10-19, 17:35, Sudeep Holla wrote: > dev_pm_qos_remove_request ends calling {max,min}_freq_req QoS notifiers > which schedule policy update work. I don't think that's correct. We remove the notifiers first and then only remove the requests. Though it is possible due to the other bug we are di

Re: [PATCH 02/15] riscv: cleanup do_trap_break

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:07 PM Christoph Hellwig wrote: > > If we always compile the get_break_insn_length inline function we can > remove the ifdefs and let dead code elimination take care of the warn > branch that is now unreadable because the report_bug stub always > returns BUG_TRAP_TYPE_BUG

Re: [PATCH v3 04/10] sched/fair: rework load_balance

2019-10-17 Thread Parth Shah
On 10/16/19 5:26 PM, Vincent Guittot wrote: > On Wed, 16 Oct 2019 at 09:21, Parth Shah wrote: >> >> >> >> On 9/19/19 1:03 PM, Vincent Guittot wrote: >> >> [...] >> >>> Signed-off-by: Vincent Guittot >>> --- >>> kernel/sched/fair.c | 585 >>> ++-

Re: [PATCH 09/15] riscv: provide native clint access for M-mode

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > RISC-V has the concept of a cpu level interrupt controller. The > interface for it is split between a standardized part that is exposed > as bits in the mstatus/sstatus register and the mie/mip/sie/sip > CRS. But the bit to actually t

[PATCH net] net: hns3: fix mis-counting IRQ vector numbers issue

2019-10-17 Thread Huazhong Tan
From: Yonglong Liu Currently, the num_msi_left means the vector numbers of NIC, but if the PF supported RoCE, it contains the vector numbers of NIC and RoCE(Not expected). This may cause interrupts lost in some case, because of the NIC module used the vector resources which belongs to RoCE. Thi

Re: [PATCH 11/15] riscv: use the correct interrupt levels for M-mode

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > The numerical levels for External/Timer/Software interrupts differ > between S-mode and M-mode. > > Signed-off-by: Christoph Hellwig > --- > arch/riscv/kernel/irq.c | 12 +--- > 1 file changed, 9 insertions(+), 3 deletions(-)

Re: [PATCH v4 1/2] clk: qcom: Add MSM8998 GPU Clock Controller (GPUCC) driver

2019-10-17 Thread Taniya Das
Hi Jeffrey, On 10/2/2019 6:46 AM, Jeffrey Hugo wrote: The GPUCC manages the clocks for the Adreno GPU found on MSM8998. Signed-off-by: Jeffrey Hugo --- drivers/clk/qcom/Kconfig | 9 + drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/gpucc-msm8998.c | 346 +++

Re: [PATCH] cpufreq: powernv: fix stack bloat and NR_CPUS limitation

2019-10-17 Thread Viresh Kumar
On 17-10-19, 17:04, John Hubbard wrote: > The following build warning occurred on powerpc 64-bit builds: > > drivers/cpufreq/powernv-cpufreq.c: In function 'init_chip_info': > drivers/cpufreq/powernv-cpufreq.c:1070:1: warning: the frame size of 1040 > bytes is larger than 1024 bytes [-Wframe-larg

[PATCH v4 1/2] dt-bindings: iio: accel: bma400: add bindings

2019-10-17 Thread Dan Robertson
Add devicetree binding for the Bosch BMA400 3-axes ultra-low power accelerometer sensor. Signed-off-by: Dan Robertson --- .../devicetree/bindings/iio/accel/bma400.yaml | 39 +++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/accel/bma40

[PATCH v4 2/2] iio: (bma400) add driver for the BMA400

2019-10-17 Thread Dan Robertson
Add a IIO driver for the Bosch BMA400 3-axes ultra-low power accelerometer. The driver supports reading from the acceleration and temperature registers. The driver also supports reading and configuring the output data rate, oversampling ratio, and scale. Signed-off-by: Dan Robertson --- drivers/

Re: [PATCH 10/15] riscv: read the hart ID from mhartid on boot

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > From: Damien Le Moal > > When in M-Mode, we can use the mhartid CSR to get the ID of the running > HART. Doing so, direct M-Mode boot without firmware is possible. > > Signed-off-by: Damien Le Moal > Signed-off-by: Christoph Hellwig

[PATCH v3 0/2] iio: add driver for Bosch BMA400 accelerometer

2019-10-17 Thread Dan Robertson
This patchset adds a IIO driver for the Bosch BMA400 3-axes ultra low-power accelerometer. The initial implementation of the driver adds read support for the acceleration and temperature data registers. The driver also has support for reading and writing to the output data rate, oversampling ratio,

Re: [PATCH 3/8] riscv: init: merge split string literals in preprocessor directive

2019-10-17 Thread Luc Van Oostenryck
On Thu, Oct 17, 2019 at 09:38:18PM -0700, Paul Walmsley wrote: > On Fri, 18 Oct 2019, Luc Van Oostenryck wrote: > > > On Thu, Oct 17, 2019 at 05:49:24PM -0700, Paul Walmsley wrote: > > > sparse complains loudly when string literals associated with > > > preprocessor directives are split into multi

Re: [PATCH 04/15] riscv: don't allow selecting SBI based drivers for M-mode

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:07 PM Christoph Hellwig wrote: > > From: Damien Le Moal > > When running in M-mode we can't use SBI based drivers. Add a new > CONFIG_RISCV_SBI that drivers that do SBI calls can depend on > instead. > > Signed-off-by: Damien Le Moal > Signed-off-by: Christoph Hellwig

Re: [PATCH 06/15] riscv: cleanup the default power off implementation

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > Move the sbi poweroff to a separate function and file that is only > compiled if CONFIG_SBI is set. Provide a new default fallback > power off that just sits in a wfi loop to save some power. > > Signed-off-by: Christoph Hellwig > Rev

Re: [PATCH 4/8] riscv: ensure RISC-V C model definitions are passed to static analyzers

2019-10-17 Thread Luc Van Oostenryck
On Thu, Oct 17, 2019 at 09:39:29PM -0700, Paul Walmsley wrote: > On Fri, 18 Oct 2019, Luc Van Oostenryck wrote: > > On Thu, Oct 17, 2019 at 05:49:25PM -0700, Paul Walmsley wrote: > > > ifeq ($(CONFIG_CMODEL_MEDANY),y) > > > KBUILD_CFLAGS += -mcmodel=medany > > > + CHECKFLAGS += -D__riscv_cm

[PATCH v12 0/5] DMA-BUF Heaps (destaging ION)

2019-10-17 Thread John Stultz
Andrew brought up a reasonable concern with the CMA heap enumeration in the previous patch set, and I had a few other minor cleanups to add, so here is yet another pass at the dma-buf heaps patchset Andrew and I have been working on which tries to destage a fair chunk of ION functionality. The pat

[PATCH v12 2/5] dma-buf: heaps: Add heap helpers

2019-10-17 Thread John Stultz
Add generic helper dmabuf ops for dma heaps, so we can reduce the amount of duplicative code for the exported dmabufs. This code is an evolution of the Android ION implementation, so thanks to its original authors and maintainters: Rebecca Schultz Zavin, Colin Cross, Laura Abbott, and others! C

[PATCH 1/4] Bluetooth: hci_qca: Update regulator_set_load() usage

2019-10-17 Thread Bjorn Andersson
Since the introduction of '5451781dadf8 ("regulator: core: Only count load for enabled consumers")' in v5.0, the requested load of a regulator consumer is only accounted for when said consumer is voted enabled. So there's no need to vote for load ever time the regulator is enabled or disabled. Si

[PATCH 4/4] Bluetooth: hci_qca: Split qca_power_setup()

2019-10-17 Thread Bjorn Andersson
Split and rename qca_power_setup() in order to simplify each code path and to clarify that it is unrelated to qca_power_off() and qca_power_setup(). Signed-off-by: Bjorn Andersson --- drivers/bluetooth/hci_qca.c | 61 ++--- 1 file changed, 36 insertions(+), 25 del

[PATCH v12 4/5] dma-buf: heaps: Add CMA heap to dmabuf heaps

2019-10-17 Thread John Stultz
This adds a CMA heap, which allows userspace to allocate a dma-buf of contiguous memory out of a CMA region. This code is an evolution of the Android ION implementation, so thanks to its original author and maintainters: Benjamin Gaignard, Laura Abbott, and others! NOTE: This patch only adds th

[PATCH 0/4] Bluetooth: hci_qca: Regulator usage cleanup

2019-10-17 Thread Bjorn Andersson
Clean up the regulator usage in hci_qca and in particular don't regulator_set_voltage() for fixed voltages. It cleans up the driver, but more important it makes bluetooth work on my Lenovo Yoga C630, where the regulator for vddch0 is defined with a voltage range that doesn't overlap the values in t

[PATCH 3/4] Bluetooth: hci_qca: Use regulator bulk enable/disable

2019-10-17 Thread Bjorn Andersson
With the regulator_set_load() and regulator_set_voltage() out of the enable/disable code paths the code can now use the standard regulator bulk enable/disable API. By cloning num_vregs into struct qca_power there's no need to lug around a reference to the struct qca_vreg_data, which further simpli

[PATCH v12 3/5] dma-buf: heaps: Add system heap to dmabuf heaps

2019-10-17 Thread John Stultz
This patch adds system heap to the dma-buf heaps framework. This allows applications to get a page-allocator backed dma-buf for non-contiguous memory. This code is an evolution of the Android ION implementation, so thanks to its original authors and maintainters: Rebecca Schultz Zavin, Colin Cr

[PATCH v12 5/5] kselftests: Add dma-heap test

2019-10-17 Thread John Stultz
Add very trivial allocation and import test for dma-heaps, utilizing the vgem driver as a test importer. A good chunk of this code taken from: tools/testing/selftests/android/ion/ionmap_test.c Originally by Laura Abbott Cc: Benjamin Gaignard Cc: Sumit Semwal Cc: Liam Mark Cc: Pratik Patel

[PATCH 2/4] Bluetooth: hci_qca: Don't vote for specific voltage

2019-10-17 Thread Bjorn Andersson
Devices with specific voltage requirements should not request voltage from the driver, but instead rely on the system configuration to define appropriate voltages for each rail. This ensures that PMIC and board variations are accounted for, something that the 0.1V range in the hci_qca driver curre

Re: [PATCH 01/15] riscv: cleanup

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:07 PM Christoph Hellwig wrote: > > Remove various not required ifdefs and externs. > > Signed-off-by: Christoph Hellwig > --- > arch/riscv/include/asm/bug.h | 16 +++- > 1 file changed, 3 insertions(+), 13 deletions(-) > > diff --git a/arch/riscv/include/as

Re: [PATCH 05/15] riscv: poison SBI calls for M-mode

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > There is no SBI when we run in M-mode, so fail the compile for any code > trying to use SBI calls. > > Signed-off-by: Christoph Hellwig > --- > arch/riscv/include/asm/sbi.h | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-)

Re: RISC-V nommu support v5

2019-10-17 Thread Paul Walmsley
On Fri, 18 Oct 2019, Anup Patel wrote: > It will be really cool to have this series for Linux-5.4-rcX. It's way too big to go in via the -rc series. I'm hoping to have it ready to go for v5.5-rc1. - Paul

Re: [PATCH 5/8] riscv: add missing prototypes

2019-10-17 Thread Luc Van Oostenryck
On Thu, Oct 17, 2019 at 05:49:26PM -0700, Paul Walmsley wrote: > sparse identifies these missing prototypes when building arch/riscv: > > arch/riscv/kernel/cpu.c:149:29: warning: symbol 'cpuinfo_op' was not > declared. Should it be static? > arch/riscv/kernel/irq.c:27:29: warning: symbol 'do_IRQ'

[PATCH v3 0/3] Logitech G920 fixes

2019-10-17 Thread Andrey Smirnov
Everyone: This series contains patches to fix a couple of regressions in G920 wheel support by hid-logitech-hidpp driver. Without the patches the wheel remains stuck in autocentering mode ("resisting" any attempt to trun) as well as missing support for any FF action. Thanks, Andrey Smirnov Chang

Re: [PATCH v2 31/33] tools lib bpf: Renaming pr_warning to pr_warn

2019-10-17 Thread Alexei Starovoitov
On Fri, Oct 18, 2019 at 11:18:48AM +0800, Kefeng Wang wrote: > For kernel logging macro, pr_warning is completely removed and > replaced by pr_warn, using pr_warn in tools lib bpf for symmetry > to kernel logging macro, then we could drop pr_warning in the > whole linux code. > > Cc: Alexei Starov

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

2019-10-17 Thread Stephen Rothwell
Hi Jens, On Thu, 17 Oct 2019 18:56:39 -0600 Jens Axboe wrote: > > I'll fix these warnings up, guessing it's 32-bit? Thanks. Yeah 32 bit. -- Cheers, Stephen Rothwell pgpAAZTHyaXeP.pgp Description: OpenPGP digital signature

[PATCH v3 2/3] HID: logitech-hidpp: rework device validation

2019-10-17 Thread Andrey Smirnov
G920 device only advertises REPORT_ID_HIDPP_LONG and REPORT_ID_HIDPP_VERY_LONG in its HID report descriptor, so querying for REPORT_ID_HIDPP_SHORT with optional=false will always fail and prevent G920 to be recognized as a valid HID++ device. To fix this and improve some other aspects, modify hidp

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

2019-10-17 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 hid_device_io_start()

[PATCH] mm,thp: recheck each page before collapsing file THP

2019-10-17 Thread Song Liu
In collapse_file(), after locking the page, it is necessary to recheck that the page is up-to-date, clean, and pointing to the proper mapping. If any check fails, abort the collapse. Fixes: 99cb0dbd47a1 ("mm,thp: add read-only THP support for (non-shmem) FS") Cc: Kirill A. Shutemov Cc: Johannes W

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

2019-10-17 Thread Oleksij Rempel
On Thu, Oct 17, 2019 at 11:35:48AM -0700, Florian Fainelli wrote: > > > On 10/13/2019 11:15 PM, Oleksij Rempel wrote: > > Provide basic support for Atheros AR9331 build-in switch. So far it > > works as port multiplexer without any hardware offloading support. > > I glanced through the functiona

Re: [PATCH 4/8] riscv: ensure RISC-V C model definitions are passed to static analyzers

2019-10-17 Thread Paul Walmsley
On Fri, 18 Oct 2019, Luc Van Oostenryck wrote: > On Thu, Oct 17, 2019 at 05:49:25PM -0700, Paul Walmsley wrote: > > Static analysis tools such as sparse don't set the RISC-V C model > > preprocessor directives such as "__riscv_cmodel_medany", set by the C > > compilers. This causes the static ana

Re: [PATCH 2/3] HID: google: Add of_match table to Whiskers switch device.

2019-10-17 Thread Ikjoon Jang
A gentle ping on adding DT binding for Hammer (2/2). On Sat, Oct 5, 2019 at 6:14 PM Ikjoon Jang wrote: > > Add a device tree match table. > > Change-Id: Iaee68311073cefa4b99cde182bd37d1a67c94ea6 > Signed-off-by: Ikjoon Jang > --- > drivers/hid/hid-google-hammer.c | 10 ++ > 1 file chang

Re: [PATCH v2] cpufreq: powernv: fix stack bloat and NR_CPUS limitation

2019-10-17 Thread Viresh Kumar
On 17-10-19, 21:55, John Hubbard wrote: > The following build warning occurred on powerpc 64-bit builds: > > drivers/cpufreq/powernv-cpufreq.c: In function 'init_chip_info': > drivers/cpufreq/powernv-cpufreq.c:1070:1: warning: the frame size of 1040 > bytes is larger than 1024 bytes [-Wframe-larg

[PATCH v2 22/33] sh/intc: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Yoshinori Sato Cc: Rich Felker Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --- drivers/sh/intc/core.c | 4 ++

Re: [PATCH 2/2] Fix a NULL-ptr-deref bug in ath10k_usb_alloc_urb_from_pipe

2019-10-17 Thread Guenter Roeck
On Sun, Sep 01, 2019 at 11:06:05AM +0300, Kalle Valo wrote: > Guenter Roeck writes: > > > Hi, > > > > On Sat, Aug 03, 2019 at 08:31:01PM -0400, Hui Peng wrote: > >> The `ar_usb` field of `ath10k_usb_pipe_usb_pipe` objects > >> are initialized to point to the containing `ath10k_usb` object > >> ac

[PATCH v2 11/33] clocksource: samsung_pwm_timer: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Daniel Lezcano Acked-by: Daniel Lezcano Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --- drivers/clocksource/

[PATCH v2 17/33] oprofile: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Robert Richter Acked-by: Robert Richter Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --- drivers/oprofile/opr

[PATCH v2 21/33] scsi: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --- drivers/scsi

  1   2   3   4   5   6   7   8   9   10   >