[PATCH linux 0/3] LPC/MBOX work
Cyril Bur
cyrilbur at gmail.com
Fri Dec 9 16:43:20 AEDT 2016
Hello all,
I sent an email a while ago about my work to be able for the host to
be able to access to contents of the pnor without nessesarily being
able to modify it.
This involves a protocol for requests through the mbox regsters on the
BMC and moving the HOST<->BMC LPC bus mapping to a region of BMC RAM.
These are the kernel patches required to do this. I am going to do the
changes for the dts for all platforms but I have some questions as to
how much RAM these platforms truely have. You'll notice I bumped the
palmetto from 256 to 512, this was in response to my palmetto having
512 megs. Part of the reason for this is that while I'm at it, I may
as well reserve off the framebuffer memory (which there is work to
perhaps use as well), the location of which depends on how much ram
the BMC has. I'm thinking everything is actually 512, if that is
accurate, I'll add those changes to a v2.
Cedric (or anyone really): Do you know of a way the lpc-ctrl driver
could query the MTD subsystem for the size of the PNOR? There is
currently a hack in the UNMAP ioctl() which can't hang around.
I'm not sure driver/misc is the place for these, thoughts?
Thanks,
Cyril
Cyril Bur (3):
ARM: dts: aspeed: Update palmetto device tree
drivers/misc: Add aspeed mbox driver
drivers/misc: Add aspeed lpc controlling driver
arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts | 25 +-
arch/arm/boot/dts/aspeed-g4.dtsi | 6 +
drivers/misc/Kconfig | 14 ++
drivers/misc/Makefile | 2 +
drivers/misc/lpc-ctrl.c | 251 ++++++++++++++++++++
drivers/misc/mbox-host.c | 326 ++++++++++++++++++++++++++
include/uapi/linux/lpc-ctrl.h | 25 ++
include/uapi/linux/mbox-host.h | 18 ++
8 files changed, 666 insertions(+), 1 deletion(-)
create mode 100644 drivers/misc/lpc-ctrl.c
create mode 100644 drivers/misc/mbox-host.c
create mode 100644 include/uapi/linux/lpc-ctrl.h
create mode 100644 include/uapi/linux/mbox-host.h
--
2.10.2
More information about the openbmc
mailing list