From 347ca073b24d41c37644d626bc045b305eebfaed Mon Sep 17 00:00:00 2001 From: Joel Stanley Date: Mon, 13 Aug 2018 12:29:45 +0930 Subject: openpower: Add ASPEED LPC Control tool This includes the 'pnorboot' tool for configuring the LPC firmware mapping. This is used by Palmetto instead of mboxd, as Palmetto only requires the LPC mapping component. The mbox component causes interrupts to be continually triggered on the host, causing unnecessary CPU load. As Palmetto is the only in-tree user of this tool, the service file hard codes the PNOR size. If we merge machines in the future this should be configured by the machine layer. Resolves: openbmc/openbmc#3357 Tested: Booted host on Palmetto, checked interrupt count Change-Id: I87daafa5008e978afd3a5fc386b347b014624911 Signed-off-by: Joel Stanley --- .../common/recipes-phosphor/host/aspeed-lpc-ctrl.bb | 15 +++++++++++++++ .../host/aspeed-lpc-ctrl/pnorboot.service | 9 +++++++++ 2 files changed, 24 insertions(+) create mode 100644 meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/aspeed-lpc-ctrl.bb create mode 100644 meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/aspeed-lpc-ctrl/pnorboot.service (limited to 'meta-openbmc-machines/meta-openpower/common/recipes-phosphor') diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/aspeed-lpc-ctrl.bb b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/aspeed-lpc-ctrl.bb new file mode 100644 index 000000000..f37f2bec6 --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/aspeed-lpc-ctrl.bb @@ -0,0 +1,15 @@ +SUMMARY = "ASPEED LPC Host Interface Control tool" +DESCRIPTION = "Configures the BMC to expose memory regions to the host" +PR = "r1" + +inherit obmc-phosphor-license +inherit obmc-phosphor-systemd + +inherit autotools + +S = "${WORKDIR}/git" + +SYSTEMD_SERVICE_${PN} += "pnorboot.service" + +SRC_URI += "git://github.com/shenki/aspeed-lpc-control" +SRCREV = "ab2012e749daf567049bf157c3bf037adc62c0e8" diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/aspeed-lpc-ctrl/pnorboot.service b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/aspeed-lpc-ctrl/pnorboot.service new file mode 100644 index 000000000..fffe13c48 --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/aspeed-lpc-ctrl/pnorboot.service @@ -0,0 +1,9 @@ +[Unit] +Description=ASPEED LPC boot from PNOR + +[Service] +Type=oneshot +ExecStart=/usr/sbin/pnorboot --size 32 + +[Install] +WantedBy=obmc-standby.target -- cgit v1.2.3