[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <cover.1748505446.git.zhoubinbin@loongson.cn>
Date: Thu, 29 May 2025 20:23:21 +0800
From: Binbin Zhou <zhoubinbin@...ngson.cn>
To: Binbin Zhou <zhoubb.aaron@...il.com>,
Huacai Chen <chenhuacai@...ngson.cn>,
Lee Jones <lee@...nel.org>,
Corey Minyard <minyard@....org>
Cc: Huacai Chen <chenhuacai@...nel.org>,
Xuerui Wang <kernel@...0n.name>,
loongarch@...ts.linux.dev,
linux-kernel@...r.kernel.org,
openipmi-developer@...ts.sourceforge.net,
jeffbai@...c.io,
kexybiscuit@...c.io,
wangyao@...ote.com,
Binbin Zhou <zhoubinbin@...ngson.cn>
Subject: [PATCH v3 0/3] LoongArch: Add Loongson-2K BMC support
Hi all:
This patch set introduces the Loongson-2K BMC.
It is a PCIe device present on servers similar to the Loongson-3C6000.
And it is a multifunctional device (MFD), such as display as a sub-function
of it.
For IPMI, according to the existing design, we use software simulation to
implement the KCS interface registers: Stauts/Command/Data_Out/Data_In.
Also since both host side and BMC side read and write kcs status, we use
fifo pointer to ensure data consistency.
For the display, based on simpledrm, the resolution is read from a fixed
position in the BMC since the hardware does not support auto-detection
of the resolution. Of course, we will try to support multiple
resolutions later, through a vbios-like approach.
Especially, for the BMC reset function, since the display will be
disconnected when BMC reset, we made a special treatment of re-push.
Based on this, I will present it in four patches:
patch-1: BMC device PCI resource allocation.
patch-2: IPMI implementation
patch-3: BMC reset function support
Thanks.
-------
V3:
Patch (1/3):
- Drop "MFD" in title and comment;
- Fromatting code;
- Add clearer comments.
Patch (2/3):
- Rebase linux-ipmi/next tree;
- Update commit message;
- Use readx()/writex() to read and write IPMI data instead of structure
pointer references;
- CONFIG_LOONGARCH -> MFD_LS2K_BMC;
- Drop unused output.
Patch (3/3):
- Update commit message;
- Inline the ls2k_bmc_gpio_reset_handler() function to ls2k_bmc_pdata_initial();
- Add clearer comments.
- Use proper multi-line commentary as per the Coding Style documentation;
- Define all magic numbers.
Link to V2:
https://lore.kernel.org/all/cover.1747276047.git.zhoubinbin@loongson.cn/
V2:
- Drop ls2kdrm, use simpledrm instead.
Patch (1/3):
- Use DEFINE_RES_MEM_NAMED/MFD_CELL_RES simplified code;
- Add resolution fetching due to replacing the original display
solution with simpledrm;
- Add aperture_remove_conflicting_devices() to avoid efifb
conflict with simpledrm.
Patch (3/3):
- This part of the function, moved from the original ls2kdrm to mfd;
- Use set_console to implement the Re-push display function.
Link to V1:
https://lore.kernel.org/all/cover.1735550269.git.zhoubinbin@loongson.cn/
Binbin Zhou (3):
mfd: ls2kbmc: Introduce Loongson-2K BMC core driver
ipmi: Add Loongson-2K BMC support
mfd: ls2kbmc: Add Loongson-2K BMC reset function support
drivers/char/ipmi/Makefile | 1 +
drivers/char/ipmi/ipmi_si.h | 7 +
drivers/char/ipmi/ipmi_si_intf.c | 3 +
drivers/char/ipmi/ipmi_si_ls2k.c | 190 ++++++++++++
drivers/mfd/Kconfig | 12 +
drivers/mfd/Makefile | 2 +
drivers/mfd/ls2kbmc-mfd.c | 482 +++++++++++++++++++++++++++++++
7 files changed, 697 insertions(+)
create mode 100644 drivers/char/ipmi/ipmi_si_ls2k.c
create mode 100644 drivers/mfd/ls2kbmc-mfd.c
base-commit: 08effa6b77f7dbb4727f811daef0f6085c0d63c8
--
2.47.1
Powered by blists - more mailing lists