diff options
author | Yusuf Khan <yusisamerican@gmail.com> | 2024-01-21 14:21:07 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-05-11 19:56:18 +0000 |
commit | 714dcafbe2efa0365aca32b7e95d3961cebe1515 (patch) | |
tree | 27509e781b09efdd8073e7a223e2a6748e3b99a8 /src/g80_output.c | |
parent | 3d729d58bc85aa3ec53361f4f5fd220edd6a234e (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>
Diffstat (limited to 'src/g80_output.c')
-rw-r--r-- | src/g80_output.c | 10 |
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; |