From 714dcafbe2efa0365aca32b7e95d3961cebe1515 Mon Sep 17 00:00:00 2001 From: Yusuf Khan Date: Sun, 21 Jan 2024 14:21:07 -0800 Subject: 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 Part-of: --- src/g80_output.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3