Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1184639rdb; Fri, 16 Feb 2024 07:44:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWucbZwDaaUywtEV18/8h/KLD3PRb7uf6H3oYAkmz7dIDl9i0D68ELa7aEPoc/daiyq6ETqNHTFuSc3ztvr/0esNqhGqfiSPrtHsbST6Q== X-Google-Smtp-Source: AGHT+IHc0WRZ9I27Tb8mDN64T3LovR5twfbduSbAig4CCOioMipF19lqetdtySxLPweAkrUwavk0 X-Received: by 2002:a50:9f63:0:b0:563:cb4d:2331 with SMTP id b90-20020a509f63000000b00563cb4d2331mr3030646edf.8.1708098275766; Fri, 16 Feb 2024 07:44:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708098275; cv=pass; d=google.com; s=arc-20160816; b=iW0tdN1V7wdVZcvLgVPPkH5vo2ie9A3CftOddYOAGJfX/j6f4hMFaG7uStBGJzDWu9 fAUrBhsIOY5Rs8cQjLNrkC+Q3I+sKEEUOe/MLfH/asc2oc9jt/A06KVg8EwhaAQpbpT7 XV3gKDeH0cQMTm0bP7BPxZebsttDFF+PQXagD11q4GWt3O24IY4zzD85d10PGkFeTzwt L8yO8UjA5P2SHaAdfl44vEMqGpRkx+pGeamrRQ2Z9SNVR2TjQawiCmOYqqZ+PAMRydyA V6UZrEIpgz9LVqoSFQNTkAGGu41FOJBpw//Y+zL4uj+XLMHDHIfhsuFco42GjZl66/DB bgkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=yrmSopx2l89wJkQwr+erd3hVS7zVJnKpyVFPIyvtfbI=; fh=MzhdqouTKpaJyXzDk5gLNAKI6xTf156mdx8QlzmJ7Jg=; b=IgkkR1FNrPGiO9a+yTu8R8PPCvidHFOCZt/wk74EZLelTL6sOB/75Y64wo77aTjgtc 3xVEx67Lz3TABuw5bBhzUXFPThtbEAS+qjCYpFIeXn7qK6/d7QTb8RWfg1Lh/QkOl9sc sXDjJFxYxBD6LhWbsm0ZmS5i6n02B2XUtFjtelwr3Ly2dx7kOPEoUQWLmMbVYSu5sbRA nxaQMw/2VIEQw3OSXysx+0QeG/IdUO4EfvlPCKPq6tpqie9c3GBXEMG3Bx2Hr45F06XW syPt5QFznj5gKzftPuWgUdq20k4su59f6BvfSPN9GH92KVhLkQeEkKpEvV2zjpbkEZry /CTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@haloniitty.fi header.s=default header.b=GoKfPnm3; arc=pass (i=1 spf=pass spfdomain=haloniitty.fi dkim=pass dkdomain=haloniitty.fi); spf=pass (google.com: domain of linux-kernel+bounces-68897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68897-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v1-20020a056402184100b0056173831870si70245edy.321.2024.02.16.07.44.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 07:44:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=fail header.i=@haloniitty.fi header.s=default header.b=GoKfPnm3; arc=pass (i=1 spf=pass spfdomain=haloniitty.fi dkim=pass dkdomain=haloniitty.fi); spf=pass (google.com: domain of linux-kernel+bounces-68897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68897-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 903281F24F11 for ; Fri, 16 Feb 2024 15:43:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1480812F369; Fri, 16 Feb 2024 15:42:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=haloniitty.fi header.i=@haloniitty.fi header.b="GoKfPnm3" Received: from whm50.louhi.net (whm50.louhi.net [77.240.19.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A6125465D for ; Fri, 16 Feb 2024 15:42:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=77.240.19.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708098177; cv=none; b=gxHcuSh/wRZwC7Zv5q1YfM5njHONRSsmOUoGWsYvzckVzBlOPMRYmFBw4T65yy6/POtLUJbOs5Ynw7aXi5KWv36bGX33KxZSfL2uzCzTFak+YpP4+5MQe/C6Dei75kky160Bzo+GTPqZNdgtmdCm52a3npjdmDK3okqyEifxG6s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708098177; c=relaxed/simple; bh=FHabSSQgrmLyD4BS8YCbUs+aiL3/uj41IuYl9HnphnQ=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tKCVpa7W+V3B6Kh6EB9R6YOLZt9LEtLsU/7OL/sANp9Olhp+Z2PfreqHdqBpVVOOCwzqWZI0vaf1XazR6GfGeGVVjam7EReBOGjX8rrwW8uZHvS6zSkRPt1iXSElbPlRGYbk/AI2qONrbNhOhltL8CmwY/TeiZQbS7oGm24vWpI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=haloniitty.fi; spf=pass smtp.mailfrom=haloniitty.fi; dkim=pass (2048-bit key) header.d=haloniitty.fi header.i=@haloniitty.fi header.b=GoKfPnm3; arc=none smtp.client-ip=77.240.19.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=haloniitty.fi Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=haloniitty.fi DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=haloniitty.fi; s=default; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yrmSopx2l89wJkQwr+erd3hVS7zVJnKpyVFPIyvtfbI=; b=GoKfPnm38gHh7bHnL1OBkb5Zos 2T6ZJTbIh/eLoENNWmlbpiQEFIA40e5R5ZOaapkYHoSqIcT4T1/yAuX04D2/F638qIYx1mKsv1wo2 WmpFu7M6/rxkhoQs9v3HAnyssUVScU9KL6TVZbcYpNgJbiXvPW+hVj4J33RbmM+SBnABuuqIuSeYt bMHeVN7hG3ZlSsE2yYTQbdrZCE3Lsf1am1X5ujxglQpRchx83f/T8lOV0NRihADZC5E3RjUtW05OL lkiHuDksDn6rkkafhnhV7GDNfo44/oe7qWbMJ9YYCJ0DHGx/7hdkVd19N5M70J1RZvIrFFOC1nAXa 74092tag==; Received: from [194.136.85.206] (port=54650 helo=eldfell) by whm50.louhi.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rb0MU-0005eo-1j; Fri, 16 Feb 2024 17:42:50 +0200 Date: Fri, 16 Feb 2024 17:42:42 +0200 From: Pekka Paalanen To: Harry Wentland Cc: Hamza Mahfooz , amd-gfx@lists.freedesktop.org, Mario Limonciello , Leo Li , Rodrigo Siqueira , Alex Deucher , Christian =?UTF-8?B?S8O2bmln?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Alex Hung , Srinivasan Shanmugam , Wayne Lin , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] drm/amd/display: add panel_power_savings sysfs entry to eDP connectors Message-ID: <20240216174242.15d07657@eldfell> In-Reply-To: <82280a39-4e1d-41ee-82fb-758ceed953e4@amd.com> References: <20240202152837.7388-1-hamza.mahfooz@amd.com> <20240216101936.2e210be2@eldfell> <82280a39-4e1d-41ee-82fb-758ceed953e4@amd.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/0kTS.YsXNUeniYT0qC/j.ma"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - whm50.louhi.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - haloniitty.fi X-Get-Message-Sender-Via: whm50.louhi.net: authenticated_id: pekka.paalanen@haloniitty.fi X-Authenticated-Sender: whm50.louhi.net: pekka.paalanen@haloniitty.fi X-Source: X-Source-Args: X-Source-Dir: --Sig_/0kTS.YsXNUeniYT0qC/j.ma Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 16 Feb 2024 09:33:47 -0500 Harry Wentland wrote: > On 2024-02-16 03:19, Pekka Paalanen wrote: > > On Fri, 2 Feb 2024 10:28:35 -0500 > > Hamza Mahfooz wrote: > > =20 > >> We want programs besides the compositor to be able to enable or disable > >> panel power saving features. =20 > >=20 > > Could you also explain why, in the commit message, please? > >=20 > > It is unexpected for arbitrary programs to be able to override the KMS > > client, and certainly new ways to do so should not be added without an > > excellent justification. > >=20 > > Maybe debugfs would be more appropriate if the purpose is only testing > > rather than production environments? > > =20 > >> However, since they are currently only > >> configurable through DRM properties, that isn't possible. So, to remedy > >> that issue introduce a new "panel_power_savings" sysfs attribute. =20 > >=20 > > When the DRM property was added, what was used as the userspace to > > prove its workings? > > =20 >=20 > I don't think there ever was a userspace implementation and doubt any > exists today. Part of that is on me. In hindsight, the KMS prop should > have never gone upstream. >=20 > I suggest we drop the KMS prop entirely. Sounds good. What about the sysfs thing? Should it be a debugfs thing instead, assuming the below question will be resolved? > As for the color accuracy topic, I think it is important that compositors > can have full control over that if needed, while it's also important > for HW vendors to optimize for power when absolute color accuracy is not > needed. An average end-user writing code or working on their slides > would rather have a longer battery life than a perfectly color-accurate > display. We should probably think of a solution that can support both > use-cases. I agree. Maybe this pondering should start from "how would it work from end user perspective"? "Automatically" is probably be most desirable answer. Some kind of desktop settings with options like "save power at the expense of image quality": - always - not if watching movies/gaming - on battery - on battery, unless I'm watching movies/gaming - never Or maybe there already is something like that, and it only needs to be plumbed through? Which would point towards KMS clients needing to control it, which means a generic KMS prop rather than vendor specific? Or should the desktop compositor be talking to some daemon instead of KMS for this? Maybe they already are? Thanks, pq --Sig_/0kTS.YsXNUeniYT0qC/j.ma Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAmXPgnIACgkQI1/ltBGq qqcCuxAAg9Uyex5kx01Qlv5ieHS2BWyuaSql4cYBf6vA4kUftQMQfDIl1ZzdO0me 5aEfYrUFl2pSdBTgO2o2rdYHdZ3rUA2PYA6+wrIs7xrz+SwLRHZPQH3vE/DSMbOB 2XRzn6PuwVxB3V64Ai0TKttlG2jqdRdue34wrpBIDpvKM5VECp9FK7HAWZx2IfTt bsmG79BWs9cHdb2P+jEPd/jXFLcj9KC+EEO69e1JXjptxXcnEmJOUsJHR8Mdr1za vZFg6NexELbZyOWDOEHFBh/Xsdcb9YAadbcEPDuneLIIvSw6TOuhMb2hhGKg1aO1 IlhE/LSUCm35wG4YpMC1OfgyJjDnMH7zCZZ/UsoQ7jSa/35CD55k7JaG6gqV2RFM 7f8eYKcdfUxPyoRGZm3WCh7cESa634etbXQWPuX7cTz+bCuwVJHzb8NMPl7qf55M XoZMte/SVjynOTshvstslKJIlbHk8lJPmGX70q0RCemSQeP2uF8F/sk/JFEWMeoW Q1WWNya6ibAXkVWKpyprFnHoNwAodSRFyrcBfMc8+gmzlQgZm9KOOHUoanD2LrYS iEJHEi2KN26m9oe5RH76crvTGA6ACxuKHq7SpNFooOeeUFKFLl0DKWaju/QzB9bd tgiB4ezBVE+LSgmAp3foXNhsNINfTnxFHDiJ+1TxscGH9rlAAPI= =FDiI -----END PGP SIGNATURE----- --Sig_/0kTS.YsXNUeniYT0qC/j.ma--