Skip to content

Commit 419c267

Browse files
committed
"MMCONFIG" could also be shown as "ECAM"
1 parent 97047ca commit 419c267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cxl/cxl-util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ func getPciMmConfig() {
777777
fileScanner.Split(bufio.ScanLines)
778778
for fileScanner.Scan() {
779779
text := fileScanner.Text()
780-
if strings.Contains(text, "MMCONFIG") {
780+
if strings.Contains(text, "MMCONFIG") || strings.Contains(text, "ECAM") {
781781
// String Example " 80000000-8fffffff : PCI MMCONFIG 0000 [bus 00-ff]"
782782
PCI_MMCONFIG_BASE_ADDR = int64(hexToInt(strings.TrimSpace(strings.Split(fileScanner.Text(), "-")[0])))
783783
break

0 commit comments

Comments
 (0)