diff mbox series

[v2,5/5] MIPS: mobileye: dts: eyeq6h: Enable cluster support

Message ID 20250116-cluster-hci-broken-v2-5-fc52cfb7a19e@bootlin.com (mailing list archive)
State New
Headers show
Series MIPS: Allow using multi-cluster with a broken HCI. | expand

Commit Message

Gregory CLEMENT Jan. 16, 2025, 10:59 a.m. UTC
The CM3.5 device used in EyeQ6H SoCs incorrectly reports the status
for Hardware Cache Initialization (HCI). This commit adds the
compatible string for the CM to acknowledge this issue, which enables
the use of the second CPU cluster.

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
---
 arch/mips/boot/dts/mobileye/eyeq6h.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Jiaxun Yang Jan. 16, 2025, 11:34 a.m. UTC | #1
在2025年1月16日一月 上午10:59,Gregory CLEMENT写道:
> The CM3.5 device used in EyeQ6H SoCs incorrectly reports the status
> for Hardware Cache Initialization (HCI). This commit adds the
> compatible string for the CM to acknowledge this issue, which enables
> the use of the second CPU cluster.
>
> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
> ---
>  arch/mips/boot/dts/mobileye/eyeq6h.dtsi | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/arch/mips/boot/dts/mobileye/eyeq6h.dtsi 
> b/arch/mips/boot/dts/mobileye/eyeq6h.dtsi
> index 
> 1db3c3cda2e395025075387bcb66ea0737fd37f6..c6087bd8ca1d47855b8d93aa7e75e1fed219587b 
> 100644
> --- a/arch/mips/boot/dts/mobileye/eyeq6h.dtsi
> +++ b/arch/mips/boot/dts/mobileye/eyeq6h.dtsi
> @@ -32,6 +32,10 @@ cpu_intc: interrupt-controller {
>  		#interrupt-cells = <1>;
>  	};
> 
> +	coherency-manager {
> +		compatible = "mti,eyeq6-cm";

                ^ 
                Maybe compatible = "mti,eyeq6-cm", "mti,mips-cm";

Thanks
Gregory CLEMENT Jan. 16, 2025, 12:39 p.m. UTC | #2
Hello Jiaxun,

> 在2025年1月16日一月 上午10:59,Gregory CLEMENT写道:
>> The CM3.5 device used in EyeQ6H SoCs incorrectly reports the status
>> for Hardware Cache Initialization (HCI). This commit adds the
>> compatible string for the CM to acknowledge this issue, which enables
>> the use of the second CPU cluster.
>>
>> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
>> ---
>>  arch/mips/boot/dts/mobileye/eyeq6h.dtsi | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/arch/mips/boot/dts/mobileye/eyeq6h.dtsi 
>> b/arch/mips/boot/dts/mobileye/eyeq6h.dtsi
>> index 
>> 1db3c3cda2e395025075387bcb66ea0737fd37f6..c6087bd8ca1d47855b8d93aa7e75e1fed219587b 
>> 100644
>> --- a/arch/mips/boot/dts/mobileye/eyeq6h.dtsi
>> +++ b/arch/mips/boot/dts/mobileye/eyeq6h.dtsi
>> @@ -32,6 +32,10 @@ cpu_intc: interrupt-controller {
>>  		#interrupt-cells = <1>;
>>  	};
>> 
>> +	coherency-manager {
>> +		compatible = "mti,eyeq6-cm";
>
>                 ^ 
>                 Maybe compatible = "mti,eyeq6-cm", "mti,mips-cm";

I explicitly makes the compatible "mti,eyeq6-cm" and "mti,mips-cm"
mutually exclusive. This allows us to require the reg property only for
"mti,mips-cm" and not have to provide it for "mti,eyeq6-cm".

Thanks for your prompt feedback,

Gregory
Jiaxun Yang Jan. 16, 2025, 2:14 p.m. UTC | #3
在2025年1月16日一月 下午12:39,Gregory CLEMENT写道:
> Hello Jiaxun,
[...]
>>> +	coherency-manager {
>>> +		compatible = "mti,eyeq6-cm";
>>
>>                 ^ 
>>                 Maybe compatible = "mti,eyeq6-cm", "mti,mips-cm";
>
> I explicitly makes the compatible "mti,eyeq6-cm" and "mti,mips-cm"
> mutually exclusive. This allows us to require the reg property only for
> "mti,mips-cm" and not have to provide it for "mti,eyeq6-cm".

IMO reg should also be optional for "mti,mips-cm". There is nothing special
for eyeq6 on address probing and so on.

Thanks
diff mbox series

Patch

diff --git a/arch/mips/boot/dts/mobileye/eyeq6h.dtsi b/arch/mips/boot/dts/mobileye/eyeq6h.dtsi
index 1db3c3cda2e395025075387bcb66ea0737fd37f6..c6087bd8ca1d47855b8d93aa7e75e1fed219587b 100644
--- a/arch/mips/boot/dts/mobileye/eyeq6h.dtsi
+++ b/arch/mips/boot/dts/mobileye/eyeq6h.dtsi
@@ -32,6 +32,10 @@  cpu_intc: interrupt-controller {
 		#interrupt-cells = <1>;
 	};
 
+	coherency-manager {
+		compatible = "mti,eyeq6-cm";
+	};
+
 	soc: soc {
 		compatible = "simple-bus";
 		#address-cells = <2>;