diff mbox series

[RESENT,1/2] arm64: zynqmp: Update MALI 400 interrupt and clock names

Message ID 1678181001-2327-2-git-send-email-parth.gajjar@amd.com (mailing list archive)
State New, archived
Headers show
Series arm64: zynqmp: Update MALI 400 interrupt and clock names | expand

Commit Message

Gajjar, Parth March 7, 2023, 9:23 a.m. UTC
Motivation for the commit is to utilize the upstream community
device tree so that the either modified ARM Mali 400 driver
or upstream lima driver can be used.

Signed-off-by: Parth Gajjar <parth.gajjar@amd.com>
Signed-off-by: Vishal Sagar <vishal.sagar@amd.com>
---
 arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi | 2 +-
 arch/arm64/boot/dts/xilinx/zynqmp.dtsi         | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

Comments

Michal Simek March 13, 2023, 10:49 a.m. UTC | #1
On 3/7/23 10:23, Parth Gajjar wrote:
> Motivation for the commit is to utilize the upstream community
> device tree so that the either modified ARM Mali 400 driver
> or upstream lima driver can be used.
> 
> Signed-off-by: Parth Gajjar <parth.gajjar@amd.com>
> Signed-off-by: Vishal Sagar <vishal.sagar@amd.com>
> ---
>   arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi | 2 +-
>   arch/arm64/boot/dts/xilinx/zynqmp.dtsi         | 6 +++---
>   2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi
> index ff2f34ce380c..ac8ed4a434d0 100644
> --- a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi
> +++ b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi
> @@ -133,7 +133,7 @@
>   };
>   
>   &gpu {
> -	clocks = <&zynqmp_clk GPU_REF>, <&zynqmp_clk GPU_PP0_REF>, <&zynqmp_clk GPU_PP1_REF>;
> +	clocks = <&zynqmp_clk GPU_REF>, <&zynqmp_clk GPU_PP0_REF>;
>   };
>   
>   &lpd_dma_chan1 {
> diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
> index 96cba469ab5d..6a210cb9bce9 100644
> --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
> +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
> @@ -448,12 +448,12 @@
>   
>   		gpu: gpu@fd4b0000 {
>   			status = "disabled";
> -			compatible = "arm,mali-400", "arm,mali-utgard";
> +			compatible = "xlnx,zynqmp-mali", "arm,mali-400";
>   			reg = <0x0 0xfd4b0000 0x0 0x10000>;
>   			interrupt-parent = <&gic>;
>   			interrupts = <0 132 4>, <0 132 4>, <0 132 4>, <0 132 4>, <0 132 4>, <0 132 4>;
> -			interrupt-names = "IRQGP", "IRQGPMMU", "IRQPP0", "IRQPPMMU0", "IRQPP1", "IRQPPMMU1";
> -			clock-names = "gpu", "gpu_pp0", "gpu_pp1";
> +			interrupt-names = "gp", "gpmmu", "pp0", "ppmmu0", "pp1", "ppmmu1";
> +			clock-names = "bus", "core";
>   			power-domains = <&zynqmp_firmware PD_GPU>;
>   		};
>   

This patch can't be applied because gpu is not in upstream kernel. Please based 
it on the latest tree and resend.

Also this should be 2/2 not 1/2.

Thanks,
Michal
Mark Hatle March 13, 2023, 4:09 p.m. UTC | #2
On 3/13/23 5:49 AM, Michal Simek wrote:
> 
> 
> On 3/7/23 10:23, Parth Gajjar wrote:
>> Motivation for the commit is to utilize the upstream community
>> device tree so that the either modified ARM Mali 400 driver
>> or upstream lima driver can be used.
>>
>> Signed-off-by: Parth Gajjar <parth.gajjar@amd.com>
>> Signed-off-by: Vishal Sagar <vishal.sagar@amd.com>
>> ---
>>   arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi | 2 +-
>>   arch/arm64/boot/dts/xilinx/zynqmp.dtsi         | 6 +++---
>>   2 files changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi
>> index ff2f34ce380c..ac8ed4a434d0 100644
>> --- a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi
>> +++ b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi
>> @@ -133,7 +133,7 @@
>>   };
>>   &gpu {
>> -    clocks = <&zynqmp_clk GPU_REF>, <&zynqmp_clk GPU_PP0_REF>, <&zynqmp_clk GPU_PP1_REF>;
>> +    clocks = <&zynqmp_clk GPU_REF>, <&zynqmp_clk GPU_PP0_REF>;
>>   };
>>   &lpd_dma_chan1 {
>> diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
>> index 96cba469ab5d..6a210cb9bce9 100644
>> --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
>> +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
>> @@ -448,12 +448,12 @@
>>           gpu: gpu@fd4b0000 {
>>               status = "disabled";
>> -            compatible = "arm,mali-400", "arm,mali-utgard";
>> +            compatible = "xlnx,zynqmp-mali", "arm,mali-400";
>>               reg = <0x0 0xfd4b0000 0x0 0x10000>;
>>               interrupt-parent = <&gic>;
>>               interrupts = <0 132 4>, <0 132 4>, <0 132 4>, <0 132 4>, <0 132 4>, <0 132 4>;
>> -            interrupt-names = "IRQGP", "IRQGPMMU", "IRQPP0", "IRQPPMMU0", "IRQPP1", "IRQPPMMU1";
>> -            clock-names = "gpu", "gpu_pp0", "gpu_pp1";
>> +            interrupt-names = "gp", "gpmmu", "pp0", "ppmmu0", "pp1", "ppmmu1";
>> +            clock-names = "bus", "core";
>>               power-domains = <&zynqmp_firmware PD_GPU>;
>>           };
> 
> This patch can't be applied because gpu is not in upstream kernel. Please based it on the latest tree and resend.

lima support isn't in the upstream kernel?  It should be.

--Mark

> Also this should be 2/2 not 1/2.
> 
> Thanks,
> Michal
Michal Simek March 14, 2023, 7:23 a.m. UTC | #3
On 3/13/23 17:09, Mark Hatle wrote:
> 
> 
> On 3/13/23 5:49 AM, Michal Simek wrote:
>>
>>
>> On 3/7/23 10:23, Parth Gajjar wrote:
>>> Motivation for the commit is to utilize the upstream community
>>> device tree so that the either modified ARM Mali 400 driver
>>> or upstream lima driver can be used.
>>>
>>> Signed-off-by: Parth Gajjar <parth.gajjar@amd.com>
>>> Signed-off-by: Vishal Sagar <vishal.sagar@amd.com>
>>> ---
>>>   arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi | 2 +-
>>>   arch/arm64/boot/dts/xilinx/zynqmp.dtsi         | 6 +++---
>>>   2 files changed, 4 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi 
>>> b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi
>>> index ff2f34ce380c..ac8ed4a434d0 100644
>>> --- a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi
>>> +++ b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi
>>> @@ -133,7 +133,7 @@
>>>   };
>>>   &gpu {
>>> -    clocks = <&zynqmp_clk GPU_REF>, <&zynqmp_clk GPU_PP0_REF>, <&zynqmp_clk 
>>> GPU_PP1_REF>;
>>> +    clocks = <&zynqmp_clk GPU_REF>, <&zynqmp_clk GPU_PP0_REF>;
>>>   };
>>>   &lpd_dma_chan1 {
>>> diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi 
>>> b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
>>> index 96cba469ab5d..6a210cb9bce9 100644
>>> --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
>>> +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
>>> @@ -448,12 +448,12 @@
>>>           gpu: gpu@fd4b0000 {
>>>               status = "disabled";
>>> -            compatible = "arm,mali-400", "arm,mali-utgard";
>>> +            compatible = "xlnx,zynqmp-mali", "arm,mali-400";
>>>               reg = <0x0 0xfd4b0000 0x0 0x10000>;
>>>               interrupt-parent = <&gic>;
>>>               interrupts = <0 132 4>, <0 132 4>, <0 132 4>, <0 132 4>, <0 132 
>>> 4>, <0 132 4>;
>>> -            interrupt-names = "IRQGP", "IRQGPMMU", "IRQPP0", "IRQPPMMU0", 
>>> "IRQPP1", "IRQPPMMU1";
>>> -            clock-names = "gpu", "gpu_pp0", "gpu_pp1";
>>> +            interrupt-names = "gp", "gpmmu", "pp0", "ppmmu0", "pp1", "ppmmu1";
>>> +            clock-names = "bus", "core";
>>>               power-domains = <&zynqmp_firmware PD_GPU>;
>>>           };
>>
>> This patch can't be applied because gpu is not in upstream kernel. Please 
>> based it on the latest tree and resend.
> 
> lima support isn't in the upstream kernel?  It should be.

DT node which describes gpu is not in upstream kernel. Driver should be there.

M
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi
index ff2f34ce380c..ac8ed4a434d0 100644
--- a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi
+++ b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi
@@ -133,7 +133,7 @@ 
 };
 
 &gpu {
-	clocks = <&zynqmp_clk GPU_REF>, <&zynqmp_clk GPU_PP0_REF>, <&zynqmp_clk GPU_PP1_REF>;
+	clocks = <&zynqmp_clk GPU_REF>, <&zynqmp_clk GPU_PP0_REF>;
 };
 
 &lpd_dma_chan1 {
diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
index 96cba469ab5d..6a210cb9bce9 100644
--- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
+++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
@@ -448,12 +448,12 @@ 
 
 		gpu: gpu@fd4b0000 {
 			status = "disabled";
-			compatible = "arm,mali-400", "arm,mali-utgard";
+			compatible = "xlnx,zynqmp-mali", "arm,mali-400";
 			reg = <0x0 0xfd4b0000 0x0 0x10000>;
 			interrupt-parent = <&gic>;
 			interrupts = <0 132 4>, <0 132 4>, <0 132 4>, <0 132 4>, <0 132 4>, <0 132 4>;
-			interrupt-names = "IRQGP", "IRQGPMMU", "IRQPP0", "IRQPPMMU0", "IRQPP1", "IRQPPMMU1";
-			clock-names = "gpu", "gpu_pp0", "gpu_pp1";
+			interrupt-names = "gp", "gpmmu", "pp0", "ppmmu0", "pp1", "ppmmu1";
+			clock-names = "bus", "core";
 			power-domains = <&zynqmp_firmware PD_GPU>;
 		};