From patchwork Thu Feb 8 21:05:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Almeida?= X-Patchwork-Id: 20130 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp457491dyd; Thu, 8 Feb 2024 13:16:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGF7bhLgitklG91lSmo5f0MQO6Uk8QFAxPg0havVF8DQDX+g8IGUgi1BSv4SZ+aLXbIIvu+ X-Received: by 2002:a05:6402:f11:b0:560:fd7d:8674 with SMTP id i17-20020a0564020f1100b00560fd7d8674mr3831035eda.2.1707427015444; Thu, 08 Feb 2024 13:16:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707427015; cv=pass; d=google.com; s=arc-20160816; b=EyQM3rG4Zkoe/DwLbs3nO+eP+PQdjy8nAWQCBTPAgmeY1/beoyTGGXrSSsNC6vyNkd wTYNvKpYUEpYfNGMx8H7DJzn59uL21cz2YKeI3nRL0U5Yv5cjb/FZt4UM3ai1hK+0Wnl Pw0yfFdMW7YGeJf6XOp9/T5NTRiVd1cDhORzgVTblpL5zBIZ4Zx8rDreEj4leERKsEfV WRbtMvS0gJTHfdgyHF2NGuXBKIWNWMi+b3Cc3lGnGaMhO3o4zW/sV5pbennif1ijG7OQ o7GHpBKwHMv69kctveWdGcX9vxd0Xk+mSvJh+cNe+wfDMHJDRGEekEPwfPnX8kNbEo2m f32w== 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=kyFdaFZn5fxDlyBsRXk/mw238QRIyiO/3fj7J8kHjNw=; fh=zQ+FRObCIGwGRjrjEm7k4jJY0bm2nLRVAAIpiGS8sAI=; b=QXZwlaA5FgaOBrRHxqogk8XKEGKJTfgdHBJ97D+prviLgfxwsVO/SH6OTnqRJ5Vnlm wOh+/SZbyuXRMVbmlnVOyuqZ0Tt2b/RUyOXE3VZM8zdTCqbhklPcCej6gc1srpOLrFDf LQBp60nBeWSdLBkevJd4tOmnMq7bPUje7H776w25M8MtMfvzG2+HsCLgzv/CbIQSHzD4 yi7zgKj/CDmSO3+H2l4rE4Gnigp+0IkxzuFFp2uYNTdQvEKS4LrG7uNm2Ps+gB2p+lfQ AcIIwR1JpqagVBiLWY8xv6KGcTxCFoVvtQx3FT96BYWmlb1USQLoxvI9w5Pv6IjuPtDe 8VbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=bPVMvjuN; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-58695-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58695-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCVRet2pTBOn1bLMmdRg07sTs96qUsAWeX0wNG8yRFmUYaYSnK/pMXf+GgxlHBOSWu4WzynrSKq7GdDnESg/HhxTVtAmdA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dy19-20020a05640231f300b0056111c91b79si111625edb.58.2024.02.08.13.16.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 13:16:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58695-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=bPVMvjuN; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-58695-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58695-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id E7F501F2C446 for ; Thu, 8 Feb 2024 21:06:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C505A4F5EA; Thu, 8 Feb 2024 21:06:14 +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="bPVMvjuN" Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) (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 7105C4C3BC for ; Thu, 8 Feb 2024 21:06:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.97.179.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707426371; cv=none; b=ekszSFrq8vFSUAco4t9yHw0cWMDRgMWHMh2bgS7aOF2tzMtS2IHXk4ehj1DjMpfYVaxkVsx2Mpc4PCLm8VO3NtV1XH31IPQJu+nrOz84PafC1VzjngHHcf87wc1dZauOW74PAZ02a4Dnz0lnJVV/z6giOz+LhEfbmFBok8STuEE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707426371; c=relaxed/simple; bh=aFKaEtHT7WyXEPskslqxQKDMgPIVsPSsjkX6+5U4kdI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=pKyNTQf9WjjWqc/I2tqt0rYvsuaEfAPgOJ/D8R1RCI3Xoj138xtxGqOOsMpy3tfKRrBDNh2JwYPl6f2IGOhSMliaFw7ZgoUv3WkPnS/UapZirUD0/nC8oZarftqo43mXwjGACBLbX5PTyth1BrciW3lh7W//OK+XfkumUVspauA= 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=bPVMvjuN; arc=none smtp.client-ip=213.97.179.56 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=kyFdaFZn5fxDlyBsRXk/mw238QRIyiO/3fj7J8kHjNw=; b=bPVMvjuN+0OiIcqtRCnCv2qXcQ VAxWA+DDjI9bpmt4CiVU4Ac8fEHRJSjJFrdbIdDiYNwvw3H0o8Pv4f1pKTXV7UjoGj0G4YjG1TqmJ dqqi1KNO7NkfPdDq0hmQYpsxDu5JNv9W4LALJCRJMzH836YDGu8j6wyOoOBjNeYP/09BEt+zJf/+o zA6fEfVqC41T22xFVkfqooE1CTg0k6fdXh6YaNTzuL/iyFFh6u6fVbQPo1+9PFSO+pQA4ToHWVLos nUvIIGaTBPedsneHdQjkWIa52dooBitg3MwbIqvEdV80ymjRMl/83Aas/Nb6sApw1MhbCajY44/qn hffwKQhA==; Received: from [177.45.63.184] (helo=steammachine.lan) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1rYBak-00FMBk-IJ; Thu, 08 Feb 2024 22:05:54 +0100 From: =?utf-8?q?Andr=C3=A9_Almeida?= 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?b?J01hcmVrIE9sxaHDoWsn?= , Dave Airlie , ville.syrjala@linux.intel.com, Xaver Hugl , Joshua Ashton , =?utf-8?q?Michel_D=C3=A4nzer?= , =?utf-8?q?Andr?= =?utf-8?q?=C3=A9_Almeida?= Subject: [PATCH v4 0/3] drm/atomic: Allow drivers to write their own plane check for async Date: Thu, 8 Feb 2024 18:05:39 -0300 Message-ID: <20240208210542.550626-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790366989923986673 X-GMAIL-MSGID: 1790366989923986673 Hi, AMD hardware can do async flips with overlay planes, so this patchset does a small redesign to allow drivers to choose per plane type if they can or cannot do async flips. It also allows async commits with IN_FENCE_ID in any driver. Changes from v3: - Major patchset redesign v3: https://lore.kernel.org/lkml/20240128212515.630345-1-andrealmeid@igalia.com/ Changes from v2: - Allow IN_FENCE_ID for any driver - Allow overlay planes again v2: https://lore.kernel.org/lkml/20240119181235.255060-1-andrealmeid@igalia.com/ Changes from v1: - Drop overlay planes option for now v1: https://lore.kernel.org/dri-devel/20240116045159.1015510-1-andrealmeid@igalia.com/ André Almeida (3): drm/atomic: Allow userspace to use explicit sync with atomic async flips drm: Allow drivers to choose plane types to async flip drm/amdgpu: Make it possible to async flip overlay planes drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c | 1 + drivers/gpu/drm/drm_atomic_uapi.c | 8 +++++--- drivers/gpu/drm/drm_plane.c | 3 +++ include/drm/drm_plane.h | 5 +++++ 4 files changed, 14 insertions(+), 3 deletions(-)