Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3650833pxj; Tue, 11 May 2021 08:56:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwErqKWE4aRl9EKSvfI2dzHmqgotBcN23J1LFYH8t6jrMv7egLMiRhiKKIycHZ+KYBfIl+9 X-Received: by 2002:a17:906:5495:: with SMTP id r21mr32326899ejo.471.1620748616067; Tue, 11 May 2021 08:56:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620748616; cv=none; d=google.com; s=arc-20160816; b=OqMq8oSnRBbisIt4O8ole0Na9rm5Dq6+VjY2C4St+rMJb6ZVnRcGb/jerOXGm2iWPK nHuoQFN4+MVMMzil4oHOVZNnP58PhkbNgBcmLwH08qYqAmfvzySHfm+HRMzUsizFgeU0 dR8nRb/RW99auxd1dwevzu3Of1qcFEubbGeL1iVO+9FfHfY/K1cRdlhyeDBUQX/uKnzY DTH1BcwCm+QN0FhnIu97PoVesym6WvtENkRNuL/8kj95nx1DsRl8a9JkHRnIpooufC4Q whL/E/IQDLqhPRN8BpT5XNSSDUw57HwGVppGiy5ZUUBZguveda13yOGMyKiM1e9jc/5J n00Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=r6WLtHdZwihxqsEzJImmL1kbKZvOkaLCou5DDgJ2SpI=; b=ncKgg/tVIxA2MO+hKIsX4rUrAzJIY/Om4zjTYUVTLl4WoeMOSAcx8x1VaB2VKJ2j9V Vf3a7Dz/i+4C5slCeRn+il54atUMVGkAtitCnMwriulLNFEmLkkzDVm8SwfBI6vo7k0o OWMnzj+w3piyrilz/bs63QfnZ6GzRGSSrNXruG7A16TDWXXKCIOp+2+bCRBON7EiihtX v39oGluGPa8YjVyjgDre8IXe4k5Yo/eZx+3E2mlVTZRquVclqH0LnAJ3L/Ae1Iw1xqXQ J2+91sWoEdf/1GO84pkTqx1aGkmxfOeKhsEUF2EZbaxnGMRBp1S/P1G2WllhnzEBfohK rRrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=ANjNM09Z; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=nDHNgIbL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si430091ejs.275.2021.05.11.08.56.32; Tue, 11 May 2021 08:56:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=ANjNM09Z; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=nDHNgIbL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231789AbhEKP4e (ORCPT + 99 others); Tue, 11 May 2021 11:56:34 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:60479 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231561AbhEKP4Z (ORCPT ); Tue, 11 May 2021 11:56:25 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 975995C006E; Tue, 11 May 2021 11:55:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 11 May 2021 11:55:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=r6WLtHdZwihxqsEzJImmL1kbKZ vOkaLCou5DDgJ2SpI=; b=ANjNM09ZYCIOrwkmh62CNgjrr65m1uzH7ig8QFBOxw 8joNXb8Vyp6tQLQ5Ajjo/R/vv53ZephaJhHaln/6U5kBUyqYN2s1cS0o2xYYfdcH IKGxuGP2pupwA8eSLH+2a8o/56/e5UjeRkPjDKs3BibXLxZPb1QPANAggilSNw80 dUj4MVBDwi9FYz/TVwpwUkgh4HDaPKuo7tx5BnfvFxUdNP52cuLzm5fNrreUr72W Dg6GJeksIEE23a3NTz80fNZfdDskRnlvnZHFQxoLEv8tqFg22iKcgfARYsSlTFO9 GgREZyFY5Tap2HPK3fVfiuDMDDBub29eP7vBQ/YWW11A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=r6WLtHdZwihxqsEzJ ImmL1kbKZvOkaLCou5DDgJ2SpI=; b=nDHNgIbLOHmGysLeylsy8fCO3pHW6YGXh AmkumIGw3ATkiEMg9a4g+NU/J/8ysnMV4JQWHESk5l8nzIVnN9Aa53WOemxZUg0u szm6ZHXMLc9zjMdX4V7Fx5I2yjXRQVubTOmJqj2b0ACJa1QP7y+kXWXqWM+JNxRR SyWbN83YYd5H2HHzBAUpszPDE1GDL+AZPDnEBqLiEjgNqA2J4WHtOoynlbm0ogjb tvxtCJIRvjy+5ITz2DiehNInwrF29k9VhCVieGN/Fbvlx9yvLPY5hDhKnEVxsHd5 UxomN6rkmol9fIoVtRQeH+MlQtgcl9QB3QMg0nUdAGj9TNhkbO0Yw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdehtddgleeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpeforgigihhmvgcu tfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrthhtvg hrnhepjeffheduvddvvdelhfegleelfffgieejvdehgfeijedtieeuteejteefueekjeeg necukfhppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 May 2021 11:55:15 -0400 (EDT) From: Maxime Ripard To: dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard Cc: Maxime Ripard , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Documentation: gpu: Mention the requirements for new properties Date: Tue, 11 May 2021 17:55:12 +0200 Message-Id: <20210511155512.582798-1-maxime@cerno.tech> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org New KMS properties come with a bunch of requirements to avoid each driver from running their own, inconsistent, set of properties, eventually leading to issues like property conflicts, inconsistencies between drivers and semantics, etc. Let's document what we expect. Signed-off-by: Maxime Ripard --- Documentation/gpu/drm-kms.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/gpu/drm-kms.rst b/Documentation/gpu/drm-kms.rst index 87e5023e3f55..30f4c376f419 100644 --- a/Documentation/gpu/drm-kms.rst +++ b/Documentation/gpu/drm-kms.rst @@ -463,6 +463,24 @@ KMS Properties This section of the documentation is primarily aimed at user-space developers. For the driver APIs, see the other sections. +Requirements +------------ + +KMS drivers might need to add extra properties to support new features. +Each new property introduced in a driver need to meet a few +requirements, in addition to the one mentioned above.: + +- It must be standardized, with some documentation to describe the + property can be used. + +- It must provide a generic helper in the core code to register that + property on the object it attaches to. + +- Its content must be decoded by the core and provided in the object + associated state structure. + +- An IGT test must be submitted. + Property Types and Blob Property Support ---------------------------------------- -- 2.31.1