Skip to content

RFC FSI scom driver overhaul

Benjamin Herrenschmidt lkml openbmc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5fsi/scom: Add mutex around FSI2PIB accessesdrivers/fsi/fsi-scom.c+18 -71 reply
2/5fsi/scom: Whitespace fixesdrivers/fsi/fsi-scom.c+4 -41 reply
3/5fsi/scom: Fixup endian annotationsdrivers/fsi/fsi-scom.c+4 -51 reply
4/5fsi/scom: Add register definitionsdrivers/fsi/fsi-scom.c+18 -11 reply
5/5fsi/scom: Major overhauldrivers/fsi/fsi-scom.c include/uapi/linux/fsi.h+450 -309 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchEddie JamesAlistair Popple
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/5] FSI scom driver overhaul

The current FSI scom driver is a bit too simplistic (and buggy). This fixes a locking bug, cleans a few things up, then overhaul the driver more thoroughly by providing proper support for the different type of SCOM accesses (direct and indirect), handling errors properly in the read/write interface, and adding a lower level ioctl interface needed by system debugger (such as cronus) that need to be able to access the raw status register content resulting from the access attempt and do their own error handling.

I will send patches separately for pdbg and cronus to use the new debugger interface.

Note: It is unfortunate that the read/write interface does NOT use the same addressing scheme as the host-side equivalent xscom debugfs interface. However I didn't want to change the user ABI by "fixing" this as I'm not entirely sure what other users we might have of that existing interface.

The patches apply on top of the other FSI changes posted recently and at this point are meant to discuss the new user API.