Loader support for SRAM ECC.
Change-Id: I0c6791c356d9186cc8dabae9fd698b1d4de19b09
[ROCm/ROCR-Runtime commit: 3c3db0243e]
This commit is contained in:
@@ -583,7 +583,7 @@ namespace code {
|
||||
if (IsFinalizer && (EFlags & EF_AMDGPU_XNACK)) {
|
||||
NewName = NewName + "+xnack";
|
||||
} else {
|
||||
if (EFlags != 0 && (EFlags & EF_AMDGPU_XNACK_LC)) {
|
||||
if (EFlags & EF_AMDGPU_XNACK_LC) {
|
||||
NewName = NewName + "+xnack";
|
||||
} else {
|
||||
if (OldName == "AMD:AMDGPU:8:0:1")
|
||||
@@ -599,6 +599,9 @@ namespace code {
|
||||
}
|
||||
}
|
||||
|
||||
if (EFlags & EF_AMDGPU_SRAM_ECC_LC)
|
||||
NewName += "+sram-ecc";
|
||||
|
||||
return NewName;
|
||||
}
|
||||
|
||||
@@ -631,6 +634,9 @@ namespace code {
|
||||
if (img->EFlags() & EF_AMDGPU_XNACK_LC)
|
||||
isaName += "+xnack";
|
||||
|
||||
if (img->EFlags() & EF_AMDGPU_SRAM_ECC_LC)
|
||||
isaName += "+sram-ecc";
|
||||
|
||||
return true;
|
||||
} else {
|
||||
std::string vendor_name, architecture_name;
|
||||
|
||||
@@ -108,7 +108,7 @@ bool IsAccessibleMemoryAddress(uint64_t address)
|
||||
int32_t random_fd = 0;
|
||||
ssize_t bytes_written = 0;
|
||||
if (-1 == (random_fd = open("/dev/random", O_WRONLY))) {
|
||||
return false;
|
||||
return true; // Skip check if /dev/random is not available.
|
||||
}
|
||||
bytes_written = write(random_fd, (void*)address, 1);
|
||||
if (-1 == close(random_fd)) {
|
||||
|
||||
Reference in New Issue
Block a user