Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp843714rdb; Tue, 15 Aug 2023 13:57:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH1hMzu2aOLnkjhz8Q9vSSWeo7gJGFKOdo8LDtMQeOK/P3npPJdRKZHdBuRfywmG/dAHLHS X-Received: by 2002:a9d:7b49:0:b0:6b9:182b:cccc with SMTP id f9-20020a9d7b49000000b006b9182bccccmr15067515oto.33.1692133037075; Tue, 15 Aug 2023 13:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692133037; cv=none; d=google.com; s=arc-20160816; b=UMOmMpnIzuYXPoAPVgyy4HLl1ze5vaI1Rs7BVGNSZU9cUKzDi2pcQ4sDwxVWvPxANO ieWilwp9OkWLkfbAh9ki1P5LaRqZBHkoSryVgYnZIFBSKKlzVfyIsGGRMFvUGpAwgU45 hOTgHnbgu7333wCqvGtV3sWIB3Kv9NlyB0M+8qTqDJU55zem4sC1bR8VC5a0cMza0ZVJ DSZF25WBD7ekwbwaSh7wPSN1na1gyhXjPzriEnXL/cDo3dyvIMzQRPBAs5UWQD7GfM3k CvZwvxT9b+DoK/Y/hPseXdb6NMFGJTWfTaM9LB9vhai/vNpM46vuTDamcuUdVpRL4rMV mBXg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a63d809000000b00565dfc22f1bsi1273669pgh.865.2023.08.15.13.57.03; Tue, 15 Aug 2023 13:57:17 -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 S239606AbjHOS6n (ORCPT + 99 others); Tue, 15 Aug 2023 14:58:43 -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=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?= , Randy Dunlap , hwentlan@amd.com, joshua@froggi.es, ville.syrjala@linux.intel.com, =?UTF-8?q?Andr=C3=A9=20Almeida?= 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 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,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 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) -- 2.41.0