Re: [PATCH] mfd: syscon: Add syscon_regmap_lookup_by_phandle_optional() function.

2020-11-06 Thread Arnd Bergmann
I noticed that my earlier reply was rejected by some mail servers, resending from @kernel.org to make sure everyone has it. On Tue, Oct 27, 2020 at 10:57 PM Arnd Bergmann wrote: > > On Tue, Oct 27, 2020 at 10:11 PM Enric Balletbo i Serra > wrote: > > > > This adds syscon_regmap_lookup_by_phandle

Re: [PATCH] taskstats: remove unneeded dead assignment

2020-11-06 Thread Lukas Bulwahn
On Fri, 6 Nov 2020, Nathan Chancellor wrote: > On Fri, Nov 06, 2020 at 07:22:10AM +0100, Lukas Bulwahn wrote: > > make clang-analyzer on x86_64 defconfig caught my attention with: > > > > kernel/taskstats.c:120:2: warning: Value stored to 'rc' is never read \ > > [clang-analyzer-deadcode.D

Re: [PATCH 2/2] opp: Don't create an OPP table from dev_pm_opp_get_opp_table()

2020-11-06 Thread Ulf Hansson
On Fri, 6 Nov 2020 at 07:25, Viresh Kumar wrote: > > It has been found that some users (like cpufreq-dt and others on LKML) > have abused the helper dev_pm_opp_get_opp_table() to create the OPP > table instead of just finding it, which is the wrong thing to do. This > routine was meant for OPP cor

Re: [PATCH 05/11 v3] kprobes/ftrace: Add recursion protection to the ftrace callback

2020-11-06 Thread Masami Hiramatsu
On Thu, 05 Nov 2020 21:32:40 -0500 Steven Rostedt (VMware) wrote: > From: "Steven Rostedt (VMware)" > > If a ftrace callback does not supply its own recursion protection and > does not set the RECURSION_SAFE flag in its ftrace_ops, then ftrace will > make a helper trampoline to do so before cal

[PATCH] KVM: remove kvm_clear_guest_page

2020-11-06 Thread Paolo Bonzini
kvm_clear_guest_page is not used anymore after "KVM: X86: Don't track dirty for KVM_SET_[TSS_ADDR|IDENTITY_MAP_ADDR]", except from kvm_clear_guest. We can just inline it in its sole user. Signed-off-by: Paolo Bonzini --- include/linux/kvm_host.h | 1 - virt/kvm/kvm_main.c | 11 ++-

[PATCH v6 06/11] mfd: mt6360: Rename mt6360_pmu by mt6360

2020-11-06 Thread Gene Chen
From: Gene Chen Rename mt6360_pmu by mt6360, because of including not only PMU part, but also entire MT6360 IC Signed-off-by: Gene Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/mt6360-core.c | 41 - 1 file changed, 20 insertions(+), 21 deletions(-)

[PATCH v6 0/11] mfd: mt6360: Merge different sub-devices I2C read/write

2020-11-06 Thread Gene Chen
This patch series merge different sub-device I2C read/write into one Regmap and fix coding style for well-organized. Gene Chen (11) mfd: mt6360: Rearrange include file mfd: mt6360: Remove redundant brackets around raw numbers mfd: mt6360: Indicate sub-dev compatible name by using mfd: mt63

[PATCH v6 05/11] mfd: mt6360: Rename mt6360_pmu_data by mt6360_ddata

2020-11-06 Thread Gene Chen
From: Gene Chen Rename mt6360_pmu_data by mt6360_ddata because of including not only PMU part, but also entire MT6360 IC. Signed-off-by: Gene Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/mt6360-core.c | 44 ++-- include/linux/mfd/mt6360.h | 2 +-

[PATCH v6 01/11] mfd: mt6360: Rearrange include file

2020-11-06 Thread Gene Chen
From: Gene Chen Rearrange include file without sorting by alphabet. Signed-off-by: Gene Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/mt6360-core.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/mt6360-core.c b/drivers/mfd/mt6360-core.c index e9cacc2

[PATCH v6 04/11] mfd: mt6360: Combine mt6360 pmic/ldo resources into mt6360 regulator resources

2020-11-06 Thread Gene Chen
From: Gene Chen Combine mt6360 pmic/ldo resources into mt6360 regulator resources to simplify the similar resources object. Signed-off-by: Gene Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/mt6360-core.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/driver

[PATCH v6 08/11] mfd: mt6360: Fix flow which is used to check ic exist

2020-11-06 Thread Gene Chen
From: Gene Chen Fix flow which is used to check ic exist. Signed-off-by: Gene Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/mt6360-core.c | 32 +--- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/drivers/mfd/mt6360-core.c b/drivers/mfd/mt6360-co

[PATCH v6 02/11] mfd: mt6360: Remove redundant brackets around raw numbers

2020-11-06 Thread Gene Chen
From: Gene Chen Remove redundant brackets around raw numbers. Signed-off-by: Gene Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/mt6360-core.c | 172 +-- include/linux/mfd/mt6360.h | 410 ++--- 2 files changed, 291 insertions(+), 291

[PATCH v6 03/11] mfd: mt6360: Indicate sub-dev compatible name by using "-"

2020-11-06 Thread Gene Chen
From: Gene Chen Indicate sub-dev compatible name by using "-". Signed-off-by: Gene Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/mt6360-core.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/mfd/mt6360-core.c b/drivers/mfd/mt6360-core.

[PATCH v6 11/11] mfd: mt6360: Remove MT6360 regulator of_compatible attribute

2020-11-06 Thread Gene Chen
From: Gene Chen Remove MT6360 regulator of_compatible attribute because MFD device should just instantiate the platform device. Signed-off-by: Gene Chen --- drivers/mfd/mt6360-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/mt6360-core.c b/drivers/mfd/mt6

[PATCH v6 10/11] mfd: mt6360: Merge different sub-devices I2C read/write

2020-11-06 Thread Gene Chen
From: Gene Chen Merge different sub-devices I2C read/write functions into one Regmap, because PMIC and LDO part need CRC bits for access protection. Signed-off-by: Gene Chen --- drivers/mfd/Kconfig | 1 + drivers/mfd/mt6360-core.c | 203 -- 2

[PATCH v6 07/11] mfd: mt6360: Remove handle_post_irq callback function

2020-11-06 Thread Gene Chen
From: Gene Chen Remove handle_post_irq which is used to retrigger IRQ. Set IRQ level low trigger in dtsi to keep IRQ always be handled. Signed-off-by: Gene Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/mt6360-core.c | 17 - include/linux/mfd/mt6360.h | 2 +- 2 files chang

[PATCH v6 09/11] mfd: mt6360: Merge header file into driver and remove unuse register define

2020-11-06 Thread Gene Chen
From: Gene Chen Merge header file into driver and remove unuse register define Signed-off-by: Gene Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/mt6360-core.c | 48 - include/linux/mfd/mt6360.h | 240 - 2 files changed, 47 insertions(+)

Re: [PATCH v5 05/15] mm/frame-vector: Use FOLL_LONGTERM

2020-11-06 Thread Daniel Vetter
On Fri, Nov 6, 2020 at 11:01 AM Daniel Vetter wrote: > > On Fri, Nov 6, 2020 at 5:08 AM John Hubbard wrote: > > > > On 11/5/20 4:49 AM, Jason Gunthorpe wrote: > > > On Thu, Nov 05, 2020 at 10:25:24AM +0100, Daniel Vetter wrote: > > >>> /* > > >>> * If we can't determine whether or not a pte is

Re: [PATCH] arm64: dts: rockchip: Reorder LED triggers from mmc devices on rk3399-roc-pc.

2020-11-06 Thread Johan Jonker
Hi Markus, On 11/4/20 8:29 PM, Markus Reichl wrote: > After patch [1] SD-card becomes mmc1 and eMMC becomes mmc2. > Correct trigger of LEDs accordingly. > > [1] > https://patchwork.kernel.org/patch/11881427 > > Signed-off-by: Markus Reichl > --- > arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dts

Re: [linux-safety] [PATCH] taskstats: remove unneeded dead assignment

2020-11-06 Thread Lukas Bulwahn
On Fri, 6 Nov 2020, Sudip Mukherjee wrote: > Hi Lukas, > > On 06/11/2020 06:22, Lukas Bulwahn wrote: > > make clang-analyzer on x86_64 defconfig caught my attention with: > > > > kernel/taskstats.c:120:2: warning: Value stored to 'rc' is never read \ > > [clang-analyzer-deadcode.DeadStore

Re: [PATCH v3] lib: Convert test_printf.c to KUnit

2020-11-06 Thread Rasmus Villemoes
On 06/11/2020 05.04, Arpitha Raghunandan wrote: > > The total number of "atoms" can be printed by maintaining a static variable > total_count that can be incremented as is in the original test_printf test. > But, the reporting of the random seed currently is done in kselftest and so > will not sho

RE: [EXT] Re: [PATCH v2 4/4] soc: imx8m: change to use platform driver

2020-11-06 Thread Alice Guo
> -Original Message- > From: Krzysztof Kozlowski > Sent: 2020年11月5日 17:06 > To: Alice Guo > Cc: robh...@kernel.org; shawn...@kernel.org; s.ha...@pengutronix.de; > dl-linux-imx ; Peng Fan ; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > linux-arm-ker...@lists.infradead.org

[PATCH 1/2] arm64: psci: Avoid printing in cpu_psci_cpu_die()

2020-11-06 Thread Will Deacon
cpu_psci_cpu_die() is called in the context of the dying CPU, which will no longer be online or tracked by RCU. It is therefore not generally safe to call printk() if the PSCI "cpu off" request fails, so remove the pr_crit() invocation. Cc: Qian Cai Cc: "Paul E. McKenney" Cc: Catalin Marinas Si

[PATCH 0/2] arm64: Fix issues with CPU hotplug and RCU

2020-11-06 Thread Will Deacon
Hi folks, Here are a couple of patches following on from: https://lore.kernel.org/r/2020110542.GA8842@willie-the-truck which address issues when CPU onlining fails but RCU is left none the wiser. Tested under QEMU. If Paul is happy with the second patch, then I can take both of these via ar

Re: [RFC PATCH 0/2] mm: fix OOMs for binding workloads to movable zone only node

2020-11-06 Thread Michal Hocko
On Fri 06-11-20 17:08:57, Feng Tang wrote: [...] > You are right, there are quiet several types of page allocations failures. > The callstack in patch 2/2 is a GFP_HIGHUSER from pipe_write, and there > are more types of kernel allocation requests which will got blocked by > the differnt check. My

[PATCH 2/2] arm64: smp: Tell RCU about CPUs that fail to come online

2020-11-06 Thread Will Deacon
Commit ce3d31ad3cac ("arm64/smp: Move rcu_cpu_starting() earlier") ensured that RCU is informed early about incoming CPUs that might end up calling into printk() before they are online. However, if such a CPU fails the early CPU feature compatibility checks in check_local_cpu_capabilities(), then i

[PATCH bpf-next v6 9/9] bpf: Exercise syscall operations for inode and sk storage

2020-11-06 Thread KP Singh
From: KP Singh Use the check_syscall_operations added for task_local_storage to exercise syscall operations for other local storage maps: * Check the absence of an element for the given fd. * Create a new element, retrieve and compare its value. * Delete the element and check again for absence.

Re: [PATCH] arm64/smp: Move rcu_cpu_starting() earlier

2020-11-06 Thread Will Deacon
On Thu, Nov 05, 2020 at 09:15:24PM -0500, Qian Cai wrote: > On Thu, 2020-11-05 at 15:28 -0800, Paul E. McKenney wrote: > > On Thu, Nov 05, 2020 at 06:02:49PM -0500, Qian Cai wrote: > > > On Thu, 2020-11-05 at 22:22 +, Will Deacon wrote: > > > > Hmm, this patch has caused a regression in the cas

[PATCH bpf-next v6 1/9] bpf: Allow LSM programs to use bpf spin locks

2020-11-06 Thread KP Singh
From: KP Singh Usage of spin locks was not allowed for tracing programs due to insufficient preemption checks. The verifier does not currently prevent LSM programs from using spin locks, but the helpers are not exposed via bpf_lsm_func_proto. Based on the discussion in [1], non-sleepable LSM pro

[PATCH bpf-next v6 5/9] bpf: Implement get_current_task_btf and RET_PTR_TO_BTF_ID

2020-11-06 Thread KP Singh
From: KP Singh The currently available bpf_get_current_task returns an unsigned integer which can be used along with BPF_CORE_READ to read data from the task_struct but still cannot be used as an input argument to a helper that accepts an ARG_PTR_TO_BTF_ID of type task_struct. In order to implem

[PATCH bpf-next v6 0/9] Implement task_local_storage

2020-11-06 Thread KP Singh
From: KP Singh # v5 -> v6 - Using a wrapper for copy_file_range in selftests since it's missing in older libcs. - Added Martin's acks. # v4 -> v5 - Fixes to selftests as suggested by Martin. - Added Martin's acks. # v3 -> v4 - Move the patch that exposes spin lock helpers to LSM programs a

[PATCH bpf-next v6 6/9] bpf: Fix tests for local_storage

2020-11-06 Thread KP Singh
From: KP Singh The {inode,sk}_storage_result checking if the correct value was retrieved was being clobbered unconditionally by the return value of the bpf_{inode,sk}_storage_delete call. Also, consistently use the newly added BPF_LOCAL_STORAGE_GET_F_CREATE flag. Acked-by: Song Liu Fixes: cd32

[PATCH bpf-next v6 8/9] bpf: Add tests for task_local_storage

2020-11-06 Thread KP Singh
From: KP Singh The test exercises the syscall based map operations by creating a pidfd for the current process. For verifying kernel / LSM functionality, the test implements a simple MAC policy which denies an executable from unlinking itself. The LSM program bprm_committed_creds sets a task_loc

[PATCH bpf-next v6 7/9] bpf: Update selftests for local_storage to use vmlinux.h

2020-11-06 Thread KP Singh
From: KP Singh With the fixing of BTF pruning of embedded types being fixed, the test can be simplified to use vmlinux.h Acked-by: Song Liu Signed-off-by: KP Singh --- .../selftests/bpf/progs/local_storage.c | 20 +-- 1 file changed, 1 insertion(+), 19 deletions(-) diff

[PATCH bpf-next v6 3/9] libbpf: Add support for task local storage

2020-11-06 Thread KP Singh
From: KP Singh Updates the bpf_probe_map_type API to also support BPF_MAP_TYPE_TASK_STORAGE similar to other local storage maps. Acked-by: Martin KaFai Lau Signed-off-by: KP Singh --- tools/lib/bpf/libbpf_probes.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/lib/bpf/libbpf_probes

[PATCH bpf-next v6 2/9] bpf: Implement task local storage

2020-11-06 Thread KP Singh
From: KP Singh Similar to bpf_local_storage for sockets and inodes add local storage for task_struct. The life-cycle of storage is managed with the life-cycle of the task_struct. i.e. the storage is destroyed along with the owning task with a callback to the bpf_task_storage_free from the task_

[PATCH bpf-next v6 4/9] bpftool: Add support for task local storage

2020-11-06 Thread KP Singh
From: KP Singh Updates the binary to handle the BPF_MAP_TYPE_TASK_STORAGE as "task_storage" for printing and parsing. Also updates the documentation and bash completion Acked-by: Song Liu Acked-by: Martin KaFai Lau Signed-off-by: KP Singh --- tools/bpf/bpftool/Documentation/bpftool-map.rst |

Re: [PATCH v3 3/3] [RFC] CPUFreq: Add support for cpu-perf-dependencies

2020-11-06 Thread Lukasz Luba
Hi Viresh, On 11/6/20 9:20 AM, Viresh Kumar wrote: On 02-11-20, 12:01, Nicola Mazzucato wrote: This is a continuation of the previous v2, where we focused mostly on the dt binding. I am seeking some feedback/comments on the following two approaches. Intro: We have seen that in a system where

Re: [PATCH v5 1/1] sched/uclamp: add SCHED_FLAG_UTIL_CLAMP_RESET flag to reset uclamp

2020-11-06 Thread Patrick Bellasi
Hi Yun, thanks for keep improving this. I'm replying here but still considering all other reviewers comments. Best, Patrick On Tue, Nov 03, 2020 at 03:37:56 +0100, Yun Hsiang wrote... > If the user wants to stop controlling uclamp and let the task inherit > the value from the group, we need

Re: [PATCH 13/36] tty: serial: 8250: 8250_port: Staticify functions referenced by pointers

2020-11-06 Thread Greg Kroah-Hartman
On Fri, Nov 06, 2020 at 10:16:46AM +, Lee Jones wrote: > On Fri, 06 Nov 2020, Lee Jones wrote: > > > On Fri, 06 Nov 2020, Greg Kroah-Hartman wrote: > > > > > On Wed, Nov 04, 2020 at 07:35:26PM +, Lee Jones wrote: > > > > Fixes the following W=1 kernel build warning(s): > > > > > > > > d

Re: [PATCH bpf-next v5 8/9] bpf: Add tests for task_local_storage

2020-11-06 Thread KP Singh
On Fri, Nov 6, 2020 at 3:14 AM Alexei Starovoitov wrote: > > On Thu, Nov 05, 2020 at 10:58:26PM +, KP Singh wrote: > > + > > + ret = copy_file_range(fd_in, NULL, fd_out, NULL, stat.st_size, 0); > > centos7 glibc doesn't have it. > > /prog_tests/test_local_storage.c:59:8: warning: implicit

Re: [PATCH v3] lib: Convert test_printf.c to KUnit

2020-11-06 Thread Greg KH
On Fri, Nov 06, 2020 at 11:31:43AM +0100, Rasmus Villemoes wrote: > On 06/11/2020 05.04, Arpitha Raghunandan wrote: > > > > The total number of "atoms" can be printed by maintaining a static variable > > total_count that can be incremented as is in the original test_printf test. > > But, the repor

Re: [PATCH 00/15] usb: serial: avoid using usb_control_msg() directly

2020-11-06 Thread Greg KH
On Wed, Nov 04, 2020 at 12:16:48PM +0530, Himadri Pandya wrote: > There are many usages of usb_control_msg() that can use the new wrapper > functions usb_contro_msg_send() & usb_control_msg_recv() for better > error checks on short reads and writes. Hence use them whenever possible > and avoid usin

Re: [PATCH v12 01/10] dt-bindings: usb: Maxim type-c controller device tree binding document

2020-11-06 Thread Greg Kroah-Hartman
On Thu, Oct 29, 2020 at 01:01:52PM -0700, Badhri Jagan Sridharan wrote: > Hi Rob, > > The error seems to be because the following patch > 5ed132db5ad4 dt-bindings: connector: Add property to set initial > current cap for FRS > is in usb-next but not in the rc1 branch yet. To make the bot > recogni

Re: [PATCH 0/2] UCSI race condition resulting in wrong port state

2020-11-06 Thread Greg Kroah-Hartman
On Wed, Oct 28, 2020 at 10:10:43AM +0100, Greg Kroah-Hartman wrote: > On Fri, Oct 09, 2020 at 04:40:45PM +0200, Benjamin Berg wrote: > > From: Benjamin Berg > > > > Hi all, > > > > so, I kept running in an issue where the UCSI port information was saying > > that power was being delivered (onlin

Re: [PATCH 13/36] tty: serial: 8250: 8250_port: Staticify functions referenced by pointers

2020-11-06 Thread Lee Jones
On Fri, 06 Nov 2020, Greg Kroah-Hartman wrote: > On Fri, Nov 06, 2020 at 10:05:52AM +, Lee Jones wrote: > > On Fri, 06 Nov 2020, Greg Kroah-Hartman wrote: > > > > > On Wed, Nov 04, 2020 at 07:35:26PM +, Lee Jones wrote: > > > > Fixes the following W=1 kernel build warning(s): > > > > > >

Re: [PATCH kcsan 3/3] kcsan: Fix encoding masks and regain address bit

2020-11-06 Thread Marco Elver
On Fri, 6 Nov 2020 at 11:19, Boqun Feng wrote: > > send a v2 for this one. > > Let me add an ack for that one, thanks! Thank you! -- Marco

Re: [PATCH] taskstats: remove unneeded dead assignment

2020-11-06 Thread Lukas Bulwahn
On Fri, 6 Nov 2020, Lukas Bulwahn wrote: > > > On Fri, 6 Nov 2020, Nathan Chancellor wrote: > > > On Fri, Nov 06, 2020 at 07:22:10AM +0100, Lukas Bulwahn wrote: > > > make clang-analyzer on x86_64 defconfig caught my attention with: > > > > > > kernel/taskstats.c:120:2: warning: Value sto

Re: [PATCH v4 3/3] ARM: dts: sun8i: s3: Add dts for the Elimo Initium SBC

2020-11-06 Thread Maxime Ripard
On Thu, Nov 05, 2020 at 06:32:31PM +, Matteo Scordino wrote: > The Elimo Engineering Initium is an Open Source Hardware Single Board > Computer based on the Elimo Impetus SoM. > > It is meant as the first development platform for the Impetus, providing > convenient access to the peripherals on

Re: [PATCH 13/36] tty: serial: 8250: 8250_port: Staticify functions referenced by pointers

2020-11-06 Thread Lee Jones
On Fri, 06 Nov 2020, Greg Kroah-Hartman wrote: > On Fri, Nov 06, 2020 at 10:16:46AM +, Lee Jones wrote: > > On Fri, 06 Nov 2020, Lee Jones wrote: > > > > > On Fri, 06 Nov 2020, Greg Kroah-Hartman wrote: > > > > > > > On Wed, Nov 04, 2020 at 07:35:26PM +, Lee Jones wrote: > > > > > Fixes

Re: [linux-safety] [PATCH] taskstats: remove unneeded dead assignment

2020-11-06 Thread Sudip Mukherjee
Hi Lukas, On 06/11/2020 06:22, Lukas Bulwahn wrote: > make clang-analyzer on x86_64 defconfig caught my attention with: > > kernel/taskstats.c:120:2: warning: Value stored to 'rc' is never read \ > [clang-analyzer-deadcode.DeadStores] > rc = 0; > ^ > > Commit d94a041519f3

Re: [PATCH 1/2] console: Remove dummy con_font_op() callback implementations

2020-11-06 Thread Greg Kroah-Hartman
On Sat, Oct 31, 2020 at 03:24:41AM -0400, Peilin Ye wrote: > `struct console_font` is a UAPI structure, thus ideally should not be > used for kernel internal abstraction. Remove some dummy .con_font_set, > .con_font_default and .con_font_copy `struct consw` callback > implementations, to make it cl

Re: [PATCH 0/2] UCSI race condition resulting in wrong port state

2020-11-06 Thread Benjamin Berg
Hi, On Fri, 2020-11-06 at 11:47 +0100, Greg Kroah-Hartman wrote: > Due to the lack of response, I guess they don't need to go to any > stable kernel, so will queue them up for 5.11-rc1. Sorry, forgot to reply. Not including them in stable seems reasonable as I have not seen it cause major troubl

Re: [PATCH v4 3/5] usb: typec: stusb160x: fix power-opmode property with typec-power-opmode

2020-11-06 Thread Heikki Krogerus
On Fri, Nov 06, 2020 at 10:18:52AM +0100, Amelie Delaunay wrote: > Device tree property is named typec-power-opmode, not power-opmode. > > Fixes: da0cb6310094 ("usb: typec: add support for STUSB160x Type-C controller > family") > Signed-off-by: Amelie Delaunay Reviewed-by: Heikki Krogerus > -

Re: [PATCH] clk: mvebu: a3700: fix the XTAL MODE pin to MPP1_9

2020-11-06 Thread Marek Behún
Also, this is how A3720 WTMI code and ATF determines XTAL clock rate. No reason for kernel to do it differently. Reviewed-by: Marek Behún On Fri, 6 Nov 2020 11:00:39 +0100 Pali Rohár wrote: > From: Terry Zhou > > There is an error in the current code that the XTAL MODE > pin was set to NB M

Re: [PATCH v2] drm/vc4: replace idr_init() by idr_init_base()

2020-11-06 Thread Maxime Ripard
On Thu, Nov 05, 2020 at 01:24:14PM -0800, Eric Anholt wrote: > On Thu, Nov 5, 2020 at 12:21 PM Deepak R Varma wrote: > > > > idr_init() uses base 0 which is an invalid identifier for this driver. > > The idr_alloc for this driver uses VC4_PERFMONID_MIN as start value for > > ID range and it is #de

WARNING: bad unlock balance in ieee80211_unregister_hw

2020-11-06 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:cb5dc5b0 Merge branch 'bpf: safeguard hashtab locking in N.. git tree: bpf-next console output: https://syzkaller.appspot.com/x/log.txt?x=13498a0c50 kernel config: https://syzkaller.appspot.com/x/.config?x=58a4ca757d776bfe das

Re: [PATCH] mips: ar7: add missing iounmap() on error in ar7_gpio_init

2020-11-06 Thread Thomas Bogendoerfer
On Wed, Oct 28, 2020 at 05:15:45PM +0800, Qinglang Miao wrote: > Add the missing iounmap() of gpch->regs before return from > ar7_gpio_init() in the error handling case. > > Signed-off-by: Qinglang Miao > --- > arch/mips/ar7/gpio.c | 1 + > 1 file changed, 1 insertion(+) applied to mips-next.

Re: [PATCH] MIPS: Kconfig: fix a few trivial spelling mistakes

2020-11-06 Thread Thomas Bogendoerfer
On Tue, Oct 27, 2020 at 06:34:30PM +, Colin King wrote: > From: Colin Ian King > > There are a few spelling mistakes in the Kconfig, fix these. > > Signed-off-by: Colin Ian King > --- > arch/mips/Kconfig | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) applied to mips-next.

Re: [PATCH] mips: Vr41xx: add missing iounmap() on error in vr41xx_pciu_init()

2020-11-06 Thread Thomas Bogendoerfer
On Wed, Oct 28, 2020 at 05:15:48PM +0800, Qinglang Miao wrote: > add missing iounmap() of pciu_base on error when failed to init > io_map_base. > > Signed-off-by: Qinglang Miao > --- > arch/mips/pci/pci-vr41xx.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) applied to mips-next. T

Re: [PATCH -next] mm/hugetlb: Make is_aligned_hugepage_range static

2020-11-06 Thread Thomas Bogendoerfer
On Thu, Oct 29, 2020 at 10:13:20AM +0800, Zou Wei wrote: > Fix the following sparse warning: > > arch/mips/mm/hugetlbpage.c:64:5: warning: > symbol 'is_aligned_hugepage_range' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: Zou Wei > --- > arch/mips/mm/huget

Re: [PATCH] mips: cm: add missing iounmap() on error in mips_cm_probe()

2020-11-06 Thread Thomas Bogendoerfer
On Wed, Oct 28, 2020 at 05:15:46PM +0800, Qinglang Miao wrote: > Add the missing iounmap() of iounmap(mips_gcr_base) before > return from mips_cm_probe() in the error handling case. > > Signed-off-by: Qinglang Miao > --- > arch/mips/kernel/mips-cm.c | 1 + > 1 file changed, 1 insertion(+) appli

Re: [PATCH] MIPS: zboot: put appended dtb into a section

2020-11-06 Thread Thomas Bogendoerfer
On Mon, Oct 26, 2020 at 08:29:25PM +0800, Chuanhong Guo wrote: > This will make a separated section for dtb appear in ELF, and we can > then use objcopy to patch a dtb into vmlinuz when RAW_APPENDED_DTB > is set in kernel config. > > command to patch a dtb: > objcopy --set-section-flags=.appended_

Re: [ANNOUNCE] v5.10-rc2-rt4

2020-11-06 Thread Sebastian Andrzej Siewior
On 2020-11-04 17:06:50 [+0100], Daniel Wagner wrote: > On Wed, Nov 04, 2020 at 02:09:30PM +0100, Sebastian Andrzej Siewior wrote: > > Could you figure out if the arm64 thingy started with -rt4 or was > > already in rt3? > > I wrote a quick and dirty script to extract the data from my logs to see >

Re: [PATCH 13/36] tty: serial: 8250: 8250_port: Staticify functions referenced by pointers

2020-11-06 Thread Greg Kroah-Hartman
On Fri, Nov 06, 2020 at 10:48:10AM +, Lee Jones wrote: > On Fri, 06 Nov 2020, Greg Kroah-Hartman wrote: > > > On Fri, Nov 06, 2020 at 10:16:46AM +, Lee Jones wrote: > > > On Fri, 06 Nov 2020, Lee Jones wrote: > > > > > > > On Fri, 06 Nov 2020, Greg Kroah-Hartman wrote: > > > > > > > > >

Re: [PATCH v3 3/3] [RFC] CPUFreq: Add support for cpu-perf-dependencies

2020-11-06 Thread Viresh Kumar
On 06-11-20, 10:37, Lukasz Luba wrote: > Good question. > > How about a different interface for those cpufreq drivers? > That new registration API would allow to specify the cpumask. > Or rely on EM cpumask: em_span_cpus(em) > > Currently we have two ways to register cooling device: > 1. when the

[PATCH V5 0/5] can: flexcan: add stop mode support for i.MX8QM

2020-11-06 Thread Joakim Zhang
Add stop mode support for i.MX8QM. ChangeLogs: V4->V5: * remove patch:firmware: imx: always export SCU symbols, since it done by commit: 95de5094f5ac firmware: imx: add dummy functions * rebase to fsl,flexcan.yaml V3->V4: * can_idx->scu_idx. * return imx_sc

[PATCH V5 3/5] can: flexcan: rename macro FLEXCAN_QUIRK_SETUP_STOP_MODE -> FLEXCAN_QUIRK_SETUP_STOP_MODE_GPR

2020-11-06 Thread Joakim Zhang
This patch intends to rename FLEXCAN_QUIRK_SETUP_STOP_MODE quirk to FLEXCAN_QUIRK_SETUP_STOP_MODE_GRP for non-scu SoCs, coming patch will add quirk for scu SoCs. For non-scu SoCs, setup stop mode with GPR register. For scu SoCs, setup stop mode with SCU firmware. Signed-off-by: Joakim Zhang ---

[PATCH V5 2/5] dt-bindings: can: flexcan: add fsl,scu-index property to indicate a resource

2020-11-06 Thread Joakim Zhang
For SoCs with SCU support, need setup stop mode via SCU firmware, so this property can help indicate a resource in SCU firmware. Signed-off-by: Joakim Zhang --- .../devicetree/bindings/net/can/fsl,flexcan.yaml | 11 +++ 1 file changed, 11 insertions(+) diff --git a/Documentation/de

[PATCH V5 4/5] dt-bindings: firmware: add IMX_SC_R_CAN(x) macro for CAN

2020-11-06 Thread Joakim Zhang
Add IMX_SC_R_CAN(x) macro for CAN. Suggested-by: Marc Kleine-Budde Acked-by: Shawn Guo Signed-off-by: Joakim Zhang --- include/dt-bindings/firmware/imx/rsrc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/firmware/imx/rsrc.h b/include/dt-bindings/firmware/imx/rsrc.h

[PATCH V5 5/5] can: flexcan: add CAN wakeup function for i.MX8QM

2020-11-06 Thread Joakim Zhang
The System Controller Firmware (SCFW) is a low-level system function which runs on a dedicated Cortex-M core to provide power, clock, and resource management. It exists on some i.MX8 processors. e.g. i.MX8QM (QM, QP), and i.MX8QX (QXP, DX). SCU driver manages the IPC interface between host CPU and

[PATCH V5 1/5] dt-bindings: can: flexcan: fix fsl,clk-source property

2020-11-06 Thread Joakim Zhang
Correct fsl,clk-source example since flexcan driver uses "of_property_read_u8" to get this property. Fixes: 9d733992772d ("dt-bindings: can: flexcan: add PE clock source property to device tree") Signed-off-by: Joakim Zhang --- Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml | 4 ++--

Re: [PATCH v13 05/14] KVM: X86: Implement ring-based dirty memory tracking

2020-11-06 Thread Paolo Bonzini
Just very few changes: On 01/10/20 03:22, Peter Xu wrote: @@ -6373,3 +6386,107 @@ ranges that KVM should reject access to. In combination with KVM_CAP_X86_USER_SPACE_MSR, this allows user space to trap and emulate MSRs that are outside of the scope of KVM as well as limit the attack surfac

Re: [RFC PATCH 1/1] gpio: sifive: To get gpio irq offset from device tree data

2020-11-06 Thread Greentime Hu
Andy Shevchenko 於 2020年11月6日 週五 下午5:25寫道: > > On Fri, Nov 6, 2020 at 4:59 AM Greentime Hu wrote: > > > > We can get hwirq number of the gpio by its irq_data->hwirq so that we don't > > need to add more macros for different platforms. This patch is tested in > > SiFive Unleashed board and SiFive U

Re: [PATCH v13 06/14] KVM: Make dirty ring exclusive to dirty bitmap log

2020-11-06 Thread Paolo Bonzini
On 01/10/20 03:22, Peter Xu wrote: + /* Dirty ring tracking is exclusive to dirty log tracking */ + if (kvm->dirty_ring_size) + return -EINVAL; + ENXIO is slightly more appropriate (especially for debugging, as EINVAL suggests that the arguments were wrong and not some e

Re: [GIT PULL] SPI fixes for v5.10-rc2

2020-11-06 Thread Mark Brown
On Fri, Nov 06, 2020 at 03:18:15AM -0700, Nathan Chancellor wrote: > On Thu, Nov 05, 2020 at 04:45:46PM +, Mark Brown wrote: > > Martin Hundebøll (1): > > spi: bcm2835: fix gpio cs level inversion > Why did this go in with two outstanding reports? > It looks like there is a fix for it

[tip: ras/core] x86/mce: Assign boolean values to a bool variable

2020-11-06 Thread tip-bot2 for Kaixu Xia
The following commit has been merged into the ras/core branch of tip: Commit-ID: 77080929d56d87a57093869a15d2785b8b2d8cd5 Gitweb: https://git.kernel.org/tip/77080929d56d87a57093869a15d2785b8b2d8cd5 Author:Kaixu Xia AuthorDate:Fri, 06 Nov 2020 17:19:23 +08:00 Committer:

Re: [PATCH v2 1/2] pinctrl: qcom: Add sm8250 lpass lpi pinctrl driver

2020-11-06 Thread Srinivas Kandagatla
Thanks Linus for review! On 06/11/2020 09:50, Linus Walleij wrote: Hi Srinivas, thanks for your patch! On Thu, Nov 5, 2020 at 1:04 PM Srinivas Kandagatla wrote: Add initial pinctrl driver to support pin configuration for LPASS (Low Power Audio SubSystem) LPI (Low Power Island) pinctrl on SM

Re: [PATCH v2 1/2] pinctrl: qcom: Add sm8250 lpass lpi pinctrl driver

2020-11-06 Thread Srinivas Kandagatla
Thanks Andy for the review, On 05/11/2020 12:32, Andy Shevchenko wrote: On Thu, Nov 5, 2020 at 2:06 PM Srinivas Kandagatla wrote: Add initial pinctrl driver to support pin configuration for LPASS (Low Power Audio SubSystem) LPI (Low Power Island) pinctrl on SM8250. +config PINCTRL_LPASS_LP

Re: [PATCH v8 30/43] arm64: kasan: Allow enabling in-kernel MTE

2020-11-06 Thread Vincenzo Frascino
Hi Catalin, On 11/5/20 6:09 PM, Andrey Konovalov wrote: >> Ah, I got there eventually in patch 38. Too many indirections ;) (I'm >> sure we could have trimmed them down a bit, hw_init_tags == >> arch_init_tags == mte_init_tags). > The idea with these indirections was to make hw_tags.c to not direc

Re: [PATCH 1/1] x86/mce: remove unused WARN_ON() in mce_register_decode_chain()

2020-11-06 Thread Borislav Petkov
On Fri, Nov 06, 2020 at 04:43:40PM +0800, Zhen Lei wrote: > enum mce_notifier_prios { > MCE_PRIO_LOWEST, > MCE_PRIO_MCELOG, > MCE_PRIO_EDAC, > > After commit c9c6d216ed28 ("x86/mce: Rename "first" function as "early""), > there is no other integer between MCE_PRIO_MCELOG an

Re: [PATCH 13/36] tty: serial: 8250: 8250_port: Staticify functions referenced by pointers

2020-11-06 Thread Lee Jones
On Fri, 06 Nov 2020, Greg Kroah-Hartman wrote: > On Fri, Nov 06, 2020 at 10:48:10AM +, Lee Jones wrote: > > On Fri, 06 Nov 2020, Greg Kroah-Hartman wrote: > > > > > On Fri, Nov 06, 2020 at 10:16:46AM +, Lee Jones wrote: > > > > On Fri, 06 Nov 2020, Lee Jones wrote: > > > > > > > > > On F

Re: [RFT PATCH v2 7/8] gpio: exar: switch to using regmap

2020-11-06 Thread Bartosz Golaszewski
On Thu, Nov 5, 2020 at 6:41 PM Mark Brown wrote: > > On Wed, Nov 04, 2020 at 08:30:50PM +0100, Bartosz Golaszewski wrote: > > > @@ -119,21 +81,39 @@ static void exar_set_value(struct gpio_chip *chip, > > unsigned int offset, > > unsigned int addr = exar_offset_to_lvl_addr(exar_gpio, offset)

Re: [PATCH v3 3/3] [RFC] CPUFreq: Add support for cpu-perf-dependencies

2020-11-06 Thread Lukasz Luba
On 11/6/20 10:55 AM, Viresh Kumar wrote: On 06-11-20, 10:37, Lukasz Luba wrote: Good question. How about a different interface for those cpufreq drivers? That new registration API would allow to specify the cpumask. Or rely on EM cpumask: em_span_cpus(em) Currently we have two ways to regis

[PATCH V3 3/5] arm64: dts: imx8mn: Add SAI nodes

2020-11-06 Thread Adam Ford
The i.MX8M Nano has several SAI nodes available to it. Enable them. Signed-off-by: Adam Ford --- V3: No Change V2: No Change diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index 61560c083300..6ea0d43a78a3 100644 --- a/arch/arm64/boot/dts/fre

[PATCH V3 5/5] arm64: dts: imx8mn: Add node for SPDIF

2020-11-06 Thread Adam Ford
The i.MX8M Nano can support SPDIF which is compatible to the IP used on the i.MX35. Add the node. Signed-off-by: Adam Ford --- V3: No Change V2: No Change diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index aa3f1eb391bd..ee1790230490 10064

[PATCH V3 1/5] dt-bindings: soc: imx: Add binding doc for spba bus

2020-11-06 Thread Adam Ford
Add binding doc for fsl,spba-bus. Signed-off-by: Adam Ford --- V3: New to series diff --git a/Documentation/devicetree/bindings/bus/fsl,spba-bus.yaml b/Documentation/devicetree/bindings/bus/fsl,spba-bus.yaml new file mode 100644 index ..0a2add841145 --- /dev/null +++ b/Documentatio

[PATCH V3 4/5] arm64: dts: imx8mn: Add support for micfil

2020-11-06 Thread Adam Ford
The i.MX8M Nano has supports the MICFIL digital interface. It's a 16-bit audio signal from a PDM microphone bitstream. The driver is already in the kernel, but the node is missing. Add the micfil node. Signed-off-by: Adam Ford --- V3: No Change V2: Change micfil@3008 to audio-controller@30

[PATCH V3 2/5] arm64: dts: imx8mn: Enable Asynchronous Sample Rate Converter

2020-11-06 Thread Adam Ford
The driver exists for the Enhanced Asynchronous Sample Rate Converter (EASRC) Controller, but there isn't a device tree entry for it. On the vendor kernel, they put this on a spba-bus for SDMA support. Add the node for the spba-bus with the easrc node inside. Signed-off-by: Adam Ford --- V3: C

Re: [PATCH 13/36] tty: serial: 8250: 8250_port: Staticify functions referenced by pointers

2020-11-06 Thread Jiri Slaby
On 06. 11. 20, 12:12, Lee Jones wrote: I cannot recreate the issue or work out why: # THE OUTPUT # *_port.o and *_early.o were both built You have to _link_ to see linker errors ;). Like make vmlinux -- js

Re: [PATCH] arm64: dts: allwinner: pinephone: Use generic sensor node names

2020-11-06 Thread Maxime Ripard
On Thu, Nov 05, 2020 at 09:20:55PM -0600, Samuel Holland wrote: > Instead of duplicating part of the compatible string in the node name, > use generic names as recommended by (and listed in) section 2.2.2 of the > Devicetree Specification. > > Suggested-by: Maxime Ripard > Signed-off-by: Samuel H

[PATCH 0/3] Support for ELAN eKTF2132 touchscreens

2020-11-06 Thread Jonathan Neuschäfer
This series adds support for the ELAN eKTF2132 touchscreen controller to the existing ektf2127 driver. It is similar to the eKTF2127, but it uses a different packet type and format to report touch events. My understanding of the packet format is based on the Kobo Arua vendor kernel: https://githu

[PATCH 1/3] dt-bindings: input: ektf2127: Add elan,ektf2132 compatible string

2020-11-06 Thread Jonathan Neuschäfer
The eKTF2132 is a touchscreen controller found, for example, in the Kobo Aura ebook reader. It is similar to the ektf2127, but it uses a different packet type to report touch events. Signed-off-by: Jonathan Neuschäfer --- .../devicetree/bindings/input/touchscreen/ektf2127.txt | 2 +- 1

[PATCH 3/3] ARM: dts: imx50-kobo-aura: Enable eKTF2132 touchscreen

2020-11-06 Thread Jonathan Neuschäfer
The Kobo Aura has an eKTF2132 touchscreen controller. Although the vendor kernel toggles a reset pin (GPIO5-12) during the startup sequence, the touchscreen works without it. Signed-off-by: Jonathan Neuschäfer --- This patch requires "[PATCH] ARM: dts: imx50-kobo-aura: Add 'grp' suffix to pinct

[PATCH] mm/filemap: add static for function __add_to_page_cache_locked

2020-11-06 Thread Alex Shi
Otherwise it cause gcc warning: ^~~ ../mm/filemap.c:830:14: warning: no previous prototype for ‘__add_to_page_cache_locked’ [-Wmissing-prototypes] noinline int __add_to_page_cache_locked(struct page *page, ^~ Signed-off-by: Alex Shi Cc:

Re: [PATCH net-next] net: x25_asy: Delete the x25_asy driver

2020-11-06 Thread Xie He
On Fri, Nov 6, 2020 at 1:03 AM David Laight wrote: > > Hmmm LAPB would expect to have an X.25 level 3 and maybe ISO > transport (class 0, 2 or 3) sat on top of it. I actually used AF_PACKET sockets to transport data directly over LAPB and it worked. LAPB doesn't need anything from layer 3. I

[PATCH 2/3] Input: ektf2127 - Add support for eKTF2132 touchscreen

2020-11-06 Thread Jonathan Neuschäfer
The eKTF2132 is a touchscreen controller found, for example, in the Kobo Aura ebook reader. It is similar to the ektf2127, but it uses a different packet type to report touch events. Signed-off-by: Jonathan Neuschäfer --- drivers/input/touchscreen/ektf2127.c | 32 +++- 1

Re: [PATCH v1 1/1] ARM: dts: sun8i: h3: Add initial NanoPi R1 support

2020-11-06 Thread Maxime Ripard
On Fri, Nov 06, 2020 at 10:10:10AM +0800, Chen-Yu Tsai wrote: > On Fri, Nov 6, 2020 at 10:03 AM Yu-Tung Chang wrote: > > > > Maxime Ripard 于2020年11月6日周五 上午1:10写道: > > > > > > On Wed, Nov 04, 2020 at 04:07:48PM +0800, Yu-Tung Chang wrote: > > > > > > +&uart1 { > > > > > > + pinctrl-names = "de

Re: [PATCH] arm64: dts: rockchip: Reorder LED triggers from mmc devices on rk3399-roc-pc.

2020-11-06 Thread Robin Murphy
On 2020-11-06 10:29, Johan Jonker wrote: Hi Markus, On 11/4/20 8:29 PM, Markus Reichl wrote: After patch [1] SD-card becomes mmc1 and eMMC becomes mmc2. Correct trigger of LEDs accordingly. [1] https://patchwork.kernel.org/patch/11881427 Signed-off-by: Markus Reichl --- arch/arm64/boot/dts

Re: [PATCH v13 13/14] KVM: selftests: Let dirty_log_test async for dirty ring test

2020-11-06 Thread Paolo Bonzini
On 01/10/20 03:22, Peter Xu wrote: + +static void vcpu_sig_handler(int sig) +{ + TEST_ASSERT(sig == SIG_IPI, "unknown signal: %d", sig); +} + Unless you also use run->immediate_exit in vcpu_kick, this is racy. The alternative is to _not_ set up a signal handler and instead block the si

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