Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp620211rdd; Tue, 9 Jan 2024 14:32:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IHSaitNQG6STJBt0BUJXV1h/a8aatmbQgKUnCvnA9Mo03Ob6Tu9Wt/gEqeembK+b/UszfTo X-Received: by 2002:a05:6a00:b8d:b0:6d9:a683:a6e4 with SMTP id g13-20020a056a000b8d00b006d9a683a6e4mr188686pfj.68.1704839561325; Tue, 09 Jan 2024 14:32:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704839561; cv=none; d=google.com; s=arc-20160816; b=qhFe2RYgnmzaWlea+4ZS2EH2yu4SBD7e4zgr8qxpQLtOQK4FUqQEybHyobqRRCXU88 VOZZCFm4KdHcOHxQwPh3aiAC0MMaknX3kpuc5epmJ4zO54bghLuumuzqzDf+R6ycceMv bq3aGp1jTWnZA5tW/vyTEaNUoNjyA+X40QrGgC96irPOdU1jk7fX/2UAmkUpsJ/8MJz/ o5g8azGprk9pYO4l985Opee+7SqfI0DZBmBBh4jF5D7LQTebseYCK2SZqwqReZMFECsb tObJUHtFLARoGkuUC+RLzrRuSECHjUqFGLcj5boDBnEYQMe6rlmGoWuNI3J3Tajg7AjG eSNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=ynsR4nnFEaZADpxDZxOiLIugSOI6RO8hBMHt22YNR9I=; fh=93Cc6TCEpF9NF5ADCPW2Y2tmFNS18QoJskRqDlg7OGo=; b=x1Fb9O5lbMDr8i9Ho4ACDxGXJe/p+vQp3o4+a/QmMSbVophRVs1eDLemy/Y7Y5+dCL ThjboFytHhxrJJDdKEoYsw0gxa00GORys7WeTXzgt21Gfb/HaylQDVmrnPCIPkspPXZp +8rIXuU6yieulJElnmGCKPAp/7pzO9KTXu03+F+BWLjt4IHB/CPZM+EWSpxCgUrsDqZX lyBPM3c+vmOPWxwZa6nQ2n9XWRudVG168Yg3Crae8mYtx9Oskg16AIzIgRkvv7lIa0Qo EUXnkXWeYHZ1PdKXNAIHPb6pVmSdq7xIxRvHZSVeDvKfAPI40ieZ7Tm76zIEqpCG06t/ KeVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fooishbar-org.20230601.gappssmtp.com header.s=20230601 header.b="0npko/aG"; spf=pass (google.com: domain of linux-kernel+bounces-21476-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21476-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id jc30-20020a056a006c9e00b006dafc2e8b56si2261611pfb.361.2024.01.09.14.32.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 14:32:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21476-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=@fooishbar-org.20230601.gappssmtp.com header.s=20230601 header.b="0npko/aG"; spf=pass (google.com: domain of linux-kernel+bounces-21476-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21476-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 00BF928859A for ; Tue, 9 Jan 2024 22:32:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1465F3E47C; Tue, 9 Jan 2024 22:32:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fooishbar-org.20230601.gappssmtp.com header.i=@fooishbar-org.20230601.gappssmtp.com header.b="0npko/aG" Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) (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 736553E47B for ; Tue, 9 Jan 2024 22:32:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fooishbar.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=fooishbar.org Received: by mail-qk1-f172.google.com with SMTP id af79cd13be357-78313803243so307311785a.3 for ; Tue, 09 Jan 2024 14:32:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fooishbar-org.20230601.gappssmtp.com; s=20230601; t=1704839550; x=1705444350; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ynsR4nnFEaZADpxDZxOiLIugSOI6RO8hBMHt22YNR9I=; b=0npko/aGgr1kUFI6yhknHxWu4EryvC+PlMH2C62KAD7dIs+85zD6oTa96FPzk9qRNt dFJPRp1snSZsb82uJs/G3dfyGj6rV8RW2O/3vdvbMo+dhq0zxLFOk8+x8oLgjc0TbFxX gUH2rcjNlZ4sKVyPcnOfg5nBfDm4ui+Rp/zVlh1vw2Xurbzl0s6JbQRw/HIKoRszIlXn H6CNKwipgVbhL/DAvRfRWofq2XlyV9VblJ3SywqJyTAF3XHH6TitjURhr8wS9gpZsmom 1LEBV7Fv+tUp+qKxJ5FfT3mXC6OqPLipUJaWZBNZVou8KEmm/rdmYIzmbOzM7UgF8JOQ C5PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704839550; x=1705444350; h=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=ynsR4nnFEaZADpxDZxOiLIugSOI6RO8hBMHt22YNR9I=; b=hWI8eEiXt5ZL8UJcmlbjkflNjU//SrK8Gaaw9meMR+G7tfccDviapdT96pSF5vxdDf A2PkaD3d06dfov7nv2PP2fSQXrmc5qq3C774TlGqbWHjo1mFummIlg/rU8eZq4ZqlM1T R4qCR9xqXmovelGx54DalR5pdsz6ili5HEA06SyyWpWdiPQFjPN1HsXTYCXwF2px7uVA H3849G45zhxbaRliUBy7rPC8qnkZXcrqdRhBAGt26DaL4JIGcChXmNDDb+aMIFPM3SLk T30DqqQ/TfDkffsR0TN0BpL9evvtrkxQDx7IltUtTxYhh2UPL5hA5VM36drEH332Ktqv thmQ== X-Gm-Message-State: AOJu0YwYjZcAGUFWtzOnHHWFX3nlfVjCGAaFrgJdZoIdRpsdnXyL9qhU p3IX+KX18Y+O2CY03romC0IQvzMycEOdI2pHYJKSWP9dZ/rCJA== X-Received: by 2002:a05:6214:48f:b0:680:857:1bd9 with SMTP id pt15-20020a056214048f00b0068008571bd9mr218069qvb.82.1704839550148; Tue, 09 Jan 2024 14:32:30 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240109181104.1670304-1-andri@yngvason.is> <20240109181104.1670304-3-andri@yngvason.is> In-Reply-To: <20240109181104.1670304-3-andri@yngvason.is> From: Daniel Stone Date: Tue, 9 Jan 2024 22:32:18 +0000 Message-ID: Subject: Re: [PATCH 2/7] drm/uAPI: Add "active color format" drm property as feedback for userspace To: Andri Yngvason Cc: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, Simon Ser , Werner Sembach Content-Type: text/plain; charset="UTF-8" Hi, On Tue, 9 Jan 2024 at 18:12, Andri Yngvason wrote: > + * active color format: > + * This read-only property tells userspace the color format actually used > + * by the hardware display engine "on the cable" on a connector. The chosen > + * value depends on hardware capabilities, both display engine and > + * connected monitor. Drivers shall use > + * drm_connector_attach_active_color_format_property() to install this > + * property. Possible values are "not applicable", "rgb", "ycbcr444", > + * "ycbcr422", and "ycbcr420". How does userspace determine what's happened without polling? Will it only change after an `ALLOW_MODESET` commit, and be guaranteed to be updated after the commit has completed and the event being sent? Should it send a HOTPLUG event? Other? Cheers, Daniel