Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5691466rwb; Tue, 9 Aug 2022 02:24:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR673VCLuUw7yQguVMfIz3iAxzzcoOBec/y+1AfOdqXab2RAm+9l3o4Fk4xqdwBbnczMyqy5 X-Received: by 2002:a17:907:ea8:b0:731:67eb:b60a with SMTP id ho40-20020a1709070ea800b0073167ebb60amr4927677ejc.497.1660037059672; Tue, 09 Aug 2022 02:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660037059; cv=none; d=google.com; s=arc-20160816; b=LoEOvv8ANpFDlnNNfIY1cOwj+wvXolQFBWg0MZevZO0YFP89r8EPv8NLzlnUCsTi7c EzsspmVSKWqihIyfWx95VfdtiDGfCErbSWuDiXfjKbcw1TGoXNvnOxNJWGjTz46eS6fv QqCSBrNrzUtfYP/g7pyKLw2HJ5Vv+GSZCBlP1pngobjNaSOZukLxkwR5CkVdRwY7UH1m gTzspp4IgGMclCuQsetF9DQ7Afb35+VxuiSALg4Pe916WVvOzGkKS2Y/wOzpGUbxJmUy Ps2Z1uBIDFDHiWLRbpSLyo/0nx1nvJoHHk45tLzuq7bMObJ0+R3kpFrqR8ROhmiAp8yK Ea8w== 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=hfbtiO0EGYT9rydsnbIHnRIPn49CnRcZUdyHAXazk5M=; b=Ch6pouoquPszl2iAQLm8zpqspzfqMTk10k1EPk+/0CrOiABoBKELHSZmmCN0k9elO3 Y81JzVEKllzsrygpgTXik6Y1wAou5iix//DOtlfs41tm4Sisabs/gSMjG7SyJZeHERaD VaG+rYeaDJ5Xg2bnAFn9RQJzdus2Uxp6pgk7E30GGQ/eFx5noA/JF8CPkbvwLxjuezME sv6hL5fF/fZZNrBg3NuEHg007BZ4QxEK/0hvCVsWaDJYrVA6e76LQUXGaMedXvKDZIzk ZlWoHHAYZ6p5Gyc4gxvt5uuyyZ+hqF7WowyUUJd7rDSWR8ZzEXtS8gF2YuAMw06Ng2TG YjXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=QOeHcDMj; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k22-20020a05640212d600b0043e5033412asi7740999edx.189.2022.08.09.02.23.54; Tue, 09 Aug 2022 02:24:19 -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 header.i=@ti.com header.s=ti-com-17Q1 header.b=QOeHcDMj; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235565AbiHIJV4 (ORCPT + 99 others); Tue, 9 Aug 2022 05:21:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241009AbiHIJVm (ORCPT ); Tue, 9 Aug 2022 05:21:42 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B9E7237D2; Tue, 9 Aug 2022 02:21:39 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2799LGWa109399; Tue, 9 Aug 2022 04:21:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1660036876; bh=hfbtiO0EGYT9rydsnbIHnRIPn49CnRcZUdyHAXazk5M=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=QOeHcDMjwY+yXlzJ7Gv1oCwZZXkXy/TJOcShWfrptDCJxjf+IvOnaMSoX9KrmW1G1 Y4ljlEjEvXWoEd4HNKYpvH26yd7jGKNMJMTvJfUupVOYOSruj9k2EbV9zNiFQECIES AzA/yNgbnqke8XpsBnqIKoPWEBq5FVdeGJf78tJM= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2799LGmK058928 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 9 Aug 2022 04:21:16 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 9 Aug 2022 04:21:16 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Tue, 9 Aug 2022 04:21:16 -0500 Received: from [172.24.157.172] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2799LCkI071919; Tue, 9 Aug 2022 04:21:12 -0500 Message-ID: <52edcdda-35ee-ae04-4991-0978b7d06c21@ti.com> Date: Tue, 9 Aug 2022 14:51:11 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.0 Subject: Re: [PATCH v3 2/2] drm/tidss: Add support for AM625 DSS Content-Language: en-US To: Tomi Valkeinen 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> From: Aradhya Bhatia In-Reply-To: <1a394a4d-1099-400f-2b52-e7a02e379cba@ideasonboard.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,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 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. 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). Regards Aradhya