LoongArch: Add Loongson-2K BMC support
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v11 Latest3 patches 9 repliesApplied
- v103 patches 4 repliesSuperseded
- v93 patches 0 repliesSuperseded
Earlier versions · 8
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v8 | 3 patches | 2 replies | Superseded | |
| v7 | 3 patches | 11 replies | Superseded | |
| v6 | 3 patches | 2 replies | Superseded | |
| v5 | 3 patches | 2 replies | Superseded | |
| v4 | 3 patches | 8 replies | Superseded | |
| v3 | 3 patches | 3 replies | Superseded | |
| v2 | 3 patches | 10 replies | Superseded | |
| v1 | 4 patches | 12 replies | Superseded |
Changes in v11 from the cover letter
- Rebase on for-mfd-next branch.
Patch (2/3):
- Rename ls2k_bmc_pdata_initial() to ls2k_bmc_init();
- Rename ls2k_bmc_pdata to ls2k_bmc_ddata;
- Use macros to replace magic numbers;
- Simplify the ls2k_bmc_init() code by removing unnecessary goto statements.
Patches in v11 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | mfd: ls2kbmc: Introduce Loongson-2K BMC core driverMAINTAINERS drivers/ drivers/ +1 more | +210 | 0 replies | |
| 2/3 | mfd: ls2kbmc: Add Loongson-2K BMC reset function supportdrivers/ | +339 | 0 replies | |
| 3/3 | ipmi: Add Loongson-2K BMC supportMAINTAINERS drivers/ drivers/ +3 more | +209 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Huacai Chen | Corey Minyard |
|---|---|---|
| 1/3 | R-b | A-b |
| 2/3 | R-b | A-b |
| 3/3 | R-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v11 0/3] LoongArch: Add Loongson-2K BMC support
Hi all:
This patchset introduces the Loongson-2K BMC.
It is a PCIe device present on servers similar to the Loongson-3 CPUs. 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: BMC reset function support
patch-3: IPMI implementation
Thanks.
-------
V11:
- Rebase on for-mfd-next branch.
Patch (2/3):
- Rename ls2k_bmc_pdata_initial() to ls2k_bmc_init();
- Rename ls2k_bmc_pdata to ls2k_bmc_ddata;
- Use macros to replace magic numbers;
- Simplify the ls2k_bmc_init() code by removing unnecessary goto statements.
Link to V10:
https://lore.kernel.org/all/[email protected]/
V10:
Patch (2/3):
- The PTR_ERR(NULL) is success. It should be "ret = -ENOMEM;".
- https://lore.kernel.org/all/[email protected]/
Link to V9:
https://lore.kernel.org/all/[email protected]/
V9:
Patch (2/3):
- PCIE -> PCI-E in dev_err();
- Separate the read from the write;
Link to V8:
https://lore.kernel.org/all/[email protected]/
V8:
Patch (1/3):
- Similar to as3711_subdevs, identify elements in ls2k_bmc_cells.
Patch (2/3):
- Rename variables using usual names, such as priv -> ddata;
- Use if statements instead of #ifery;
- Rewrite the error message to ensure it is easy to understand;
- ls2k_bmc_pdata_initial(dev, priv); -> ls2k_bmc_pdata_initial(priv);
Link to V7:
https://lore.kernel.org/all/[email protected]/
V7:
Patch (1/3):
- Fix build warning by lkp: Add depend on ACPI_GENERIC_GSI
- https://lore.kernel.org/all/[email protected]/
Link to V6:
https://lore.kernel.org/all/[email protected]/
V6:
- Add Acked-by tag from Corey, thanks;
Patch (1/3):
- Fix build warning by lkp: Add depend on PCI
- https://lore.kernel.org/all/[email protected]/
- https://lore.kernel.org/all/[email protected]/
- https://lore.kernel.org/all/[email protected]/
- https://lore.kernel.org/all/[email protected]/
Link to V5:
https://lore.kernel.org/all/[email protected]/
V5:
Patch (1/3):
- Rename ls2kbmc-mfd.c to ls2k-bmc-core.c;
- Rename MFD_LS2K_BMC to MFD_LS2K_BMC_CORE and update its help text.
Patch (3/3):
- Add an IPMI_LS2K config in the IPMI section that enables the IPMI interface and selects MFD_LS2K_BMC_CORE.
Link to V4:
https://lore.kernel.org/all/[email protected]/
V4:
- Add Reviewed-by tag;
- Change the order of the patches.
Patch (1/3):
- Fix build warning by lkp: Kconfig tristate -> bool
- https://lore.kernel.org/all/[email protected]/
- Update commit message;
- Move MFD_LS2K_BMC after MFD_INTEL_M10_BMC_PMCI in Kconfig and Makefile.
Patch (2/3):
- Remove unnecessary newlines;
- Rename ls2k_bmc_check_pcie_connected() to
ls2k_bmc_pcie_is_connected();
- Update comment message.
Patch (3/3):
- Remove unnecessary newlines.
Link to V3:
https://lore.kernel.org/all/[email protected]/
V3:
Patch (1/3):
- Drop "MFD" in title and comment;
- Fromatting code;
- Add clearer comments.
Patch (2/3):
- Rebase linux-ipmi/next tree;
- 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):
- 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/[email protected]/
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/[email protected]/
Binbin Zhou (3):
mfd: ls2kbmc: Introduce Loongson-2K BMC core driver
mfd: ls2kbmc: Add Loongson-2K BMC reset function support
ipmi: Add Loongson-2K BMC support
MAINTAINERS | 7 + drivers/char/ipmi/Kconfig | 7 + drivers/char/ipmi/Makefile | 1 + drivers/char/ipmi/ipmi_si.h | 7 + drivers/char/ipmi/ipmi_si_intf.c | 4 + drivers/char/ipmi/ipmi_si_ls2k.c | 189 +++++++++++ drivers/mfd/Kconfig | 13 + drivers/mfd/Makefile | 2 + drivers/mfd/ls2k-bmc-core.c | 528 +++++++++++++++++++++++++++++++ 9 files changed, 758 insertions(+) create mode 100644 drivers/char/ipmi/ipmi_si_ls2k.c create mode 100644 drivers/mfd/ls2k-bmc-core.c
base-commit: a4eb677652a5da4d8e7271c0c0c8719c39f10e36
Signature · 1 line
2.47.3