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 7DBBCC433F5 for ; Wed, 25 May 2022 08:42:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A920E10E4BC; Wed, 25 May 2022 08:42:39 +0000 (UTC) Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [IPv6:2001:67c:2050:0:465::101]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2128310E54E for ; Wed, 25 May 2022 08:42:38 +0000 (UTC) Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4L7PhV3zsfz9sd3; Wed, 25 May 2022 10:42:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1653468154; 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; bh=I9Ca66IuoUejRtyMbbQC46KBV4HuFBLq8Gb16DmXtuw=; b=o5cF3CPSO7E0PXfcmDMQ0ksC1IIo3OLDIGkAgI0tVz6ltDu22M1eRmDVB9rT5PW6w0MKih nL5y/116AvkbTdp3z8F59rTHrZiSeA2NhwuDMJhbqC6oB1sk2FDTVruWBFmkofcxxBOCRw GD37YtZDrb04006SjMvmrdOk5+IyzuzRtfirU7C7lOqeU46C7xHCCo/5Wsp1XJkw5YJyV3 j3hUp9/T8cPFE8hUhbdFO3UPt1WIDvdXZ9e42C7UWhWXT1yyOU/g7OXxfz1SVMeKpCYrF2 QvAyX50Dea7QPHWvZff+eTpU3ck5NoPBEEQw7tqbfXkZYT/Wcxs/2dnkqgqrGA== Message-ID: <04ba0498-5b2b-ef01-6393-0db90fd343e8@mailbox.org> Date: Wed, 25 May 2022 10:42:27 +0200 MIME-Version: 1.0 Subject: Re: How should "max bpc" KMS property work? Content-Language: en-CA To: Alex Deucher , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= References: <20220426113502.224d0a90@eldfell> <57d16ed5-8bfc-ce29-9250-14e2de18710a@redhat.com> <20220523112246.056ddc99@eldfell> From: =?UTF-8?Q?Michel_D=c3=a4nzer?= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-RS-META: iqu9gea11i7kc91z3ab6e5nwrbcmbb6h X-MBO-RS-ID: c1b5afd6bd5e1bae625 X-Rspamd-Queue-Id: 4L7PhV3zsfz9sd3 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: Sebastian Wick , =?UTF-8?Q?Jonas_=c3=85dahl?= , dri-devel , Hans de Goede , Pekka Paalanen , Vitaly Prosyak Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 2022-05-25 00:03, Alex Deucher wrote: > On Tue, May 24, 2022 at 11:43 AM Ville Syrjälä > wrote: >> On Tue, May 24, 2022 at 11:36:22AM +0200, Hans de Goede wrote: >>> Hi, >>> On 5/23/22 13:54, Sebastian Wick wrote: >>>> On Mon, May 23, 2022 at 10:23 AM Pekka Paalanen wrote: >>>>> >>>>> Nice to see there would be other uses for knowing which might be higher >>>>> priority to the larger community. >>>>> >>>>> Would it be proper to initialize 'max bpc' to the link depth used by >>>>> boot-up firmware? I guess it could make things more reliable and solve >>>>> the Plymouth blanking issue, but not the professional color management >>>>> use cases. >>>> >>>> I was always under the impression that if you do an atomic commit >>>> without changing any properties that it won't result in a mode set >>>> which would clearly make the current behavior a bug. >>> >>> I agree, IMHO the i915 driver currently setting max-bpc to 12 by default, >>> causing an unrequested link re-negotation on the first modeset is >>> a bug in the i195 driver and is also the root cause of this >>> plymouth bug-report: >>> >>> https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/102 >> >> Why would anyone want to run at 8bpc when they have a panel with >> higher color depth? So I think someone is going to be doing that >> modeset eventually anyway. > > We used to do something similar, but then got piles of bug reports > about the displays running at 30Hz rather than 60 so we changed it to > 8. It's hard to say what a user will prefer. Ville's suggestion elsewhere to filter modes based on minimum bpc (and lower effective bpc as needed for the selected mode, while there's only the "max bpc" property) should take care of that particular issue? -- Earthling Michel Dänzer | https://redhat.com Libre software enthusiast | Mesa and Xwayland developer