Linux PARISC architecture development
 help / color / mirror / Atom feed
* [PATCH] ipmi/parisc: Add IPMI chassis poweroff for certain HP PA-RISC servers
@ 2018-03-24 19:45 Helge Deller
  2018-03-26 18:43 ` Matt Turner
  2018-03-27 13:16 ` Corey Minyard
  0 siblings, 2 replies; 6+ messages in thread
From: Helge Deller @ 2018-03-24 19:45 UTC (permalink / raw)
  To: linux-parisc, Corey Minyard, openipmi-developer, James Bottomley,
	John David Anglin

This patch allows HP PA-RISC servers like rp3410/rp3440 and the HP C8000
workstation with an IPMI controller that predate IPMI 1.5 to use the standard
poweroff or powercycle commands.

These systems firmware don't set the chassis capability bit in the Get
Device ID, but they do implement the standard poweroff and powercycle
commands.

Signed-off-by: Helge Deller <deller@gmx.de>

diff --git a/drivers/char/ipmi/ipmi_poweroff.c b/drivers/char/ipmi/ipmi_poweroff.c
index 38e6af1c8e38..09f34ea370da 100644
--- a/drivers/char/ipmi/ipmi_poweroff.c
+++ b/drivers/char/ipmi/ipmi_poweroff.c
@@ -453,6 +453,13 @@ static int ipmi_dell_chassis_detect(ipmi_user_t user)
 	    ipmi_version_major <= 1 &&
 	    ipmi_version_minor < 5)
 		return 1;
+
+	/* BMC in HP C8000 can handle chassis functions too. */
+	if (IS_ENABLED(CONFIG_PARISC) &&
+	    mfg_id == 0x0b && prod_id == 0x8201 &&
+	    ipmi_version == 1)
+		return 1;
+
 	return 0;
 }
 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-03-27 16:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-24 19:45 [PATCH] ipmi/parisc: Add IPMI chassis poweroff for certain HP PA-RISC servers Helge Deller
2018-03-26 18:43 ` Matt Turner
2018-03-27 13:16 ` Corey Minyard
2018-03-27 15:31   ` Helge Deller
2018-03-27 15:58     ` [PATCH v2] ipmi/parisc: Add IPMI chassis poweroff for certain HP PA-RISC and IA-64 servers Helge Deller
2018-03-27 16:05       ` Corey Minyard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox