drm/nouveau/kms/tu102-: disable vbios parsing when running on RM

- on HW, parts of this will still be used to support LVDS
- LVDS appears to have dissapeared before Turing, so this won't be
  needed at all when running on RM

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230918202149.4343-31-skeggsb@gmail.com
This commit is contained in:
Ben Skeggs 2023-09-19 06:21:35 +10:00 committed by Dave Airlie
parent f4032134b4
commit e672f5f30d

View File

@ -27,6 +27,8 @@
#include "dispnv04/hw.h"
#include "nouveau_encoder.h"
#include <subdev/gsp.h>
#include <linux/io-mapping.h>
#include <linux/firmware.h>
@ -2087,7 +2089,8 @@ nouveau_bios_init(struct drm_device *dev)
int ret;
/* only relevant for PCI devices */
if (!dev_is_pci(dev->dev))
if (!dev_is_pci(dev->dev) ||
nvkm_gsp_rm(nvxx_device(&drm->client.device)->gsp))
return 0;
if (!NVInitVBIOS(dev))