[Pdbg] [RFC pdbg PATCH] kernel: Support aspeed hardware FSI master

Joel Stanley joel at jms.id.au
Mon Aug 19 11:09:33 AEST 2019


The paths to sysfs entries depend on the master driver used. This means
pdbg needs to use a different path when running against the hardware FSI
master present in the ast2600.

I do not intend for this patch to be merged as-is. We do need to use
this as a discussion point for a solution, probably in the kernel, that
fixes this.

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 libpdbg/dtb.c    | 4 ++--
 libpdbg/kernel.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libpdbg/dtb.c b/libpdbg/dtb.c
index 6c4beeda4fe6..e2de337a7f92 100644
--- a/libpdbg/dtb.c
+++ b/libpdbg/dtb.c
@@ -43,8 +43,8 @@
 #include "p9-cronus.dt.h"
 
 #define AMI_BMC "/proc/ractrends/Helper/FwInfo"
-#define OPENFSI_BMC "/sys/bus/platform/devices/gpio-fsi/fsi0/"
-#define FSI_CFAM_ID "/sys/devices/platform/gpio-fsi/fsi0/slave at 00:00/cfam_id"
+#define OPENFSI_BMC "/sys/devices/platform/ahb/ahb:apb/1e79b000.fsi/fsi0"
+#define FSI_CFAM_ID "/sys/devices/platform/ahb/ahb:apb/1e79b000.fsi/fsi0/slave at 00:00/cfam_id"
 #define XSCOM_BASE_PATH "/sys/kernel/debug/powerpc/scom"
 
 #define CHIP_ID_P8  0xea
diff --git a/libpdbg/kernel.c b/libpdbg/kernel.c
index 4cc0334d7eb3..825608f13ddc 100644
--- a/libpdbg/kernel.c
+++ b/libpdbg/kernel.c
@@ -29,8 +29,8 @@
 #include "operations.h"
 #include "hwunit.h"
 
-#define FSI_SCAN_PATH "/sys/bus/platform/devices/gpio-fsi/fsi0/rescan"
-#define FSI_CFAM_PATH "/sys/devices/platform/gpio-fsi/fsi0/slave at 00:00/raw"
+#define FSI_SCAN_PATH "/sys/devices/platform/ahb/ahb:apb/1e79b000.fsi/fsi0/rescan"
+#define FSI_CFAM_PATH "/sys/devices/platform/ahb/ahb:apb/1e79b000.fsi/fsi0/slave at 00:00/raw"
 
 int fsi_fd;
 
-- 
2.23.0.rc1



More information about the Pdbg mailing list