Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp23159517rwd; Fri, 30 Jun 2023 19:38:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlH49vTPZWoI2jfspm4IvuwGNfIZxKsFsETOMGIq7+H6RPcCFqvGd6zloQmwLoLVhIClYNB8 X-Received: by 2002:a17:903:2304:b0:1b6:b703:36f8 with SMTP id d4-20020a170903230400b001b6b70336f8mr7253712plh.25.1688179083365; Fri, 30 Jun 2023 19:38:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688179083; cv=none; d=google.com; s=arc-20160816; b=vXeS/+Mz4M1ADu/C+g43I13m/Tk6w0FkeiBUxPtpUBa9BQbSHzsiKjQUOZ5rwtiBQS /iklKj76d9La7/Tfv1AgIYNJuEMtN2dNrrMRxDNZBmAAGPCJjxm2GpSX/B0nonvLKlgp /yAzpCLy5R2IHStM2gUJy+TDjpbLqgIyE2eEOp52ZcZoTRUL2b/0t4ZlCkqk6V60av3J tRSpYVxkTZhYwSZTUzoEXL4z2wyBItRKzGPpRTURc17A1wC0ddjT+re599EIn9s0FpEe yJ9WnJZgkJR22uL9cxoAqWByMHh9ArqFY7m8W20hmulGpJmhxZD6HDLmmXLm2tFeu2Uc Hnhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aypGJ9zKriwl5rC/G/jg2t+UqZhEdGjhBXoWEgZUCvg=; fh=yJKnCMONMPDb5DcRuNlFPqebkFeNCW1ydpZFk0usg5k=; b=gKdaia2fyIFQ4Kk/+Ndh5QmKmHCep/n4moYt9ABOIUjiHWBxJlWBg7jJBVU0wJrqX0 AMLyIKICbYx+hBSpsRj4hP1xqQf29r+77pf7GiG8VxPYxryaQzNV+VYp52BAaJkXTrWR moIQbvUNa6AoCV1OYd63FSOzaGCIARf7xip9yIN+U/DRW+v5KjAdYgHrQ6VYuc1ZjSAY iwDLXvCIGWpCcfRXr9b8uYY5CzC9p3uxZR+R3Erobw6AgbL3FFdgpqoNv6F9uAWTJg8b CiLVg2ATKlqxSyDjGyOsc7giDkue3tO3vB6zp6/ou5bg5/grRYEBRDkuUbEjtcNDfex+ qUPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=pRlncQxZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020a170902e80e00b001aadba392c1si14435475plg.464.2023.06.30.19.37.41; Fri, 30 Jun 2023 19:38:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=pRlncQxZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229484AbjGACJ7 (ORCPT + 99 others); Fri, 30 Jun 2023 22:09:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230008AbjGACJx (ORCPT ); Fri, 30 Jun 2023 22:09:53 -0400 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA5334481 for ; Fri, 30 Jun 2023 19:09:48 -0700 (PDT) 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:References: In-Reply-To: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:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=aypGJ9zKriwl5rC/G/jg2t+UqZhEdGjhBXoWEgZUCvg=; b=pRlncQxZeXRzBd8d9pNtQjHbw2 OLM2JC1G2JQw2KDsTdhL/GLf61rRrwZKZLPt1eoBrhgaWy0buejKE5scLhE+J5rDDdrCTXr/m1Tip C15kxHnHoG2WDisBaaxszxaFbhZKKddOhZ04VPevK1TxHJdoDWfvqbLaqib+QElLSris1ivEWygF8 bwcMpjoxkfkqbyj1EbP2BLw13IUxTJF5GTvIl8NlIbv61oJwvV0XQaL69UQ9Y+jhYsqr1oc5JDWGU hADgZkZ28NFCHyF0/7OsOGnXmDUQp+Jsd1d6NfZCqu2MZOHu+dO4SMMc7VhOuzKU7TwLfZ7PFY5yR nbC0vvUg==; Received: from [187.74.70.209] (helo=steammachine.lan) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1qFQ3V-006abr-U9; Sat, 01 Jul 2023 04:09:46 +0200 From: =?UTF-8?q?Andr=C3=A9=20Almeida?= To: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, wayland-devel@lists.freedesktop.org Cc: kernel-dev@igalia.com, alexander.deucher@amd.com, christian.koenig@amd.com, pierre-eric.pelloux-prayer@amd.com, Simon Ser , Rob Clark , Pekka Paalanen , Daniel Vetter , Daniel Stone , =?UTF-8?q?=27Marek=20Ol=C5=A1=C3=A1k=27?= , Dave Airlie , =?UTF-8?q?Michel=20D=C3=A4nzer?= , Italo Nicola , Randy Dunlap , hwentlan@amd.com, joshua@froggi.es, ville.syrjala@linux.intel.com, =?UTF-8?q?Andr=C3=A9=20Almeida?= Subject: [PATCH v4 4/6] amd/display: indicate support for atomic async page-flips on DC Date: Fri, 30 Jun 2023 23:09:15 -0300 Message-ID: <20230701020917.143394-5-andrealmeid@igalia.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230701020917.143394-1-andrealmeid@igalia.com> References: <20230701020917.143394-1-andrealmeid@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Simon Ser amdgpu_dm_commit_planes() already sets the flip_immediate flag for async page-flips. This flag is used to set the UNP_FLIP_CONTROL register. Thus, no additional change is required to handle async page-flips with the atomic uAPI. Signed-off-by: Simon Ser Reviewed-by: André Almeida Reviewed-by: Alex Deucher Signed-off-by: André Almeida --- v4: no changes --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 258461826140..7acd73e5004f 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -3970,7 +3970,6 @@ static int amdgpu_dm_mode_config_init(struct amdgpu_device *adev) adev_to_drm(adev)->mode_config.prefer_shadow = 1; /* indicates support for immediate flip */ adev_to_drm(adev)->mode_config.async_page_flip = true; - adev_to_drm(adev)->mode_config.atomic_async_page_flip_not_supported = true; state = kzalloc(sizeof(*state), GFP_KERNEL); if (!state) -- 2.41.0