ARM: dts: dra7: enable BB2D module
v2 cover ARM: dts: dra7: enable BB2D module
The DRA7 & variant SoCs contains a BB2D module which is a Vivante GC320 2D accelerator.
This patchset adds the GPU node and enables it by default.
This is a follow-up of [1] & [2] but:
- using the vivante,gc bindings only
- using ti,sysc instead of hwmod
Changes since v1 at [3]:
- removed status property of bb2d node
- removed enable patches for different platforms
- fixed bb2d size format
[1] https://lore.kernel.org/linux-arm-kernel/[email protected]/
[2] https://lore.kernel.org/linux-arm-kernel/[email protected]/
[3] https://lore.kernel.org/r/[email protected]
Gowtham Tammana (1):
ARM: dts: dra7: add entry for bb2d module
arch/arm/boot/dts/dra7.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
Signature · 1 line
2.25.1
PATCH v2 1/1 ARM: dts: dra7: add entry for bb2d module
From: Gowtham Tammana <[email protected]>
BB2D is a Vivante GC 2D Accelerator.
This adds the node to the dts file within a target module node. Crossbar index number is used for interrupt mapping.
--- arch/arm/boot/dts/dra7.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
arch/arm/boot/dts/dra7.dtsi +19 -0
@@ -965,6 +965,25 @@ hdmi: encoder@0 { }; }; + target-module@59000000 { + compatible = "ti,sysc-omap4", "ti,sysc"; + reg = <0x59000020 0x4>; + reg-names = "rev"; + clocks = <&dss_clkctrl DRA7_DSS_BB2D_CLKCTRL 0>; + clock-names = "fck"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x59000000 0x1000>; + + bb2d: gpu@0 { + compatible = "vivante,gc"; + reg = <0x0 0x700>; + interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&dss_clkctrl DRA7_BB2D_CLKCTRL 0>; + clock-names = "core"; + }; + }; + aes1_target: target-module@4b500000 { compatible = "ti,sysc-omap2", "ti,sysc"; reg = <0x4b500080 0x4>,
Signature · 1 line
2.25.1
Re: [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module
Quoted 5 lines · Neil Armstrong
From: Gowtham Tammana <[email protected]>
BB2D is a Vivante GC 2D Accelerator.
This adds the node to the dts file within a target module node. Crossbar index number is used for interrupt mapping.
Thanks applying into omap-for-v5.16/dt.
Tony
Re: [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module
Hi, Neil, Tony
# sorry for the confusion if you have received the mail which I sent before, which is not in plain text mode.
We have one out of tree change to enable the SGX544 gpu for the beagleboard-X15 Android build,
https://android-review.linaro.org/c/kernel/common/+/20521/11/arch/arm/boot/dts/dra7.dtsi
and that seems to conflict with this BB2D enabling change,
Could you please help give some suggestions on how we should update our patch to make it work with BB2D, without the revert of this change?
Quoted 11 lines · Tony Lindgren
Quoted 5 lines · Neil Armstrong
From: Gowtham Tammana <[email protected]>
BB2D is a Vivante GC 2D Accelerator.
This adds the node to the dts file within a target module node. Crossbar index number is used for interrupt mapping.Thanks applying into omap-for-v5.16/dt.
Tony
Signature · 6 lines
Best Regards, Yongqin Liu --------------------------------------------------------------- #mailing list [email protected] http://lists.linaro.org/mailman/listinfo/linaro-android
Re: [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module
Hi,
Quoted 5 lines · Yongqin Liu
Hi, Neil, Tony
# sorry for the confusion if you have received the mail which I sent before, which is not in plain text mode.
Quoted 7 lines
We have one out of tree change to enable the SGX544 gpu for the beagleboard-X15 Android build,
https://android-review.linaro.org/c/kernel/common/+/20521/11/arch/arm/boot/dts/dra7.dtsiand that seems to conflict with this BB2D enabling change,
Could you please help give some suggestions on how we should update our patch to make it work with BB2D, without the revert of this change?
This BB2D patch alters the target-module@59000000 while your SGX change alters the target-module@56000000.
Please rebase your patches.
Neil
Quoted 14 lines · Tony Lindgren
Quoted 11 lines · Neil Armstrong
Quoted 5 lines
From: Gowtham Tammana <[email protected]>
BB2D is a Vivante GC 2D Accelerator.
This adds the node to the dts file within a target module node. Crossbar index number is used for interrupt mapping.Thanks applying into omap-for-v5.16/dt.
Tony
Re: [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module
Hi, Neil
Quoted 13 lines · Neil Armstrong
Hi,
Quoted 9 lines · Yongqin Liu
Hi, Neil, Tony
# sorry for the confusion if you have received the mail which I sent before, which is not in plain text mode.We have one out of tree change to enable the SGX544 gpu for the beagleboard-X15 Android build,
https://android-review.linaro.org/c/kernel/common/+/20521/11/arch/arm/boot/dts/dra7.dtsi
Quoted 8 lines
Quoted 3 lines
and that seems to conflict with this BB2D enabling change,
Could you please help give some suggestions on how we should update our patch to make it work with BB2D, without the revert of this change?This BB2D patch alters the target-module@59000000 while your SGX change alters the target-module@56000000.
Please rebase your patches.
I am sorry if the "conflict" I used previously caused the confusion. What I meant with the "conflict" word is the feature conflict, not the patch merge conflict.
I could merge my SGX change with the BB2D change there, but then my build could not boot successfully to the homescreen,
I need to revert the BB2D change to have it boot to the homescreen successfully.
Here are the serial console output in case you want to check:
https://pastebin.com/RY472b96 work with the BB2D change reverted
https://pastebin.com/aP97r7rJ does not work with the BB2D change.
Not sure if you have any idea about the problem. Please help give some suggestions on what I could try.
Thanks,
Yongqin
Quoted 16 lines
Quoted 15 lines · Tony Lindgren
Quoted 11 lines · Neil Armstrong
Quoted 5 lines
From: Gowtham Tammana <[email protected]>
BB2D is a Vivante GC 2D Accelerator.
This adds the node to the dts file within a target module node. Crossbar index number is used for interrupt mapping.Thanks applying into omap-for-v5.16/dt.
Tony
Signature · 6 lines
Best Regards, Yongqin Liu --------------------------------------------------------------- #mailing list [email protected] http://lists.linaro.org/mailman/listinfo/linaro-android
Re: [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module
Quoted 32 lines · Yongqin Liu
Hi, Neil
Quoted 13 lines · Neil Armstrong
Hi,
Quoted 9 lines · Yongqin Liu
Hi, Neil, Tony
# sorry for the confusion if you have received the mail which I sent before, which is not in plain text mode.We have one out of tree change to enable the SGX544 gpu for the beagleboard-X15 Android build,
https://android-review.linaro.org/c/kernel/common/+/20521/11/arch/arm/boot/dts/dra7.dtsiQuoted 8 lines
Quoted 3 lines
and that seems to conflict with this BB2D enabling change,
Could you please help give some suggestions on how we should update our patch to make it work with BB2D, without the revert of this change?This BB2D patch alters the target-module@59000000 while your SGX change alters the target-module@56000000.
Please rebase your patches.
I am sorry if the "conflict" I used previously caused the confusion. What I meant with the "conflict" word is the feature conflict, not the patch merge conflict.
I could merge my SGX change with the BB2D change there, but then my build could not boot successfully to the homescreen,
I need to revert the BB2D change to have it boot to the homescreen successfully.
Quoted 6 lines
Here are the serial console output in case you want to check:
https://pastebin.com/RY472b96 work with the BB2D change reverted
https://pastebin.com/aP97r7rJ does not work with the BB2D change.Not sure if you have any idea about the problem. Please help give some suggestions on what I could try.
Sounds like your out of tree SGX patches also tinker with the BB2D module.
To me it sounds like you can just tag the new target-module@59000000 added by this patch with status = "disabled" in your SGX patch until you have updated the driver code.
I'm adding this patch into omap-for-v5.17/dt as for 2D acceleration there is the etnaviv driver in the mainline kernel that should be usable to some extent.
Regards,
Tony
Re: [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module
Quoted 5 lines · Tony Lindgren
Sounds like your out of tree SGX patches also tinker with the BB2D module.
To me it sounds like you can just tag the new target-module@59000000 added by this patch with status = "disabled" in your SGX patch until you have updated the driver code.
The above still applies..
Quoted 3 lines
I'm adding this patch into omap-for-v5.17/dt as for 2D acceleration there is the etnaviv driver in the mainline kernel that should be usable to some extent.
..but looks like we already merged this patch earlier so no need to reapply :) Sorry I still had the patch tagged in my inbox.
Regards,
Tony