Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5906AEB64DD for ; Sun, 25 Jun 2023 13:21:55 +0000 (UTC) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by mx.groups.io with SMTP id smtpd.web11.11166.1687699305800725254 for ; Sun, 25 Jun 2023 06:21:46 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@fastmail.fm header.s=fm2 header.b=pQMpojro; spf=pass (domain: fastmail.fm, ip: 66.111.4.28, mailfrom: manwag@fastmail.fm) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 01A425C009C; Sun, 25 Jun 2023 09:21:43 -0400 (EDT) Received: from imap43 ([10.202.2.93]) by compute5.internal (MEProxy); Sun, 25 Jun 2023 09:21:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1687699302; x=1687785702; bh=cR fdsSaDpnFDg7l6BXYtuaWByvU9e7Iln9bBzc1hW28=; b=pQMpojrovfes9Sqwr8 pf/EU2fDQRZQVaK/ZmtHMFxbfdbsFK9E9MVIM0e3T+5B6IavO+PjbivbBksuyP6x bfAnXJocAXU/zqd2MJOKQcdwbzxDSmHk9QLEHwNzPFj8oKtTGQW/dEI8MECFIChA irpAZ/PFm58lg80wcC4OzgIMCRN31xoWInmcpKeIiuMFSuoDO02GGVdJ9sCXdupY rP4jCtlpag2fahoMU28dVPu3YkhoEfzdOb2/4JoHEdRAk0N81oT6SiLtiUcnMDH3 YeLA7gHwz/TNeBXEB6utdceZ6TArfHpAoiHH+CTWMG30ftaH8lEFL2QYvcTFuLz9 /mmQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1687699302; x=1687785702; bh=cRfdsSaDpnFDg 7l6BXYtuaWByvU9e7Iln9bBzc1hW28=; b=MasWuvRfzO7k5C6ez8+2MKZ/yPokM qUVbSmnRlg9GQBShzHJkAYcP5Xd313errjxWAQzTaLehgYwo2fD5KOsUI+XkJ3gL W0HFkFps2wTn47dwDteqN38hVL2J8UnqV0Z2inS0AqGbHVF87Oy5LYnjtQn4T8CJ S5uvk8uriWhjygaHz7Ef4KgQLbgTtnFe1iR/UF+zpKPKUB+AfDNwa7+qxHJIfzzV ezWgYDFe/SU2tCcgF5iE7pLMsqIvMuzMKDFsVUkH8pL5jYrvmAul2vYxBLrky0Sc Wvn47Y4vZhqhyynEEnBLRpxhMc1YYoP0vEoDLvz7QyD/KDHTss2BIdjnA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgeehtddgieduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvvefutgesrg dtreerreertdenucfhrhhomhepfdforghnuhgvlhcuhggrghgvshhrvghithhhvghrfdcu oeforghnhggrgheshfgrshhtofgrihhlrdfhofeqnecuggftrfgrthhtvghrnhepveelhf evueduveeuhfegkeekveeujeelgfegteelkefgkeejveevgfejiefftedvnecuffhomhgr ihhnpehrrghsphgsvghrrhihphhirdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepofgrnhghrghgsefhrghsthforghilhdrhffo X-ME-Proxy: Feedback-ID: icb4a41f2:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id A3D4E2D400A4; Sun, 25 Jun 2023 09:21:42 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-499-gf27bbf33e2-fm-20230619.001-gf27bbf33 Mime-Version: 1.0 Message-Id: <2782515b-bfe6-4507-b6cc-9b5050e64bc8@app.fastmail.com> In-Reply-To: References: <4ea51f16-6c49-47c8-8750-1db4a4b3733c@app.fastmail.com> Date: Sun, 25 Jun 2023 15:21:21 +0200 From: "Manuel Wagesreither" To: "Markus Volk" Cc: yocto@lists.yoctoproject.org Subject: Re: [yocto] [meta-raspberrypi] vc4-fkms-v3d vs. vc4-kms-v3d Content-Type: multipart/alternative; boundary=2fea0b02ba79498884e76ea4a7db2e92 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sun, 25 Jun 2023 13:21:55 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/60433 --2fea0b02ba79498884e76ea4a7db2e92 Content-Type: text/plain dtoverlay=vc4-kms-dsi-7inch does indeed improve things for the better. Both console output and wayland-weston now work. I had to specify it together with dtoverlay=vc4-kms-v3d-pi4, which confirm the observations you posted in some previous mail. Caveats: * wayland-weston does no longer deactivate the backlight when locking the screen. * The following messages are posted into the kernel log at irregular intervals: (10 seconds to 5 minutes) [ 1268.647667] edt_ft5x06 10-0038: Unable to fetch data, error: -121 [ 1269.694193] i2c-bcm2835 fe205000.i2c: i2c transfer timed out [ 1269.700866] edt_ft5x06 10-0038: Unable to fetch data, error: -110 [ 1269.708008] edt_ft5x06 10-0038: Unable to fetch data, error: -5 I was completely unaware of the vc4-kms-dsi-7inch configuration option -- neither [1] nor [2] mention it. [1] https://www.raspberrypi.com/documentation/computers/config_txt.html [2] https://www.raspberrypi.com/documentation/accessories/display.html --------- Adding dtoverlay=rpi-ft5406 decreased the interval of the following messages down to one second(!): [ 620.227151] i2c-bcm2835 fe205000.i2c: i2c transfer timed out [ 620.234335] edt_ft5x06 10-0038: Unable to fetch data, error: -110 ---------- Adding hdmi_force_hotplug=1 didn't have any effects I observed. ---------- Also I observed the following *sporadic* phenomenons. Sporadic meaning, that they were gone after rebooting with unchanged configuration: * One time, I couldn't observe any of the kernel messages above. * One time, the visual output of the screen was mirrored on the vertical axis. (Right is left and vice versa.) Touch screen input was not affected. (I know there are rpi-ft5406 options to explicitly define screen mirroring which might help me with this issue.) * One time, when wayland-weston was deactivating the screen, the screen remained bright white instead as-black-as-it-can-get-with-backlight-on. I'm wondering if these observations can be explained by unstable communication. Maybe I should re-attach the DSI cable. On the other hand, fkms works absolutely rocksolid -- No issues whatsover. In which ways do the display and the kernel communicate with each other. Is backlight controlled through DSI, or are there seperate communication channels (I2C, SPI) for that? What about touch events? Am eager to learn more. I guess I'll just keep using fkms for now until I had a chance to upgrade to the newest kernel. Let's see if this issues are present there as well. All the observations above are with respect to Linux 5.15.34. Thanks everyone in this thread for your support! Am So, 25. Jun 2023, um 02:47, schrieb Markus Volk: > On Sun, Jun 25 2023 at 12:01:29 AM +0200, Manuel Wagesreither wrote: >> The HDMI port is unused on my raspi. I'm using the official Raspberry Pi 7" Touchscreen connected via DSI. > > Have you also added ? > > dtoverlay=vc4-kms-dsi-7inch > dtoverlay=rpi-ft5406 > > I never dealt with the 7'' Display but i guess they are needed for kms > > hdmi_force_hotplug=1 > > may also be needed --2fea0b02ba79498884e76ea4a7db2e92 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
dtoverlay=3Dvc4-kms-dsi= -7inch does indeed improve things for the better. Both console output an= d wayland-weston now work.
I had to s= pecify it together with dtoverlay=3Dvc4-kms-v3d-pi4, which confirm the o= bservations you posted in some previous mail.

Cave= ats:
* wayland-weston does no longer deactivat= e the backlight when locking the screen.
<= div>* Th= e following messages are posted into the kernel log at irregular interva= ls: (10 seconds to 5 minutes)

[ 1268.647667] edt_ft5x06 10-0038: Unable to fetch data, error: = -121
[ 1269.694193] i2c-bcm2835 fe205000.i2c: i2c transfer= timed out
[ 1269.700866] edt_ft5x06 10-0038: Unable to fe= tch data, error: -110
[ 1269.708008] edt_ft5x06 10-0038: U= nable to fetch data, error: -5

<= span class=3D"size" style=3D"font-size:13.585px;">I was completely unawa= re of the vc4-kms-dsi-7inch configuration option -- neither [1] nor= [2] mention it.

<= span class=3D"font" style=3D"font-family:Roboto, Arial, Helvetica, sans-= serif;">[1] https://www.raspberrypi.com/documentation/computers/= config_txt.html

 ---------

Adding dtoverlay= =3Drpi-ft5406 decreased the interval of the following messages down to o= ne second(!):

[  620.227151] i2c-bcm28= 35 fe205000.i2c: i2c transfer timed out
[  620.234335= ] edt_ft5x06 10-0038: Unable to fetch data, error: -110
----------

Adding hdmi_fo= rce_hotplug=3D1 didn't have any effects I observed.

----------

Also I observed the fol= lowing *sporadic* phenomenons. Sporadic meaning, that they were gone aft= er rebooting with unchanged configuration:
* One time, I c= ouldn't observe any of the kernel messages above.
* One ti= me, the visual output of the screen was mirrored on the vertical axis. (= Right is left and vice versa.) Touch screen input was not affected. (I k= now there are rpi-ft5406 options to explicitly define screen mirroring w= hich might help me with this issue.)
* One time, when wayl= and-weston was deactivating the screen, the screen remained bright white= instead as-black-as-it-can-get-with-backlight-on.

I'm wondering if these observations can be explained by unstable= communication. Maybe I should re-attach the DSI cable. On the other han= d, fkms works absolutely rocksolid -- No issues whatsover.

In which ways do the display and the kernel communicate = with each other. Is backlight controlled through DSI, or are there seper= ate communication channels (I2C, SPI) for that? What about touch events?= Am eager to learn more.

I guess I'll just = keep using fkms for now until I had a chance to upgrade to the newest ke= rnel. Let's see if this issues are present there as well. All the o= bservations above are with respect to Linux 5.15.34.

Thanks everyone in this thread for your support!

Am So, 25. Jun 2023, um 02:47, schrieb Markus= Volk:
On Sun, Jun 25 2023 at 12:01:29 AM +02= 00, Manuel Wagesreither <ManWag@FastMail.FM> wrote:
The HDMI port is unused on my raspi. I'm using the = official Raspberry Pi 7" Touchscreen connected via DSI.
=

Have you also added ?

<= span style=3D"color:rgb(85, 85, 85);font-variant-ligatures:normal;orphan= s:2;widows:2;background-color:rgba(0, 0, 0, 0.024);text-decoration-thick= ness:initial;text-decoration-style:initial;text-decoration-color:initial= ;">dtoverlay= =3Dvc4-kms-dsi-7inch
dtoverlay=3Drpi-ft5406=

I never dealt with the 7'' Display but i guess they are needed fo= r kms

= hdmi_force_hotplug=3D1

may also be needed=

--2fea0b02ba79498884e76ea4a7db2e92--