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=-15.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham 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 97A48C64E8A for ; Mon, 30 Nov 2020 09:46:41 +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 109B5206B6 for ; Mon, 30 Nov 2020 09:46:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ti.com header.i=@ti.com header.b="ixF72V9d" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 109B5206B6 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com 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 59FC56E43F; Mon, 30 Nov 2020 09:46:40 +0000 (UTC) Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4DBCB6E43F for ; Mon, 30 Nov 2020 09:46:38 +0000 (UTC) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0AU9kYtv039448; Mon, 30 Nov 2020 03:46:34 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1606729594; bh=br6Uw3uXf6rPebxLz86JAyAZZ7C0waHEYzJznRfSY5w=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=ixF72V9dP/5SGH6R94iPOq4Q5f8lywq5+EZbiEsWholSpOVcJxy99qK78T0wseWDS YDxQ5hfWC51CC5S565zJSA3L3TfpY+PUKBiYXNLVR2Pxh0za7zq70YbD+55HH9H55O FC3M+TI/qZdQsuWOpA02/8jQBjJRI1SIKy6JvEKw= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0AU9kYtg011631 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 30 Nov 2020 03:46:34 -0600 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 30 Nov 2020 03:46:34 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE113.ent.ti.com (157.170.170.24) 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, 30 Nov 2020 03:46:34 -0600 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0AU9kWEI077553; Mon, 30 Nov 2020 03:46:32 -0600 Subject: Re: [PATCH v3 1/6] drm: bridge: Propagate the bus flags from bridge->timings To: Laurent Pinchart , Nikhil Devshatwar References: <20201119160134.9244-1-nikhil.nd@ti.com> <20201119160134.9244-2-nikhil.nd@ti.com> <20201130093600.GB4141@pendragon.ideasonboard.com> From: Tomi Valkeinen Message-ID: <39d7cf1d-d25b-abc6-a6c6-5d1d18a6b3ff@ti.com> Date: Mon, 30 Nov 2020 11:46:31 +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: <20201130093600.GB4141@pendragon.ideasonboard.com> Content-Language: en-US X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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: Sekhar Nori , Yuti Amonkar , dri-devel@lists.freedesktop.org, Swapnil Jakhade Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 30/11/2020 11:36, Laurent Pinchart wrote: > Hi Nikhil, > > Thank you for the patch. > > On Thu, Nov 19, 2020 at 09:31:29PM +0530, Nikhil Devshatwar wrote: >> bus_flags can be specified by a bridge in the timings. >> If the bridge provides it, Override the bus_flags when propagating >> from next bridge. >> >> Signed-off-by: Nikhil Devshatwar >> Reviewed-by: Tomi Valkeinen >> --- >> >> Notes: >> changes from v2: >> * update comment >> changes from v1: >> * Check for timings >> * Prioritize timings flags over next bridge's flags >> >> drivers/gpu/drm/drm_bridge.c | 8 ++++++++ >> 1 file changed, 8 insertions(+) >> >> diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c >> index 64f0effb52ac..13b67fc0dad3 100644 >> --- a/drivers/gpu/drm/drm_bridge.c >> +++ b/drivers/gpu/drm/drm_bridge.c >> @@ -975,6 +975,14 @@ drm_atomic_bridge_propagate_bus_flags(struct drm_bridge *bridge, >> * duplicate the "dummy propagation" logic. >> */ >> bridge_state->input_bus_cfg.flags = output_flags; >> + >> + /* >> + * If legacy bus flags are provided in bridge->timings, use those as >> + * input flags instead of propagating the output flags. >> + */ >> + if (bridge->timings && bridge->timings->input_bus_flags) >> + bridge_state->input_bus_cfg.flags = >> + bridge->timings->input_bus_flags; > > Hasn't Boris commented in his review of v1 that bus flags should be set > in atomic_check, even when they're static ? We're moving towards > removing timings->input_bus_flags, so this patch goes in the wrong > direction :-S We have atomic_check only if the bridge has implemented atomic funcs. And even if there's atomic_check, not all bridges set the bus_flags there. So we need to either 1) fix the issue for now as in this patch, or 2) convert all bridges to use atomic funcs and fix all the bridges to set the bus_flags. Tomi -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel