Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp534201rdb; Thu, 8 Feb 2024 13:06:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHMjTu4szNizFqqErwqcz/lIKygaRWaRFuMiBs5OGU71/AFomaNer01j1oJiKIm9wDNF3uG X-Received: by 2002:a05:6a20:5643:b0:19c:a2aa:67f8 with SMTP id is3-20020a056a20564300b0019ca2aa67f8mr800363pzc.24.1707426395179; Thu, 08 Feb 2024 13:06:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707426395; cv=pass; d=google.com; s=arc-20160816; b=vxHVqKv99U3o0Y3/voPy9CaSl7LoJVHHXI4IlkOlH3qlqcLZwvYfxwS4p0Aqorpk/k 1CxssR6H5OywZrD3tik/DDKXI900CSYZkNw+lLhbeFTSoLnzTyki8zdFD6rQfcdF7G5r 90IjD1fdFC6aAaGBBTXZN77FkfngrpPx89jIVaASALKhk/eFiYCRqcz0l9SjHMjnq4eN CowX4DLfRYkV44v1GUIOZDpDujHZB/JkVbGOf6PU5CWeHDcC8+RuDLBTZEuK26RiT7Sp buMIT8Sl++C33BTM6ensKlz9mbMTeLYSvgnKeWcJb42chxuA9CINLpPuwu6nYnsNaY9J U3oQ== 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=U133IwXwJlzGxQRqgfTPPRQ8YMDfuZUbbE+J5mQF5s0=; b=nCbajGEnFJgFmPZ+Mafa4shELjvtjnhyxSPthiy01BNO/3ni1r5YXJz0AC2x3pcEvM sLepS41lunMlZiEptwAeuTlJJoRGGUZRsLeL2Nl5IIhp91bss951hAW7jhIvxXUQuPai 7TqRyudD2Wsftst3OtPHXS0ZYJY+4FjaVo7RQuEf3dFmLi1u3ohKpjmNfkiUMOo2NdtF kNVD4Zx364RpHV/Aeb/iHfNf4NzW+NoqseiN+Fl29raosdOrTkKFiok9jeYn9dr1S0m4 /AbaJsy48oYGdmY1SQvaAxmPKQl5sEiQhHl8wiBCYDC6zZE4/vI/ji32tUo89uzn7Fv3 xqFw==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58695-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCVZqrTDgKk9WHBZM6y9YIkDMlE872zVJ+St4HW4ARi9/cSTtauEP644DaS75Wm5ZbbuUGW+VfJszvzmc0PeovYOGBEEvR0Lt/esy99ybA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id lo4-20020a056a003d0400b006e032e63f61si309981pfb.251.2024.02.08.13.06.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 13:06:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58695-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58695-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DDD3F287861 for ; Thu, 8 Feb 2024 21:06:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB7864F1E7; Thu, 8 Feb 2024 21:06:12 +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=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 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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(-) -- 2.43.0