Re: [PATCH v5 00/12] tracing: fprobe: rethook: Use ftrace_regs instead of pt_regs

2023-09-29 Thread Alexei Starovoitov
On Thu, Sep 28, 2023 at 6:21 PM Masami Hiramatsu wrote: > > > Thus, what I need is to make fprobe to use function-graph tracer's shadow > stack and trampoline instead of rethook. This may need to generalize its > interface so that we can share it between fprobe and function-graph tracer, > but we

[PATCH] ring-buffer: Update "shortest_full" in polling

2023-09-29 Thread Steven Rostedt
From: "Steven Rostedt (Google)" It was discovered that the ring buffer polling was incorrectly stating that read would not block, but that's because polling did not take into account that reads will block if the "buffer-percent" was set. Instead, the ring buffer polling would say reads would not

[ANNOUNCE] 5.10.194-rt95

2023-09-29 Thread Luis Claudio R. Goncalves
Hello RT-list! I'm pleased to announce the 5.10.194-rt95 stable release. This release is an RT-only update. All the changes here are specific to RT. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v5.10-rt Head

Re: [PATCH v2] tracing: relax trace_event_eval_update() execution with cond_resched()

2023-09-29 Thread Atish Kumar Patra
On Fri, Sep 29, 2023 at 12:17 PM Clément Léger wrote: > > When kernel is compiled without preemption, the eval_map_work_func() > (which calls trace_event_eval_update()) will not be preempted up to its > complete execution. This can actually cause a problem since if another > CPU call

[PATCH v2] tracing: relax trace_event_eval_update() execution with cond_resched()

2023-09-29 Thread Clément Léger
When kernel is compiled without preemption, the eval_map_work_func() (which calls trace_event_eval_update()) will not be preempted up to its complete execution. This can actually cause a problem since if another CPU call stop_machine(), the call will have to wait for the eval_map_work_func()

Re: [PATCH] remoteproc: zynqmp: change tcm address translation method

2023-09-29 Thread Mathieu Poirier
On Mon, Sep 25, 2023 at 10:26:48AM -0700, Tanmay Shah wrote: > Introduce device address in hardcode TCM table. > Device address is used for address translation. > Also, previous method(hack) to mask few bits from address > to achieve address translation is removed > > Signed-off-by: Tanmay Shah

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

2023-09-29 Thread Alessandro Carminati
Hello Masami, Thank you for your feedback. Il giorno ven 29 set 2023 alle ore 13:28 Masami Hiramatsu ha scritto: > > On Wed, 27 Sep 2023 17:35:16 + > "Alessandro Carminati (Red Hat)" wrote: > > > It is not uncommon for drivers or modules related to similar peripherals > > to have symbols

Re: [PATCH 2/3] arm64: dts: qcom: sc7280: Add Camera Control Interface busses

2023-09-29 Thread Bryan O'Donoghue
On 29/09/2023 16:25, Konrad Dybcio wrote: Not actually a required clock for the clock controller. I suspect the same is true for dispcc and videocc though it would also mean the respective drivers would need to switch on < DISPx_CAMERA_AHB_CLK> or < GCC_VIDEO_AHB_CLK> prior to accessing

Re: [PATCH 2/3] arm64: dts: qcom: sc7280: Add Camera Control Interface busses

2023-09-29 Thread Konrad Dybcio
On 29.09.2023 17:22, Bryan O'Donoghue wrote: > On 29/09/2023 15:18, Konrad Dybcio wrote: >> On 29.09.2023 16:15, Bryan O'Donoghue wrote: >>> On 29/09/2023 14:35, Konrad Dybcio wrote: On 9/29/23 10:01, Luca Weiss wrote: > Add the CCI busses found on sc7280 and their pinctrl

Re: [PATCH 2/3] arm64: dts: qcom: sc7280: Add Camera Control Interface busses

2023-09-29 Thread Bryan O'Donoghue
On 29/09/2023 15:18, Konrad Dybcio wrote: On 29.09.2023 16:15, Bryan O'Donoghue wrote: On 29/09/2023 14:35, Konrad Dybcio wrote: On 9/29/23 10:01, Luca Weiss wrote: Add the CCI busses found on sc7280 and their pinctrl states. Signed-off-by: Luca Weiss ---  

Re: [PATCH] tracing: relax trace_event_eval_update() execution with schedule()

2023-09-29 Thread Clément Léger
On 29/09/2023 17:06, Steven Rostedt wrote: > On Fri, 29 Sep 2023 16:13:48 +0200 > Clément Léger wrote: > >> When kernel is compiled without preemption, the eval_map_work_func() >> (which calls trace_event_eval_update()) will not be preempted up to its >> complete execution. This can actually

Re: [PATCH] tracing: relax trace_event_eval_update() execution with schedule()

2023-09-29 Thread Steven Rostedt
On Fri, 29 Sep 2023 16:13:48 +0200 Clément Léger wrote: > When kernel is compiled without preemption, the eval_map_work_func() > (which calls trace_event_eval_update()) will not be preempted up to its > complete execution. This can actually cause a problem since if another > CPU call

Re: [PATCH v5 09/18] x86/sgx: Store struct sgx_encl when allocating new VA pages

2023-09-29 Thread Haitao Huang
On Wed, 27 Sep 2023 16:21:19 -0500, Huang, Kai wrote: On Wed, 2023-09-27 at 10:35 -0500, Haitao Huang wrote: > > + > > + /* Possible owner types */ > > + union { > > + struct sgx_encl_page *encl_page; > > + struct sgx_encl *encl; > > + }; > > Sadly for

[PATCH V3] tracing/timerlat: Hotplug support for the user-space interface

2023-09-29 Thread Daniel Bristot de Oliveira
The osnoise/per_cpu/CPU$/timerlat_fd is create for each possible CPU, but it might create confusion if the CPU is not online. Create the file only for online CPUs, also follow hotplug by creating and deleting as CPUs come and go. Fixes: e88ed227f639 ("tracing/timerlat: Add user-space interface")

[ANNOUNCE] kmod 31

2023-09-29 Thread Lucas De Marchi
kmod 30 is out: https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-31.tar.xz https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-31.tar.sign Improvements - Allow passing a path to modprobe so the module is loaded from anywhere from the filesystem, but

Re: [PATCH 2/3] arm64: dts: qcom: sc7280: Add Camera Control Interface busses

2023-09-29 Thread Konrad Dybcio
On 29.09.2023 16:15, Bryan O'Donoghue wrote: > On 29/09/2023 14:35, Konrad Dybcio wrote: >> >> >> On 9/29/23 10:01, Luca Weiss wrote: >>> Add the CCI busses found on sc7280 and their pinctrl states. >>> >>> Signed-off-by: Luca Weiss >>> --- >>>   arch/arm64/boot/dts/qcom/sc7280.dtsi | 136 >>>

Re: [PATCH 1/3] dt-bindings: i2c: qcom-cci: Document SC7280 compatible

2023-09-29 Thread Bryan O'Donoghue
On 29/09/2023 09:01, Luca Weiss wrote: Document the compatible for the CCI block found on SC7280 SoC. Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH 1/3] dt-bindings: i2c: qcom-cci: Document SC7280 compatible

2023-09-29 Thread Bryan O'Donoghue
On 29/09/2023 09:01, Luca Weiss wrote: Document the compatible for the CCI block found on SC7280 SoC. Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH 2/3] arm64: dts: qcom: sc7280: Add Camera Control Interface busses

2023-09-29 Thread Bryan O'Donoghue
On 29/09/2023 14:35, Konrad Dybcio wrote: On 9/29/23 10:01, Luca Weiss wrote: Add the CCI busses found on sc7280 and their pinctrl states. Signed-off-by: Luca Weiss ---   arch/arm64/boot/dts/qcom/sc7280.dtsi | 136 +++   1 file changed, 136 insertions(+)

[PATCH] tracing: relax trace_event_eval_update() execution with schedule()

2023-09-29 Thread Clément Léger
When kernel is compiled without preemption, the eval_map_work_func() (which calls trace_event_eval_update()) will not be preempted up to its complete execution. This can actually cause a problem since if another CPU call stop_machine(), the call will have to wait for the eval_map_work_func()

Re: [PATCH 3/3] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable CCI busses

2023-09-29 Thread Luca Weiss
On Fri Sep 29, 2023 at 3:36 PM CEST, Konrad Dybcio wrote: > > > On 9/29/23 10:01, Luca Weiss wrote: > > Enable the CCI busses where sensors are connected to. > > > > Not covered here is the regulator used for pull-up on the I2C busses. > > This would be pm8008_l6 (L6P). > Does it make sense to

Re: [PATCH 3/3] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable CCI busses

2023-09-29 Thread Konrad Dybcio
On 9/29/23 10:01, Luca Weiss wrote: Enable the CCI busses where sensors are connected to. Not covered here is the regulator used for pull-up on the I2C busses. This would be pm8008_l6 (L6P). Does it make sense to enable non-functional hw then? Or is it on by default? Konrad

Re: [PATCH 2/3] arm64: dts: qcom: sc7280: Add Camera Control Interface busses

2023-09-29 Thread Konrad Dybcio
On 9/29/23 10:01, Luca Weiss wrote: Add the CCI busses found on sc7280 and their pinctrl states. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 136 +++ 1 file changed, 136 insertions(+) diff --git

Re: [PATCH] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable UFS

2023-09-29 Thread Konrad Dybcio
On 29.09.2023 11:52, Luca Weiss wrote: > Enable the UFS phy and controller so that we can access the internal > storage of the phone. > > At the same time we need to bump the minimum voltage used for UFS VCC, > otherwise it doesn't initialize properly. The new range is taken from > the

Re: [PATCH RFC] ASoC: codecs: aw88261: Remove non-existing reset gpio

2023-09-29 Thread Mark Brown
On Fri, Sep 29, 2023 at 02:44:47PM +0200, Luca Weiss wrote: > Unfortunately the dt binding is a bit trickier to update since it's made > for both AW88261 and AW88395. > After spending a bit of time using non-Google search machines (Google > seems incapable of finding anything there) I found a

[PATCH v2] arm64: dts: qcom: sc7280: Add ports subnodes in usb/dp qmpphy node

2023-09-29 Thread Luca Weiss
from Konrad - Pick up tags - Link to v1: https://lore.kernel.org/r/20230929-sc7280-qmpphy-ports-v1-1-7532c1197...@fairphone.com --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch

Re: [PATCH RFC] ASoC: codecs: aw88261: Remove non-existing reset gpio

2023-09-29 Thread Luca Weiss
On Fri Sep 29, 2023 at 2:30 PM CEST, Mark Brown wrote: > On Fri, Sep 29, 2023 at 12:28:10PM +0200, Luca Weiss wrote: > > According to the AW88261 datasheet (V1.1) and device schematics I have > > access to, there is no reset gpio present on the AW88261. Remove it. > > That looks to be the case

Re: [PATCH RFC] ASoC: codecs: aw88261: Remove non-existing reset gpio

2023-09-29 Thread Mark Brown
On Fri, Sep 29, 2023 at 12:28:10PM +0200, Luca Weiss wrote: > According to the AW88261 datasheet (V1.1) and device schematics I have > access to, there is no reset gpio present on the AW88261. Remove it. That looks to be the case according to

Re: [PATCH] arm64: dts: qcom: sc7280: Add ports subnodes in usb/dp qmpphy node

2023-09-29 Thread Luca Weiss
On Fri Sep 29, 2023 at 1:44 PM CEST, Konrad Dybcio wrote: > On 29.09.2023 09:31, Luca Weiss wrote: > > Add the USB3+DP Combo QMP PHY port subnodes in the SC7280 SoC DTSI to > > avoid duplication in the devices DTs. > The rationale here is to make describing the connections between > certain hw

Re: [PATCH] arm64: dts: qcom: sc7280: Add ports subnodes in usb/dp qmpphy node

2023-09-29 Thread Konrad Dybcio
On 29.09.2023 09:31, Luca Weiss wrote: > Add the USB3+DP Combo QMP PHY port subnodes in the SC7280 SoC DTSI to > avoid duplication in the devices DTs. The rationale here is to make describing the connections between certain hw blocks possible. Defining it in the soc dtsi gives us a very cool

Re: [PATCH 3/3] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable venus node

2023-09-29 Thread Konrad Dybcio
On 29.09.2023 10:38, Luca Weiss wrote: > Enable the venus node so that the video encoder/decoder will start > working. > > Signed-off-by: Luca Weiss > --- Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH 2/3] arm64: dts: qcom: sc7280: Move video-firmware to chrome-common

2023-09-29 Thread Konrad Dybcio
On 29.09.2023 10:38, Luca Weiss wrote: > If the video-firmware node is present, the venus driver assumes we're on > a non-TZ system. On a system that doesn't use TZ for kickstarting Venus Chrome devices have something running in EL3, so TZ is present, just not the standard qcom one that we've

Re: [PATCH 1/3] media: venus: core: Set up secure memory ranges for SC7280

2023-09-29 Thread Konrad Dybcio
On 29.09.2023 10:38, Luca Weiss wrote: > Not all SC7280 devices ship with ChromeOS firmware. Other devices need > PAS for image authentication. That requires the predefined virtual > address ranges to be passed via scm calls. Define them to enable Venus > on non-CrOS SC7280 devices. > >

Re: [PATCH] tracing/eprobe: drop unneeded breaks

2023-09-29 Thread Julia Lawall
On Fri, 29 Sep 2023, Masami Hiramatsu wrote: > On Thu, 28 Sep 2023 12:43:34 +0200 > Julia Lawall wrote: > > > Drop break after return. > > > > Good catch! This looks good to me. > > Acked-by: Masami Hiramatsu (Google) > > And > > Fixes: 7491e2c44278 ("tracing: Add a probe that attaches to

Re: [PATCH] tracing/eprobe: drop unneeded breaks

2023-09-29 Thread Google
On Thu, 28 Sep 2023 12:43:34 +0200 Julia Lawall wrote: > Drop break after return. > Good catch! This looks good to me. Acked-by: Masami Hiramatsu (Google) And Fixes: 7491e2c44278 ("tracing: Add a probe that attaches to trace events") > Signed-off-by: Julia Lawall > > --- >

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

2023-09-29 Thread Google
On Wed, 27 Sep 2023 17:35:16 + "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

[PATCH RFC] ASoC: codecs: aw88261: Remove non-existing reset gpio

2023-09-29 Thread Luca Weiss
2c, _remap_config); if (IS_ERR(aw88261->regmap)) { ret = PTR_ERR(aw88261->regmap); --- base-commit: b216fb8946f819cf1b63dc12c7867cc501bda57e change-id: 20230929-aw88261-reset-7e00d9e25952 Best regards, -- Luca Weiss

[PATCH] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable UFS

2023-09-29 Thread Luca Weiss
status = "okay"; +}; + _1 { status = "okay"; }; --- base-commit: d85348daa4407216e47198ed35a43a66883edab6 change-id: 20230929-fp5-ufs-e2c0e21a0142 Best regards, -- Luca Weiss

Re: [PATCH 3/3] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable venus node

2023-09-29 Thread Bryan O'Donoghue
On 29/09/2023 09:38, Luca Weiss wrote: Enable the venus node so that the video encoder/decoder will start working. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [PATCH 2/3] arm64: dts: qcom: sc7280: Move video-firmware to chrome-common

2023-09-29 Thread Bryan O'Donoghue
On 29/09/2023 09:38, Luca Weiss wrote: If the video-firmware node is present, the venus driver assumes we're on a non-TZ system. Move the video-firmware node to chrome-common.dtsi so we can use venus on a TZ board. At the same time let's disable the venus node by default as is custom on such

Re: [PATCH 1/3] media: venus: core: Set up secure memory ranges for SC7280

2023-09-29 Thread Bryan O'Donoghue
On 29/09/2023 09:38, Luca Weiss wrote: Not all SC7280 devices ship with ChromeOS firmware. Other devices need PAS for image authentication. That requires the predefined virtual address ranges to be passed via scm calls. Define them to enable Venus on non-CrOS SC7280 devices. Signed-off-by: Luca

[PATCH 2/3] arm64: dts: qcom: sc7280: Move video-firmware to chrome-common

2023-09-29 Thread Luca Weiss
If the video-firmware node is present, the venus driver assumes we're on a non-TZ system. Move the video-firmware node to chrome-common.dtsi so we can use venus on a TZ board. At the same time let's disable the venus node by default as is custom on such nodes. Signed-off-by: Luca Weiss ---

[PATCH 3/3] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable venus node

2023-09-29 Thread Luca Weiss
Enable the venus node so that the video encoder/decoder will start working. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts

[PATCH 0/3] Enable venus on Fairphone 5 / non-ChromeOS sc7280 venus support

2023-09-29 Thread Luca Weiss
| 6 ++ drivers/media/platform/qcom/venus/core.c | 4 4 files changed, 19 insertions(+), 4 deletions(-) --- base-commit: df964ce9ef9fea10cf131bf6bad8658fde7956f6 change-id: 20230929-sc7280-venus-pas-ea9630525753 Best regards, -- Luca Weiss

[PATCH 1/3] media: venus: core: Set up secure memory ranges for SC7280

2023-09-29 Thread Luca Weiss
Not all SC7280 devices ship with ChromeOS firmware. Other devices need PAS for image authentication. That requires the predefined virtual address ranges to be passed via scm calls. Define them to enable Venus on non-CrOS SC7280 devices. Signed-off-by: Luca Weiss ---

[PATCH 2/2] arm64: dts: qcom: pm7250b: Use correct node name for gpios

2023-09-29 Thread Luca Weiss
Use gpio@ instead of pinctrl@ as that's the name expected by the qcom,spmi-pmic.yaml schema. Update it to fix dt validation. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/pm7250b.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 1/2] dt-bindings: mfd: qcom,spmi-pmic: Update gpio example

2023-09-29 Thread Luca Weiss
As per commit ea25d61b448a ("arm64: dts: qcom: Use plural _gpios node label for PMIC gpios") all dts files now use the plural _gpios instead of the singular _gpio as label. Update the schema example also to match. Signed-off-by: Luca Weiss ---

[PATCH 0/2] Small updates / fixups for PMIC spmi-gpio

2023-09-29 Thread Luca Weiss
/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 4 ++-- arch/arm64/boot/dts/qcom/pm7250b.dtsi | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) --- base-commit: df964ce9ef9fea10cf131bf6bad8658fde7956f6 change-id: 20230929-pm7250b-gpio-fixup-f407ee98425a Best regards, -- Luca

[PATCH 2/3] arm64: dts: qcom: sc7280: Add Camera Control Interface busses

2023-09-29 Thread Luca Weiss
Add the CCI busses found on sc7280 and their pinctrl states. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 136 +++ 1 file changed, 136 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi

[PATCH 3/3] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable CCI busses

2023-09-29 Thread Luca Weiss
Enable the CCI busses where sensors are connected to. Not covered here is the regulator used for pull-up on the I2C busses. This would be pm8008_l6 (L6P). Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 20 1 file changed, 20

[PATCH 1/3] dt-bindings: i2c: qcom-cci: Document SC7280 compatible

2023-09-29 Thread Luca Weiss
Document the compatible for the CCI block found on SC7280 SoC. Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml

[PATCH 0/3] Add CCI support for SC7280

2023-09-29 Thread Luca Weiss
insertions(+) --- base-commit: c858197a69efe69e1607f4854af42ec338e54e96 change-id: 20230929-sc7280-cci-4690ef8da107 Best regards, -- Luca Weiss

[PATCH] arm64: dts: qcom: sc7280: Add ports subnodes in usb/dp qmpphy node

2023-09-29 Thread Luca Weiss
usb_dp_qmpphy_dp_in: endpoint { + }; + }; + }; }; usb_2: usb@8cf8800 { --- base-commit: df964ce9ef9fea10cf131bf6bad8658fde7956f6 change-id: 20230929-sc7280-qmpphy-ports-20afd4212470 Best regards, -- Luca Weiss