From patchwork Tue Aug 15 18:57:08 2023 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: 135747 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:3f2:4152:657d with SMTP id x8csp1049974vqo; Wed, 16 Aug 2023 04:50:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFlsoKS9T8bWKjJPd0XHMOskd8M1HR4sAniCIwmO2zdgPaaEGxjcrPyLTv3XUYeEcTU0Knv X-Received: by 2002:a17:907:75db:b0:99b:f645:224 with SMTP id jl27-20020a17090775db00b0099bf6450224mr1239612ejc.9.1692186652412; Wed, 16 Aug 2023 04:50:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692186652; cv=none; d=google.com; s=arc-20160816; b=SkitRUrfYuyntkaRcHlhYddnbKMShU4jnyZNkQLOnkRSKqRQnSh6UmmWAfIOHxzGOx z0PxPI+AXDyuhYEV9Idm/ISxiV/DlE78czHNvRkyj9XR3pQ90VEcpjpXQ6Q/iEkF5TPm 5cONL8/h/vgdrrKylrhJzbPI6X5mFsL+SJgXajVcsOz6ivgqmfACYjwRbElvny5EXjo+ 2wpWsl4z1RJDF9jnYpxNoUv6oOWVsaTJ/VTIJTh3qo4fk5Gb2ee2Hv2suY2Jkutn3jF1 ljzSYC7IQsehi28JEHelTA6uOsPkd9an2O9/kIwFQqqEsXlRU75AvXa+6sLoflgxt4qy w1OA== 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=++dv1YcZtTUgwkcqesMhrWgRGVjCmLDErvcE127Lp4k=; fh=qbfaDyBg+GqerSAvcu3kFTx3mMThVk/CBXk9qNOf42k=; b=V0ttAnVo53RpyLPOVMVf52+PNJQw5XTtPj5scO+kEdxLq001XJ4sB8+RgJHrhSHfwT UR+bAJs2yiKOJZvfswdq5aVCohwsOXruaucAbfwV7Jt1/2rW7IwrqD+NyMxh2O1nJ+Gd mEwjCkfQsyhSXmeBfugrQfBqqlb8JlmsqygrV0YNXiySh3Tqfh2aufUVVxBjnJISbkWw mm3gvP88nPGiKKKhXhG9kac8ZHxzy5l+7Y8wvNRTMJVmbKnToEid2EKZ6PwYgF2ZI6bJ ljNmeM5+9nBpa5TF7E48CsWZxJr8dzIM989T1MQaXJ/hnLFWi58vBJRdLJELjEcpLewd quug== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=MN1VQgdN; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r24-20020a1709067fd800b0099caf73097esi10523200ejs.226.2023.08.16.04.50.26; Wed, 16 Aug 2023 04:50:52 -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=MN1VQgdN; 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 S239615AbjHOS6o (ORCPT + 99 others); Tue, 15 Aug 2023 14:58:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239587AbjHOS6C (ORCPT ); Tue, 15 Aug 2023 14:58:02 -0400 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 280801FD6 for ; Tue, 15 Aug 2023 11:57:50 -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=++dv1YcZtTUgwkcqesMhrWgRGVjCmLDErvcE127Lp4k=; b=MN1VQgdNk+1D8fu7wLlBepRrRB aCCVMsFhnQDaC+5HulasVarDOXq1JfDOKuKpdFvSxaieGhfGSLR8K7Dl0Cl4IOhuSvMWTA5K9c2kS meaXoweiHuatFmcmzMHvVAskQz00BoBt7zXwQcQyaT3YcuQOrtrIZh2qaB+7ju6BwgQBMD7yMDJ9Y kVIK0xCAslGPixRhDZNX6fChAX5uxj7GJWYzRYLgLUmFkH88FQUPwvIGLnz1TbHwiABezkfSZiC4e b/aOMJonS+x4zP+o50CiF+04939vh77T/li2buDWI97L5txZ5pIIb00SZgFr95ZZp9HtTDQ/9dsVp b1hpRKXw==; Received: from [191.193.179.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 1qVzEh-001Ca3-4Q; Tue, 15 Aug 2023 20:57:47 +0200 From: =?utf-8?q?Andr=C3=A9_Almeida?= 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?b?J01hcmVrIE9sxaHDoWsn?= , Dave Airlie , =?utf-8?q?Michel_D=C3=A4nzer?= , Randy Dunlap , hwentlan@amd.com, joshua@froggi.es, ville.syrjala@linux.intel.com, =?utf-8?q?Andr=C3=A9_Almeida?= Subject: [PATCH v6 4/6] amd/display: indicate support for atomic async page-flips on DC Date: Tue, 15 Aug 2023 15:57:08 -0300 Message-ID: <20230815185710.159779-5-andrealmeid@igalia.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230815185710.159779-1-andrealmeid@igalia.com> References: <20230815185710.159779-1-andrealmeid@igalia.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774386311132663435 X-GMAIL-MSGID: 1774386311132663435 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 --- v5: no changes 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 4b433793f5a0..4d3d6009838c 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -3924,7 +3924,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)