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=-5.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 0C635C433DF for ; Mon, 19 Oct 2020 22:15:17 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 80C352223C for ; Mon, 19 Oct 2020 22:15:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="2qx2RLLI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 80C352223C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wwDY4PSwq7QDJK9Le45y/YhqNwhlV3sEWdhr9yfj1nw=; b=2qx2RLLIKDTXvghS31yyuaoI3 QJS0TLi7uwcSSEqbYye3yqkp4fSEkGqedv4xr7ut+0fSZ01qfxUlxgfj8pXqkuQuuvQaS8/Zj4l5X CuF7zqXXljgCXCt2Lz8D124K2P/hYgZp+Wpa9E/LxzWVmomR5KRq1vYJEAus9HGw61h+sONTHLuaP N6uI9knMPT1dAZUsjO6+L6axsfyputoaXm79teeKv3qgcd3XsNpZtbGJII3+bvEedWGWgIOTkO01Q 4KIIyOdh2neyobLE6dFKraxYPuiM2bCH/kEXlY1TL32lTdzEy8ZNo0+eFs8Sol/nI+ZKCvVx2B0Ob 6Q3Np1SLw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUdPV-0003yI-4c; Mon, 19 Oct 2020 22:13:45 +0000 Received: from mail-out.m-online.net ([212.18.0.9]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUdPS-0003xq-KE for linux-arm-kernel@lists.infradead.org; Mon, 19 Oct 2020 22:13:43 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CFWHT0mPTz1qs10; Tue, 20 Oct 2020 00:13:41 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CFWHS6L9cz1qryN; Tue, 20 Oct 2020 00:13:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id KEx5f7bPGeSX; Tue, 20 Oct 2020 00:13:39 +0200 (CEST) X-Auth-Info: pag2wJTMLh7Zd9lzZX5MS4JwxYpJf59o8e7wrPqoe48= Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 20 Oct 2020 00:13:39 +0200 (CEST) Subject: Re: [PATCH] drm/stm: Fix bus_flags handling To: Sam Ravnborg References: <20201002230726.242035-1-marex@denx.de> <20201016174455.GB1333109@ravnborg.org> From: Marek Vasut Message-ID: <643e1594-99aa-cd2a-fa6f-836d60e57cab@denx.de> Date: Tue, 20 Oct 2020 00:13:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201016174455.GB1333109@ravnborg.org> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201019_181342_781063_CCA853F9 X-CRM114-Status: GOOD ( 24.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Torgue , Antonio Borneo , Philippe Cornu , dri-devel@lists.freedesktop.org, Yannick Fertre , Maxime Coquelin , Vincent Abriou , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Benjamin Gaignard Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 10/16/20 7:44 PM, Sam Ravnborg wrote: > Hi Marek. Hi, > On Sat, Oct 03, 2020 at 01:07:26AM +0200, Marek Vasut wrote: >> The drm_display_mode_to_videomode() does not populate DISPLAY_FLAGS_DE_LOW >> or DISPLAY_FLAGS_PIXDATA_NEGEDGE flags in struct videomode. > > So after reading this paragrahp I assumed this patch would fix this, alas > there is no changes to drm_modes.c. > Rather than introducing hacks could we try to fix the root cause here? Nope, this is a driver fix, hence the drm/stm tags. > Root cause - as you point out is that there is missing some flags in > the conversion. > Another point is that the stm driver could drop the use of > drm_display_mode_to_videomode() - all the information is available in drm_display_mode > and using drm_display_mode_to_videomode() does not help much. I kinda already have such a patch in the tree to remove this, but I want to have a patch which fixes the problem described here and can be easily backported to stable too. > If the point is to have easier access to hsync and friendns maybe we > should have a few helpers operating direct on display_mode and not this > conversion to video_mode which is something that belongs to fbdev and > should IMO not be used inside a drm driver. Yep, that is for another patch though, because if that one breaks something, I want to be able to bisect it. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel