Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C7F9C433F5 for ; Fri, 3 Sep 2021 13:00:33 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F3E3C60249 for ; Fri, 3 Sep 2021 13:00:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F3E3C60249 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=emersion.fr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 14C0C6E88F; Fri, 3 Sep 2021 13:00:32 +0000 (UTC) Received: from mail-4323.protonmail.ch (mail-4323.protonmail.ch [185.70.43.23]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3A6896E88D for ; Fri, 3 Sep 2021 13:00:30 +0000 (UTC) Date: Fri, 03 Sep 2021 13:00:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1630674028; bh=yj1vPjXpuXfOLf5irnHdykDlpl0F5hwg9VHQTu+8H14=; h=Date:To:From:Cc:Reply-To:Subject:From; b=QSAs+uLpnFM0MRKOew76Onqohd57cLbtKmM1oVezcwltcIG5HTS2jkWT/PLGmDVPJ c+RrJy3OlFbunq9ZIjahXzH+QIl4WnNfzzbByO3AL9cbHhj/kCxJB/kOMgCns5foIW EmkznPOgCt9d4M2rZ2yLAJobss98rPqrmHEpqYf4EX18CHw/8wgEgyEl/z7a620GEQ 7Dd7T2Ck5KTRuD5l+bkgMHpG1pYtijbalYpG24vYGNTGWnA0Zify9aziitGCgQR2RO KES+H5uuQhGVQLAlnmFzGKyDxt7S1fWbZtGNqkFue5IEPxSj6AYr9ZlKxOG7JVSVO6 cglFUvNQem6sA== To: dri-devel@lists.freedesktop.org From: Simon Ser Cc: Daniel Vetter , Pekka Paalanen , Keith Packard Subject: [PATCH v2 1/2] drm: document drm_mode_create_lease object requirements Message-ID: <20210903130000.1590-1-contact@emersion.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Simon Ser Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" validate_lease expects one CRTC, one connector and one plane. Signed-off-by: Simon Ser Cc: Daniel Vetter Cc: Pekka Paalanen Cc: Keith Packard --- include/uapi/drm/drm_mode.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h index 90c55383f1ee..e4a2570a6058 100644 --- a/include/uapi/drm/drm_mode.h +++ b/include/uapi/drm/drm_mode.h @@ -1110,6 +1110,9 @@ struct drm_mode_destroy_blob { * struct drm_mode_create_lease - Create lease * * Lease mode resources, creating another drm_master. + * + * The @object_ids array must reference at least one CRTC, one connector a= nd + * one plane if &DRM_CLIENT_CAP_UNIVERSAL_PLANES is enabled. */ struct drm_mode_create_lease { =09/** @object_ids: Pointer to array of object ids (__u32) */ --=20 2.33.0