Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5745673rwb; Tue, 9 Aug 2022 03:28:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR6kfZH+FHqNYUjvurjNsWo31tXYNVeSzi8CuhSErGGWWHegiKXqQhnYcQsObQjsqPYfXaUE X-Received: by 2002:a17:903:2287:b0:16f:942e:4119 with SMTP id b7-20020a170903228700b0016f942e4119mr18088943plh.3.1660040916748; Tue, 09 Aug 2022 03:28:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660040916; cv=none; d=google.com; s=arc-20160816; b=J3AUWfJbuC7JMShjVtigPn/BOf0spHi2YQDTYSVECx6EVR+gh9LE2gMshLyUNoKqYX cSV7t13V7a8zMFJdNHP9wIkP3t2serO6Aks4ajvb9WT3P55Hqd1cCkM5RVQaCxyhw8/p IkV7cweILxBIosthrBtkAwNf8LFl74dhKuJaoKkO/nWXrIkWmAFxXBl1z9iE2T4FHWMH w2LCAInndC9DJtDBX1vzrbboKyvzTAcxtBk7HUXsYP75EHBBL+Gi6tz6bHEL+QuVey/q B0d6XkOGSXPFkLKbeNX/CphV8SCPyS2lbezUS6lYyu3b6BN2RZrj4gz7+2dYmVCYNlKu +dzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ep1JmO5Z3i9Ws0udTlRfynLzgtIPGpwvT2dFMziR90E=; b=dxgiBqrTmaLwgllpeq+1+KKlUiKFiGhhAnPlRLy9fZxlgWQWJGIMZEWiGOzsZWjAV0 mxqfRmZ9dh/E4i0ptjiwRk23YZDu07o6pu2ipISgILTDm5PtsVyuYF5FYpl7R3dVbJWF PRYVNX7Bvr+vfUWBq6NJkGyInBaF5dDW9rZDFDd+fVE8x2EGx6NxuSUxUvmzNLoYYbSq 0OjwVW4C4P2Aqe58meKz9E4cERGpN1O2rgfv1EA+n266UEnwNAmrFY+WrF6+ajX2VFGs CJXDztYucd3vi9X2Spqk5VyiLaPP8HQZkujo+WhaUDE7PA5O3ui7YC02uokl3P5Cs7WA E+Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=VBuKNFMm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o5-20020a654585000000b00419a2dd0b3bsi13905221pgq.374.2022.08.09.03.28.22; Tue, 09 Aug 2022 03:28:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=VBuKNFMm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239193AbiHIJ5t (ORCPT + 99 others); Tue, 9 Aug 2022 05:57:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236261AbiHIJ5r (ORCPT ); Tue, 9 Aug 2022 05:57:47 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82D8D220CA; Tue, 9 Aug 2022 02:57:46 -0700 (PDT) Received: from [192.168.1.111] (91-158-154-79.elisa-laajakaista.fi [91.158.154.79]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C923F481; Tue, 9 Aug 2022 11:57:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1660039064; bh=AYFA8tcMi2LZnHlEWUX2E2FwrgpZvIPMpJivPfDx1w4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=VBuKNFMmyEAuVVY9DB8royWh4lugtGmv68yVKG3LrfilA3Sgubko5ywXENMQtaTIZ ftiZvXnvkl19Mtu8a0UUFi3tFLm+kz7byZYcrVoWoMCnbC8BJcP5WqVBfr0WmJNRNN 072mBPUw/5Qrb5DfoKqu2wgCK5PnYLhIS7h+Mzs0= Message-ID: <54c62926-d501-35f8-f135-477216bf3444@ideasonboard.com> Date: Tue, 9 Aug 2022 12:57:41 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v3 2/2] drm/tidss: Add support for AM625 DSS Content-Language: en-US To: Aradhya Bhatia Cc: Jyri Sarha , Rob Herring , David Airlie , Daniel Vetter , Krzysztof Kozlowski , Nishanth Menon , Devicetree List , Vignesh Raghavendra , Devarsh Thakkar , Linux Kernel List , DRI Development List , Rahul T R References: <20220627151200.4693-1-a-bhatia1@ti.com> <20220627151200.4693-3-a-bhatia1@ti.com> <4382b760-418f-4033-97f2-47e082a30232@ideasonboard.com> <1a394a4d-1099-400f-2b52-e7a02e379cba@ideasonboard.com> <52edcdda-35ee-ae04-4991-0978b7d06c21@ti.com> From: Tomi Valkeinen In-Reply-To: <52edcdda-35ee-ae04-4991-0978b7d06c21@ti.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/08/2022 12:21, Aradhya Bhatia wrote: > Hi Tomi, > > On 09-Aug-22 12:01, Tomi Valkeinen wrote: >> On 09/08/2022 09:08, Aradhya Bhatia wrote: >>> Hi Tomi, >>> >>> On 28-Jul-22 17:34, Tomi Valkeinen wrote: >>>> On 27/06/2022 18:12, Aradhya Bhatia wrote: >>>>> Add support for the DSS IP on TI's new AM625 SoC in the tidss driver. >>>>> >>>>> Signed-off-by: Aradhya Bhatia >>>>> Reviewed-by: Rahul T R >>>>> --- >>>>>   drivers/gpu/drm/tidss/tidss_dispc.c | 56 >>>>> ++++++++++++++++++++++++++++- >>>>>   drivers/gpu/drm/tidss/tidss_dispc.h |  2 ++ >>>>>   drivers/gpu/drm/tidss/tidss_drv.c   |  1 + >>>>>   3 files changed, 58 insertions(+), 1 deletion(-) >>>>> >>>>> diff --git a/drivers/gpu/drm/tidss/tidss_dispc.c >>>>> b/drivers/gpu/drm/tidss/tidss_dispc.c >>>>> index dae47853b728..f084f0688a54 100644 >>>>> --- a/drivers/gpu/drm/tidss/tidss_dispc.c >>>>> +++ b/drivers/gpu/drm/tidss/tidss_dispc.c >>>>> @@ -272,6 +272,55 @@ const struct dispc_features dispc_j721e_feats = { >>>>>       .vid_order = { 1, 3, 0, 2 }, >>>>>   }; >>>>> +const struct dispc_features dispc_am625_feats = { >>>>> +    .max_pclk_khz = { >>>>> +        [DISPC_VP_DPI] = 165000, >>>>> +        [DISPC_VP_OLDI] = 165000, >>>>> +    }, >>>>> + >>>>> +    .scaling = { >>>>> +        .in_width_max_5tap_rgb = 1280, >>>>> +        .in_width_max_3tap_rgb = 2560, >>>>> +        .in_width_max_5tap_yuv = 2560, >>>>> +        .in_width_max_3tap_yuv = 4096, >>>>> +        .upscale_limit = 16, >>>>> +        .downscale_limit_5tap = 4, >>>>> +        .downscale_limit_3tap = 2, >>>>> +        /* >>>>> +         * The max supported pixel inc value is 255. The value >>>>> +         * of pixel inc is calculated like this: 1+(xinc-1)*bpp. >>>>> +         * The maximum bpp of all formats supported by the HW >>>>> +         * is 8. So the maximum supported xinc value is 32, >>>>> +         * because 1+(32-1)*8 < 255 < 1+(33-1)*4. >>>>> +         */ >>>>> +        .xinc_max = 32, >>>>> +    }, >>>>> + >>>>> +    .subrev = DISPC_AM625, >>>>> + >>>>> +    .common = "common", >>>>> +    .common_regs = tidss_am65x_common_regs, >>>>> + >>>>> +    .num_vps = 2, >>>>> +    .vp_name = { "vp1", "vp2" }, >>>>> +    .ovr_name = { "ovr1", "ovr2" }, >>>>> +    .vpclk_name =  { "vp1", "vp2" }, >>>>> +    .vp_bus_type = { DISPC_VP_OLDI, DISPC_VP_DPI }, >>>> >>>> This looks correct, but with the two OLDI TXes, I think there will >>>> be some interesting issues. >>>> >>>> The tidss_kms.c associates a DSS VP and a DT port, but that's no >>>> longer true if you add the ports for both OLDI TXes, as they both >>>> use the same VP. I think fixing that won't affect this patch, >>>> though, and merging this patch will, afaik, enable similar DSS >>>> functionality as we have for AM65x. >>>> >>>> So, I think these two patches could be merged, or we could wait a >>>> bit until the OLDI situation becomes more clear. Up to you. In any >>>> case, for both patches: >>>> >>>> Reviewed-by: Tomi Valkeinen \ >>> >>> Thank you for the review! >>> >>> This patch set is required for the dss DT patches to be upstreamed for >>> the AM625-SK, so I would like them to get merged. >>> >>> Since these were posted in the previous merge window, I will re-send >>> with your tag. >> >> I'd like to understand better the dual OLDI TX case before merging any >> AM625 dss changes. >> >> At the moment you have only one port in the DT for the OLDI TX for >> AM625, right? I don't see how that is supposed to work as there are >> two OLDI outputs. > The OLDI node doesn't have node of its own at all. Its the dss port that > gets directly connected to the panel ports. > >> And if we do add a new port, it perhaps makes sense to have two OLDI >> TX ports as ports 0 and 1, and the DPI as port 2, which is then >> different from AM65x. > The DSS still has a single (DPI) VP for the OLDI outputs. Both the OLDI > TXes receive the same input from the DSS VP. Yes, but don't mix the DSS VP and the DT port. They are not the same thing. > Wouldn't having them modeled as videp ports 0 and 1 would mean that the > DSS is capable of driving 2 different OLDI displays? (which is not the > case here). If you use the OLDI cloning, the AM625 is driving two OLDI displays, no? In theory the panels could be of different model, as long as they both support the same video mode, and they could be managed by different drivers. This requires two ports so that you can connect the panels in the DT. But let's continue this discussion in the "[PATCH 4/8] drm/tidss: Add support for Dual Link LVDS Bus Format" thread, no need to discuss the same things in two threads =). Tomi