* [PATCH v2 0/1] ARM: dts: dra7: enable BB2D module @ 2021-09-21 7:18 Neil Armstrong 2021-09-21 7:18 ` [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module Neil Armstrong 0 siblings, 1 reply; 8+ messages in thread From: Neil Armstrong @ 2021-09-21 7:18 UTC (permalink / raw) To: tony; +Cc: linux-omap, devicetree, linux-kernel, Neil Armstrong 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/20161118024436.13447-1-robertcnelson@gmail.com/ [2] https://lore.kernel.org/linux-arm-kernel/20161118024436.13447-1-robertcnelson@gmail.com/ [3] https://lore.kernel.org/r/20210920125306.12347-1-narmstrong@baylibre.com 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module 2021-09-21 7:18 [PATCH v2 0/1] ARM: dts: dra7: enable BB2D module Neil Armstrong @ 2021-09-21 7:18 ` Neil Armstrong 2021-10-06 7:47 ` Tony Lindgren 0 siblings, 1 reply; 8+ messages in thread From: Neil Armstrong @ 2021-09-21 7:18 UTC (permalink / raw) To: tony Cc: linux-omap, devicetree, linux-kernel, Gowtham Tammana, Jyri Sarha, Neil Armstrong From: Gowtham Tammana <g-tammana@ti.com> 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 <g-tammana@ti.com> Signed-off-by: Jyri Sarha <jsarha@ti.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> --- 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 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module 2021-09-21 7:18 ` [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module Neil Armstrong @ 2021-10-06 7:47 ` Tony Lindgren 2021-11-23 12:17 ` Yongqin Liu 0 siblings, 1 reply; 8+ messages in thread From: Tony Lindgren @ 2021-10-06 7:47 UTC (permalink / raw) To: Neil Armstrong Cc: linux-omap, devicetree, linux-kernel, Gowtham Tammana, Jyri Sarha * Neil Armstrong <narmstrong@baylibre.com> [210921 10:18]: > From: Gowtham Tammana <g-tammana@ti.com> > > 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module 2021-10-06 7:47 ` Tony Lindgren @ 2021-11-23 12:17 ` Yongqin Liu 2021-11-23 12:47 ` Neil Armstrong 0 siblings, 1 reply; 8+ messages in thread From: Yongqin Liu @ 2021-11-23 12:17 UTC (permalink / raw) To: Tony Lindgren Cc: Neil Armstrong, linux-omap, devicetree, linux-kernel, Gowtham Tammana, Jyri Sarha 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 <tony@atomide.com> wrote: > > * Neil Armstrong <narmstrong@baylibre.com> [210921 10:18]: > > From: Gowtham Tammana <g-tammana@ti.com> > > > > 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 linaro-android@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-android ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module 2021-11-23 12:17 ` Yongqin Liu @ 2021-11-23 12:47 ` Neil Armstrong 2021-11-23 17:26 ` Yongqin Liu 0 siblings, 1 reply; 8+ messages in thread From: Neil Armstrong @ 2021-11-23 12:47 UTC (permalink / raw) To: Yongqin Liu, Tony Lindgren Cc: linux-omap, devicetree, linux-kernel, Gowtham Tammana, Jyri Sarha 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 <tony@atomide.com> wrote: >> >> * Neil Armstrong <narmstrong@baylibre.com> [210921 10:18]: >>> From: Gowtham Tammana <g-tammana@ti.com> >>> >>> 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 > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module 2021-11-23 12:47 ` Neil Armstrong @ 2021-11-23 17:26 ` Yongqin Liu 2021-12-09 7:08 ` Tony Lindgren 0 siblings, 1 reply; 8+ messages in thread From: Yongqin Liu @ 2021-11-23 17:26 UTC (permalink / raw) To: Neil Armstrong Cc: Tony Lindgren, linux-omap, devicetree, linux-kernel, Gowtham Tammana, Jyri Sarha Hi, Neil On Tue, 23 Nov 2021 at 20:47, Neil Armstrong <narmstrong@baylibre.com> 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 <tony@atomide.com> wrote: > >> > >> * Neil Armstrong <narmstrong@baylibre.com> [210921 10:18]: > >>> From: Gowtham Tammana <g-tammana@ti.com> > >>> > >>> 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 linaro-android@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-android ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module 2021-11-23 17:26 ` Yongqin Liu @ 2021-12-09 7:08 ` Tony Lindgren 2021-12-09 8:05 ` Tony Lindgren 0 siblings, 1 reply; 8+ messages in thread From: Tony Lindgren @ 2021-12-09 7:08 UTC (permalink / raw) To: Yongqin Liu Cc: Neil Armstrong, linux-omap, devicetree, linux-kernel, Gowtham Tammana, Jyri Sarha * Yongqin Liu <yongqin.liu@linaro.org> [211123 17:27]: > Hi, Neil > > On Tue, 23 Nov 2021 at 20:47, Neil Armstrong <narmstrong@baylibre.com> 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module 2021-12-09 7:08 ` Tony Lindgren @ 2021-12-09 8:05 ` Tony Lindgren 0 siblings, 0 replies; 8+ messages in thread From: Tony Lindgren @ 2021-12-09 8:05 UTC (permalink / raw) To: Yongqin Liu Cc: Neil Armstrong, linux-omap, devicetree, linux-kernel, Gowtham Tammana, Jyri Sarha * Tony Lindgren <tony@atomide.com> [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 ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-12-09 8:05 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2021-09-21 7:18 [PATCH v2 0/1] ARM: dts: dra7: enable BB2D module Neil Armstrong 2021-09-21 7:18 ` [PATCH v2 1/1] ARM: dts: dra7: add entry for bb2d module Neil Armstrong 2021-10-06 7:47 ` Tony Lindgren 2021-11-23 12:17 ` Yongqin Liu 2021-11-23 12:47 ` Neil Armstrong 2021-11-23 17:26 ` Yongqin Liu 2021-12-09 7:08 ` Tony Lindgren 2021-12-09 8:05 ` Tony Lindgren
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).