Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3718432pxj; Tue, 11 May 2021 10:21:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1Uyk1xoBPy0yVkZ1Sh4vfla8fdZqaJttaFF8dlYxYTqd2tTSqY7esBPFeQXxcDBzds4uV X-Received: by 2002:a7b:c0c4:: with SMTP id s4mr6663521wmh.174.1620753694961; Tue, 11 May 2021 10:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620753694; cv=none; d=google.com; s=arc-20160816; b=QqOhPR02SmtaoIcsj2Ygw/7WivdEAcjqpBsQ8QXU2OFTsc/ubPRTEV3pEvqkXENZAH XQ0FpqhzGZ1DrdN/sH80kb39saBbYypuoIpqlGWW6+yCd27ZthQfVjUlqUwPgun/JbIC T17h0PJfI+aaiQSf+ctXMyPICN3YmrmyddoJDgqu8o5IrxixfwrHSSOxN1RoJsS4//gF /akQCQ0bueGJ2OkqXp8OtueHvGBKYTHQCiBNsDR6xCsDX8f663Q7liYigiMrokVxqFFZ use8h9SdGYyV23R+KgxK8FSk1oYsfU4GhWieLCqjrNmNV9uM30LfM5DJaFOv+2SsLD50 Cagw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=gJ4QXLOi5qYQcWsKhnhYHHHN84GDlI0qyOMz9LJ9MJA=; b=UvfglPBxyK6+oY5amB1kw5znPCosgFagzrsNWUSSglknnRVX2lK5VrQK2yaCPpcpQH Aj2w/BYHkRpkWYghGuMPAKKBU7jyTg6ZLJvHq5TJ0mQBzlcQG/xPOZRO9L71Uxf00KNx v2CCw9UXRRVVSPyOPwPyuY+vy1MG3domF+ri2WwZLtGMLtBH1Da5BziwUoNTCJJRMJVE udQ6+w91mDWUNYBgJMvethGe8T3L5sZ5jXYaeB0kNnGHg0mGfoZ/gy2lWMTYQSYUpsE3 A4l0rgxbHyrYYB8p9FAeTwX3mGh8wx20ngdN6lwu71jS34AOZeR7p0OFhcynsRYzQ8o0 GWAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=NAHQH1OX; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si3763117wrq.528.2021.05.11.10.21.10; Tue, 11 May 2021 10:21:34 -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=@ffwll.ch header.s=google header.b=NAHQH1OX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232006AbhEKRR6 (ORCPT + 99 others); Tue, 11 May 2021 13:17:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232000AbhEKRRn (ORCPT ); Tue, 11 May 2021 13:17:43 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 472D2C061348 for ; Tue, 11 May 2021 10:16:32 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id f1so1551122edt.4 for ; Tue, 11 May 2021 10:16:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=gJ4QXLOi5qYQcWsKhnhYHHHN84GDlI0qyOMz9LJ9MJA=; b=NAHQH1OXA4z8A3ywZoUPLx5PZOjYmtpy3Kvd0nDQV2Ehv6Pq4POjIhL0k8pP+J6W+3 Qsb5UVXY2TnQuCH72qYKa0w4e4thRDVppRcqJmjc3OMYxCHFW75FUpzVbAAa0xrdBJ4I jPQXapvhkl5itLg62egldnLCWd0n+GZGQAsGE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=gJ4QXLOi5qYQcWsKhnhYHHHN84GDlI0qyOMz9LJ9MJA=; b=XsKRESoKh73j3U05gdvNXO3jqRXbYhRf13lDBX0/BT5KBFJxM66XmUJ7XjCGrRYgnk VwTOdHvULxI/aE0DgrPPNSF3HbD37NpAyRtgKLO9lW8MNt40YYtfULuzCadnoI6+aAfi O20O1XqF338BM4hTGU1VYWNiO65j+910WTVvDX1JOdBXDBLfHJDS/e4KHMi9IGVXqQQo S97ZHE58lzJdLYg7yI+zkrsRoS8bX5h2UfQOg3tgt2gm764zQwaA06UZNeHT3Z8Tynyd UU6CsNVFpkYO351BLOSm9q3ZjD7bK75A4BdGMub8DTCo/NQ2/yKW9NmwL2eY1+zJRAi8 vGPA== X-Gm-Message-State: AOAM531ZMe7ifpP5Pu7CqD3g7ZXoVbWj3rjZS3kQNhGbnM4XkDVUX5k1 3dVGs21bzxBeohl0fdiDjN+qQQ== X-Received: by 2002:aa7:d0c9:: with SMTP id u9mr37437114edo.43.1620753391002; Tue, 11 May 2021 10:16:31 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id u6sm12175280ejn.14.2021.05.11.10.16.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 10:16:30 -0700 (PDT) Date: Tue, 11 May 2021 19:16:28 +0200 From: Daniel Vetter To: Maxime Ripard Cc: dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet Subject: Re: [PATCH] Documentation: gpu: Mention the requirements for new properties Message-ID: Mail-Followup-To: Maxime Ripard , dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet References: <20210511155512.582798-1-maxime@cerno.tech> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210511155512.582798-1-maxime@cerno.tech> X-Operating-System: Linux phenom 5.10.32scarlett+ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 11, 2021 at 05:55:12PM +0200, Maxime Ripard wrote: > 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. Maybe also include anything that drivers might want to precompute, e.g. we have helpers for cliprects. > + > +- Its content must be decoded by the core and provided in the object object's > + associated state structure. > + > +- An IGT test must be submitted. "... where reasonable." We have that disclaimer already here: https://dri.freedesktop.org/docs/drm/gpu/drm-uapi.html#testing-requirements-for-userspace-api I think would be good to cross-reference the uapi rules in general https://dri.freedesktop.org/docs/drm/gpu/drm-uapi.html#open-source-userspace-requirements With the bikesheds addressed: Reviewed-by: Daniel Vetter But this needs ideally a pile of acks from most display driver teams. -Daniel > + > Property Types and Blob Property Support > ---------------------------------------- > > -- > 2.31.1 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch