Browse Source

Revert "LS2K:Add window configure for GPU."

This reverts commit b30be3251f.

Change-Id: I11a8073bb59185913b57049475e4b169ec36119a
master
田延辉 7 years ago
parent
commit
8ab8283290
  1. 23
      Targets/LS2K/ls2k/tgt_machdep.c

23
Targets/LS2K/ls2k/tgt_machdep.c

@ -1784,29 +1784,6 @@ void ls_pcie_config_set(void)
if(!ls2k_version())
ls_set_io_noncoherent();
else
map_gpu_addr();
}
extern unsigned long long memorysize_total;
void map_gpu_addr(void)
{
if (memorysize_total == 0x800) {
__raw__writeq(0x900000001fe10030 , 0x20000000);
__raw__writeq(0x900000001fe10070 , 0xffffffffd0000000);
__raw__writeq(0x900000001fe100b0 , 0x00000001600000f0);
} else if (memorysize_total == 0x1000) {
__raw__writeq(0x900000001fe10030 , 0x20000000);
__raw__writeq(0x900000001fe10070 , 0xffffffffd0000000);
__raw__writeq(0x900000001fe100b0 , 0x00000001d00000f0);
} else if (memorysize_total == 0x2000) {
__raw__writeq(0x900000001fe10030 , 0x20000000);
__raw__writeq(0x900000001fe10070 , 0xffffffffd0000000);
__raw__writeq(0x900000001fe100b0 , 0x00000002d00000f0);
} else {
printf ("Now this Memory size %lld MB is not support mapping GPU address.\n", memorysize_total);
}
}
void ls_set_io_noncoherent(void)

Loading…
Cancel
Save