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 BD15F40B112; Tue, 21 Jul 2026 15:47:19 +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=1784648840; cv=none; b=IcOg+LcVD6YmKqGTa8sYLDdbvXCo/wuixdfmfQ7aWxXALuHedoC0H/jZoThDmDHyl67l5eaKGX9i2aINFDdDRKrvMMxF6VDJHz8kN5pIi9/fwm7bCRZ2nPRa/IoCllkwL9qwlZhec68EyiTeG+PlQi0aKWkjj6A4QRdbUBr59vQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784648840; c=relaxed/simple; bh=qONMpbgarSqZNImEHD21wbj39811q7/0pJQnb4jjVXs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=STO001ZIXBIntdiosNytNeeEQ866YAGCnx0pvkWsXsKjTU/R5kZ9fJK278tVSW5QAOPg7Bvot2TByNvr095KCXNkzTQ6e9L9jMhJHEDUvgDXs6ZCjNeosKgIwsd9ldpZjubPyFpEPA1weW2xhY3CHMvAtzG405JgC5XvEANx4e8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vUAeNzCX; 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="vUAeNzCX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEC461F000E9; Tue, 21 Jul 2026 15:47:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784648839; bh=PKdULevcgd+Qw2xhOYMfsZt2y5r5IgmJP/EdPNF+dIo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=vUAeNzCXA5filOD4jHldM7LPYLoziySO1F6ClPUMBiuKzL2P74L94oq1GmCMVpcMR JtsATNXSy+1CwgyUiUQOxrsEP732qmuluGu/ubRs/2JXZP/vwqnZRlUVwcXcnOJuMH pruDVKJP/q5gOFcG7UQonBr3rm23aXnuaHzCLd6I= 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 7.1 0350/2077] drm/nouveau/bios: specify correct display fuse register for Ampere and Ada Date: Tue, 21 Jul 2026 17:00:23 +0200 Message-ID: <20260721152600.947231732@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152552.646164743@linuxfoundation.org> References: <20260721152552.646164743@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 7.1-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 d5411d176e3a80..0d9e6cdd611930 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