summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuf Khan <yusisamerican@gmail.com>2024-01-21 14:21:07 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-05-11 19:56:18 +0000
commit714dcafbe2efa0365aca32b7e95d3961cebe1515 (patch)
tree27509e781b09efdd8073e7a223e2a6748e3b99a8
parent3d729d58bc85aa3ec53361f4f5fd220edd6a234e (diff)
g80/output: update known PCI rom sigs
See src/common/nvswitch/kernel/inc/rom_nvswitch.h in open-gpu-kernel-modules Signed-off-by: Yusuf Khan <yusisamerican@gmail.com> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/16>
-rw-r--r--src/g80_output.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/g80_output.c b/src/g80_output.c
index 13f9b1b..603fe95 100644
--- a/src/g80_output.c
+++ b/src/g80_output.c
@@ -79,7 +79,15 @@ static Bool G80ReadPortMapping(int scrnIndex, G80Ptr pNv)
for(i = 0; i < G80_NUM_I2C_PORTS; i++)
pNv->i2cMap[i].dac = pNv->i2cMap[i].sor = -1;
- if(*(CARD16*)pNv->table1 != 0xaa55) goto fail;
+ /* These are the three possible known rom signatures */
+ switch(*(CARD16*)pNv->table1) {
+ case 0xaa55:
+ case 0x4e56:
+ case 0xbb77:
+ break;
+ default:
+ goto fail;
+ }
a = *(CARD16*)(pNv->table1 + 0x36);
table2 = (unsigned char*)pNv->table1 + a;