All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
To: Sergey Suloev <ssuloev@orpaltech.com>,
	 linux-rpi-kernel@lists.infradead.org,
	Stefan Wahren <wahrenst@gmx.net>
Cc: "Noralf Trønnes" <noralf@tronnes.org>,
	bcm-kernel-feedback-list@broadcom.com,
	linux-arm-kernel <linux-arm-kernel@lists.infradead.org>
Subject: Re: vc4 on rpi3 A+
Date: Fri, 28 Feb 2020 14:09:59 +0100	[thread overview]
Message-ID: <b71f1af17d68ee66a2781a694e8a77dcafedd76b.camel@suse.de> (raw)
In-Reply-To: <8b353626-f62a-2aff-96b4-91712ed36095@orpaltech.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 827 bytes --]

Hi Sergey,

On Thu, 2020-02-20 at 11:21 +0300, Sergey Suloev wrote:
> Hello, guys,
> 
> could anyone clarify the status of vc4 drm support on RPI 3A+ ?
> 
> I tried to build kernel 5.5 and 5.6-rc2 in 32bit and aarch64 
> configurations with VC4 turned ON but both unsuccessful - vc4 drm driver 
> is listed in memory but not working and not producing any typical DRM 
> log output.

I managed to get my hands on a rpi3a+ and reproduce the issue. 'dmesg -lerr'
outputs this:

	bcm2835-power: Timeout waiting for grafx power OK

This is a known issue, see https://github.com/raspberrypi/linux/issues/3046.
I attached a device-tree patch in case you want to verify it fixes the issue on
your board.

@Stefan I guess I'm going to have to revert the pm patch, any comments before I
do?

Regards,
Nicolas


[-- Attachment #1.1.2: 0001-HACK-ARM-dts-Use-v3d-s-firmware-based-power-domain-o.patch --]
[-- Type: text/x-patch, Size: 1308 bytes --]

From e6d1aaab89af656fbb69845ce8ea8753059894a3 Mon Sep 17 00:00:00 2001
From: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Date: Fri, 28 Feb 2020 14:03:22 +0100
Subject: [PATCH] HACK: ARM: dts: Use v3d's firmware based power domain on
 rpi3a+

temp fix...

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
---
 arch/arm/boot/dts/bcm2835-common.dtsi      | 1 -
 arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts | 4 ++++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/bcm2835-common.dtsi b/arch/arm/boot/dts/bcm2835-common.dtsi
index 2b1d9d4c0cde..4119271c979d 100644
--- a/arch/arm/boot/dts/bcm2835-common.dtsi
+++ b/arch/arm/boot/dts/bcm2835-common.dtsi
@@ -130,7 +130,6 @@ v3d: v3d@7ec00000 {
 			compatible = "brcm,bcm2835-v3d";
 			reg = <0x7ec00000 0x1000>;
 			interrupts = <1 10>;
-			power-domains = <&pm BCM2835_POWER_DOMAIN_GRAFX_V3D>;
 		};
 
 		vc4: gpu {
diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts b/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
index 66ab35eccba7..7fddede92b68 100644
--- a/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
+++ b/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
@@ -176,3 +176,7 @@ &uart1 {
 	pinctrl-0 = <&uart1_gpio14>;
 	status = "okay";
 };
+
+&v3d {
+	power-domains = <&power RPI_POWER_DOMAIN_V3D>;
+};
-- 
2.25.1


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2020-02-28 13:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-20  8:21 vc4 on rpi3 A+ Sergey Suloev
2020-02-20  9:25 ` Nicolas Saenz Julienne
2020-02-20  9:39   ` Sergey Suloev
2020-02-24 15:02     ` Nicolas Saenz Julienne
2020-02-20  9:52   ` Sergey Suloev
2020-02-28 13:09 ` Nicolas Saenz Julienne [this message]
2020-02-28 16:22   ` Stefan Wahren
2020-02-29 12:07   ` Stefan Wahren
2020-02-29 15:23   ` Sergey Suloev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b71f1af17d68ee66a2781a694e8a77dcafedd76b.camel@suse.de \
    --to=nsaenzjulienne@suse.de \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-rpi-kernel@lists.infradead.org \
    --cc=noralf@tronnes.org \
    --cc=ssuloev@orpaltech.com \
    --cc=wahrenst@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.