Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3354182pxb; Mon, 16 Nov 2020 12:15:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8Fmbe+yjAdraYGZsZg8rJPGNXqtBMJ6VIRtth9KtPBrLioited+CFtgGvb1/8eIplUIEb X-Received: by 2002:a17:906:d8c:: with SMTP id m12mr3932402eji.397.1605557730770; Mon, 16 Nov 2020 12:15:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605557730; cv=none; d=google.com; s=arc-20160816; b=FMltJz6UclUGm2fRybWNYVhXkWjOERyGWbgP/jjTx+wQrfWVP3INXs9bSGm7EGFG/y 0Yq0iKGUhaMIOdo9rcb5RIsjQi0V0b9jGqAUDysB0PB8IpHDL+gaveFe1+LrmQCru1EK xrnEyzrrWF9XTffkRqWVWEqxkSXU/91JuB4ENRBiMxgsKs13sTyenom3iXkhsffaMvaK 2fLNfvh2xMdMx4T5h5/CrnacCwUW9zW8XdaMZyYXRybpiWejOvmW/mrmBw7g6vosbE94 Jep9GRLiarYXmEV9V/UJNucBZfdUZl8ZIsRxq2U7Ev9AJxCIJAKKWXSihtxSmxO1JGYA oH4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=CesylDhKL5F2RLO21Mz02Qpf8QzNoQ/J7g1qiBS/bhk=; b=roBTk+PmorUCw7OlKtQTf3iSr//vxKDpbAKHo6gjDpadUc76rYsITXuOP94037HZQw /S3dKGTkYeBpUEAis1xvXfpiuEWKZRFacgLQfxT3uMKc6l19Lkg5TALuTE7os/MWRPt4 yBH1o7tgjyfF12gxeApwYlp7at7tJ4BiRfSQthuHLbQfJIsKZ/3YOGvd49OPJqwfhprS 7kdibQeDlGpuY+PrI/KUn7MABa3qEHbHDxMrK4V7rak8qupUAuTi7iq6GXzNhRMwNd9Z hsVOWrcnRkczSGPbo5zDs7sTIqZZ/VCtI3sBzdclYkvIZ9SZntcxmVn4b/jJKkaI2arY JP6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=WgMz8DPq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k1si11793355ejv.576.2020.11.16.12.15.06; Mon, 16 Nov 2020 12:15:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=WgMz8DPq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728133AbgKPOOg (ORCPT + 99 others); Mon, 16 Nov 2020 09:14:36 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:53038 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726321AbgKPOOg (ORCPT ); Mon, 16 Nov 2020 09:14:36 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0AGEECjG098332; Mon, 16 Nov 2020 08:14:12 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1605536052; bh=CesylDhKL5F2RLO21Mz02Qpf8QzNoQ/J7g1qiBS/bhk=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=WgMz8DPq7tarq6XoqKf+09VI1CV/IylTOh3eRy4neU4iGFxwlpzL+JYRGLn6nwLJD r+len0k2/7TlqmXVEq028HR8JT6yI8M5qz5N27t0rM9P71V1PTskiVeREfth+v5LpI 14RyGKzaKeX+PeKX5W7C8RRX9n5j+TAQfkdwIn3s= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0AGEEBNq087815 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 16 Nov 2020 08:14:11 -0600 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 16 Nov 2020 08:14:11 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Mon, 16 Nov 2020 08:14:11 -0600 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0AGEE7b8075117; Mon, 16 Nov 2020 08:14:08 -0600 Subject: Re: [PATCH v1 0/4] Add bus format negotiation support for Cadence MHDP8546 driver To: Yuti Amonkar , , , , , , , , , , , CC: , , , , References: <1605260794-29806-1-git-send-email-yamonkar@cadence.com> From: Tomi Valkeinen Message-ID: <90d19291-f0ca-df64-1687-3b25fbf418de@ti.com> Date: Mon, 16 Nov 2020 16:14:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1605260794-29806-1-git-send-email-yamonkar@cadence.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 13/11/2020 11:46, Yuti Amonkar wrote: > This patch series add bus format negotiation support for Cadence MHDP8546 bridge > driver. > > The patch series has four patches in the below sequence: > 1. drm: bridge: cdns-mhdp8546: Add output bus format negotiation > Add minimal output bus format negotiation support. > 2. drm: bridge: cdns-mhdp8546: Modify atomic_get_input_bus_format bridge function. > Get the input format based on output format supported. > 3. drm: bridge: cdns-mhdp8546: Remove setting of bus format using connector info > Remove the bus format configuration using connector info structure. > 4. drm: bridge: cdns-mhdp8546: Retrieve the pixel format and bpc based on bus format > Get the pixel format and bpc based on negotiated output bus format. > > This patch series is dependent on tidss series [1] for the new connector model support. > > [1] > https://patchwork.kernel.org/project/dri-devel/cover/20201109170601.21557-1-nikhil.nd@ti.com/ Can you explain how this works? Afaics, what we should be doing is: - We don't have proper bus formats for DP output, so we need to use MEDIA_BUS_FMT_FIXED as the output format. This is what you do in the first patch. (But is that patch even needed, if MEDIA_BUS_FMT_FIXED is the default anyway) - In cdns_mhdp_get_input_bus_fmts, the function should exit if the given output format is not MEDIA_BUS_FMT_FIXED. - In cdns_mhdp_get_input_bus_fmts, the driver should return all the RGB bus formats, if MHDP is able to upscale/downscale RGB (e.g. RGB 8-bpc to RGB 12-bpc). - If the monitor supports YUV modes according to the display_info, cdns_mhdp_get_input_bus_fmts can also return those. - Then later, in atomic_check and commit, mhdp driver has the negotiated bus format, which it should use to program the registers. Tomi -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki