Message ID | 20230701020917.143394-5-andrealmeid@igalia.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:1082:b0:134:fbd7:a636 with SMTP id j2csp657999rwi; Fri, 30 Jun 2023 19:12:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlEjJvjE0ZFChMKeYmBdMdAUPKnQBSM3+vyEdNm2XUUGALs081zHm/1XchhagsZJ9BMf+Vlc X-Received: by 2002:a17:902:a409:b0:1b8:5a42:5145 with SMTP id p9-20020a170902a40900b001b85a425145mr7120970plq.31.1688177525810; Fri, 30 Jun 2023 19:12:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688177525; cv=none; d=google.com; s=arc-20160816; b=0WYxlvehdxDNG7xX63ClqBEUBGvHRS6f1ZPtEBWb82AXVEvYiunZeRzJkR/A2ipm25 FsNwR6f34iFUSybH51v2nCziWpxK0sVezKNHfZhFg5hkKElmjB5+TBdbG7oGkegkr8b3 3RkWMdNcsc4ZTX6Fs9l5Pr+VXgpXbIO6hlcoRUswqZRTY+s0hcimhs7+Lk+py+ONW9mO Re8ctofP7TQ2cx03LFCBsLno0BVwls5PdNMy4GVkSqSFUiN2BUrM1y4mmUZ9Rp8GUotQ opekwLSY4ZdY91qSVl84Vfje+9SvcLbqwKRnKkQ8jCtlUXq0Q83Q0jupxDlKsCKB7bm3 XBPQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m1-20020a170902bb8100b001ae0691dfdbsi12555300pls.158.2023.06.30.19.11.53; Fri, 30 Jun 2023 19:12:05 -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 S229916AbjGACJ7 (ORCPT <rfc822;nicolai.engesland@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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_Almeida?= <andrealmeid@igalia.com> 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 <contact@emersion.fr>, Rob Clark <robdclark@gmail.com>, Pekka Paalanen <ppaalanen@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Daniel Stone <daniel@fooishbar.org>, =?utf-8?b?J01hcmVrIE9sxaHDoWsn?= <maraeo@gmail.com>, Dave Airlie <airlied@gmail.com>, =?utf-8?q?Michel_D=C3=A4nzer?= <michel.daenzer@mailbox.org>, Italo Nicola <italonicola@collabora.com>, Randy Dunlap <rdunlap@infradead.org>, hwentlan@amd.com, joshua@froggi.es, ville.syrjala@linux.intel.com, =?utf-8?q?Andr=C3=A9_Almeida?= <andrealmeid@igalia.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770182437572547404?= X-GMAIL-MSGID: =?utf-8?q?1770182437572547404?= |
Series |
drm: Add support for atomic async page-flip
|
|
Commit Message
André Almeida
July 1, 2023, 2:09 a.m. UTC
From: Simon Ser <contact@emersion.fr> 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 <contact@emersion.fr> Reviewed-by: André Almeida <andrealmeid@igalia.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: André Almeida <andrealmeid@igalia.com> --- 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)