From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 2A5C72475E3 for ; Fri, 19 Dec 2025 18:56:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766170573; cv=none; b=do9IFSW+/14Yxh6l7HAhtvVenqLDsSpzyssiIdwXs7UGoZLm2glUN0MnmHtfK/AEyDSQxy32UwFX45gNlUEI7JdAdPRf7Qb2q1gL4mam/2KVBYq9MXqfaoo3GEgt2vx9eS4R5yq4fmAsCS0jYdFZRGDBYDdaqyZU5+TJNY7rtP0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766170573; c=relaxed/simple; bh=BvFAfVYNCHp3WxYv1aHTClx58Xhc5ePojU9METf0NnQ=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=mUEucvJP6W6/9OpU0krYuV9vN3VEbpRJdP6YAemzRzgAb9RCl7aRFkrGkRVc41wjz501SEVmwWMMHbUcoDUG2/LyoUgI4eTiLLCCniy0AQv54/5c1UJBvhZATzmm+sL0dGuli6xrLZihoneSxkUuRx9rqz9ZhrGfBcS1pQgPTzc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=WcUGrSdR; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="WcUGrSdR" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 8757F1A22FA; Fri, 19 Dec 2025 18:56:08 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 53C686071D; Fri, 19 Dec 2025 18:56:08 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id C27C9102F0BC0; Fri, 19 Dec 2025 19:56:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1766170567; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=o1rt5qZOLudIeucKbuxYOv4/CLrfTi/yfvz1r/yFLsE=; b=WcUGrSdR/AVh+J61cDtPZtw4Qlat8vZ6s2WBZq17WGuUZMQv8CRaCwUdK8WQhvigFhYb0x QWinjbjnXkEg6lFvNI0GnOVk5jLxo+P+nA/iAiyO1R4t0S6qKbx85v5RC8kdo/od6ZvPxK 2uv8ET7iviaxo80MQQkYhPMvuXDMpXuUoMdUy1EkH4OlzG7ZyKKEz2snKGk29oO4N1/or0 BuUknAz6ImEnx98VDDcwAL9wnZRPoc4bWUtnnaiHi6ZIlK0r/H3pmiWkgMBygzhV0w+60o O9x2FvSFRSMH/tMSIpR8slLOg0axX4DH5Cs8ND4su/ApyAxzwvL3tmuesHIXkg== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 19 Dec 2025 19:56:01 +0100 Message-Id: Subject: Re: [PATCH RESEND v2 25/32] drm/vkms: Introduce configfs for connector supported colorspace Cc: , , , , , To: "Louis Chauvet" , "Haneen Mohammed" , "Simona Vetter" , "Melissa Wen" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "David Airlie" , , "Jonathan Corbet" From: "Luca Ceresoli" X-Mailer: aerc 0.20.1 References: <20251029-vkms-all-config-v2-0-a49a2d4cba26@bootlin.com> <20251029-vkms-all-config-v2-25-a49a2d4cba26@bootlin.com> In-Reply-To: <20251029-vkms-all-config-v2-25-a49a2d4cba26@bootlin.com> X-Last-TLS-Session-Version: TLSv1.3 On Wed Oct 29, 2025 at 3:37 PM CET, Louis Chauvet wrote: > Add the attribute supported_colorspaces to configure the supported > colorspace of a connector. It will allows emulating some HDR features of > displays. This feature is only supported for HDMI, DP and eDP connectors. > > Signed-off-by: Louis Chauvet > --- a/drivers/gpu/drm/vkms/vkms_configfs.c > +++ b/drivers/gpu/drm/vkms/vkms_configfs.c > @@ -1223,12 +1223,51 @@ static ssize_t connector_type_store(struct config= _item *item, > return count; > } > > +static ssize_t connector_supported_colorspaces_show(struct config_item *= item, char *page) > +{ > + struct vkms_configfs_connector *connector; > + int type; This variable name is not really intuitive. 'colorspaces' maybe? With that change: Reviewed-by: Luca Ceresoli -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com