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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 089B2C87FD2 for ; Mon, 11 Aug 2025 09:56:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4AE6010E3FA; Mon, 11 Aug 2025 09:56:58 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=bootlin.com header.i=@bootlin.com header.b="Ms5EoqJ6"; dkim-atps=neutral Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by gabe.freedesktop.org (Postfix) with ESMTPS id D691C10E3FA for ; Mon, 11 Aug 2025 09:56:56 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 9E7A843282; Mon, 11 Aug 2025 09:56:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1754906215; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=dadh8RFLk83rKSunLnKPuUNmGvzlF7mGSI2Vk6dZU5Q=; b=Ms5EoqJ6jz2t81N3LuVEltDepsyUEHVePXi3wfAIH7XjnCYK17T16INMo2pyFnIXl9ZBZh qHHFDWslkxQdN9yYw5ypVycW6JFsiwByZBs+fuaAUvQr3n6DRoKBWm+Bs7PK74fPWR7veJ /7van9UOg6rexg1RpTInETHu9ty+GZMyEgSuDlm7dgg5bpmXFFiJmGozUm8mGpJXhZ4E2r DnQSXdsB11EhLIHvlqCTnKAsEUCVMGo33WMWKNbMmV/vGFejKW/6QukYkhquDkWRGV0Rpm rSBBytxXXwsGErwEZeBfhabPyy52g6OuJdtcADnPvmC81HOVq1WJCyvOD26yEw== Message-ID: Date: Mon, 11 Aug 2025 11:56:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/4] drm/tidss: Fixes data edge sampling To: Tomi Valkeinen , devarsh Cc: thomas.petazzoni@bootlin.com, Jyri Sarha , Tomi Valkeinen , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org, Jyri Sarha , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sam Ravnborg , Benoit Parrot , Lee Jones , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , s-jain1@ti.com References: <20250730-fix-edge-handling-v1-0-1bdfb3fe7922@bootlin.com> <1951ecfe-d080-464c-8441-f5400f535495@ideasonboard.com> <19dd9aa9-43c6-4483-9cdf-f297e41ecdec@ti.com> Content-Language: en-US From: Louis Chauvet Autocrypt: addr=louis.chauvet@bootlin.com; keydata= xsFNBGCG5KEBEAD1yQ5C7eS4rxD0Wj7JRYZ07UhWTbBpbSjHjYJQWx/qupQdzzxe6sdrxYSY 5K81kIWbtQX91pD/wH5UapRF4kwMXTAqof8+m3XfYcEDVG31Kf8QkJTG/gLBi1UfJgGBahbY hjP40kuUR/mr7M7bKoBP9Uh0uaEM+DuKl6bSXMSrJ6fOtEPOtnfBY0xVPmqIKfLFEkjh800v jD1fdwWKtAIXf+cQtC9QWvcdzAmQIwmyFBmbg+ccqao1OIXTgu+qMAHfgKDjYctESvo+Szmb DFBZudPbyTAlf2mVKpoHKMGy3ndPZ19RboKUP0wjrF+Snif6zRFisHK7D/mqpgUftoV4HjEH bQO9bTJZXIoPJMSb+Lyds0m83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cP wDN7ORknPndzxrq3CyB7b/Tk1e8Qx+6HU/pnMb4ZqwwMwZAMk24TZpsgg28o9MQiUNzad0h2 gIszbeej9ryrtLHxMzyK8yKhHoI2i2ovxy5O+hsWeAoCPE9xwbqnAjLjOn4Jzd/pPovizrq/ kUoX66YgvCuHfQMC/aBPLnVunZSP23J2CrkTrnsUzw== In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddufedvudegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomhepnfhouhhishcuvehhrghuvhgvthcuoehlohhuihhsrdgthhgruhhvvghtsegsohhothhlihhnrdgtohhmqeenucggtffrrghtthgvrhhnpeekieevtdefgedtkeehteehtddttdefhffhgeejleejjeeluddvhfdugedvkeehveenucffohhmrghinhepsghoohhtlhhinhdrtghomhenucfkphepvddttddumeekiedumeegudegtdemtgekiedtmeehugeiudemieeffeelmeeiiegrieemvgdtjeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddttddumeekiedumeegudegtdemtgekiedtmeehugeiudemieeffeelmeeiiegrieemvgdtjeehpdhhvghloheplgfkrfggieemvddttddumeekiedumeegudegtdemtgekiedtmeehugeiudemieeffeelmeeiiegrieemvgdtjeehngdpmhgrihhlfhhrohhmpehlohhuihhsrdgthhgruhhvvghtsegsohhothhlihhnrdgtohhmpdhnsggprhgtphhtthhopedviedprhgtphhtthhopehtohhmihdrvhgrlhhkvghinhgvnhesihguvggrshhonhgsohgrrhgurdgtohhmpdhrtghpt hhtohepuggvvhgrrhhshhhtsehtihdrtghomhdprhgtphhtthhopehthhhomhgrshdrphgvthgriiiiohhnihessghoohhtlhhinhdrtghomhdprhgtphhtthhopehjshgrrhhhrgesthhirdgtohhmpdhrtghpthhtohepthhomhhirdhvrghlkhgvihhnvghnsehtihdrtghomhdprhgtphhtthhopegurhhiqdguvghvvghlsehlihhsthhsrdhfrhgvvgguvghskhhtohhprdhorhhgpdhrtghpthhtohepuggvvhhitggvthhrvggvsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg X-GND-Sasl: louis.chauvet@bootlin.com 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Le 11/08/2025 à 09:56, Tomi Valkeinen a écrit : > Hi, > > On 08/08/2025 16:24, devarsh wrote: >> Hi Tomi, Louis, >> >> On 07/08/25 18:51, Tomi Valkeinen wrote: >>> Hi, >>> >>> On 30/07/2025 20:02, Louis Chauvet wrote: >>>> Currently the driver only configure the data edge sampling partially. The >>>> AM62 require it to be configured in two distincts registers: one in tidss >>>> and one in the general device registers. >>>> >>>> Introduce a new dt property to link the proper syscon node from the main >>>> device registers into the tidss driver. >>>> >>>> Fixes: 32a1795f57ee ("drm/tidss: New driver for TI Keystone platform Display SubSystem") >>>> --- >>>> Cc: stable@vger.kernel.org >>>> >>>> Signed-off-by: Louis Chauvet >>> >>> I understand why you call this a fix, but I think this is not really a >>> fix. From looking at the patches, my understanding is that for DPI >>> outputs we have always only supported certain clock/data edge. >> >> I don't think driver makes a distinction between supported/unsupported >> or errors out in case it is run with "different" clock/data edge panel >> (for e.g DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE is set per the panel >> configuration). Instead it tries to program the VP registers per the >> DRM_BUS_FLAG* getting passed by framework per the connected panel and >> gives an incorrect behavior if those are different than defaults since >> those settings are not sufficient for these displays and instead extra >> MMR register settings are also required. > > Well, this gets into the meaning of "fix". I didn't right away see an > explicit definition in the kernel docs. > > When the tidss driver was added, neither AM62x nor AM62A existed. Yet > this series "fixes" the original tidss commit for AM62x and AM62A? And > the patch proposes that this series is to be backported to stable > kernels going back to the original tidss commit? I overlooked the initial commit, I agree this should be limited to ad2ac9dc9426 ("drm/tidss: Add support for AM625 DSS"). > When AM62x and AM62A support was added to the tidss, this feature was > not in the driver. So this is clearly also not a regression. Missing > this feature causes no crashes or other system level misbehavior. It > only causes the panels (that have never been supported with tidss on > AM62x and AM62A) to show garbage. For me the driver explicitly support different data sampling edge from the start, but when the AM625 was added, the implementation missed this quirk, so we have a broken driver for this platform. > So we have a driver, to which support for new SoCs was added at some > later point, and at that point we did not add support for all kinds of > panels. Is adding support for those panels a new feature or a bug fix? > Should it be backported to stable kernels? > > Documentation/process/stable-kernel-rules.rst has some guidelines. Maybe > one could argue that this is a "hardware quirk" mentioned there, or > perhaps "add a device ID" (of sorts). For me this clearly falls in the "hardware quirk" category, as we need this quirk on some platforms. > I might agree, if this was an > easily backportable, totally non-controversial, one-liner style patch > with no chance of regressions. Maybe the next version will be, but this > one is not. Ack, we will see how the v2 will be. If the v2 is not too complex, I will keep the fixes tag (on the proper commit). Thanks, Louis Chauvet > Tomi > -- Louis Chauvet, Bootlin Embedded Linux and Kernel engineering https://bootlin.com