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=-12.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 B5EDBC4363A for ; Tue, 20 Oct 2020 14:39:48 +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 ABAE321534 for ; Tue, 20 Oct 2020 14:39:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ffwll.ch header.i=@ffwll.ch header.b="i1BOkcgy" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ABAE321534 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1FEAD6ECD1; Tue, 20 Oct 2020 14:39:47 +0000 (UTC) Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id D88976ECD1 for ; Tue, 20 Oct 2020 14:39:45 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id f21so2047898wml.3 for ; Tue, 20 Oct 2020 07:39:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+5oyjWFNJLLIgICGFFIyWwAg8GW7cmkYboY6N0kNZho=; b=i1BOkcgyr+olUM/WgT2oOcUoViGdX7PArVEJ/FgppYmwLSska/8WGOqVXFco05yey3 ipwY6B6NrEzYygzVnYqWuts4pKwBU11yIVUvYkbDNdFmwza5mNaM6htWXCjVgrWADmW8 tXBoeukNhu7yeHIHSNX/3yVnKhYyd9ncs3AS8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+5oyjWFNJLLIgICGFFIyWwAg8GW7cmkYboY6N0kNZho=; b=lACiCZ+d+CeS3INFAXTUZ6iHRRJ3Q8EV8mKX3iMeTXXxWmF0PfKuEreCpwaEJZhpTM H9ZMDs6Ki+OOAYbpt7Gjl7i58ihayX4vit/p0kZQ29P1qdfusVdrpm6l8TZBRdcD6ExC 8AcU4nikjH6Q8d59Vbn0yi2jsd2HDyE7Y3u5My7ZcyYvwzXEDpdV46L4GPWXe8jGq8vE 6qDpaFS3yq57OybmFlOvZpx+Vx/fg2DjdAf+zHtUul4oQsx9jGIhmbDiuDAfGuSC9TUW oWi3nLNr2zA1SaH08UA0knk2aT+v+9dvQZ1EVUANqP23L3XQBXzgXDrsToZcWpV5Wa9e rzIQ== X-Gm-Message-State: AOAM532purZCRkfcax5fCBp/kxj7c89p2MUlX+ENe9uC6GFPCOUvmVUo qs31i+pZysW0tFRW0EYMKS1/kw== X-Google-Smtp-Source: ABdhPJzn8lbAN8bitPZxq9k92FD46KP+Yuaq1K+kT+CHW8m4M9XG0tz+nZ9XdLzh/Ko/LiL4TGHugA== X-Received: by 2002:a7b:c10c:: with SMTP id w12mr3447769wmi.175.1603204784483; Tue, 20 Oct 2020 07:39:44 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id 32sm3458272wro.31.2020.10.20.07.39.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Oct 2020 07:39:43 -0700 (PDT) From: Daniel Vetter To: DRI Development Date: Tue, 20 Oct 2020 16:39:36 +0200 Message-Id: <20201020143936.1089259-1-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH] drm/doc: Document legacy_cursor_update better X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , Daniel Vetter , Intel Graphics Development , Maxime Ripard , Thomas Zimmermann , Daniel Vetter Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" It's the horror and shouldn't be used. Realized we're not clear on this in a discussion with Rob about what msm is doing to better support async commits. Cc: Rob Clark Signed-off-by: Daniel Vetter Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: David Airlie Cc: Daniel Vetter --- include/drm/drm_atomic.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h index d07c851d255b..413fd0ca56a8 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic.h @@ -308,7 +308,6 @@ struct __drm_private_objs_state { * struct drm_atomic_state - the global state object for atomic updates * @ref: count of all references to this state (will not be freed until zero) * @dev: parent DRM device - * @legacy_cursor_update: hint to enforce legacy cursor IOCTL semantics * @async_update: hint for asynchronous plane update * @planes: pointer to array of structures with per-plane data * @crtcs: pointer to array of CRTC pointers @@ -336,6 +335,17 @@ struct drm_atomic_state { * drm_atomic_crtc_needs_modeset(). */ bool allow_modeset : 1; + /** + * @legacy_cursor_update: + * + * Hint to enforce legacy cursor IOCTL semantics. + * + * WARNING: This is thoroughly broken and pretty much impossible to + * implement correctly. Drivers must ignore this and should instead + * implement &drm_plane_helper_funcs.atomic_async_check and + * &drm_plane_helper_funcs.atomic_async_commit hooks. New users of this + * flag are not allowed. + */ bool legacy_cursor_update : 1; bool async_update : 1; /** -- 2.28.0 _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx