Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3034417rdg; Tue, 17 Oct 2023 02:31:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IErlpDYNEAkeafupGBktzbbDxlstPbc0/PVBX1E/UCGP+tT+SA8HM1neIkbr/KM2UeQKiPA X-Received: by 2002:a17:90a:3de5:b0:27c:f8f4:fedb with SMTP id i92-20020a17090a3de500b0027cf8f4fedbmr1606969pjc.21.1697535072011; Tue, 17 Oct 2023 02:31:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697535071; cv=none; d=google.com; s=arc-20160816; b=fyeX6YzTlbIoexJOYxdQ9QD3RvyyKW8iL8TxYPvXq2oL+djA88U/4l9wczQ4Up34LB eNo7H0BRyCkkTuEf48704DK+olTrvHAZBUALkcj7T/Qo9XCBfo+xd0ju2HZOQ1DwZXCz Zf3rN4cqX1Eu0JJSxZldicyv7D6z6RqvhBTSZOK86R7OLtBtr7XaEQEe1z9EB+eKm3E/ /OTpDmstisx7xw/cp3VAgw0Y/ab1QfEnn767lVpKsTa8wPAe/JL7DivD6GQizA4mZ2Pd hDMC2PLVCR12dGtEehs0hCKM22BGpfxzDy5u6BzZC657R5LFB6O60jgsIZV7sCCHAuid bWQA== 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=Zoyx6acph8T/D4cDNkRj+Bxu58arAqE6Znc8aS28M0U=; fh=SJQ48KwEv1Wk78SyBTKjV1EcFj2vZ5p6XYIidAE2t8E=; b=gjqxcObTWx5VRbBVzicgQMSB4OKZ2PLW5Do0jrFP5Cd1ytS4CZgQvDhJEy4dRW/50Z rqagpFjAa1Afii3CnKcx48fr8JnQjRFDxsVUh2KXTftMhrkwqoH0eVTXFbXd3/wx4Wpz qxD+ELLEhAs7XOdIp0WgVzyjTZ1FXJOUJ0d+nlpgOo3T2zC4BtwLd9RxG9SS7a6VoCFw l9YbEnBETASEAzFcNpInAnEfqG72XoGVsCrRoEdvMEa4cYTECgRWZm9ouufUyQFrb15N 6Q4H05fkJyVLE15TxC47YT2m67rklUEsqdvLn7k+fqtrH57fHyzBj3+jokvVjaJyxqfI CxrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=pG1JKIec; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id ls14-20020a17090b350e00b00274e16f797csi1332763pjb.20.2023.10.17.02.31.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 02:31:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=pG1JKIec; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 754678096788; Tue, 17 Oct 2023 02:31:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234808AbjJQJaq (ORCPT + 99 others); Tue, 17 Oct 2023 05:30:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234984AbjJQJ3i (ORCPT ); Tue, 17 Oct 2023 05:29:38 -0400 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A4F119AE for ; Tue, 17 Oct 2023 02:28:53 -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=Zoyx6acph8T/D4cDNkRj+Bxu58arAqE6Znc8aS28M0U=; b=pG1JKIecF2BtvDA1vVl9uxnEb0 tsGe52hITAfAs+Sn4Hm7ycaFLwRLFA9I805pa/f2ozAqSfs1xZDYk8zW6uRcZbeR3XXCyHXizeeU5 u9Vo6KxtT9B1UORnieFMmwT/XL4M3Ss5L9Iht5UdQcYHYE2um1anYmPrGpXEC8Ag9WPcIPSpFNDc/ 4WxivlCutLspGIGkN9/S9GLzSZoXz4mNIPYN06AZLIVWB420p6pznXNck3+rRuj7K2eqo5lHpGXAB nWkJpZQUAXH5wYCTDuDICorsD3kHQ1TyoMCJUl/94FCf7nKUhAd2Msm51pRpYvjIzDAumK0gtpQTI SAlOAGxQ==; Received: from 167.red-81-39-185.dynamicip.rima-tde.net ([81.39.185.167] helo=localhost.localdomain) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1qsgNf-001ODF-7B; Tue, 17 Oct 2023 11:28:51 +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 Cc: pierre-eric.pelloux-prayer@amd.com, =?UTF-8?q?=27Marek=20Ol=C5=A1=C3=A1k=27?= , =?UTF-8?q?Michel=20D=C3=A4nzer?= , "Randy Dunlap" , "Pekka Paalanen" , hwentlan@amd.com, kernel-dev@igalia.com, alexander.deucher@amd.com, christian.koenig@amd.com, joshua@froggi.es, Simon Ser , =?UTF-8?q?Andr=C3=A9=20Almeida?= Subject: [PATCH v7 6/6] amd/display: indicate support for atomic async page-flips on DC Date: Tue, 17 Oct 2023 11:28:37 +0200 Message-ID: <20231017092837.32428-7-andrealmeid@igalia.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231017092837.32428-1-andrealmeid@igalia.com> References: <20231017092837.32428-1-andrealmeid@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 17 Oct 2023 02:31:09 -0700 (PDT) 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 --- 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 9d5742923aed..c6fd34bab358 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -3997,7 +3997,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.42.0