From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B19A36920C for ; Thu, 17 Sep 2026 19:08:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789672141; cv=none; b=s3NRkpbI1QA4lTBNM8EttoiJsM9YE7M9sleZEFgvuZ2p/Kbr5rx9xgAiNfbQX5WSrHYpC3CP1bh25ZBskwiLlpU9HmJXIMDiAo351DBYOvqBDru2MeJ2l9/gVDkMCPhSFEKTee3f8ByN3IP1GGYGPbUKr6pbTmhxoR833gR1JtU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789672141; c=relaxed/simple; bh=quufEP5pULl4s5/uFAkxFfcF+mmI5St+CG9yBzia3Vg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ozzd6vAbTNFetPGBisb1uSeQyFPRvPWx5JQdzVR4cEb2eWENn8l2a34PKZ3ratgvGQkBlDUYes3E1jxQRdZfbE8DJH3i/yR/RlmvF3Z3sAnnw4l/O0+U+zaxO7RrE3sEi199GP0g6TxPi0Nkg6AENteN6aIH13JEkTqtWugPokI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Pvl/Rcce; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Pvl/Rcce" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1789672138; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Shd+9zYz2MIFpfBEwcTjBlPbohGUXJNzi3P46VFt1WQ=; b=Pvl/RcceFXqdt/yKnQBOM1T2AZaaIUnRcCvBYqY3ITTZ5gqiW6dpAlDn4rOxqU7MZB+uBl z+F2jrSfIoP1sO3RUV++ULKdWWrevvYPEYCSuR0uqbHsxOJ6yYLGTBMz+beO8g+lw/Tycl WPSFq7YyDSSnmlbMaRsO2hr6hB9YGRc= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-101-laRmQZWkNrSytWpybp495g-1; Thu, 17 Sep 2026 15:08:55 -0400 X-MC-Unique: laRmQZWkNrSytWpybp495g-1 X-Mimecast-MFC-AGG-ID: laRmQZWkNrSytWpybp495g_1789672133 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6CEFA197750B; Thu, 17 Sep 2026 19:08:52 +0000 (UTC) Received: from GoldenWind.lan (unknown [10.22.64.177]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 9530C19AC048; Thu, 17 Sep 2026 19:08:49 +0000 (UTC) From: Lyude Paul To: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: "Timur Tabi" , "Dave Airlie" , "Andy Shevchenko" , "Mohamed Ahmed" , "Maarten Lankhorst" , "Kees Cook" , "Simona Vetter" , "David Airlie" , "Thomas Zimmermann" , "Maxime Ripard" , "Mel Henning" , "Hongling Zeng" , "Danilo Krummrich" , "Lyude Paul" Subject: [PATCH v6 0/5] drm/nouveau/gsp/r570: Follow OpenRM's runtime PM process more closely Date: Thu, 17 Sep 2026 14:54:24 -0400 Message-ID: <20260917185916.1089621-1-lyude@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 While we have runtime PM working a lot more reliably then in the past with R570, we're still doing things a lot differently then OpenRM. For instance, we don't save/restore comptag backing stores, and we don't ask GSP whether it's OK to enter GcOff. This series fixes this, and gets our runtime PM process to look a lot closer to OpenRM's by implementing some missing pieces and workarounds. Tested on my daily-driver desktop with an AD102, a ThinkPad P17 Gen1 with a GA103GLM, a Dell Precision 7780 with an AD103, and my test machine with a GB206. Patch series based on drm-misc/drm-misc-next. Branch with patches here: https://gitlab.freedesktop.org/lyudess/linux/-/commits/nouveau/rpm-openrm-sync Previous version: https://patchwork.freedesktop.org/series/173901/ NOTE: There are no actual changes besides a single fix to patch 1, which had already been requested from airlied but somehow didn't get sent with the rest of the patches. Lyude Paul (5): drm/nouveau/gsp/r570: Add support for INTERNAL_GCX_ENTRY_PREREQUISITE drm/nouveau/gsp/r535: Add support for MEMSYS_GET_STATIC_CONFIG drm/nouveau/gsp/r570: Add comp mode workaround from issue #3172217 drm/nouveau/gsp/r570: Start saving comptag backing stores drm/nouveau/gsp/r570: Enable Gcoff in fbsr again drivers/gpu/drm/nouveau/include/nvif/cl0080.h | 10 +++ drivers/gpu/drm/nouveau/include/nvif/device.h | 1 + .../gpu/drm/nouveau/include/nvkm/subdev/gsp.h | 6 ++ drivers/gpu/drm/nouveau/nouveau_drm.c | 13 ++++ drivers/gpu/drm/nouveau/nvif/device.c | 13 ++++ .../gpu/drm/nouveau/nvkm/engine/device/user.c | 35 +++++++++ .../gpu/drm/nouveau/nvkm/subdev/gsp/base.c | 10 +++ .../gpu/drm/nouveau/nvkm/subdev/gsp/priv.h | 1 + .../drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c | 17 ++++ .../nvkm/subdev/gsp/rm/r535/nvrm/gsp.h | 45 +++++++++++ .../nouveau/nvkm/subdev/gsp/rm/r570/fbsr.c | 77 ++++++++++++++++++- .../drm/nouveau/nvkm/subdev/gsp/rm/r570/gsp.c | 36 +++++++++ .../nvkm/subdev/gsp/rm/r570/nvrm/fbsr.h | 29 +++++++ .../nvkm/subdev/gsp/rm/r570/nvrm/gsp.h | 7 ++ .../gpu/drm/nouveau/nvkm/subdev/gsp/rm/rm.h | 3 + 15 files changed, 301 insertions(+), 2 deletions(-) base-commit: 1e04611d3735543bd80a67d9d13dc13f503746fb -- 2.55.0