mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 18:06:13 +00:00
intel_gtt: Fix PTE offsets
Vincent sent me a patch which I think didn't go far enough. Honestly, I don't even know what this tool does. Reported-by: Cheah, Vincent Beng Keat <vincent.beng.keat.cheah@intel.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
parent
f9c8e365e9
commit
f5c3e5811e
@ -70,10 +70,10 @@ int main(int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
int offset;
|
int offset;
|
||||||
if (IS_G4X(devid) || IS_GEN5(devid))
|
if (IS_GEN4(devid))
|
||||||
offset = MB(2);
|
|
||||||
else
|
|
||||||
offset = KB(512);
|
offset = KB(512);
|
||||||
|
else
|
||||||
|
offset = MB(2);
|
||||||
if (pci_device_map_range(pci_dev,
|
if (pci_device_map_range(pci_dev,
|
||||||
pci_dev->regions[0].base_addr + offset,
|
pci_dev->regions[0].base_addr + offset,
|
||||||
offset,
|
offset,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user