| Message ID | 20220303163654.3381470-1-jagan@amarulasolutions.com |
|---|---|
| Headers |
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBQW5QOIQMGQEDMUTGKY@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2AA573F236 for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 3 Mar 2022 17:37:24 +0100 (CET) Received: by mail-pl1-f197.google.com with SMTP id i7-20020a170902cf0700b0015163eb319esf3172727plg.18 for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 03 Mar 2022 08:37:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646325443; cv=pass; d=google.com; s=arc-20160816; b=JnmLWRTzNTcIyuxvas3mCXogExWOTNZvqFev+RfB+Y0/LUaHbHI28lYVda6OpXgTUq Y/3FZn753h11jdP9R8Cp/LxnrpxwoU+XzHn4qGLa37aiz9p6NF+WLtiWqooXd3U1NPl5 nEf/84DKiGUm0JaNV3Yr0JHZOXtFA7IaxBP1utfkbhiknHpKdwh1mgNSXBzaWqFUOMjD NCXh1mAz1IJ0vKxqNECMr1qoVrYi747LFUaU86TKPRr1CrKxgRu/C4tJS+u4AIMLF2HY 3oMuBNk0iqh32sgaieJan1doRuN8xLuCrP6Wx+YQwS+F2/fG1bR+X8isVRDiDDnAWWeN +Gjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=kjo+EYTi5y7NFWEfTXNvcYHsMQOGXx9QGFENsWHYgu8=; b=QA/xcd23sp3gLM+R2eQKwD0jgWN9raXda2sGyQ+zT2fHPujZxB0Bduwo9mHEpAjEgp 8/4nKxyBmIcVXPYiIozP8ojE8ZLnvDAwiS/pwCelBJvDKSBMJZEVlZfofAfCXxi5Co6Z dEdGyjhd7jM4KjLwb8Hfwnhse7UYWaTL6ipM5G5Kk4BtrkKfr/zV15lV/LVyJvsOgVQM j+AQT69x6VBEZWZ8ak+RwjrDjaXfoK3iEeLx5dvNTeCeLLJfV/l68NwI0Gmnk379HApP QkvmD5QK/G0ojQFz5bAXrqmxv+oP8tVirJESvIZwKhDrObJD5tR1zeAtWjg+Es5AhSCr Oi9g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="Bd/bj/gz"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=kjo+EYTi5y7NFWEfTXNvcYHsMQOGXx9QGFENsWHYgu8=; b=eDEIf5W2fu6Qt2jTcHaLd5+24oGxHp+l6LMexkVoZrXPBj65NXTe1idHJ501TptH3V 7ZguH4cbTBMMw1kG6/MeET3sykjawbolAWhrFCvGCJTZQd9fhNzrZiFy4jXaQj/VqC5y bYN6NjfYcmFvPx5ca9uubUcT2P8UUwfMSrugU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=kjo+EYTi5y7NFWEfTXNvcYHsMQOGXx9QGFENsWHYgu8=; b=LNysZnoo+MpcIGF1jCE2oiibikx+/F11+fLofHyPpbaZ8FMyc5umG3+UXujHhjBe9S 0sRGchBoz49Emv6rPq1UOAeN/b/0shoeKA+aAHPttFlQL+lG3qSIy7mj+aW6JxPS03wo oONU82H9WWN1uMaow5hVnmrdo4i6RP3oIrFhUZozsd52jYxVSB+ivF8q7sjwGvvtxulg HSXhdSOjcWYrxHrJc2tudIJqGenx3DD61VkOF3lq36tEfZhNbA9WHVnmBKLGWasmnq7B OIgbQXigr1mmbyLBduJ6HByuy4dRAtqet9lMwpX11wwbi+IgOjHISSqOKTxcHBZxbEwI zBUA== X-Gm-Message-State: AOAM531bsZHJEOvgf9bIxHglheqVDBOs4exkDQqpOQzAV1iDcQPCvoHU DcaibT+e4XgJRj17zhnUly/tpHao X-Google-Smtp-Source: ABdhPJzO/oavNVB/LGCLfgr/9yUZnKnqhvHaMioSPIQU0q0n9rTxZLlTc9elnMbA7fzBkAzrBGl01g== X-Received: by 2002:a17:902:ce83:b0:151:9700:cc2c with SMTP id f3-20020a170902ce8300b001519700cc2cmr9080796plg.72.1646325442757; Thu, 03 Mar 2022 08:37:22 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:c410:b0:150:180:5adc with SMTP id k16-20020a170902c41000b0015001805adcls2487557plk.10.gmail; Thu, 03 Mar 2022 08:37:22 -0800 (PST) X-Received: by 2002:a17:90a:7883:b0:1bd:2372:c990 with SMTP id x3-20020a17090a788300b001bd2372c990mr6093635pjk.55.1646325441902; Thu, 03 Mar 2022 08:37:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646325441; cv=none; d=google.com; s=arc-20160816; b=uinNvPkcnemh+1yJMjMSM+tcZLHkz5eHMla3w9wDHISFJNsqbnqYIEJDd19Arat90X NcgI6RwWypE3nWxvhgfIKdQDn12r3Y4xeRiycJY/axfKox3lc+OG8QIyUCDDYMRHWCrB 7zBWv8AzUCqXgPWHBBPSAXiM1DL36d6yS57jeCTPa72IzQyRONh1oUlZ16PDVDX3NzW1 wETraHz9/KUQFkeY5qlvEV8n2ce+/JTvb2EOl/mSKnN6+Xp80c6aETi18WIrz6DxPeQ6 ZoW0/COU0t1smYSXg7aiTGqxHaJDd3bjl30laCuOX92vrAaHd0nlo5EO9sPJ43+kIHR9 iQhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=pGR8lNdCSMp4bDiwIxgvTVOw5WSRkRGsDizit+YBhFY=; b=SwXdo8aHXW/bd38IWK7u/+tZJXjXDYFduytmGom2XzFQLYIajg0Q2LqENA7QDIdkFn Pa/PfGF/UZ8gbbGaVMXIJ5R/RtWgzEbuPcc54Mjqyrylj+gk8aXW6nAx6jhdrZXOyxcm xc0NWfSOeUh02rOQ5UldPcdRTXxSV5z2SF8xUKTM4qP5x526SjyP7JW6OemAr3U9A5HO SlNWm6ffw0wGD5bHnv+fWWXQAr7+aqh1wFdk4fTIWZyqycseym2t/0Q4ojjFEwPOR6pa Spar3cH3LEUdUEItN5hYEP2zh4aOM1sgyO0V9AOx7V/IjYBCGZ+Zzh4WSf+RImVYKHzs me6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="Bd/bj/gz"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id p31-20020a056a0026df00b004f3bc62a681sor10598758pfw.48.2022.03.03.08.37.21 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Thu, 03 Mar 2022 08:37:21 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6a00:a8f:b0:4e1:2619:11a2 with SMTP id b15-20020a056a000a8f00b004e1261911a2mr38854775pfl.53.1646325441472; Thu, 03 Mar 2022 08:37:21 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:4526:5253:a010:63f4]) by smtp.gmail.com with ESMTPSA id j20-20020a056a00235400b004e192221ec2sm3220983pfj.14.2022.03.03.08.37.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 08:37:20 -0800 (PST) From: Jagan Teki <jagan@amarulasolutions.com> To: Marek Szyprowski <m.szyprowski@samsung.com>, Andrzej Hajda <andrzej.hajda@intel.com>, Neil Armstrong <narmstrong@baylibre.com>, Robert Foss <robert.foss@linaro.org>, Laurent Pinchart <Laurent.pinchart@ideasonboard.com>, Sam Ravnborg <sam@ravnborg.org>, Michael Nazzareno Trimarchi <michael@amarulasolutions.com>, Inki Dae <inki.dae@samsung.com> Cc: dri-devel@lists.freedesktop.org, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH v6 0/6] drm: exynos: dsi: Convert drm bridge Date: Thu, 3 Mar 2022 22:06:48 +0530 Message-Id: <20220303163654.3381470-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="Bd/bj/gz"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
| Series |
drm: exynos: dsi: Convert drm bridge
|
|
Message
Jagan Teki
March 3, 2022, 4:36 p.m. UTC
Updated series about drm bridge conversion of exynos dsi. Previous version can be accessible, here [1]. Patch 1: tc358764 panel_bridge API Patch 2: connector reset Patch 3: bridge attach in MIC Patch 4: panel_bridge API Patch 5: bridge conversion Patch 6: atomic functions [1] https://patchwork.amarulasolutions.com/cover/1839 Any inputs? Jagan. Jagan Teki (6): drm: bridge: tc358764: Use drm panel_bridge API drm: bridge: panel: Reset the connector state pointer exynos: drm: dsi: Attach in_bridge in MIC driver drm: exynos: dsi: Use drm panel_bridge API drm: exynos: dsi: Convert to bridge driver drm: exynos: dsi: Switch to atomic funcs drivers/gpu/drm/bridge/panel.c | 3 + drivers/gpu/drm/bridge/tc358764.c | 104 +--------- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 241 ++++++------------------ drivers/gpu/drm/exynos/exynos_drm_mic.c | 22 +++ 4 files changed, 93 insertions(+), 277 deletions(-)
Comments
Hi Jagan, Am 03.03.22 um 17:36 schrieb Jagan Teki: > Updated series about drm bridge conversion of exynos dsi. > > Previous version can be accessible, here [1]. > > Patch 1: tc358764 panel_bridge API > > Patch 2: connector reset > > Patch 3: bridge attach in MIC > > Patch 4: panel_bridge API > > Patch 5: bridge conversion > > Patch 6: atomic functions > > [1] https://patchwork.amarulasolutions.com/cover/1839 > > Any inputs? Thanks for your efforts. I didn't follow the whole history, but I'm looking forward and hope to see upstream support for the i.MX8MM DSIM in the not too distant future. Can you give me a short update about the state of this patchset? Are there still any major obstacles? I can't help with testing on Exynos, but if you have the matching follow-up patches for i.MX8MM support somewhere around I could do some tests with those on i.MX8MM. Thanks Frieder
Hi Frieder, On Wed, Mar 9, 2022 at 6:54 PM Frieder Schrempf <frieder.schrempf@kontron.de> wrote: > > Hi Jagan, > > Am 03.03.22 um 17:36 schrieb Jagan Teki: > > Updated series about drm bridge conversion of exynos dsi. > > > > Previous version can be accessible, here [1]. > > > > Patch 1: tc358764 panel_bridge API > > > > Patch 2: connector reset > > > > Patch 3: bridge attach in MIC > > > > Patch 4: panel_bridge API > > > > Patch 5: bridge conversion > > > > Patch 6: atomic functions > > > > [1] https://patchwork.amarulasolutions.com/cover/1839 > > > > Any inputs? > > Thanks for your efforts. I didn't follow the whole history, but I'm > looking forward and hope to see upstream support for the i.MX8MM DSIM in > the not too distant future. > > Can you give me a short update about the state of this patchset? Are > there still any major obstacles? > > I can't help with testing on Exynos, but if you have the matching > follow-up patches for i.MX8MM support somewhere around I could do some > tests with those on i.MX8MM. Unfortunately, it is getting slow due to existing exynos dsi drivers. Idea is to push exynos and then move the bridge as per Mailing-list discussion. I have initial series to support i.MX8MM on linux-next [1] which is working on my setup. However I'm waiting for this series to move further to send those on the mailing list. Indeed I'm solely relaying on Marek testing to move further as I too don't have Exynos hardware to validate. [1] https://github.com/openedev/kernel/tree/imx8mm-dsi Thanks, Jagan.
Hi Jagan, Am 09.03.22 um 15:01 schrieb Jagan Teki: > Hi Frieder, > > On Wed, Mar 9, 2022 at 6:54 PM Frieder Schrempf > <frieder.schrempf@kontron.de> wrote: >> >> Hi Jagan, >> >> Am 03.03.22 um 17:36 schrieb Jagan Teki: >>> Updated series about drm bridge conversion of exynos dsi. >>> >>> Previous version can be accessible, here [1]. >>> >>> Patch 1: tc358764 panel_bridge API >>> >>> Patch 2: connector reset >>> >>> Patch 3: bridge attach in MIC >>> >>> Patch 4: panel_bridge API >>> >>> Patch 5: bridge conversion >>> >>> Patch 6: atomic functions >>> >>> [1] https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.amarulasolutions.com%2Fcover%2F1839&data=04%7C01%7Cfrieder.schrempf%40kontron.de%7Cc99f637dd67444dfc38208da01d55963%7C8c9d3c973fd941c8a2b1646f3942daf1%7C0%7C0%7C637824313083236643%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=qF5bVwelZ35cQQygW3PvPUZkQlyFalUDsyDVjDnngiU%3D&reserved=0 >>> >>> Any inputs? >> >> Thanks for your efforts. I didn't follow the whole history, but I'm >> looking forward and hope to see upstream support for the i.MX8MM DSIM in >> the not too distant future. >> >> Can you give me a short update about the state of this patchset? Are >> there still any major obstacles? >> >> I can't help with testing on Exynos, but if you have the matching >> follow-up patches for i.MX8MM support somewhere around I could do some >> tests with those on i.MX8MM. > > Unfortunately, it is getting slow due to existing exynos dsi drivers. > Idea is to push exynos and then move the bridge as per Mailing-list > discussion. I have initial series to support i.MX8MM on linux-next [1] > which is working on my setup. However I'm waiting for this series to > move further to send those on the mailing list. Indeed I'm solely > relaying on Marek testing to move further as I too don't have Exynos > hardware to validate. Thanks for the status update. Let's hope Marek or others with access to the hardware can provide further testing. And thanks for providing the git tree for i.MX8MM. I will try to do some tests on our hardware. Thanks Frieder
Am 10.03.22 um 14:03 schrieb Frieder Schrempf: > Hi Jagan, > > Am 09.03.22 um 15:01 schrieb Jagan Teki: >> Hi Frieder, >> >> On Wed, Mar 9, 2022 at 6:54 PM Frieder Schrempf >> <frieder.schrempf@kontron.de> wrote: >>> >>> Hi Jagan, >>> >>> Am 03.03.22 um 17:36 schrieb Jagan Teki: >>>> Updated series about drm bridge conversion of exynos dsi. >>>> >>>> Previous version can be accessible, here [1]. >>>> >>>> Patch 1: tc358764 panel_bridge API >>>> >>>> Patch 2: connector reset >>>> >>>> Patch 3: bridge attach in MIC >>>> >>>> Patch 4: panel_bridge API >>>> >>>> Patch 5: bridge conversion >>>> >>>> Patch 6: atomic functions >>>> >>>> [1] https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.amarulasolutions.com%2Fcover%2F1839&data=04%7C01%7Cfrieder.schrempf%40kontron.de%7Cc99f637dd67444dfc38208da01d55963%7C8c9d3c973fd941c8a2b1646f3942daf1%7C0%7C0%7C637824313083236643%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=qF5bVwelZ35cQQygW3PvPUZkQlyFalUDsyDVjDnngiU%3D&reserved=0 >>>> >>>> Any inputs? >>> >>> Thanks for your efforts. I didn't follow the whole history, but I'm >>> looking forward and hope to see upstream support for the i.MX8MM DSIM in >>> the not too distant future. >>> >>> Can you give me a short update about the state of this patchset? Are >>> there still any major obstacles? >>> >>> I can't help with testing on Exynos, but if you have the matching >>> follow-up patches for i.MX8MM support somewhere around I could do some >>> tests with those on i.MX8MM. >> >> Unfortunately, it is getting slow due to existing exynos dsi drivers. >> Idea is to push exynos and then move the bridge as per Mailing-list >> discussion. I have initial series to support i.MX8MM on linux-next [1] >> which is working on my setup. However I'm waiting for this series to >> move further to send those on the mailing list. Indeed I'm solely >> relaying on Marek testing to move further as I too don't have Exynos >> hardware to validate. > > Thanks for the status update. Let's hope Marek or others with access to > the hardware can provide further testing. > > And thanks for providing the git tree for i.MX8MM. I will try to do some > tests on our hardware. Sorry, forgot to say that if you could cc me on future iterations of this patchset and the upcoming i.MX8MM patches, that would be great, thanks!
On Wed, Mar 9, 2022 at 6:01 AM Jagan Teki <jagan@amarulasolutions.com> wrote: > > Hi Frieder, > > On Wed, Mar 9, 2022 at 6:54 PM Frieder Schrempf > <frieder.schrempf@kontron.de> wrote: > > > > Hi Jagan, > > > > Am 03.03.22 um 17:36 schrieb Jagan Teki: > > > Updated series about drm bridge conversion of exynos dsi. > > > > > > Previous version can be accessible, here [1]. > > > > > > Patch 1: tc358764 panel_bridge API > > > > > > Patch 2: connector reset > > > > > > Patch 3: bridge attach in MIC > > > > > > Patch 4: panel_bridge API > > > > > > Patch 5: bridge conversion > > > > > > Patch 6: atomic functions > > > > > > [1] https://patchwork.amarulasolutions.com/cover/1839 > > > > > > Any inputs? > > > > Thanks for your efforts. I didn't follow the whole history, but I'm > > looking forward and hope to see upstream support for the i.MX8MM DSIM in > > the not too distant future. > > > > Can you give me a short update about the state of this patchset? Are > > there still any major obstacles? > > > > I can't help with testing on Exynos, but if you have the matching > > follow-up patches for i.MX8MM support somewhere around I could do some > > tests with those on i.MX8MM. > > Unfortunately, it is getting slow due to existing exynos dsi drivers. > Idea is to push exynos and then move the bridge as per Mailing-list > discussion. I have initial series to support i.MX8MM on linux-next [1] > which is working on my setup. However I'm waiting for this series to > move further to send those on the mailing list. Indeed I'm solely > relaying on Marek testing to move further as I too don't have Exynos > hardware to validate. > > [1] https://github.com/openedev/kernel/tree/imx8mm-dsi > > Thanks, > Jagan. Marek, Have you had any time to test Jagan's latest series? There are several of us waiting for the exynos series so as to gain support for imx8m MIPI DSI on top of it. What hardware is required to test this and where can it be found? Best regards, Tim
Hi Jagan, On 03.03.2022 17:36, Jagan Teki wrote: > Updated series about drm bridge conversion of exynos dsi. > > Previous version can be accessible, here [1]. > > Patch 1: tc358764 panel_bridge API > > Patch 2: connector reset > > Patch 3: bridge attach in MIC > > Patch 4: panel_bridge API > > Patch 5: bridge conversion > > Patch 6: atomic functions > > > > Any inputs? I'm really sorry for the delay on my side. I was really busy with other things and I was not able to check the display of the boards with remote access. Finally, this patchset works properly on all my Exynos-based test systems: 1. Exynos4210 Trats with Samsung s6e8aa0 DSI panel 2. Exynos4412 Trats2 with Samsung s6e8aa0 DSI panel 3. Exynos5250 Arndale with TC358764 DSI-LVDS bridge and LVDS panel 4. Exynos5433 TM2e with Samsung s6e3hf2 DSI panel and internal Exynos MIC bridge I will post my acked-by and tested-by tags for each patch. > Jagan. > > Jagan Teki (6): > drm: bridge: tc358764: Use drm panel_bridge API > drm: bridge: panel: Reset the connector state pointer > exynos: drm: dsi: Attach in_bridge in MIC driver > drm: exynos: dsi: Use drm panel_bridge API > drm: exynos: dsi: Convert to bridge driver > drm: exynos: dsi: Switch to atomic funcs > > drivers/gpu/drm/bridge/panel.c | 3 + > drivers/gpu/drm/bridge/tc358764.c | 104 +--------- > drivers/gpu/drm/exynos/exynos_drm_dsi.c | 241 ++++++------------------ > drivers/gpu/drm/exynos/exynos_drm_mic.c | 22 +++ > 4 files changed, 93 insertions(+), 277 deletions(-) > Best regards
On Fri, Mar 25, 2022 at 10:00 AM Marek Szyprowski <m.szyprowski@samsung.com> wrote: > > Hi Jagan, > > On 03.03.2022 17:36, Jagan Teki wrote: > > Updated series about drm bridge conversion of exynos dsi. > > > > Previous version can be accessible, here [1]. > > > > Patch 1: tc358764 panel_bridge API > > > > Patch 2: connector reset > > > > Patch 3: bridge attach in MIC > > > > Patch 4: panel_bridge API > > > > Patch 5: bridge conversion > > > > Patch 6: atomic functions > > > > > > > > Any inputs? > > > I'm really sorry for the delay on my side. I was really busy with other > things and I was not able to check the display of the boards with remote > access. > > > Finally, this patchset works properly on all my Exynos-based test systems: > > 1. Exynos4210 Trats with Samsung s6e8aa0 DSI panel > > 2. Exynos4412 Trats2 with Samsung s6e8aa0 DSI panel > > 3. Exynos5250 Arndale with TC358764 DSI-LVDS bridge and LVDS panel > > 4. Exynos5433 TM2e with Samsung s6e3hf2 DSI panel and internal Exynos > MIC bridge > > > I will post my acked-by and tested-by tags for each patch. Thank you so much! I think a lot of people will celebrate when this gets approved and merged. ;-) adam > > > > Jagan. > > > > Jagan Teki (6): > > drm: bridge: tc358764: Use drm panel_bridge API > > drm: bridge: panel: Reset the connector state pointer > > exynos: drm: dsi: Attach in_bridge in MIC driver > > drm: exynos: dsi: Use drm panel_bridge API > > drm: exynos: dsi: Convert to bridge driver > > drm: exynos: dsi: Switch to atomic funcs > > > > drivers/gpu/drm/bridge/panel.c | 3 + > > drivers/gpu/drm/bridge/tc358764.c | 104 +--------- > > drivers/gpu/drm/exynos/exynos_drm_dsi.c | 241 ++++++------------------ > > drivers/gpu/drm/exynos/exynos_drm_mic.c | 22 +++ > > 4 files changed, 93 insertions(+), 277 deletions(-) > > > Best regards > -- > Marek Szyprowski, PhD > Samsung R&D Institute Poland >
On Fri, 25 Mar 2022 at 17:04, Adam Ford <aford173@gmail.com> wrote: > > On Fri, Mar 25, 2022 at 10:00 AM Marek Szyprowski > <m.szyprowski@samsung.com> wrote: > > > > Hi Jagan, > > > > On 03.03.2022 17:36, Jagan Teki wrote: > > > Updated series about drm bridge conversion of exynos dsi. > > > > > > Previous version can be accessible, here [1]. > > > > > > Patch 1: tc358764 panel_bridge API > > > > > > Patch 2: connector reset > > > > > > Patch 3: bridge attach in MIC > > > > > > Patch 4: panel_bridge API > > > > > > Patch 5: bridge conversion > > > > > > Patch 6: atomic functions > > > > > > > > > > > > Any inputs? > > > > > > I'm really sorry for the delay on my side. I was really busy with other > > things and I was not able to check the display of the boards with remote > > access. > > > > > > Finally, this patchset works properly on all my Exynos-based test systems: > > > > 1. Exynos4210 Trats with Samsung s6e8aa0 DSI panel > > > > 2. Exynos4412 Trats2 with Samsung s6e8aa0 DSI panel > > > > 3. Exynos5250 Arndale with TC358764 DSI-LVDS bridge and LVDS panel > > > > 4. Exynos5433 TM2e with Samsung s6e3hf2 DSI panel and internal Exynos > > MIC bridge > > > > > > I will post my acked-by and tested-by tags for each patch. > > Thank you so much! I think a lot of people will celebrate when this > gets approved and merged. ;-) > > Applied to drm-misc-next.
Dear All, On 31.03.2022 16:22, Robert Foss wrote: > On Fri, 25 Mar 2022 at 17:04, Adam Ford <aford173@gmail.com> wrote: >> On Fri, Mar 25, 2022 at 10:00 AM Marek Szyprowski >> <m.szyprowski@samsung.com> wrote: >>> On 03.03.2022 17:36, Jagan Teki wrote: >>>> Updated series about drm bridge conversion of exynos dsi. >>>> >>>> Previous version can be accessible, here [1]. >>>> >>>> Patch 1: tc358764 panel_bridge API >>>> >>>> Patch 2: connector reset >>>> >>>> Patch 3: bridge attach in MIC >>>> >>>> Patch 4: panel_bridge API >>>> >>>> Patch 5: bridge conversion >>>> >>>> Patch 6: atomic functions >>>> >>>> >>>> >>>> Any inputs? >>> >>> I'm really sorry for the delay on my side. I was really busy with other >>> things and I was not able to check the display of the boards with remote >>> access. >>> >>> >>> Finally, this patchset works properly on all my Exynos-based test systems: >>> >>> 1. Exynos4210 Trats with Samsung s6e8aa0 DSI panel >>> >>> 2. Exynos4412 Trats2 with Samsung s6e8aa0 DSI panel >>> >>> 3. Exynos5250 Arndale with TC358764 DSI-LVDS bridge and LVDS panel >>> >>> 4. Exynos5433 TM2e with Samsung s6e3hf2 DSI panel and internal Exynos >>> MIC bridge >>> >>> >>> I will post my acked-by and tested-by tags for each patch. >> Thank you so much! I think a lot of people will celebrate when this >> gets approved and merged. ;-) >> >> > Applied to drm-misc-next. Thanks for merging this. Today (once the patches landed in linux-next) I found that there is one more issue left to fix. On the Exynos4210-based Trats board I get the following error: # ./modetest -c -Mexynos could not get connector 56: No such file or directory Segmentation fault # Surprisingly, all other boards, even Exynos4412-based Trats2 with exactly the same DSI controller and panel works fine: # ./modetest -c -Mexynos Connectors: id encoder status name size (mm) modes encoders 71 70 connected DSI-1 58x103 1 70 modes: name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot) 720x1280 60 720 725 730 735 1280 1293 1295 1296 57153 flags: ; type: preferred, driver props: 1 EDID: flags: immutable blob blobs: value: 2 DPMS: flags: enum enums: On=0 Standby=1 Suspend=2 Off=3 value: 0 5 link-status: flags: enum enums: Good=0 Bad=1 value: 0 6 non-desktop: flags: immutable range values: 0 1 value: 0 4 TILE: flags: immutable blob blobs: value: 20 CRTC_ID: flags: object value: 54 73 0 connected HDMI-A-1 0x0 0 72 props: 1 EDID: flags: immutable blob blobs: value: 2 DPMS: flags: enum enums: On=0 Standby=1 Suspend=2 Off=3 value: 0 5 link-status: flags: enum enums: Good=0 Bad=1 value: 0 6 non-desktop: flags: immutable range values: 0 1 value: 0 4 TILE: flags: immutable blob blobs: value: 20 CRTC_ID: flags: object value: 0 (the only difference between Trats and Trats2 is the fact that Trats2 has also HDMI output implemented). It looks that something is missing in the connector initialization, but I didn't dig enough into it. The emulated framebuffer is properly registered and displayed on the panel. Best regards
Hi Marek, On Thu, Apr 7, 2022 at 4:54 PM Marek Szyprowski <m.szyprowski@samsung.com> wrote: > > Dear All, > > On 31.03.2022 16:22, Robert Foss wrote: > > On Fri, 25 Mar 2022 at 17:04, Adam Ford <aford173@gmail.com> wrote: > >> On Fri, Mar 25, 2022 at 10:00 AM Marek Szyprowski > >> <m.szyprowski@samsung.com> wrote: > >>> On 03.03.2022 17:36, Jagan Teki wrote: > >>>> Updated series about drm bridge conversion of exynos dsi. > >>>> > >>>> Previous version can be accessible, here [1]. > >>>> > >>>> Patch 1: tc358764 panel_bridge API > >>>> > >>>> Patch 2: connector reset > >>>> > >>>> Patch 3: bridge attach in MIC > >>>> > >>>> Patch 4: panel_bridge API > >>>> > >>>> Patch 5: bridge conversion > >>>> > >>>> Patch 6: atomic functions > >>>> > >>>> > >>>> > >>>> Any inputs? > >>> > >>> I'm really sorry for the delay on my side. I was really busy with other > >>> things and I was not able to check the display of the boards with remote > >>> access. > >>> > >>> > >>> Finally, this patchset works properly on all my Exynos-based test systems: > >>> > >>> 1. Exynos4210 Trats with Samsung s6e8aa0 DSI panel > >>> > >>> 2. Exynos4412 Trats2 with Samsung s6e8aa0 DSI panel > >>> > >>> 3. Exynos5250 Arndale with TC358764 DSI-LVDS bridge and LVDS panel > >>> > >>> 4. Exynos5433 TM2e with Samsung s6e3hf2 DSI panel and internal Exynos > >>> MIC bridge > >>> > >>> > >>> I will post my acked-by and tested-by tags for each patch. > >> Thank you so much! I think a lot of people will celebrate when this > >> gets approved and merged. ;-) > >> > >> > > Applied to drm-misc-next. > > > Thanks for merging this. Today (once the patches landed in linux-next) I > found that there is one more issue left to fix. > > On the Exynos4210-based Trats board I get the following error: > > # ./modetest -c -Mexynos > could not get connector 56: No such file or directory > Segmentation fault > > # > > Surprisingly, all other boards, even Exynos4412-based Trats2 with > exactly the same DSI controller and panel works fine: > > # ./modetest -c -Mexynos > Connectors: > id encoder status name size (mm) modes encoders > 71 70 connected DSI-1 58x103 1 70 > modes: > name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot) > 720x1280 60 720 725 730 735 1280 1293 1295 1296 57153 flags: ; type: > preferred, driver > props: > 1 EDID: > flags: immutable blob > blobs: > > value: > 2 DPMS: > flags: enum > enums: On=0 Standby=1 Suspend=2 Off=3 > value: 0 > 5 link-status: > flags: enum > enums: Good=0 Bad=1 > value: 0 > 6 non-desktop: > flags: immutable range > values: 0 1 > value: 0 > 4 TILE: > flags: immutable blob > blobs: > > value: > 20 CRTC_ID: > flags: object > value: 54 > 73 0 connected HDMI-A-1 0x0 0 72 > props: > 1 EDID: > flags: immutable blob > blobs: > > value: > 2 DPMS: > flags: enum > enums: On=0 Standby=1 Suspend=2 Off=3 > value: 0 > 5 link-status: > flags: enum > enums: Good=0 Bad=1 > value: 0 > 6 non-desktop: > flags: immutable range > values: 0 1 > value: 0 > 4 TILE: > flags: immutable blob > blobs: > > value: > 20 CRTC_ID: > flags: object > value: 0 > > (the only difference between Trats and Trats2 is the fact that Trats2 > has also HDMI output implemented). > > It looks that something is missing in the connector initialization, but > I didn't dig enough into it. The emulated framebuffer is properly > registered and displayed on the panel. Can you please share the full dmesg? Thanks, Jagan.
Dear All, On 07.04.2022 13:24, Marek Szyprowski wrote: > On 31.03.2022 16:22, Robert Foss wrote: >> On Fri, 25 Mar 2022 at 17:04, Adam Ford <aford173@gmail.com> wrote: >>> On Fri, Mar 25, 2022 at 10:00 AM Marek Szyprowski >>> <m.szyprowski@samsung.com> wrote: >>>> On 03.03.2022 17:36, Jagan Teki wrote: >>>>> Updated series about drm bridge conversion of exynos dsi. >>>>> >>>>> Previous version can be accessible, here [1]. >>>>> >>>>> Patch 1: tc358764 panel_bridge API >>>>> >>>>> Patch 2: connector reset >>>>> >>>>> Patch 3: bridge attach in MIC >>>>> >>>>> Patch 4: panel_bridge API >>>>> >>>>> Patch 5: bridge conversion >>>>> >>>>> Patch 6: atomic functions >>>>> >>>>> >>>>> >>>>> Any inputs? >>>> >>>> I'm really sorry for the delay on my side. I was really busy with >>>> other >>>> things and I was not able to check the display of the boards with >>>> remote >>>> access. >>>> >>>> >>>> Finally, this patchset works properly on all my Exynos-based test >>>> systems: >>>> >>>> 1. Exynos4210 Trats with Samsung s6e8aa0 DSI panel >>>> >>>> 2. Exynos4412 Trats2 with Samsung s6e8aa0 DSI panel >>>> >>>> 3. Exynos5250 Arndale with TC358764 DSI-LVDS bridge and LVDS panel >>>> >>>> 4. Exynos5433 TM2e with Samsung s6e3hf2 DSI panel and internal Exynos >>>> MIC bridge >>>> >>>> >>>> I will post my acked-by and tested-by tags for each patch. >>> Thank you so much! I think a lot of people will celebrate when this >>> gets approved and merged. ;-) >>> >>> >> Applied to drm-misc-next. > > > Thanks for merging this. Today (once the patches landed in linux-next) > I found that there is one more issue left to fix. > > On the Exynos4210-based Trats board I get the following error: > > # ./modetest -c -Mexynos > could not get connector 56: No such file or directory > Segmentation fault > > # > > Surprisingly, all other boards, even Exynos4412-based Trats2 with > exactly the same DSI controller and panel works fine: > > # ./modetest -c -Mexynos > Connectors: > id encoder status name size (mm) modes encoders > 71 70 connected DSI-1 58x103 1 70 This is related to the asynchronous DSI driver registration and DSI device probe. If the DSI driver has been registered before the DRM component device bind, everything is fine: the DRM connector is created by panel_bridge_attach() and then that connector is registered to userspace by the drm_modeset_register_all() in the last steps of initializing the compound DRM device. However, when DSI driver is not yet registered during the DRM component bind, the DRM device finishes registration without any connector ('exynos-drm exynos-drm: [drm] Cannot find any crtc or sizes' message). Then, when DSI driver gets registered, the connector is created by panel_brige_attach(), but there is no code, which would call drm_connector_register() to make it available for userspace. Exactly the same issue has been earlier fixed by the commit deee3284cba3 ("drm/exynos/dsi: register connector if it is created after drm bind"). The following patch fixes this with the current code: diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/bridge/panel.c index ff1c37b2e6e5..2165f38989f1 100644 --- a/drivers/gpu/drm/bridge/panel.c +++ b/drivers/gpu/drm/bridge/panel.c @@ -86,6 +86,9 @@ static int panel_bridge_attach(struct drm_bridge *bridge, if (connector->funcs->reset) connector->funcs->reset(connector); + if (bridge->dev->registered) + drm_connector_register(connector); + return 0; } If this is okay, I will send it as a proper patch, tagged as a fix for 934aef885f9d ("drm: bridge: panel: Reset the connector state pointer"). > modes: > name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot) > 720x1280 60 720 725 730 735 1280 1293 1295 1296 57153 flags: ; type: > preferred, driver > props: > 1 EDID: > flags: immutable blob > blobs: > > value: > 2 DPMS: > flags: enum > enums: On=0 Standby=1 Suspend=2 Off=3 > value: 0 > 5 link-status: > flags: enum > enums: Good=0 Bad=1 > value: 0 > 6 non-desktop: > flags: immutable range > values: 0 1 > value: 0 > 4 TILE: > flags: immutable blob > blobs: > > value: > 20 CRTC_ID: > flags: object > value: 54 > 73 0 connected HDMI-A-1 0x0 0 72 > props: > 1 EDID: > flags: immutable blob > blobs: > > value: > 2 DPMS: > flags: enum > enums: On=0 Standby=1 Suspend=2 Off=3 > value: 0 > 5 link-status: > flags: enum > enums: Good=0 Bad=1 > value: 0 > 6 non-desktop: > flags: immutable range > values: 0 1 > value: 0 > 4 TILE: > flags: immutable blob > blobs: > > value: > 20 CRTC_ID: > flags: object > value: 0 > > (the only difference between Trats and Trats2 is the fact that Trats2 > has also HDMI output implemented). > > It looks that something is missing in the connector initialization, > but I didn't dig enough into it. The emulated framebuffer is properly > registered and displayed on the panel. Best regards