Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1171236rdb; Fri, 19 Jan 2024 10:13:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IFy2WQpBu0RoOzVITqnyG9lmS+tOLzBujogxw7ZsJzjCpLm2fceNbRQyz23EDWAh7emkgfb X-Received: by 2002:a1f:fc08:0:b0:4b7:8794:17aa with SMTP id a8-20020a1ffc08000000b004b7879417aamr120717vki.25.1705687994326; Fri, 19 Jan 2024 10:13:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705687994; cv=pass; d=google.com; s=arc-20160816; b=kltWJCDXSeRPq3ziUE+qRry/pVXeiKWizkSSEMTzCCA90/gtYTFbb+LBoNFmRd5R6Y uiLH7v31QilPbd6W6g3JSxj6O8MvuhbqJkn+UIBvHki35giQVdksPZNnQ2vJOP66Z9p+ GD1D8lh3wbGzr1NYfE3MDY1SPbJQNBlvc0tH/54nRbKcbi7eKdYDQwaSNL5DndrViE3C Hi4u1fgNhSmyA0LOZm0IurGCoidNZi3EvZlzAyU7Sl3eTwyYw+vNQLop/Nuk5TR+4Xqc 18ZVi9Jx8FtCh/HV8X0e5SruH0fj605MvUxjC8SU5RB9ogOER4q/zOTl62aS+zOCPKRe ARYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=snS3sepdCs4f30m6IiSQJtRwuG+MKNNfpUzB7tS2E6E=; fh=njd2ecPfO+MOSUbjxezZy5Zaoa3J5aSXR1p04i4lAW0=; b=Q5fvMwLxOv4BdtejX0PX41ewiJp7E0mIX/mEAk8AI4835Iyerga/ZX4Pow3ZOG/+9B u4UjxtwNr5rZCuCy75WP8RsGqP9082BZLnjeN8p/g1iHQ4tPZaE874JmKlwMyi7k8/Kv UD7LK69UtueQHu7qxrTE3vp2QTYEBJh7DG+gmQjz+y6OG7232RQk7XxlhsZB4Pj9T4PW R+Q6Ycta/D4iwlITUrnMLUlVCWSLvkID1+Ntn0n0X8e9LNcter1b/8zf/5q+J5tpbihw Bof8eGSbdhdmqcxnKXsyvWMBmXPWxxSbHMgh5guWKo6NGRzuC3SyM/GeL7AiUtyGueLf oUUg== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=Rn4mlrLK; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-31463-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31463-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z25-20020ac5c199000000b004b72e926bb2si2258959vkb.220.2024.01.19.10.13.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 10:13:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31463-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=Rn4mlrLK; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-31463-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31463-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 172011C24881 for ; Fri, 19 Jan 2024 18:13:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A13F256458; Fri, 19 Jan 2024 18:13:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b="Rn4mlrLK" Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) (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 E937B3C6B9 for ; Fri, 19 Jan 2024 18:12:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.60.130.6 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705687981; cv=none; b=p1ePCLgnvuP2Qs4zqHeg9poBadjDJpK9O0eJDaYnNfwpRQ15GE5JYw+JvS4a5GiFGkLDx0+03TeX/klHaUeuWyVmdiHOoJ04BBkOS9ceWBgQ+rpIFq7k3AuOGR4eONrb5IjCfqCirxKfcGQsuGIDgyAlc1/dO0rhnSFxwjD0t/A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705687981; c=relaxed/simple; bh=qhvEmmdHG6XJFlP+++1jTmWjYBCnRGIB+7vVpzhQfvE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=r58nrXz3eSTVHXuykdShp0MVsaioVHFgIr67zbJzHEXGxQXd+Wr63L8s6TNui4Y7gxGOZzDgA7zazquoWOaqV/y9cLocQ5kQ7FVzYEmAm489yoHe+A2ShoF4yJX//jfqs2838eJhDM1vqol6Y35h1x/DKO8BymiUKU4tjBPERXs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=igalia.com; spf=pass smtp.mailfrom=igalia.com; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b=Rn4mlrLK; arc=none smtp.client-ip=178.60.130.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=igalia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=igalia.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=snS3sepdCs4f30m6IiSQJtRwuG+MKNNfpUzB7tS2E6E=; b=Rn4mlrLKo/ZYehkmOop33PLDPN UhTix9wtq+KOdPY1ltIEEzTRN2i445FkNqJPbe65lzVHlkVGXy6yw4F0/hvfuJ1ystQ20uGwNJmw3 iOQDBpmvBIdEpz8zjLdnXEjxY1JbZNJCxvJwBEwDNA5J2iV0WzV9/AB5OrvJb5p5w4zdjxL1GM2ck ZTl//TlPnWoKFvaRyU4gVNhK/6Cvvqdb4srxuaJTfU6Ll62vr34UItsdYpXiRwgf5F0UvvCKs+1/4 oLkLiuQliar5aRo015hSSNukTtY/q+BJAcHe29J2kbzUgGRwar2/dp2uXBLg3WSraSSlcxBEPPyLp 9OkZLP8A==; Received: from [177.45.63.147] (helo=steammachine.lan) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1rQtMD-00873a-BS; Fri, 19 Jan 2024 19:12:45 +0100 From: =?UTF-8?q?Andr=C3=A9=20Almeida?= To: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: kernel-dev@igalia.com, alexander.deucher@amd.com, christian.koenig@amd.com, Simon Ser , Pekka Paalanen , daniel@ffwll.ch, Daniel Stone , =?UTF-8?q?=27Marek=20Ol=C5=A1=C3=A1k=27?= , Dave Airlie , ville.syrjala@linux.intel.com, Xaver Hugl , Joshua Ashton , =?UTF-8?q?Michel=20D=C3=A4nzer?= , =?UTF-8?q?Andr=C3=A9=20Almeida?= Subject: [PATCH v2 0/2] drm/atomic: Allow drivers to write their own plane check for async Date: Fri, 19 Jan 2024 15:12:33 -0300 Message-ID: <20240119181235.255060-1-andrealmeid@igalia.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi, AMD hardware can do more on the async flip path than just the primary plane, so to lift up the current restrictions, this patchset allows drivers to write their own check for planes for async flips. For now this patchset only allow for async commits with IN_FENCE_ID and FB_DAMAGE_CLIPS. Userspace can query if a driver supports this with TEST_ONLY commits. I will left overlay planes for a next iteration. Changes from v1: - Drop overlay planes option for now v1: https://lore.kernel.org/dri-devel/20240116045159.1015510-1-andrealmeid@igalia.com/ André André Almeida (2): drm/atomic: Allow drivers to write their own plane check for async flips drm/amdgpu: Implement check_async_props for planes .../amd/display/amdgpu_dm/amdgpu_dm_plane.c | 29 +++++++++ drivers/gpu/drm/drm_atomic_uapi.c | 62 ++++++++++++++----- include/drm/drm_atomic_uapi.h | 12 ++++ include/drm/drm_plane.h | 5 ++ 4 files changed, 91 insertions(+), 17 deletions(-) -- 2.43.0