From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6ED07C433DB for ; Thu, 18 Mar 2021 18:31:36 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F0C6364F1F for ; Thu, 18 Mar 2021 18:31:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F0C6364F1F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=siol.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7CBC46E954; Thu, 18 Mar 2021 18:31:35 +0000 (UTC) Received: from mail.siol.net (mailoutvs17.siol.net [185.57.226.208]) by gabe.freedesktop.org (Postfix) with ESMTPS id BEE596E954 for ; Thu, 18 Mar 2021 18:31:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Zimbra) with ESMTP id B3235522B1A; Thu, 18 Mar 2021 19:31:31 +0100 (CET) X-Virus-Scanned: amavisd-new at psrvmta12.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta12.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id kDG2-2smJXM8; Thu, 18 Mar 2021 19:31:31 +0100 (CET) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Zimbra) with ESMTPS id 60F0E523BCA; Thu, 18 Mar 2021 19:31:31 +0100 (CET) Received: from kista.localnet (cpe-86-58-17-133.cable.triera.net [86.58.17.133]) (Authenticated sender: jernej.skrabec@siol.net) by mail.siol.net (Zimbra) with ESMTPA id B6169523AEA; Thu, 18 Mar 2021 19:31:30 +0100 (CET) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Maxime Ripard , Andrzej Hajda , Laurent Pinchart , Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Jonas Karlman , Neil Armstrong Subject: Re: Re: [PATCH 02/18] drm/bridge: Add HDMI output fmt helper Date: Thu, 18 Mar 2021 19:31:30 +0100 Message-ID: <3312709.MrizLCItEp@kista> In-Reply-To: <38906681-737b-462a-d10d-7fb9def141d2@baylibre.com> References: <20210317154352.732095-1-maxime@cerno.tech> <20210317154352.732095-3-maxime@cerno.tech> <38906681-737b-462a-d10d-7fb9def141d2@baylibre.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tim Gover , Dave Stevenson , dri-devel@lists.freedesktop.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, Phil Elwell Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Dne sreda, 17. marec 2021 ob 17:08:07 CET je Neil Armstrong napisal(a): > On 17/03/2021 16:43, Maxime Ripard wrote: > > The atomic_get_output_bus_fmts bridge callback is there to list the > > available formats for output by decreasing order of preference. > > > > On HDMI controllers, we have a fairly static list that will depend on > > what the HDMI sink is capable of and the BPC our controller can output. > > > > The dw-hdmi driver already has that code done in a fairly generic > > manner, so let's turn that code into an helper for all the HDMI > > controllers to reuse. > > This code was based on the capabilities of the DW-HDMI IP, copying it as-is > doesn't make much sense, we should be able to filter out formats the HDMI IP > doesn't support. HDMI standard has pretty strict requirements which formats should be supported, so cores should have very similar capabilities. Best regards, Jernej _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel