Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp731815lqp; Wed, 22 May 2024 19:51:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXTv7pb+MGjF+7uE4WmVeVMZVvzsZxJFQjA+b8NTsyU0N6uz2SXta5vZN2OLm26B8F8gWfH2uvQG44kcSYOXxG4PeTVYQ2+3dGGXIerCA== X-Google-Smtp-Source: AGHT+IFQkBwkDPqVGDv3+5FXcV2I7RZ3dFSBMN8LJCZW6OERRjOoz92szpz8+ZkPZai6XO/JHjdE X-Received: by 2002:a05:6a20:5612:b0:1a7:52fa:7d6b with SMTP id adf61e73a8af0-1b1f8b3e2acmr3505987637.43.1716432692916; Wed, 22 May 2024 19:51:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716432692; cv=pass; d=google.com; s=arc-20160816; b=xhlLuCna49ZZiFndngK8+oUSGsxobVLTo8f9uLPFepGrn1bG5qSW88wyRcubNCAS/g TnfWYBl8ZuKpoeS70IF48dGROfwjobIAcbfUEDDqWMb4ARqpMYMFa+hk+rAK7uqks+IY yf9sJ5KJyfflrQu83AwkSIauAJfJmqy+UQQNpF7GGRHbF++QAFgfCfap3FGHHfMJsGRW gXxj3PBNJRBHSnZlEgG9I6k2PpEKPasUzuvxytoReMRu+9Q5CD7muQCs8PN7v2yneVvx PbpTWXwRKDAorF+07Nglgm2NTMDFn7cl88WEkYxqjZwQDcsdGZudLHZ2qPNN0aclVZF+ Ohew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=v5LuDwEZakdwbwY0ym0Hwpmt3ZIkNDD5vuPYxuRQOvQ=; fh=oUojgz587wjpSZub73MRdtuokQshH+vqvmdAgbOzrIE=; b=WG8XjO/9wccXNSw6lt23tkZwwCs0ZnY7KRzg/jSqrwy15/ME6lxE9MMkBjhZ0a5vB5 iy7yndAljl+9+FUDl55i1aI0wWsNwMLRR1v7vk/144qSR3N6WPEfMsNkoH4pvJZaiyim iehCZd/4fgghQD+QgcoabJrSPVxzSALJKyrnSLDQHwVFxrl2b4C/bTKWJGK79W1xa65P XFMkldk1zHX8F5ZmSQKv9vmHCe7w0yzFThJSkR9deWWrskGORSL47BoTGzhsrorSrhZl Uz49PJ41v9OEVjs+h8W47TQoAkW5IfFpJljoXf/d+ICCE/EV5zvZu1Xayo0F3EUMaH2b YUqg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Z/1kQTgp"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-186926-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186926-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bdd9f13d60si730923a91.95.2024.05.22.19.51.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 19:51:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186926-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Z/1kQTgp"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-186926-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186926-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 70DCC28216C for ; Thu, 23 May 2024 02:51:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 391EF262BD; Thu, 23 May 2024 02:51:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Z/1kQTgp" Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D91E1852 for ; Thu, 23 May 2024 02:51:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716432687; cv=none; b=M3fJMBgTNT4jtQgGA9B5ij2NSnLCS7pgAIH267HCGD/ViA+kKOmTfPujTG2Z1Dyg4cTAYviP/bbWrW58MtNna8o3LI78F4GW4sOUSuF6Z0zJRjCZM/oI09F5+BjXw9bA54o7ofMpGZ5D7YkzfYBnjgPSMmIv1gx1/GqYKuF6/4g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716432687; c=relaxed/simple; bh=v5LuDwEZakdwbwY0ym0Hwpmt3ZIkNDD5vuPYxuRQOvQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=lrccdwKHUQivsGatovCNOufFcD1FQCicKtSLYM92uYXG0j3jk8SV/MNLrbHYyMYaqDeTnToDH0HkwwtmrIjRq5pqnnT8zRxjZt74EgaEO3Hz8CItfNPUMxhVIdxoTiex3TZ9AD/d0KDaKyMPcK2gNeetfR+OXu5hxP6DMsawOCE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Z/1kQTgp; arc=none smtp.client-ip=209.85.219.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-df4d7babf3bso101199276.3 for ; Wed, 22 May 2024 19:51:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716432685; x=1717037485; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=v5LuDwEZakdwbwY0ym0Hwpmt3ZIkNDD5vuPYxuRQOvQ=; b=Z/1kQTgp4buk9ivXL+KOzisMJeJHSA187sva6E3IpFspqBjbyyDmGZDmBPZD/rQh4K hRs3Ty35ftpTx976fvOvEahOXbDA4cpZQkf/GUFXK15hJIQezLg90YW5tqoAttjf149+ F2VaxH/cQ/3AocUGGT1oOsk5xtZN/xYa4rJc315cQVVyzLWdXPVv+x/8UkBxJT8A4Lv1 Hxsb0kcWOsX8gGSNyrg6UDIvbREzwry3XnMzxgUPIgukfC+hlT992tw0WwsBT3W41Oq8 IIa2jrDq+3NqreTLLWciE3pTjVnkhudzAiDfZOnbyd+w+KRP+f4RlElVXuCEDw8s0Gay GhWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716432685; x=1717037485; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=v5LuDwEZakdwbwY0ym0Hwpmt3ZIkNDD5vuPYxuRQOvQ=; b=SjID9ttE6cN+zjqbvI5BSNpJCfG5sP+Ou+8fat/gx3+IuQoumSwhtm+2KEizz9Smul FmxtzR1qJXkyX1XV/eNo9k67UedPas8M/3lEfRZED4eeURTuR/r/Azwe6f3ze6aIYAhQ 8wWB4vxR6rjFL6CoO7EZH5SJasLzxAteIFxLscy700OHKU2Gi6gKx5h4Vms0FW0Dqu1B HpF0VNS+hDlbwu4zbJUMwzPV6uRz66Z/g0UrR0wghoPwcOmNqa7yh4eK4HhsNVIigJCO ocs8q3CMvbbIJ2j5tKsnu9l81JEFAYztjwE7V8nFSumkZeErwKjT2Ug881ixFzzGGQjw SuCQ== X-Forwarded-Encrypted: i=1; AJvYcCUy74m8lz7JS0VXv4lvf1Lpwt7WA9+UrAfoyqln+HXdPah5PhCenYB9lmK5Gfi2XrL+Mej8YrLIrkvwuNQ0ksRZjsDz7wDSg0cmpLOH X-Gm-Message-State: AOJu0YwkYO9fRsNLu2zIhAIXGf3ARvdmdb0p6JfIiF6/gGu5ec3ApkNO DhcErehMmHDqAzikGCUcpu65/uQnqQtexoYOUf3VnEvv/fbKVsVirZCt+oOcmgamZg/r2pMCnWR GkHd8bLPuMUyINFMeOGddJYs8hKE= X-Received: by 2002:a05:6902:2003:b0:df4:d863:93f1 with SMTP id 3f1490d57ef6-df4e092c8acmr3589932276.0.1716432684934; Wed, 22 May 2024 19:51:24 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240521051140.30509-1-rinoandrejohnsen@gmail.com> <17782a6e-db84-4c20-874a-342b9655ffc5@amd.com> <86410711-9b88-448c-9148-109f81b1ca55@amd.com> <666e36b7-5379-46ef-a16b-00ec499fb42c@amd.com> <1XiLpoWd2E_COrHNl9BYkmCXkUKK6Bv1wibdFxiw3Vi6AQOPAIhrIMPNEZmmKAp9yxC8Er4DEMqOqjshMgRqtpV3UkS7MN2OjCsDjllvdRE=@emersion.fr> In-Reply-To: <1XiLpoWd2E_COrHNl9BYkmCXkUKK6Bv1wibdFxiw3Vi6AQOPAIhrIMPNEZmmKAp9yxC8Er4DEMqOqjshMgRqtpV3UkS7MN2OjCsDjllvdRE=@emersion.fr> From: =?UTF-8?Q?Rino_Andr=C3=A9_Johnsen?= Date: Thu, 23 May 2024 04:51:13 +0200 Message-ID: Subject: Re: [PATCH v2] drm/amd/display: Add pixel encoding info to debugfs To: Simon Ser Cc: Mario Limonciello , =?UTF-8?Q?Christian_K=C3=B6nig?= , alexander.deucher@amd.com, Harry Wentland , Leo Li , Rodrigo Siqueira , "Pan, Xinhui" , David Airlie , Daniel Vetter , Aurabindo Pillai , Hersen Wu , Hamza Mahfooz , Wayne Lin , Srinivasan Shanmugam , Fangzhi Zuo , Tom Chung , Nicholas Kazlauskas , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Looked through the patch series from Andri Yngvason and that does exactly what I wanted in the first place. I think that the patch series should be encouraged to be merged in as fast as possible. For the patch I have submitted, it stands on its own, since the patch series from Andri Yngvason does not include anything in the debugfs. This means whenever or not the patch series gets merged, at least those with an AMD gpu can figure out which pixel encoding that is used. Rino On Wed, May 22, 2024 at 3:40=E2=80=AFPM Simon Ser wro= te: > > On Wednesday, May 22nd, 2024 at 15:36, Mario Limonciello wrote: > > > > To be perfectly honest with you, I haven't given that much though. I > > > used the 'bpc' and 'colorspace' property in debugfs, since I could no= t > > > find that information anywhere else. And since I also needed to verif= y > > > the pixel encoding being used, I added it where those other values > > > were. That made for a simple and easy addition for this property. > > > > > > If you want me to do this differently, let me know. And please point > > > me to the standardized DRM property where I should expose the values. > > FWIW, there is a patch from Andri to add a similar (?) property: > https://lore.kernel.org/dri-devel/20240115160554.720247-1-andri@yngvason.= is/ > > The patch also allows user-space to set the "pixel encoding".