From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 C20FE199920; Tue, 21 Jul 2026 20:30:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784665833; cv=none; b=cWsblhTCEkXyN/tnlBA6VhXo9rEI+klLpI8TluSzphoaXwL8elp2QOqu7XmRRgsPHZsJq0MvrqeG19G1qvJD6eh+G8hUix0hULrnE0q2UlwKgdF41TmP6y1x5aBnvwuItKzXvBc85DF9aHABfWWdQDzYhoFEHMTREZE4F+Kba8M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784665833; c=relaxed/simple; bh=uXMGDaOVL4Y3nh+QcluFMApoWYHx9jcdlQ65cNeEIWk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NJrq2n7W7+Kffh2yqk0b9Qe6dioOB0yC1jPmBFqXPPOCOd3ZXzOetoHUS618ky4gHOS6xg3TH8H7FVToC616TR6V+XUvPzoSgtgrZZFQJmdHTCSePw4AfT2bsUNFVJ1iIx9TUq2vEisiFzhyRxlCXUugCSGZ6kQWWE2AH/KpHh4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nDKTdyhc; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nDKTdyhc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 325E91F000E9; Tue, 21 Jul 2026 20:30:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784665832; bh=C3mYJzvo1LAipnjq4v043VjvzyqM2eZ12znSuR31DcU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=nDKTdyhcZwV6Hew4cHxtuL2JE08Fhg1WWkBXmFW60TGzMEg3xewEBW32c6OJM6/qm ipjEJk4CW6NWQmlebUaHBrEsjH+odmj7V8X6P5e6DmjEBm7NCVDXDspUZRXASk+cqD 7PKgY/bXXVIpcbkJuKrUEqsusT42fAIGmP2FGgWk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Timur Tabi , Lyude Paul , Danilo Krummrich , Sasha Levin Subject: [PATCH 6.6 0451/1266] drm/nouveau/bios: specify correct display fuse register for Ampere and Ada Date: Tue, 21 Jul 2026 17:14:48 +0200 Message-ID: <20260721152451.928471583@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152441.786066624@linuxfoundation.org> References: <20260721152441.786066624@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Timur Tabi [ Upstream commit c1cf2d5db80ce91a85855bbaf4da85ff603e089a ] The NV_FUSE_STATUS_OPT_DISPLAY register is used to determine whether the GPU has display hardware. The current code that normally reads this register is instead hard-coded to check for GA100 vs later GPUs. Since this function is called only on pre-Hopper GPUs, and this if-statement applies only to GA100 and later, the check works because GA100 is the only non-display Ampere and Ada GPU. However, there actually is a register that can be read, so we should use it. Fixes: a34632482f1e ("drm/nouveau/bios/ga10[024]: initial support") Signed-off-by: Timur Tabi Reviewed-by: Lyude Paul Link: https://patch.msgid.link/20260430223838.2530778-8-ttabi@nvidia.com Signed-off-by: Danilo Krummrich Signed-off-by: Sasha Levin --- drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c index 023ddc7c5399a4..a295e94e4cb88d 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c @@ -65,13 +65,14 @@ pramin_init(struct nvkm_bios *bios, const char *name) /* we can't get the bios image pointer without PDISP */ if (device->card_type >= GA100) - addr = device->chipset == 0x170; /*XXX: find the fuse reg for this */ + addr = nvkm_rd32(device, 0x820c04); else if (device->card_type >= GM100) addr = nvkm_rd32(device, 0x021c04); else if (device->card_type >= NV_C0) addr = nvkm_rd32(device, 0x022500); + if (addr & 0x00000001) { nvkm_debug(subdev, "... display disabled\n"); return ERR_PTR(-ENODEV); -- 2.53.0