Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2243834rda; Tue, 24 Oct 2023 17:54:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+6/8wFaFzw2pfqEx8FluN+Hh3g2Gq4obANHgR+MHJOdmEbgd+RgMWTeXhLJ4zCxZvHG9r X-Received: by 2002:a05:6a21:a597:b0:15c:b7ba:6a4d with SMTP id gd23-20020a056a21a59700b0015cb7ba6a4dmr5467964pzc.50.1698195271675; Tue, 24 Oct 2023 17:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698195271; cv=none; d=google.com; s=arc-20160816; b=Q5HEOuPXEIAU/nXqPfW0lNxXVa6vI2QN68Vs3b6/SdHoItQvwMz2tG2xtymMAMpINr 4FobIzs7Z6zubGwoeK9cxxT7ulwAtCUl6d5XA4uS7UBCNlG1qaSeaVYyyB05NZEC9Zs2 GUUgsTH5f54ITFwK5LlQwj49ODXqxR0mhNgLeeUO6HrOJHt1WcJp7NQ5+fME9TulFl6b tRoS4yZHVdtLGWCiC8QTWLW/sI0S9vhT/XWKvlgHhiJOZH7PImiYb5QjBcscN3ahOPXN hLNpNJCYDtZ2z5c6swHnOANRap9l6eyq2EYr9+NY5TKK5Qgl8RQfTTqm/QfsRc1puaUv WyLw== 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=Ly+W1BaF+i7xsZIAQ5S1YLd4toT2p72ofv+UymR90NM=; fh=oozRrKarZZG8EJ8TWYFtLglEZVoKmF8bWYorcz/JMDw=; b=Ezo2trqud8UXavgsEr2cZspQ8KIJ7vDX5LA0UGggXk5+oWjOb6jLQOY1m38AFqk5pj YPSvt16o0Ghl/uJRmDcW6MUrebYNjbg3yY0l3mxMNxHEKFF26LF9lb7irkR58XKRLl+G xzNOKjSn5uIZHqrUBdLkbFHeocR2V88J4PqPuXcw9B4X14rEDpcD4CAsfngYX4VfJ5oU 3MIlETwp8mVFTbyhxk8LEYlo+lDXOHMRGTUZNPfOzn6PuzYhyj16JUJ+XYGqKU11x0X7 qYp5DYALimTOHqO6favTGmi79bqzZCKpMbG8SgYiX1YlL34k4Zcq+scmiA0dAkDnYXI3 XIRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=ZP2InQEG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id l9-20020a170902f68900b001bb0ff2b354si9335018plg.425.2023.10.24.17.54.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 17:54:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=ZP2InQEG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id BF5A4804C531; Tue, 24 Oct 2023 17:54:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229878AbjJYAyU (ORCPT + 99 others); Tue, 24 Oct 2023 20:54:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231865AbjJYAyD (ORCPT ); Tue, 24 Oct 2023 20:54:03 -0400 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A1AA10F4 for ; Tue, 24 Oct 2023 17:53:59 -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=Ly+W1BaF+i7xsZIAQ5S1YLd4toT2p72ofv+UymR90NM=; b=ZP2InQEGRTWolLJT6f0CDEqXPp RNTQEcCo/bJEx2eKMu1gf7+1wNHH6IxhUJvG0lDW+Z44NIqWNWEObkLEWTiYM88nMKRZUUwzwK7SN 1Ip+tT9pzsrC/bUYO0D16oqjX6p9w7YK5uMxsDvstwXSEhb4a2gzKMLFJTZcSHrwz243nqK6+91u7 UT8iaeqocgouYMlyi7QvVTC/kITlrHB8KtNPmSnQIOzVe2Fnd7XQAJqOOraphEXRdA/26UjW0Lvtt b983rd00w0PD540+5pn1mzQ6hCCWAHGt583ogSXu5BubSg1FfHOSM4B5BmExG2zTNjkpFseR9CWb+ KZJHNxUg==; Received: from [191.193.179.125] (helo=steammachine.lan) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1qvS9k-006qog-LD; Wed, 25 Oct 2023 02:53:57 +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: 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?= , Randy Dunlap , =?UTF-8?q?Andr=C3=A9=20Almeida?= Subject: [PATCH v8 6/6] amd/display: indicate support for atomic async page-flips on DC Date: Tue, 24 Oct 2023 21:53:18 -0300 Message-ID: <20231025005318.293690-7-andrealmeid@igalia.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231025005318.293690-1-andrealmeid@igalia.com> References: <20231025005318.293690-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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 24 Oct 2023 17:54:29 -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 dec6e43e7198..45b8fd61a044 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -4003,7 +4003,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