amdgpu: use v2_3 for v2_4

In kernel 6.6 v2_4 was added. This causes us to not find a version to use
as we limited by content rev 3.
For now we'll just limit by 4 instead and use the old v2_3 struct
pull/1199/head
flightlessmango 5 months ago
parent 53281f3f2c
commit 971791d5da

@ -40,8 +40,8 @@ bool amdgpu_verify_metrics(const std::string& path)
break;
cpuStats.cpu_type = "GPU";
return true;
case 2: // v2_1, v2_2, v2_3
if(header.content_revision<=0 || header.content_revision>3)// v2_0, not naturally aligned
case 2: // v2_1, v2_2, v2_3, v2_4
if(header.content_revision<=0 || header.content_revision>4)// v2_0, not naturally aligned
break;
cpuStats.cpu_type = "APU";
return true;

Loading…
Cancel
Save