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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 304B6C433F5 for ; Thu, 30 Dec 2021 17:17:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4B64710E236; Thu, 30 Dec 2021 17:17:04 +0000 (UTC) Received: from sonic312-21.consmr.mail.bf2.yahoo.com (sonic312-21.consmr.mail.bf2.yahoo.com [74.6.128.83]) by gabe.freedesktop.org (Postfix) with ESMTPS id 359E010FC6B for ; Mon, 27 Dec 2021 21:25:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1640640310; bh=AZu+3oBhyQ6RQbpVZa5JMSwjQ4rExhRVBCKzphK+jHk=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=HUgQyv9zrJ/B/M1xiHACh/dmqaxwkkFNdlPvZChqQBH6iEMmajHJnqpMysl5+9qkQDFZlWTwZ1iwZZVBiMPWJfUJKRmeTdinKd+KukTF1745uaMRAXfByziHK+0OII8+9N8XjODKyiIg9RFxMZnUHKgjBhkTqYlXU3ugjbCUEvwK2JzMOBSd+a+9Y7Cl6pQ78GRJWN07/oyYZVJQ+aCz+TLRAMN6GklbkjfcmBlOD15l1TZfZuXBr5jeV4/O0hnPnuBHBYEO1sOorlsf2z1m4n2vjtyFd3b9EJ/EnlWGIHKm8U4XZznUbCe3HCSM8UdNtqvohsczHydJFUkIUtnJ+g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1640640310; bh=n4YhZsrhoJFr002FFtUtoi6hP2WCyhvjDX2rU7NxeRP=;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2BYD2N4ThC64N1YuTHcpOmJQMx9nZd_xqjlPxx.P7ULiS5T9ACnkf75OLRdEZwx9NzV xsFEfzCpW64p.CGuCIYErlw3GqlzG2ITfYe2Lwvjd6XBwFVxJMJi2LBsxMnEDzqosQO0tRA1z23D AZNYOst9UNu._hKMSHhAAxKMZzuJyilW3O4VQh7Wit3KAK3uZSTfv9HaAcnVmxKMoKT7rOXXd3Be voNfCahcmUlxvcVHrliUcB_eu3IKKp8VaBH1AV0TD0IRdDyMZtR5uyQ50BF5lC5lCyuRAUix3yUE 4zYTUdfo.0QIdTWwv3W_P9utPiG1STW8VPjDTYHPEI7TzjXPelYDurJ3AznGjzwTTwHBgu3t2XjV xptnJImEGDFheLFtexEQxRR602L3v268eDpFws9IAd_A_S0NRTLzFlNtG4OYL1yf_61oARidoBPR 6M7q0YloOHjaxJ7R7YDG47jFR X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.bf2.yahoo.com with HTTP; Mon, 27 Dec 2021 21:25:10 +0000 Date: Mon, 27 Dec 2021 21:24:42 +0000 (UTC) From: Charles Stevens To: "dri-devel@lists.freedesktop.org" Message-ID: <1447972770.1013185.1640640282374@mail.yahoo.com> Subject: Renesas rcar-du and DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1013184_1748114199.1640640282373" References: <1447972770.1013185.1640640282374.ref@mail.yahoo.com> X-Mailer: WebService/1.1.19498 YMailNorrin X-Mailman-Approved-At: Thu, 30 Dec 2021 17:17:01 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" ------=_Part_1013184_1748114199.1640640282373 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi All,=C2=A0 =C2=A0 =C2=A0I am working on a platform based on the Renesas = RZ/G2 SoC family. This chip uses the rcar-du driver for the display. I woul= d like to submit a patch to address the fact that the driver does not check= /honor the flag=C2=A0DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE. My issue is that I= would like to make as small a change to the driver as possible, but the pa= nel bus_flags don't seem to even make it to the crtc driver. The crtc drive= r seems to use adjusted_mode to set the HSYNC and VSYNC polarity and as I s= aid ignores the pixel clock polarity leaving it at the default of driving o= n the falling edge. In my investigations so far I have not figured out how = to chase the pointers from the CRTC to the bridge to the panel in order to = be able to look at bus_flags. My current approach also modifies the encoder= initialization to cache the needed panel and then find the attached encode= r during CRTC initialization to find the bus flags. This seems like a lot o= f work and not something that would be accepted as a patch. The OMAP DSS se= ems to have problems accessing this flag as well. The TI driver goes so far= as to document the current approach as a HACK and suggest a fairly large c= hange to the driver to address the problem. Am I missing something? Is ther= e an easy way to get from a drm_crtc to a drm_panel that is in the same pip= eline?=C2=A0 =C2=A0 =C2=A0 Any pointers would be greatly appreciated! Thanks! -charles ------=_Part_1013184_1748114199.1640640282373 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi All,
     I am working on a platform based on the Renesas= RZ/G2 SoC family. This chip uses the rcar-du driver for the display. I wou= ld like to submit a patch to address the fact that the driver does not chec= k/honor the flag DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE<= /b>. My issue is that I would like to make as small a change to the dri= ver as possible, but the panel bus_flags don't seem to even make it to the = crtc driver. The crtc driver seems to use adjusted_mode to set the HSYNC an= d VSYNC polarity and as I said ignores the pixel clock polarity leaving it = at the default of driving on the falling edge. In my investigations so far = I have not figured out how to chase the pointers from the CRTC to the bridg= e to the panel in order to be able to look at bus_flags. My current approac= h also modifies the encoder initialization to cache the needed panel and th= en find the attached encoder during CRTC initialization to find the bus fla= gs. This seems like a lot of work and not something that would be accepted = as a patch. The OMAP DSS seems to have problems accessing this flag as well= . The TI driver goes so far as to document the current approach as a HACK a= nd suggest a fairly large change to the driver to address the problem. Am I= missing something? Is there an easy way to get from a drm_crtc to a drm_pa= nel that is in the same pipeline? 

    A= ny pointers would be greatly appreciated!

Thanks!

-charles
------=_Part_1013184_1748114199.1640640282373--