Re: [PATCH] nd_btt: Make BTT lanes preemptible

2023-09-19 Thread Tomas Glozar
po 18. 9. 2023 v 23:32 odesílatel Ira Weiny napsal: > Thanks for clarifying. Could you respin the patch with the text below? > That would have saved me a lot of time digging to see what the code path > was. Sent v2 with relevant parts of the BUG message.

[PATCH v2] nd_btt: Make BTT lanes preemptible

2023-09-19 Thread Tomas Glozar
nd_region_acquire_lane uses get_cpu, which disables preemption. This is an issue on PREEMPT_RT kernels, since btt_write_pg and also nd_region_acquire_lane itself take a spin lock, resulting in BUG: sleeping function called from invalid context. Fix the issue by replacing get_cpu with smp_process_i

Re: (subset) [PATCH v2 0/2] Fix tcsr_mutex register for IPQ6018

2023-09-19 Thread Bjorn Andersson
On Tue, 05 Sep 2023 15:25:33 +0530, Vignesh Viswanathan wrote: > IPQ6018 has 32 tcsr_mutex hwlock registers of 0x1000 size each. > The compatible string qcom,ipq6018-tcsr-mutex is mapped to > of_msm8226_tcsr_mutex which has 32 locks configured with stride of 0x80 > and doesn't match the HW presen

Re: [PATCH] arm64: dts: qcom: Use QCOM_SCM_VMID defines for qcom,vmid

2023-09-19 Thread Bjorn Andersson
On Fri, 18 Aug 2023 10:06:09 +0200, Luca Weiss wrote: > Since we have those defines available in a header, let's use them > everywhere where qcom,vmid property is used. > > Applied, thanks! [1/1] arm64: dts: qcom: Use QCOM_SCM_VMID defines for qcom,vmid commit: 018c949b32df9f17f52bf0e70

Re: (subset) [PATCH v4 0/7] Add initial support for SM7125 and Xiaomi SM7125 platform

2023-09-19 Thread Bjorn Andersson
On Sun, 23 Jul 2023 21:05:01 +0200, David Wronek wrote: > This series introduces support for the Qualcomm SM7125 SoC and the > Xiaomi SM7125 platform. > > Applied, thanks! [3/7] dt-bindings: arm: qcom: Document SM7125 and xiaomi,joyeuse board commit: 9b4adf37fdc0ca8cd1d14b4160e2f04b63df

Re: [PATCH v4 0/2] arm64: dts: qcom: msm8939-longcheer-l9100: Add initial dts

2023-09-19 Thread Bjorn Andersson
On Sun, 27 Aug 2023 10:47:58 +0200, André Apitzsch wrote: > This dts adds support for BQ Aquaris M5 (Longcheer L9100) released in > 2015. > > Add a device tree with initial support for: > > - GPIO keys > - Hall sensor > - SDHCI > - WCNSS (BT/WIFI) > - Accelerometer/Magnetometer > - Vibrator > -

Re: [PATCH v5 0/4] Add initial support for SM7125 and Xiaomi SM7125 platform

2023-09-19 Thread Bjorn Andersson
On Thu, 24 Aug 2023 11:15:03 +0200, David Wronek wrote: > This series introduces support for the Qualcomm SM7125 SoC and the > Xiaomi SM7125 platform. > > Applied, thanks! [1/4] dt-bindings: arm: qcom: Document SM7125 and xiaomi,joyeuse board commit: 9b4adf37fdc0ca8cd1d14b4160e2f04b63df

Re: [PATCH 1/2 v3] eventfs: Remove eventfs_file and just use eventfs_inode

2023-09-19 Thread Steven Rostedt
On Tue, 19 Sep 2023 18:41:09 +0900 Masami Hiramatsu (Google) wrote: > > > > ti = get_tracefs(inode); > > > > if (!(ti->flags & TRACEFS_EVENT_INODE)) > > > > @@ -375,10 +485,18 @@ static int eventfs_release(struct inode *inode, > > > > struct file *file) > > > > > > > >

Re: [PATCH v4] scripts/link-vmlinux.sh: Add alias to duplicate symbols for kallsyms

2023-09-19 Thread Google
On Tue, 19 Sep 2023 19:39:48 + "Alessandro Carminati (Red Hat)" wrote: > It is not uncommon for drivers or modules related to similar peripherals > to have symbols with the exact same name. > While this is not a problem for the kernel's binary itself, it becomes an > issue when attempting to

Re: [PATCH v3] arm64: dts: qcom: sdm630: Add support for modem remoteproc

2023-09-19 Thread Bjorn Andersson
On Wed, 19 Jul 2023 12:34:58 +0300, Alexey Minnekhanov wrote: > Modem subsystem in SDM630/660 is similar to MSM8998 and > device tree node for it is based on the one from msm8998.dtsi. > > Applied, thanks! [1/1] arm64: dts: qcom: sdm630: Add support for modem remoteproc commit: 09f1642e

[PATCH v4] scripts/link-vmlinux.sh: Add alias to duplicate symbols for kallsyms

2023-09-19 Thread Alessandro Carminati (Red Hat)
It is not uncommon for drivers or modules related to similar peripherals to have symbols with the exact same name. While this is not a problem for the kernel's binary itself, it becomes an issue when attempting to trace or probe specific functions using infrastructure like ftrace or kprobe. The tr

Re: [PATCH v2 2/7] nvmem: qfprom: Mark core clk as optional

2023-09-19 Thread Doug Anderson
Hi, On Tue, Sep 19, 2023 at 5:46 AM Luca Weiss wrote: > > On some platforms like sc7280 on non-ChromeOS devices the core clock > cannot be touched by Linux so we cannot provide it. Mark it as optional > as accessing qfprom for reading works without it but we still prohibit > writing if we cannot

Re: [PATCH] vmscan: add trace events for lru_gen

2023-09-19 Thread Steven Rostedt
On Tue, 19 Sep 2023 11:52:16 +0900 Jaewon Kim wrote: > /* > * Now redefine the EM() and EMe() macros to map the enums to the strings > diff --git a/include/trace/events/vmscan.h b/include/trace/events/vmscan.h > index d2123dd960d5..e8f9d0452e89 100644 > --- a/include/trace/events/vmscan.h > ++

Re: [PATCH] tracing/user_events: align uaddr on unsigned long alignment

2023-09-19 Thread Clément Léger
On 14/09/2023 19:29, Steven Rostedt wrote: > On Thu, 14 Sep 2023 13:17:00 -0400 > Steven Rostedt wrote: > >> Now lets look at big endian layout: >> >> uaddr = 0xbeef0004 >> enabler = 1; >> >> memory at 0xbeef: 00 00 00 00 00 00 00 02 >> ^ >>

Re: [PATCH v2 7/7] arm64: dts: qcom: qcm6490: Add device-tree for Fairphone 5

2023-09-19 Thread Krzysztof Kozlowski
On 19/09/2023 14:46, Luca Weiss wrote: > Add device tree for the Fairphone 5 smartphone which is based on > the QCM6490 SoC. > > Supported features are, as of now: > * Bluetooth > * Debug UART > * Display via simplefb > * Flash/torch LED > * Flip cover sensor > * Power & volume buttons > * RTC > *

Re: [PATCH v2 6/7] dt-bindings: arm: qcom: Add QCM6490 Fairphone 5

2023-09-19 Thread Krzysztof Kozlowski
On 19/09/2023 14:46, Luca Weiss wrote: > Fairphone 5 is a smartphone based on the QCM6490 SoC. > > Signed-off-by: Luca Weiss > --- Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof

Re: [PATCH v2 3/7] arm64: dts: qcom: pm7250b: make SID configurable

2023-09-19 Thread Krzysztof Kozlowski
On 19/09/2023 14:45, Luca Weiss wrote: > Like other Qualcomm PMICs the PM7250B can be used on different addresses > on the SPMI bus. Use similar defines like the PMK8350 to make this > possible but skip the ifndef based on maintainer feedback. > > Signed-off-by: Luca Weiss > --- Matches our disc

[PATCH v2 7/7] arm64: dts: qcom: qcm6490: Add device-tree for Fairphone 5

2023-09-19 Thread Luca Weiss
Add device tree for the Fairphone 5 smartphone which is based on the QCM6490 SoC. Supported features are, as of now: * Bluetooth * Debug UART * Display via simplefb * Flash/torch LED * Flip cover sensor * Power & volume buttons * RTC * SD card * USB * Various plumbing like regulators, i2c, spi, et

[PATCH v2 4/7] arm64: dts: qcom: pm8350c: Add flash led node

2023-09-19 Thread Luca Weiss
Add a node for the led controller found on PM8350C, used for flash and torch purposes. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/pm8350c.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8350c.dtsi b/arch/arm64/boot/dts/qcom/pm8350c.dtsi inde

[PATCH v2 2/7] nvmem: qfprom: Mark core clk as optional

2023-09-19 Thread Luca Weiss
On some platforms like sc7280 on non-ChromeOS devices the core clock cannot be touched by Linux so we cannot provide it. Mark it as optional as accessing qfprom for reading works without it but we still prohibit writing if we cannot provide the clock. Signed-off-by: Luca Weiss --- drivers/nvmem/

[PATCH v2 1/7] arm64: dts: qcom: sc7280: Mark some nodes as 'reserved'

2023-09-19 Thread Luca Weiss
With the standard Qualcomm TrustZone setup, components such as lpasscc, pdc_reset and watchdog shouldn't be touched by Linux. Mark them with the status 'reserved' and reenable them in the chrome-common dtsi. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi | 24 ++

[PATCH v2 5/7] dt-bindings: pinctrl: qcom,sc7280: Allow gpio-reserved-ranges

2023-09-19 Thread Luca Weiss
Allow the gpio-reserved-ranges property on SC7280 TLMM. Acked-by: Linus Walleij Acked-by: Krzysztof Kozlowski Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/pinctrl/qcom,sc7280-pinctrl.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindin

[PATCH v2 6/7] dt-bindings: arm: qcom: Add QCM6490 Fairphone 5

2023-09-19 Thread Luca Weiss
Fairphone 5 is a smartphone based on the QCM6490 SoC. Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/arm/qcom.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index a

[PATCH v2 3/7] arm64: dts: qcom: pm7250b: make SID configurable

2023-09-19 Thread Luca Weiss
Like other Qualcomm PMICs the PM7250B can be used on different addresses on the SPMI bus. Use similar defines like the PMK8350 to make this possible but skip the ifndef based on maintainer feedback. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/pm7250b.dtsi | 14 +++-

[PATCH v2 0/7] Initial support for the Fairphone 5 smartphone

2023-09-19 Thread Luca Weiss
Add support to boot up mainline kernel on the QCM6490-based Fairphone 5 smartphone. These patches only cover a part of the functionality brought up on mainline so far, with the rest needing larger dts and driver changes or depend on patches that are not yet merged. I will work on sending those onc

Re: [PATCH v2 2/2] powerpc: Replace GPL 2.0+ README.legal boilerplate with SPDX

2023-09-19 Thread Michael Ellerman
Geert Uytterhoeven writes: > Hi Michael, > > On Tue, Sep 19, 2023 at 4:13 AM Michael Ellerman wrote: >> Geert Uytterhoeven writes: >> > Upstream Linux never had a "README.legal" file, but it was present >> > in early source releases of Linux/m68k. It contained a simple copyright >> > notice and

Re: [PATCH 1/2 v3] eventfs: Remove eventfs_file and just use eventfs_inode

2023-09-19 Thread Google
On Mon, 18 Sep 2023 21:04:56 -0400 Steven Rostedt wrote: > > > @@ -144,18 +129,18 @@ static struct dentry *create_dir(const char *name, > > > struct dentry *parent, void * > > > } > > > > > > /** > > > - * eventfs_set_ef_status_free - set the ef->status to free > > > + * eventfs_set_ei_stat

Re: [PATCH] remoteproc: mediatek: Detect single/multi core SCP with rpmsg-name property

2023-09-19 Thread Chen-Yu Tsai
On Tue, Sep 19, 2023 at 5:26 PM AngeloGioacchino Del Regno wrote: > > Il 19/09/23 07:03, Chen-Yu Tsai ha scritto: > > In the just landed multi-core SCP work, detection of single/multi core > > SCP is done by checking the immediate child node of the SCP complex > > device node. In the original work

Re: [PATCH] remoteproc: mediatek: Detect single/multi core SCP with rpmsg-name property

2023-09-19 Thread AngeloGioacchino Del Regno
Il 19/09/23 07:03, Chen-Yu Tsai ha scritto: In the just landed multi-core SCP work, detection of single/multi core SCP is done by checking the immediate child node of the SCP complex device node. In the original work this was done by matching the child node's name. However the name wasn't previou

[PATCH] remoteproc: mediatek: Refactor single core check and fix retrocompatibility

2023-09-19 Thread AngeloGioacchino Del Regno
In older devicetrees we had the ChromeOS EC in a node called "cros-ec" instead of the newer "cros-ec-rpmsg", but this driver is now checking only for the latter, breaking compatibility with those. Besides, we can check if the SCP is single or dual core by simply walking through the children of the

Re: [PATCH v17 00/14] Add support for MT8195 SCP 2nd core

2023-09-19 Thread Laura Nao
On 9/19/23 03:14, Mathieu Poirier wrote: > On Mon, Sep 18, 2023 at 12:31:41PM +0200, Laura Nao wrote: >>> Other than patch 2 and 14, I have applied this set. The remaining patches >>> will >>> have to be resent to Matthias. >> >>> Thanks, >>> Mathieu >> >> Hello, >> >> With patch 2 missing, the S