Skip to content

Commit 318fbeb

Browse files
committed
Implement i2c bus check for Gigabyte Blackwell GPUs
1 parent ea798a7 commit 318fbeb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Controllers/GigabyteRGBFusion2BlackwellGPUController/GigabyteRGBFusion2BlackwellGPUControllerDetect.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "GigabyteRGBFusion2BlackwellGPUController.h"
1313
#include "LogManager.h"
1414
#include "RGBController_GigabyteRGBFusion2BlackwellGPU.h"
15+
#include "i2c_amd_gpu.h"
1516
#include "i2c_smbus.h"
1617
#include "pci_ids.h"
1718

@@ -28,6 +29,11 @@
2829

2930
bool TestForGigabyteRGBFusion2BlackwellGPUController(i2c_smbus_interface* bus, unsigned char address)
3031
{
32+
if(bus->pci_vendor == AMD_GPU_VEN && !is_amd_gpu_i2c_bus(bus))
33+
{
34+
return false;
35+
}
36+
3137
bool pass = false;
3238
int res, pktsz;
3339
const int read_sz = 4;

0 commit comments

Comments
 (0)