2021-09-21 07:20:32

by Neil Armstrong

[permalink] [raw]
Subject: [PATCH v2 0/1] 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(+)

--
2.25.1


2021-09-21 07:20:38

by Neil Armstrong

[permalink] [raw]
Subject: [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.

Signed-off-by: Gowtham Tammana <[email protected]>
Signed-off-by: Jyri Sarha <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
---
arch/arm/boot/dts/dra7.dtsi | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)

diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
index dfc1ef8ef6ae..6b485cbed8d5 100644
--- a/arch/arm/boot/dts/dra7.dtsi
+++ b/arch/arm/boot/dts/dra7.dtsi
@@ -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>,
--
2.25.1

2021-10-06 07:48:45

by Tony Lindgren

[permalink] [raw]
Subject: Re: [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module

* Neil Armstrong <[email protected]> [210921 10:18]:
> 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

2021-11-23 12:17:26

by Yongqin Liu

[permalink] [raw]
Subject: 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?

On Wed, 6 Oct 2021 at 15:47, Tony Lindgren <[email protected]> wrote:
>
> * Neil Armstrong <[email protected]> [210921 10:18]:
> > 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

--
Best Regards,
Yongqin Liu
---------------------------------------------------------------
#mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/linaro-android

2021-11-23 12:47:53

by Neil Armstrong

[permalink] [raw]
Subject: Re: [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module

Hi,

On 23/11/2021 13:17, Yongqin Liu wrote:
> 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?

This BB2D patch alters the target-module@59000000 while your SGX
change alters the target-module@56000000.

Please rebase your patches.

Neil

>
> On Wed, 6 Oct 2021 at 15:47, Tony Lindgren <[email protected]> wrote:
>>
>> * Neil Armstrong <[email protected]> [210921 10:18]:
>>> 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
>


2021-11-23 17:26:38

by Yongqin Liu

[permalink] [raw]
Subject: Re: [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module

Hi, Neil

On Tue, 23 Nov 2021 at 20:47, Neil Armstrong <[email protected]> wrote:
>
> Hi,
>
> On 23/11/2021 13:17, Yongqin Liu wrote:
> > 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?
>
> 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
>
> >
> > On Wed, 6 Oct 2021 at 15:47, Tony Lindgren <[email protected]> wrote:
> >>
> >> * Neil Armstrong <[email protected]> [210921 10:18]:
> >>> 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
> >
>


--
Best Regards,
Yongqin Liu
---------------------------------------------------------------
#mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/linaro-android

2021-12-09 07:08:14

by Tony Lindgren

[permalink] [raw]
Subject: Re: [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module

* Yongqin Liu <[email protected]> [211123 17:27]:
> Hi, Neil
>
> On Tue, 23 Nov 2021 at 20:47, Neil Armstrong <[email protected]> wrote:
> >
> > Hi,
> >
> > On 23/11/2021 13:17, Yongqin Liu wrote:
> > > 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?
> >
> > 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.

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



2021-12-09 08:05:18

by Tony Lindgren

[permalink] [raw]
Subject: Re: [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module

* Tony Lindgren <[email protected]> [211209 07:08]:
> 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..

> 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