Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2993069rwd; Mon, 29 May 2023 04:18:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Fs0PK/is8+OxpcMyerGNeXdSUw457UsAdYXEKsxqTCQvZI5YrDloCggJqPcLfgHjh4iSt X-Received: by 2002:a05:6a00:cd1:b0:64f:764e:bbd9 with SMTP id b17-20020a056a000cd100b0064f764ebbd9mr14332331pfv.3.1685359108737; Mon, 29 May 2023 04:18:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685359108; cv=none; d=google.com; s=arc-20160816; b=UZ7uyeVGwH2aJHwItGsxX7GmjkaDYHQLXV6NoXpb145UnkoMQ0H49MBlrrgkkgUrq2 W1iNx4r21fg2dpazbXPSVe2tUCTmo/fFoVP8+JTX+YkGXbIoq/LDQp5+XI43cpVkW8ZY cBVlN6cq8b4HVYcCzEKcByqo4dvxDnrSqoF3IkjlhCRRlbitMGRSSoODXGfFenn4h6+K b1Z6Q3h5bia5TRs43wFioBdbLwYWR/2CO39gAziWt9NHXkAMDr2JqgBbioZBAqO8/1KF MbSmW+lfG8t7sgbtq1hMdhG/cZyIB5gzd6UN+8JBL5JoP4q3XGlTJ33PCTQwfSRx3L/c UB2w== 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=kEqBN6Xo3UzT35yZyYX3ZjNu3Zc6T54GSCeh7rbps3s=; b=X44mlWbflfT6ylkYJ0tfNC5KKkI76EZhbDxDC8R7tfZ4+4FhwgVV+N8Iw/p0sFsBmb hhFWdrfCOXthvE7D/5drRnMjX95gu4ckCZF+7jgR4vy8TZ0nXET39Cv/6KRhZ6797uoL ko41LF1jG5dWTxCWHBsyHehuulLv9SyhJMQ3uwB8J3dEkBE19CXIPdi58jNXWorv8FDO 1bKNo02Tbs26ab5GDb10KH3R7ruUS7IY4fg2rfkpNFolSOgePGX2ZvSrNNgpUA6m4zV8 sspEXZ9vhPhSoN6LXzlhb6P4N84y9oLR5zs+Q2CQXsBTi1qRAU7cemthhgCLwxQENf63 Pf5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=hohLMmFW; 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 q10-20020aa7982a000000b00635ebd8854esi4025588pfl.173.2023.05.29.04.18.16; Mon, 29 May 2023 04:18:28 -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=hohLMmFW; 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 S230174AbjE2LMe (ORCPT + 99 others); Mon, 29 May 2023 07:12:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbjE2LMd (ORCPT ); Mon, 29 May 2023 07:12:33 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2503CCF for ; Mon, 29 May 2023 04:12:32 -0700 (PDT) Received: from [192.168.88.20] (91-154-35-171.elisa-laajakaista.fi [91.154.35.171]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B211B836; Mon, 29 May 2023 13:12:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1685358729; bh=ADkBV2LVS+YgVqFYYD4O2XlRfoS6+tQg/VZ+VEf6b1Y=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=hohLMmFWvioA5RJ9d0FwjFsyEu/C+X32za6b6Q8VbtETTJPfBcpsbBO2UTP6fWEpX 0Tu4bHMD5+YLxhDhQdTyuFl8hBfvh1VzjQxLBAlp4pPUNhp1FPdtJridqyTs+sp0G1 NarhUBv1yVAKKVnq4jzH1bgbKVVHsyCiXAz0itis= Message-ID: <5d207be0-c8f0-7c68-91b2-d5ef873ca6cc@ideasonboard.com> Date: Mon, 29 May 2023 14:12:23 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v6 3/8] drm/bridge: mhdp8546: Add minimal format negotiation Content-Language: en-US To: Aradhya Bhatia , neil.armstrong@linaro.org, Jyri Sarha , David Airlie , Daniel Vetter , Laurent Pinchart , Andrzej Hajda , Robert Foss , Jonas Karlman , Jernej Skrabec , Rahul T R , Swapnil Jakhade , Boris Brezillon , Francesco Dolcini Cc: DRI Development List , Linux Kernel List , Nishanth Menon , Vignesh Raghavendra , Devarsh Thakkar , Jayesh Choudhary References: <20230509093036.3303-1-a-bhatia1@ti.com> <20230509093036.3303-4-a-bhatia1@ti.com> <305382fd-2312-59d9-e2d3-25a17e0a2158@linaro.org> <363d3089-48d4-5663-68e8-ecf0eb4e3e0e@ti.com> <9f98fb99-eaf4-657c-fd2e-b2e81d9cb109@ideasonboard.com> From: Tomi Valkeinen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 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 29/05/2023 08:37, Aradhya Bhatia wrote: >> Btw, we seem to be missing get-output-fmt from the mdhp driver. > Yes, we are. > > With the drm_bridge_attach call added, the display-connector bridge will > assign MEDIA_BUS_FMT_FIXED as the default output format. And most > bridges support only their primary output bus format in their > get-output-fmt hooks. I suppose it would be RGB121212_1X36 in mhdp8546's > case. > > Do we require this when there is no comprehensive way to determine if > another bus format may be more suitable (depending on the hardware > configurations)? If I recall right, mhdp supports other formats than RGB121212_1X36 on the input side (different bit depths and also yuv). On the output side, even if the input is 12 bits per component, when connected to a normal monitor, the output bpc would be 8. I'm not sure if any of that matters, as nobody (?) will use the output format of mhdp, as it just goes "outside" to the monitor, and it is the mhdp driver that negotiates a suitable output format with the monitor. Tomi