Re: [PATCH 1/3] dt-bindings: remoteproc: mediatek: Add binding for mt8189 scp

2025-08-04 Thread AngeloGioacchino Del Regno
Il 04/08/25 11:10, Huayu Zong (纵华宇) ha scritto: On Mon, 2025-08-04 at 10:27 +0200, AngeloGioacchino Del Regno wrote: External email : Please do not click links or open attachments until you have verified the sender or the content. Il 29/07/25 04:31, Huayu Zong ha scritto: Add the compatible

Re: [PATCH 1/3] dt-bindings: remoteproc: mediatek: Add binding for mt8189 scp

2025-08-04 Thread AngeloGioacchino Del Regno
Il 29/07/25 04:31, Huayu Zong ha scritto: Add the compatible for mt8189 SCP to the binding. Signed-off-by: Huayu Zong Is MT8189's SCP really single-core? All of the new SoCs have two SCP cores - it's a bit strange to see that 8189 has only one... hence, please triple check and confirm. Chee

Re: (subset) [PATCH v2 0/5] Describe MT8188's SCP as dual-core

2025-04-22 Thread AngeloGioacchino Del Regno
On Mon, 21 Apr 2025 16:49:03 -0400, Nícolas F. R. A. Prado wrote: > This series updates the MT8188 SCP description to dual-core and prepares > its usage. Patch 4 updates the MT8188 DT to describe the SCP as a dual > core cluster and patch 5 adds the firmware-name property so the firmware > can be l

Re: [PATCH v2 1/5] dt-bindings: remoteproc: mediatek: Add missing minItems for 8192/8195

2025-04-22 Thread AngeloGioacchino Del Regno
t8195, resulting in it being equal to 2, from the base schema. Fix reg minItems for MT8192 and MT8195 by setting it to 3. Fixes: 6b55b1e2fd7f ("dt-bindings: remoteproc: mediatek: Support MT8195 dual-core SCP") Signed-off-by: Nícolas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno

Re: [PATCH 1/4] dt-bindings: remoteproc: mediatek: Add missing minItems for 8192/8195

2025-04-18 Thread AngeloGioacchino Del Regno
Il 19/03/25 15:25, Nícolas F. R. A. Prado ha scritto: On Wed, Mar 19, 2025 at 08:16:37AM +0100, Krzysztof Kozlowski wrote: On 18/03/2025 23:22, Nícolas F. R. A. Prado wrote: Both MT8192 and MT8195 have an L1TCM memory, so it should be described in reg, and therefore reg's minItems should be 3,

Re: [PATCH 2/4] dt-bindings: remoteproc: mediatek: Remove l1tcm for dual-core MT8188 SCP

2025-04-04 Thread AngeloGioacchino Del Regno
Il 20/03/25 02:28, Moudy Ho (何宗原) ha scritto: On Wed, 2025-03-19 at 10:34 +0100, AngeloGioacchino Del Regno wrote: External email : Please do not click links or open attachments until you have verified the sender or the content. Il 18/03/25 23:22, Nícolas F. R. A. Prado ha scritto: The SCP

Re: [PATCH 4/4] arm64: dts: mediatek: mt8390-genio-common: Add firmware-name for scp0

2025-03-19 Thread AngeloGioacchino Del Regno
Il 18/03/25 23:22, Nícolas F. R. A. Prado ha scritto: Add the firmware-name property for SCP core0 so the firmware can be loaded from its canonical location in the linux-firmware repository. Signed-off-by: Nícolas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno

Re: [PATCH 2/4] dt-bindings: remoteproc: mediatek: Remove l1tcm for dual-core MT8188 SCP

2025-03-19 Thread AngeloGioacchino Del Regno
Il 18/03/25 23:22, Nícolas F. R. A. Prado ha scritto: The SCP present on MT8188 does not have an L1TCM memory region, but the binding incorrectly requires one for the dual-core description of the MT8188 SCP. Remove that requirement. Also update the minimum number of reg and reg-names to 1, since

Re: [PATCH RFC 1/3] pinctrl: mediatek: paris: Expose more configurations to GPIO set_config

2024-10-25 Thread AngeloGioacchino Del Regno
Il 11/09/24 12:10, AngeloGioacchino Del Regno ha scritto: Il 09/09/24 20:37, Nícolas F. R. A. Prado ha scritto: Currently the set_config callback in the gpio_chip registered by the pinctrl_paris driver only supports PIN_CONFIG_INPUT_DEBOUNCE, despite [...] only supports operations configuring

Re: [PATCH RFC 1/3] pinctrl: mediatek: paris: Expose more configurations to GPIO set_config

2024-09-11 Thread AngeloGioacchino Del Regno
Il 09/09/24 20:37, Nícolas F. R. A. Prado ha scritto: Currently the set_config callback in the gpio_chip registered by the pinctrl_paris driver only supports PIN_CONFIG_INPUT_DEBOUNCE, despite [...] only supports operations configuring the input debounce parameter of the EINT controller and den

Re: [PATCH 1/1] remoteproc: mediatek: Support multiple reserved memory regions

2024-07-12 Thread AngeloGioacchino Del Regno
Il 03/07/24 13:53, Shun-yi Wang ha scritto: From: "shun-yi.wang" SCP supports multiple reserved memory regions, intended for specific hardwards. Signed-off-by: shun-yi.wang --- drivers/remoteproc/mtk_scp.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) di

Re: [PATCH] remoteproc: mediatek: Increase MT8188/MT8195 SCP core0 DRAM size

2024-07-03 Thread AngeloGioacchino Del Regno
Il 03/07/24 05:44, Jason Chen ha scritto: The current DRAM size is insufficient for the HEVC feature, which requires more memory for proper functionality. This change ensures the feature has the necessary resources. Signed-off-by: Jason Chen Reviewed-by: AngeloGioacchino Del Regno

Re: [PATCH] remoteproc: mediatek: Don't attempt to remap l1tcm memory if missing

2024-06-28 Thread AngeloGioacchino Del Regno
ot;) Signed-off-by: Nícolas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno

Re: [PATCH] remoteproc: mediatek: Increase MT8188 SCP core0 DRAM size

2024-06-06 Thread AngeloGioacchino Del Regno
y, as you wish. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Jason Chen --- drivers/remoteproc/mtk_scp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/mtk_scp.c b/drivers/remoteproc/mtk_scp.c index b885a9a041e4..2119fc62c3f2 100644 --- a/dr

Re: [PATCH] remoteproc: mediatek: Don't print error when optional scp handle is missing

2024-06-06 Thread AngeloGioacchino Del Regno
Il 05/06/24 21:35, Nícolas F. R. A. Prado ha scritto: The scp_get() helper has two users: the mtk-vcodec and the mtk-mdp3 drivers. mdp3 considers the mediatek,scp phandle optional, and when it's missing mdp3 will directly look for the scp node based on compatible. For that reason printing an err

[PATCH] remoteproc: mediatek: Zero out only remaining bytes of IPI buffer

2024-05-20 Thread AngeloGioacchino Del Regno
In scp_ipi_handler(), instead of zeroing out the entire shared buffer, which may be as large as 600 bytes, overwrite it with the received data, then zero out only the remaining bytes. Signed-off-by: AngeloGioacchino Del Regno --- drivers/remoteproc/mtk_scp.c | 2 +- 1 file changed, 1 insertion

Re: [PATCH v4 4/4] remoteproc: mediatek: Add IMGSYS IPI command

2024-04-30 Thread AngeloGioacchino Del Regno
Il 30/04/24 03:15, Olivia Wen ha scritto: Add an IPI command definition for communication with IMGSYS through SCP mailbox. Signed-off-by: Olivia Wen Reviewed-by: AngeloGioacchino Del Regno

Re: [PATCH v3 4/4] media: mediatek: imgsys: Support image processing

2024-04-24 Thread AngeloGioacchino Del Regno
Il 24/04/24 12:02, AngeloGioacchino Del Regno ha scritto: Il 24/04/24 05:03, Olivia Wen ha scritto: Integrate the imgsys core architecture driver for image processing on the MT8188 platform. Signed-off-by: Olivia Wen This should be reordered before introducing the 8188 scp core 1 support

Re: [PATCH v3 4/4] media: mediatek: imgsys: Support image processing

2024-04-24 Thread AngeloGioacchino Del Regno
a v4. With that reordered, Reviewed-by: AngeloGioacchino Del Regno --- include/linux/remoteproc/mtk_scp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/remoteproc/mtk_scp.h b/include/linux/remoteproc/mtk_scp.h index 7c2b7cc9..344ff41 100644 --- a/include/linux/remot

Re: [PATCH v3 3/4] remoteproc: mediatek: Support setting DRAM and IPI shared buffer sizes

2024-04-24 Thread AngeloGioacchino Del Regno
Il 24/04/24 05:03, Olivia Wen ha scritto: The SCP on different chips will require different DRAM sizes and IPI shared buffer sizes based on varying requirements. Signed-off-by: Olivia Wen Reviewed-by: AngeloGioacchino Del Regno

Re: [PATCH v3 2/4] remoteproc: mediatek: Support MT8188 SCP core 1

2024-04-24 Thread AngeloGioacchino Del Regno
Il 24/04/24 05:03, Olivia Wen ha scritto: MT8188 SCP has two RISC-V cores which is similar to MT8195 but without L1TCM. We've added MT8188-specific functions to configure L1TCM in multicore setups. Signed-off-by: Olivia Wen Reviewed-by: AngeloGioacchino Del Regno

Re: [PATCH v2 2/2] remoteproc: mediatek: Support MT8188 SCP core 1

2024-04-22 Thread AngeloGioacchino Del Regno
ferent code and IPI share buffer sizes. Introducing a structure mtk_scp_sizes_data to handle them. Signed-off-by: olivia.wen Reviewed-by: AngeloGioacchino Del Regno

Re: [PATCH v2 1/2] dt-bindings: remoteproc: mediatek: Support MT8188 dual-core SCP

2024-04-22 Thread AngeloGioacchino Del Regno
Il 19/04/24 10:42, Olivia Wen ha scritto: From: "olivia.wen" Under different applications, the MT8188 SCP can be used as single-core or dual-core. Signed-off-by: olivia.wen Reviewed-by: AngeloGioacchino Del Regno

Re: [PATCH v2 1/2] dt-bindings: remoteproc: mediatek: Support MT8188 dual-core SCP

2024-04-22 Thread AngeloGioacchino Del Regno
Il 19/04/24 10:42, Olivia Wen ha scritto: From: "olivia.wen" Under different applications, the MT8188 SCP can be used as single-core or dual-core. Signed-off-by: olivia.wen Reviewed-by: AngeloGioacchino Del Regno

Re: [PATCH 1/2] dt-bindings: remoteproc: mediatek: Support MT8188 dual-core SCP

2024-04-11 Thread AngeloGioacchino Del Regno
Il 11/04/24 09:34, AngeloGioacchino Del Regno ha scritto: Il 11/04/24 05:37, olivia.wen ha scritto: Under different applications, the MT8188 SCP can be used as single-core or dual-core. Signed-off-by: olivia.wen ---   Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 3 ++-   1 file

Re: [PATCH 1/2] dt-bindings: remoteproc: mediatek: Support MT8188 dual-core SCP

2024-04-11 Thread AngeloGioacchino Del Regno
: - mediatek,mt8192-scp - mediatek,mt8195-scp - mediatek,mt8195-scp-dual - Don't remove the blank line, it's there for readability. + - mediatek,mt8188-scp-dual After addressing that comment, Reviewed-by: AngeloGioacchino Del Regno reg: d

Re: [PATCH 2/2] remoteproc: mediatek: Support MT8188 SCP core 1

2024-04-11 Thread AngeloGioacchino Del Regno
Il 11/04/24 05:37, olivia.wen ha scritto: To Support MT8188 SCP core 1 for ISP driver. The SCP on different chips will require different code sizes and IPI buffer sizes based on varying requirements. Signed-off-by: olivia.wen --- drivers/remoteproc/mtk_common.h| 5 +-- drivers/remotep

Re: [PATCH 1/2] dt-bindings: mailbox: qcom: Add MSM8974 APCS compatible

2024-04-09 Thread AngeloGioacchino Del Regno
Il 08/04/24 21:32, Luca Weiss ha scritto: Add compatible for the Qualcomm MSM8974 APCS block. Signed-off-by: Luca Weiss Reviewed-by: AngeloGioacchino Del Regno

Re: [PATCH 2/2] ARM: dts: qcom: msm8974: Use proper compatible for APCS syscon

2024-04-09 Thread AngeloGioacchino Del Regno
;rockchip,rk3036-qos', 'rockchip,rk3066-qos', 'rockchip,rk3128-qos', 'rockchip,rk3228-qos', 'rockchip,rk3288-qos', 'rockchip,rk3368-qos', 'rockchip,rk3399-qos', 'rockchip,rk356 8-qos', 'rockchip,rk3588-qos', 'rockchip,rv1126-qos', 'starfive,jh7100-sysmain', 'ti,am62-usb-phy-ctrl', 'ti,am654-dss-oldi-io-ctrl', 'ti,am654-serdes-ctrl', 'ti,j784s4-pcie-ctrl'] from schema $id: http://devicetree.org/schemas/mfd/syscon.yaml# Signed-off-by: Luca Weiss Reviewed-by: AngeloGioacchino Del Regno

Re: [PATCH 2/2] remoteproc: mediatek: Don't parse extraneous subnodes for multi-core

2024-04-02 Thread AngeloGioacchino Del Regno
Il 02/04/24 16:23, Mathieu Poirier ha scritto: On Tue, 2 Apr 2024 at 03:56, AngeloGioacchino Del Regno wrote: Il 28/03/24 15:38, Mathieu Poirier ha scritto: On Wed, Mar 27, 2024 at 01:49:58PM +0100, AngeloGioacchino Del Regno wrote: Il 21/03/24 16:27, Mathieu Poirier ha scritto: On Thu

Re: [PATCH 2/2] remoteproc: mediatek: Don't parse extraneous subnodes for multi-core

2024-04-02 Thread AngeloGioacchino Del Regno
Il 28/03/24 15:38, Mathieu Poirier ha scritto: On Wed, Mar 27, 2024 at 01:49:58PM +0100, AngeloGioacchino Del Regno wrote: Il 21/03/24 16:27, Mathieu Poirier ha scritto: On Thu, Mar 21, 2024 at 09:46:14AM +0100, AngeloGioacchino Del Regno wrote: When probing multi-core SCP, this driver is

Re: [PATCH 2/2] remoteproc: mediatek: Don't parse extraneous subnodes for multi-core

2024-03-27 Thread AngeloGioacchino Del Regno
Il 21/03/24 16:27, Mathieu Poirier ha scritto: On Thu, Mar 21, 2024 at 09:46:14AM +0100, AngeloGioacchino Del Regno wrote: When probing multi-core SCP, this driver is parsing all sub-nodes of the scp-cluster node, but one of those could be not an actual SCP core and that would make the entire

Re: [PATCH 1/2] remoteproc: mediatek: Make sure IPI buffer fits in L2TCM

2024-03-27 Thread AngeloGioacchino Del Regno
Il 21/03/24 16:25, Mathieu Poirier ha scritto: Good day, On Thu, Mar 21, 2024 at 09:46:13AM +0100, AngeloGioacchino Del Regno wrote: The IPI buffer location is read from the firmware that we load to the System Companion Processor, and it's not granted that both the SRAM (L2TCM) size th

[PATCH 2/2] remoteproc: mediatek: Don't parse extraneous subnodes for multi-core

2024-03-21 Thread AngeloGioacchino Del Regno
only available subnodes having compatible "mediatek,scp-core". Fixes: 1fdbf0cdde98 ("remoteproc: mediatek: Probe SCP cluster on multi-core SCP") Signed-off-by: AngeloGioacchino Del Regno --- drivers/remoteproc/mtk_scp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 1/2] remoteproc: mediatek: Make sure IPI buffer fits in L2TCM

2024-03-21 Thread AngeloGioacchino Del Regno
or the SCP at all, if this is single core). Fixes: 3efa0ea743b7 ("remoteproc/mediatek: read IPI buffer offset from FW") Signed-off-by: AngeloGioacchino Del Regno --- drivers/remoteproc/mtk_scp.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/re

[PATCH 0/2] MediaTek SCP: Urgent fixes for all MTK SoCs

2024-03-21 Thread AngeloGioacchino Del Regno
rious risks which I believe I really don't need to describe, leaving it to the reader's imagination :-) Please note that the first fix is URGENT. P.S.: Of course, this was tested OK on multiple MTK platforms. AngeloGioacchino Del Regno (2): remoteproc: mediatek: Make sure IPI buffe

Re: [PATCH] dt-bindings: remoteproc: do not override firmware-name $ref

2024-01-16 Thread AngeloGioacchino Del Regno
: The devicetree schema core defines firmware-name as a string-array: remove the override and narrow the number of expected file names to 1. Besides, Reviewed-by: AngeloGioacchino Del Regno --- Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 4 ++-- .../devicetree/bindings

Re: [PATCH 2/2] arm64: dts: qcom: sm7225-fairphone-fp4: Add PM6150L thermals

2024-01-11 Thread AngeloGioacchino Del Regno
Il 10/01/24 20:16, Konrad Dybcio ha scritto: On 1/9/24 12:24, Luca Weiss wrote: On Tue Jan 9, 2024 at 11:09 AM CET, Konrad Dybcio wrote: On 1/5/24 15:54, Luca Weiss wrote: Configure the thermals for the PA_THERM1, MSM_THERM, PA_THERM0, RFC_CAM_THERM, CAM_FLASH_THERM and QUIET_THERM thermis

Re: [PATCH] dt-bindings: remoteproc: mtk,scp: Add missing additionalProperties on child node schemas

2023-09-27 Thread AngeloGioacchino Del Regno
Reviewed-by: AngeloGioacchino Del Regno

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

2023-09-21 Thread AngeloGioacchino Del Regno
Il 20/09/23 17:03, Laura Nao ha scritto: On 9/19/23 11:23, AngeloGioacchino Del Regno wrote: 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 comp

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
ough the children of the main SCP node and checking if if there's more than one "mediatek,scp-core" compatible node. Fixes: 1fdbf0cdde98 ("remoteproc: mediatek: Probe SCP cluster on multi-core SCP") Signed-off-by: AngeloGioacchino Del Regno --- drivers/remoteproc/mtk_scp

Re: [PATCH v4 5/7] cpufreq: qcom-hw: Implement CPRh aware OSM programming

2021-04-19 Thread AngeloGioacchino Del Regno
Il 19/04/21 20:52, Bjorn Andersson ha scritto: On Tue 19 Jan 11:45 CST 2021, AngeloGioacchino Del Regno wrote: On new SoCs (SDM845 onwards) the Operating State Manager (OSM) is being programmed in the bootloader and write-protected by the hypervisor, leaving to the OS read-only access to some

Re: [PATCH] brcmfmac: Add support for BCM43596 PCIe Wi-Fi

2021-04-12 Thread AngeloGioacchino Del Regno
Il 12/04/21 10:36, Arend van Spriel ha scritto: On 07-03-2021 12:35, Konrad Dybcio wrote: Add support for BCM43596 dual-band AC chip, found in SONY Xperia X Performance, XZ and XZs smartphones (and *possibly* other devices from other manufacturers). The chip doesn't require any special handling

Re: [Freedreno] [PATCH 1/3] drm/msm/mdp5: Configure PP_SYNC_HEIGHT to double the vtotal

2021-04-07 Thread AngeloGioacchino Del Regno
ng in the MDP and the block really needs recovery, this "trick" won't save anyone and the recovery will anyway be triggered, as the PP-done will anyway timeout. Suggested-by: AngeloGioacchino Del Regno Signed-off-by: Marijn Suijten Reviewed-by: AngeloGioacchino Del Regno ---

Re: [RFC PATCH 2/2] drivers: soc: qcom: Add SDPM clock monitor driver

2021-04-02 Thread AngeloGioacchino Del Regno
Il 02/04/21 08:59, Manaf Meethalavalappu Pallikunhi ha scritto: Add SDPM clock monitor driver, which will register for clock rate change notification and write the clock rate into SDPM CSR register. Signed-off-by: Ram Chandrasekar Signed-off-by: Manaf Meethalavalappu Pallikunhi --- drivers/s

Re: [PATCH v3] arm64: dts: qcom: sdm845-xiaomi-beryllium: Add DSI and panel bits

2021-02-12 Thread AngeloGioacchino Del Regno
Il 12/02/21 10:24, Amit Pundir ha scritto: Hi, On Thu, 11 Feb 2021 at 00:25, AngeloGioacchino Del Regno wrote: Il 10/02/21 09:18, Amit Pundir ha scritto: From: Sumit Semwal Enabling the Display panel for beryllium requires DSI labibb regulators and panel dts nodes to be added. It is also

Re: [PATCH v1 0/7] Add support for IPA v3.1, GSI v1.0, MSM8998 IPA

2021-02-11 Thread AngeloGioacchino Del Regno
Il 11/02/21 21:27, Alex Elder ha scritto: On 2/11/21 11:50 AM, AngeloGioacchino Del Regno wrote: Hey all! This time around I thought that it would be nice to get some modem action going on. We have it, it's working (ish), so just.. why not. Thank you for the patches! I would like to r

Re: [PATCH v2 5/9] clk: qcom: rcg2: Stop hardcoding gfx3d pingpong parent numbers

2021-02-11 Thread AngeloGioacchino Del Regno
Il 11/02/21 21:19, Stephen Boyd ha scritto: Quoting AngeloGioacchino Del Regno (2021-01-13 10:38:13) The function clk_gfx3d_determine_rate is selecting different PLLs to manage the GFX3D clock source in a special way: this one needs to be ping-pong'ed on different PLLs to ensure stab

[PATCH v1 5/7] net: ipa: Add support for IPA on MSM8998

2021-02-11 Thread AngeloGioacchino Del Regno
MSM8998 features IPA v3.1 (GSI v1.0): add the required configuration data for it. Signed-off-by: AngeloGioacchino Del Regno --- drivers/net/ipa/Makefile | 3 +- drivers/net/ipa/ipa_data-msm8998.c | 407 + drivers/net/ipa/ipa_data.h | 5

[PATCH v1 2/7] net: ipa: endpoint: Don't read unexistant register on IPAv3.1

2021-02-11 Thread AngeloGioacchino Del Regno
On IPAv3.1 there is no such FLAVOR_0 register so it is impossible to read tx/rx channel masks and we have to rely on the correctness on the provided configuration. Signed-off-by: AngeloGioacchino Del Regno --- drivers/net/ipa/ipa_endpoint.c | 9 + 1 file changed, 9 insertions(+) diff

[PATCH v1 3/7] net: ipa: gsi: Avoid some writes during irq setup for older IPA

2021-02-11 Thread AngeloGioacchino Del Regno
interrupts. Signed-off-by: AngeloGioacchino Del Regno --- drivers/net/ipa/gsi.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/net/ipa/gsi.c b/drivers/net/ipa/gsi.c index 6315336b3ca8..b5460cbb085c 100644 --- a/drivers/net/ipa/gsi.c +++ b/drivers/net/ipa/gsi.c

[PATCH v1 0/7] Add support for IPA v3.1, GSI v1.0, MSM8998 IPA

2021-02-11 Thread AngeloGioacchino Del Regno
rm when the modem is up. This was tested on the F(x)Tec Pro 1 (MSM8998) smartphone. AngeloGioacchino Del Regno (7): net: ipa: Add support for IPA v3.1 with GSI v1.0 net: ipa: endpoint: Don't read unexistant register on IPAv3.1 net: ipa: gsi: Avoid some writes during irq setup for older

[PATCH v1 1/7] net: ipa: Add support for IPA v3.1 with GSI v1.0

2021-02-11 Thread AngeloGioacchino Del Regno
In preparation for adding support for the MSM8998 SoC's IPA, add the necessary bits for IPA version 3.1 featuring GSI 1.0, found on at least MSM8998. Signed-off-by: AngeloGioacchino Del Regno --- drivers/net/ipa/gsi.c | 8 drivers/net/ipa/ipa_endpoint.c

[PATCH v1 7/7] dt-bindings: net: qcom-ipa: Document qcom,msm8998-ipa compatible

2021-02-11 Thread AngeloGioacchino Del Regno
MSM8998 support has been added: document the new compatible. Signed-off-by: AngeloGioacchino Del Regno --- Documentation/devicetree/bindings/net/qcom,ipa.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/qcom,ipa.yaml b/Documentation/devicetree

[PATCH v1 4/7] net: ipa: gsi: Use right masks for GSI v1.0 channels hw param

2021-02-11 Thread AngeloGioacchino Del Regno
In GSI v1.0 the register GSI_HW_PARAM_2_OFFSET has different layout so the number of channels and events per EE are, of course, laid out in 8 bits each (0-7, 8-15 respectively). Signed-off-by: AngeloGioacchino Del Regno --- drivers/net/ipa/gsi.c | 16 +--- drivers/net/ipa

[PATCH v1 6/7] dt-bindings: net: qcom-ipa: Document qcom,sc7180-ipa compatible

2021-02-11 Thread AngeloGioacchino Del Regno
The driver supports SC7180, but the binding was not documented. Just add it. Signed-off-by: AngeloGioacchino Del Regno --- Documentation/devicetree/bindings/net/qcom,ipa.yaml | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/qcom

Re: [PATCH v3] arm64: dts: qcom: sdm845-xiaomi-beryllium: Add DSI and panel bits

2021-02-10 Thread AngeloGioacchino Del Regno
Il 10/02/21 09:18, Amit Pundir ha scritto: From: Sumit Semwal Enabling the Display panel for beryllium requires DSI labibb regulators and panel dts nodes to be added. It is also required to keep some of the regulators as always-on. Signed-off-by: Sumit Semwal Signed-off-by: Amit Pundir ---

Re: [PATCH v2 05/11] clk: qcom: gcc-msm8998: Mark gpu_cfg_ahb_clk as critical

2021-02-09 Thread AngeloGioacchino Del Regno
Il 08/02/21 19:18, Stephen Boyd ha scritto: Quoting AngeloGioacchino Del Regno (2021-01-14 14:10:53) The GPU IOMMU depends on this clock and the hypervisor will crash the SoC if this clock gets disabled because the secure contexts that have been set on this IOMMU by the bootloader will become

Re: [PATCH v2 07/11] clk: qcom: mmcc-msm8998: Set CLK_GET_RATE_NOCACHE to pixel/byte clks

2021-02-09 Thread AngeloGioacchino Del Regno
Il 08/02/21 19:21, Stephen Boyd ha scritto: Quoting AngeloGioacchino Del Regno (2021-01-14 14:10:55) The pixel and byte clocks rate should not be cached, as a VCO shutdown may clear the frequency setup and this may not be set again due to the cached rate being present. This will also be useful

Re: [PATCH v2 11/11] clk: qcom: gpucc-msm8998: Allow fabia gpupll0 rate setting

2021-02-09 Thread AngeloGioacchino Del Regno
Il 08/02/21 19:24, Stephen Boyd ha scritto: Quoting AngeloGioacchino Del Regno (2021-01-14 14:10:59) The GPU PLL0 is not a fixed PLL and the rate can be set on it: this is necessary especially on boards which bootloader is setting a very low rate on this PLL before booting Linux, which would be

Re: [PATCH v5 7/7] dt-bindings: cpufreq: qcom-hw: Add bindings for 8998

2021-02-05 Thread AngeloGioacchino Del Regno
Il 05/02/21 22:51, Rob Herring ha scritto: On Thu, Jan 21, 2021 at 08:52:50PM +0100, AngeloGioacchino Del Regno wrote: The OSM programming addition has been done under the qcom,cpufreq-hw-8998 compatible name: specify the requirement of two additional register spaces for this functionality

Re: [PATCH v5 3/7] dt-bindings: arm: cpus: Document 'qcom,freq-domain' property

2021-02-05 Thread AngeloGioacchino Del Regno
Il 05/02/21 22:46, Rob Herring ha scritto: On Thu, Jan 21, 2021 at 08:52:46PM +0100, AngeloGioacchino Del Regno wrote: From: Manivannan Sadhasivam Add devicetree documentation for 'qcom,freq-domain' property specific to Qualcomm CPUs. This property is used to reference the CPUFREQ

Re: [PATCH 3/5] drm/msm/dsi_pll_10nm: Fix bad VCO rate calculation and prescaler

2021-02-02 Thread AngeloGioacchino Del Regno
Il 02/02/21 19:45, Rob Clark ha scritto: On Tue, Feb 2, 2021 at 6:32 AM AngeloGioacchino Del Regno wrote: Il 01/02/21 18:31, Rob Clark ha scritto: On Mon, Feb 1, 2021 at 9:18 AM Rob Clark wrote: On Mon, Feb 1, 2021 at 9:05 AM Rob Clark wrote: On Mon, Feb 1, 2021 at 7:47 AM Rob Clark

Re: [PATCH 1/2] regulator: qcom-labibb: avoid unbalanced IRQ enable

2021-02-02 Thread AngeloGioacchino Del Regno
Il 02/02/21 08:36, Matti Vaittinen ha scritto: If a spurious OCP IRQ occurs the isr schedules delayed work but does not disable the IRQ. The delayed work assumes IRQ was disabled in handler and attempts enabling it again causing unbalanced enable. You break the logic like this. Though, I also

Re: [PATCH 2/2] regulator: qcom-labibb: Use disable_irq_nosync from isr

2021-02-02 Thread AngeloGioacchino Del Regno
() instead. It didn't deadlock, but looking at it again -- oh my, I agree with you. Reviewed-by: AngeloGioacchino Del Regno Fixes: 390af53e04114 ("regulator: qcom-labibb: Implement short-circuit and over-current IRQs") Signed-off-by: Matti Vaittinen --- This fix is done pur

Re: [PATCH 3/5] drm/msm/dsi_pll_10nm: Fix bad VCO rate calculation and prescaler

2021-02-02 Thread AngeloGioacchino Del Regno
Il 01/02/21 18:31, Rob Clark ha scritto: On Mon, Feb 1, 2021 at 9:18 AM Rob Clark wrote: On Mon, Feb 1, 2021 at 9:05 AM Rob Clark wrote: On Mon, Feb 1, 2021 at 7:47 AM Rob Clark wrote: On Mon, Feb 1, 2021 at 2:11 AM AngeloGioacchino Del Regno wrote: Il 31/01/21 20:50, Rob Clark ha

Re: [PATCH 3/5] drm/msm/dsi_pll_10nm: Fix bad VCO rate calculation and prescaler

2021-02-01 Thread AngeloGioacchino Del Regno
Il 31/01/21 20:50, Rob Clark ha scritto: On Sat, Jan 9, 2021 at 5:51 AM AngeloGioacchino Del Regno wrote: The VCO rate was being miscalculated due to a big overlook during the process of porting this driver from downstream to upstream: here we are really recalculating the rate of the VCO by

Re: short-circuit and over-current IRQs

2021-01-30 Thread AngeloGioacchino Del Regno
Il 29/01/21 10:14, Matti Vaittinen ha scritto: On Thu, 2021-01-28 at 12:10 +, Mark Brown wrote: On Thu, Jan 28, 2021 at 09:23:08AM +, Vaittinen, Matti wrote: On Wed, 2021-01-27 at 16:32 +, Mark Brown wrote: Note that the events the API currently has are expected to be for the actu

Re: [PATCH v3 3/3] dt-bindings: i2c: qcom,i2c-qup: Document noise rejection properties

2021-01-28 Thread AngeloGioacchino Del Regno
Il 28/01/21 10:13, Wolfram Sang ha scritto: + qcom,noise-reject-sda: +$ref: /schemas/types.yaml#/definitions/uint32 +description: Noise rejection level for the SDA line. +minimum: 0 +maximum: 3 +default: 0 What does this u32 describe? I wonder if we can introduce a generi

Re: short-circuit and over-current IRQs

2021-01-27 Thread AngeloGioacchino Del Regno
Il 27/01/21 13:56, Matti Vaittinen ha scritto: Hello Mark, Hey Matti, hey Mark! Nice to hear from you. :) On Wed, 2021-01-27 at 12:27 +, Mark Brown wrote: On Wed, Jan 27, 2021 at 12:01:55PM +, Vaittinen, Matti wrote: Anyways - I was wondering if this is common thing amongst many

Re: [PATCH v2 3/9] clk: qcom: Add SDM660 Multimedia Clock Controller (MMCC) driver

2021-01-26 Thread AngeloGioacchino Del Regno
Il 26/01/21 14:39, Stanimir Varbanov ha scritto: On 1/13/21 8:38 PM, AngeloGioacchino Del Regno wrote: From: Martin Botka Add a driver for the multimedia clock controller found on SDM660 based devices. This should allow most multimedia device drivers to probe and control their clocks

Re: [PATCH] venus: core: Parse firmware-name DT property

2021-01-26 Thread AngeloGioacchino Del Regno
fwpath = core->res->fwname; + + ret = venus_load_fw(core, fwpath, &mem_phys, &mem_size); if (ret) { dev_err(dev, "fail to load video firmware\n"); return -EINVAL; Super! As you surely know, I totally agree. It may not have huge value, but: Reviewed-By: AngeloGioacchino Del Regno

[PATCH v5 2/2] dt-bindings: pinctrl: Add bindings for Awinic AW9523/AW9523B

2021-01-25 Thread AngeloGioacchino Del Regno
Add bindings for the Awinic AW9523/AW9523B I2C GPIO Expander driver. Signed-off-by: AngeloGioacchino Del Regno --- .../pinctrl/awinic,aw9523-pinctrl.yaml| 139 ++ 1 file changed, 139 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/awinic

[PATCH 2/2] dt-bindings: pinctrl: Add bindings for Awinic AW9523/AW9523B

2021-01-25 Thread AngeloGioacchino Del Regno
Add bindings for the Awinic AW9523/AW9523B I2C GPIO Expander driver. Signed-off-by: AngeloGioacchino Del Regno --- .../pinctrl/awinic,aw9523-pinctrl.yaml| 139 ++ 1 file changed, 139 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/awinic

[PATCH v5 1/2] pinctrl: Add driver for Awinic AW9523/B I2C GPIO Expander

2021-01-25 Thread AngeloGioacchino Del Regno
advertise this to an external interrupt controller. Signed-off-by: AngeloGioacchino Del Regno --- drivers/pinctrl/Kconfig | 17 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/pinctrl-aw9523.c | 1122 ++ 3 files changed, 1140 insertions(+) create

[PATCH 1/2] pinctrl: Add driver for Awinic AW9523/B I2C GPIO Expander

2021-01-25 Thread AngeloGioacchino Del Regno
advertise this to an external interrupt controller. Signed-off-by: AngeloGioacchino Del Regno --- drivers/pinctrl/Kconfig | 17 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/pinctrl-aw9523.c | 1122 ++ 3 files changed, 1140 insertions(+) create

Re: [PATCH 1/2] media: venus: core: Add sdm660 DT compatible and resource struct

2021-01-25 Thread AngeloGioacchino Del Regno
Il 25/01/21 11:40, Hans Verkuil ha scritto: On 18/01/2021 18:45, AngeloGioacchino Del Regno wrote: Il 18/01/21 18:21, Stanimir Varbanov ha scritto: Hi Angelo, Thanks for the patch! On 1/15/21 8:52 PM, AngeloGioacchino Del Regno wrote: Add the SDM660 DT compatible and its resource structure

Re: [PATCH v5 0/7] cpufreq-qcom-hw: Implement full OSM programming

2021-01-22 Thread AngeloGioacchino Del Regno
Il 22/01/21 10:46, Viresh Kumar ha scritto: On 21-01-21, 20:52, AngeloGioacchino Del Regno wrote: ** ** NOTE: To "view the full picture", please look at the following ** patch series: ** https://patchwork.kernel.org/project/linux-arm-msm/list/?series=413355 **

Re: [PATCH v2 1/2] pinctrl: Add driver for Awinic AW9523/B I2C GPIO Expander

2021-01-22 Thread AngeloGioacchino Del Regno
Il 22/01/21 10:59, Linus Walleij ha scritto: On Mon, Jan 18, 2021 at 3:38 PM AngeloGioacchino Del Regno wrote: By the way, this is really LEVEL irq, not EDGE... To avoid any misunderstanding, I think that the best way to show you what I am seeing is to just copy-paste the relevant piece from

[PATCH v5 3/7] dt-bindings: arm: cpus: Document 'qcom,freq-domain' property

2021-01-21 Thread AngeloGioacchino Del Regno
From: Manivannan Sadhasivam Add devicetree documentation for 'qcom,freq-domain' property specific to Qualcomm CPUs. This property is used to reference the CPUFREQ node along with Domain ID (0/1). Signed-off-by: Manivannan Sadhasivam Signed-off-by: AngeloGioacchino

[PATCH v5 0/7] cpufreq-qcom-hw: Implement full OSM programming

2021-01-21 Thread AngeloGioacchino Del Regno
these puzzle pieces, and they're also (basically) fully accessible, which means that the OS must do it in order to get in the same state as the newer ones and to get the entire scaling hardware to start rolling. AngeloGioacchino Del Regno (5): cpufreq: blacklist SDM630/636/660 in cpufreq-d

[PATCH v5 7/7] dt-bindings: cpufreq: qcom-hw: Add bindings for 8998

2021-01-21 Thread AngeloGioacchino Del Regno
The OSM programming addition has been done under the qcom,cpufreq-hw-8998 compatible name: specify the requirement of two additional register spaces for this functionality. This implementation, with the same compatible, has been tested on MSM8998 and SDM630. Signed-off-by: AngeloGioacchino Del

[PATCH v5 6/7] cpufreq: qcom-hw: Allow getting the maximum transition latency for OPPs

2021-01-21 Thread AngeloGioacchino Del Regno
In order to fine-tune the frequency scaling from various governors, allow to set a maximum transition latency from OPPs, which may be different depending on the SoC. Signed-off-by: AngeloGioacchino Del Regno --- drivers/cpufreq/qcom-cpufreq-hw.c | 7 +++ 1 file changed, 7 insertions

[PATCH v5 4/7] dt-bindings: cpufreq: cpufreq-qcom-hw: Convert to YAML bindings

2021-01-21 Thread AngeloGioacchino Del Regno
From: Manivannan Sadhasivam Convert Qualcomm cpufreq devicetree binding to YAML. Signed-off-by: Manivannan Sadhasivam Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/cpufreq/cpufreq-qcom-hw.txt | 172 --- .../bindings/cpufreq/cpufreq-qcom-hw.yaml | 204

[PATCH v5 5/7] cpufreq: qcom-hw: Implement CPRh aware OSM programming

2021-01-21 Thread AngeloGioacchino Del Regno
rs to support CPU scaling on SDM630 and MSM8998. Signed-off-by: AngeloGioacchino Del Regno --- drivers/cpufreq/qcom-cpufreq-hw.c | 1244 - 1 file changed, 1212 insertions(+), 32 deletions(-) diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/q

[PATCH v5 2/7] cpufreq: blacklist MSM8998 in cpufreq-dt-platdev

2021-01-21 Thread AngeloGioacchino Del Regno
Add the MSM8998 to the blacklist since the CPU scaling is handled out of this. Signed-off-by: AngeloGioacchino Del Regno --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c

[PATCH v5 1/7] cpufreq: blacklist SDM630/636/660 in cpufreq-dt-platdev

2021-01-21 Thread AngeloGioacchino Del Regno
Add the SDM630, SDM636 and SDM660 to the blacklist since the CPU scaling is handled out of this. Signed-off-by: AngeloGioacchino Del Regno --- drivers/cpufreq/cpufreq-dt-platdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq

[PATCH v5 3/3] dt-bindings: soc: qcom: cpr3: Add bindings for CPR3 driver

2021-01-21 Thread AngeloGioacchino Del Regno
Add the bindings for the CPR3 driver to the documentation. Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/soc/qcom/qcom,cpr3.yaml | 241 ++ 1 file changed, 241 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,cpr3.yaml diff

[PATCH v5 2/3] MAINTAINERS: Add entry for Qualcomm CPRv3/v4/Hardened driver

2021-01-21 Thread AngeloGioacchino Del Regno
Add maintainers entry for the Qualcomm CPR3/CPR4/CPRh driver. Signed-off-by: AngeloGioacchino Del Regno --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 3f50d126dfcc..5c458052dbf4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14684,6

[PATCH v5 1/3] soc: qcom: Add support for Core Power Reduction v3, v4 and Hardened

2021-01-21 Thread AngeloGioacchino Del Regno
range of SoCs, from the mid-range to the high end ones including, but not limited to, MSM8953/8996/8998, SDM630/636/660/845. Signed-off-by: AngeloGioacchino Del Regno --- drivers/soc/qcom/Kconfig | 17 + drivers/soc/qcom/Makefile |1 + drivers/soc/qcom/cpr-common.c | 35

[PATCH v5 0/3] Driver for Core Power Reduction v3, v4 and Hardened

2021-01-21 Thread AngeloGioacchino Del Regno
30) - Sony Xperia 10 (SDM630) - Sony Xperia XZ Premium (MSM8998) - F(x)Tec Pro 1 (MSM8998) AngeloGioacchino Del Regno (3): soc: qcom: Add support for Core Power Reduction v3, v4 and Hardened MAINTAINERS: Add entry for Qualcomm CPRv3/v4/Hardened driver dt-bindings: soc: qcom:

[PATCH] drm: drm_modes: Fix signed-integer-overflow UBSAN warning

2021-01-21 Thread AngeloGioacchino Del Regno
8/0x68 [2.039337] msm_fbdev_init+0x80/0xe0 [2.039735] msm_drm_bind+0x4d8/0x6d0 Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/drm_modes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index 33fb2f

Re: [PATCH v4 5/7] cpufreq: qcom-hw: Implement CPRh aware OSM programming

2021-01-20 Thread AngeloGioacchino Del Regno
y), or something that is "special" while, in reality... it's.. not. It's just the same HW, after all. On 1/19/2021 11:15 PM, AngeloGioacchino Del Regno wrote: On new SoCs (SDM845 onwards) the Operating State Manager (OSM) is being programmed in the bootloader and writ

Re: [PATCH v2 15/22] dt-bindings: media: camss: Add qcom,sdm660-camss binding

2021-01-20 Thread AngeloGioacchino Del Regno
; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > + > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/media/qcom,sdm660-camss.yaml#"; > +$schema: "http://devicetree.org/meta-schemas/core.yaml#"; > + > +title: Qualcomm CAMSS ISP > + >

Re: [PATCH 2/2] drm/msm/a6xx: Create an A6XX GPU specific address space

2021-01-20 Thread AngeloGioacchino Del Regno
Il 11/01/21 13:04, Sai Prakash Ranjan ha scritto: A6XX GPUs have support for last level cache(LLC) also known as system cache and need to set the bus attributes to use it. Currently we use a generic adreno iommu address space implementation which are also used by older GPU generations which do no

Re: [PATCH V1] clk: qcom: gcc-sc7180: Mark the MM XO clocks to be always ON

2021-01-20 Thread AngeloGioacchino Del Regno
Il 20/01/21 08:47, Taniya Das ha scritto: There are intermittent GDSC power-up failures observed for titan top gdsc, which requires the XO clock. Thus mark all the MM XO clocks always enabled from probe. Hello Tanya, Fixes: 8d4025943e13 ("clk: qcom: camcc-sc7180: Use runtime PM ops instead o

Re: [PATCH 2/2] media: dt-bindings: media: venus: Add sdm660 DT schema

2021-01-19 Thread AngeloGioacchino Del Regno
Il 20/01/21 00:17, Rob Herring ha scritto: On Fri, Jan 15, 2021 at 07:52:52PM +0100, AngeloGioacchino Del Regno wrote: Add new qcom,sdm660-venus DT binding schema. Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/media/qcom,sdm660-venus.yaml | 164 ++ 1 file

[PATCH v4 4/7] dt-bindings: regulator: qcom-labibb: Document soft start properties

2021-01-19 Thread AngeloGioacchino Del Regno
Document properties to configure soft start and discharge resistor for LAB and IBB respectively. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Bjorn Andersson --- .../bindings/regulator/qcom-labibb-regulator.yaml | 10 ++ 1 file changed, 10 insertions(+) diff --git a

[PATCH v4 1/7] regulator: qcom-labibb: Switch voltage ops from linear_range to linear

2021-01-19 Thread AngeloGioacchino Del Regno
The LAB and IBB regulator have just one range and it is useless to use linear_range ops, as these are used to express multiple linear ranges. Switch list_voltage and map_voltage callbacks to *_linear instead. Signed-off-by: AngeloGioacchino Del Regno --- drivers/regulator/qcom-labibb

  1   2   3   4   >