Skip to content

Commit

Permalink
Merge pull request #244 from xen0n/docusaurus-3.6.3
Browse files Browse the repository at this point in the history
Upgrade to Docusaurus 3.6.3 & linux-upstream-support addition
  • Loading branch information
xen0n authored Nov 26, 2024
2 parents 8052dfe + b5a5f78 commit 9ec9f62
Show file tree
Hide file tree
Showing 3 changed files with 1,261 additions and 333 deletions.
43 changes: 33 additions & 10 deletions docs/linux-upstream-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,52 @@ sidebar_position: 7
- WIP:有尚未合并到主线的补丁
- TODO:有该功能但没有补丁
- N/A:硬件不支持该功能
- ?:缺乏数据(暂未有人提交相关信息,欢迎贡献!)

## CPU 支持情况

| 功能 | 3A5000 | 3A6000 |
|----------|-----------------|-----------------|
| SMT | N/A | [6.5][smt] |
| LSX/LASX | [6.5][lsx] | [6.5][lsx] |
| LBT | [6.6][lbt] | [6.6][lbt] |
| HWMon | [WIP][hwmon] | [WIP][hwmon] |
| CPUFreq | [6.11][cpufreq] | [6.11][cpufreq] |
| 功能 | 3A5000 | 3A6000 | 3C6000 |
|------------------------|-----------------|-----------------|-----------------|
| SMT | N/A | [6.5][smt] | [6.5][smt] |
| [AVEC][avec-docs] | N/A | N/A | [6.12][avec] |
| LCL (CPU PCIe) | N/A | N/A | OK |
| LSX | [6.5][lsx] | [6.5][lsx] | [6.5][lsx] |
| LASX | OK(同 LSX) | OK(同 LSX) | OK(同 LSX) |
| LBT | [6.6][lbt] | [6.6][lbt] | [6.6][lbt] |
| LVZ (KVM) | [6.7][kvm] | [6.7][kvm] | [6.7][kvm] |
| HWMon | [WIP][hwmon] | [WIP][hwmon] | [WIP][hwmon] |
| CPUFreq[^cpufreq-abis] | [6.11][cpufreq] | [6.11][cpufreq] | [6.11][cpufreq] |

| 功能 | 2K1000LA | 2K1500 | 2K2000 | 2K0300 | 2K0500 | 2K3000/3B6000M[^wip] |
|------------------------|------------|--------|------------|--------|--------|----------------------|
| SMT | N/A | N/A | N/A | N/A | N/A | ? |
| [AVEC][avec-docs] | N/A | N/A | N/A | N/A | N/A | ? |
| LCL (CPU PCIe) | N/A | N/A | N/A | N/A | N/A | ? |
| LSX | [6.5][lsx] | ? | [6.5][lsx] | ? | ? | [6.5][lsx] |
| LASX | N/A | N/A | N/A | N/A | N/A | OK(同 LSX) |
| LBT | N/A | N/A | N/A | N/A | N/A | ? |
| LVZ (KVM) | N/A | N/A | N/A | N/A | N/A | ? |
| HWMon | ? | ? | ? | ? | ? | ? |
| CPUFreq[^cpufreq-abis] | ? | ? | ? | ? | ? | ? |

[smt]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f6f0c9a74a48448583c3cb0f3f067bc3fe0f13c6
[avec]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ae16f05c928a1336d5d9d19fd805d7bf29c3f0c8
[avec-docs]: https://www.kernel.org/doc/html/latest/translations/zh\_CN/arch/loongarch/irq-chip-model.html#id2
[kvm]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1fc48aad14dbe7654f5986afb906332b528d54b
[lsx]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=616500232e632dba8b03981eeccadacf2fbf1c30
[lbt]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bd3c5798484aa9a08302a844d7a75a2ee3b53d05
[hwmon]: https://github.com/loongarchlinux/linux/commit/fbc7e8f1e72f9efee68cfe7b70cc397adc325818
[cpufreq]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ccf51454145bffd98e31cdbe54a4262473c609e2

[^wip]: 此型号尚未正式发布甚至研发完成,故所有相关内容均为基于当下公开信息的合理推测,《咱龙了吗?》尤其不为这些信息的准确性负责。
[^cpufreq-abis]: 龙芯平台的 cpufreq 操作在很大程度上依赖 CPU 上的管理核(一般是一颗 LA132 小核)协助执行。主核上的系统程序与管理核上的 RTOS 通讯,间接实现控制,因此管理核固件通讯协议是 ABI 边界,需要考虑兼容性。如同龙芯 Linux 生态的[新旧世界问题](./old-and-new-worlds.md)一般,CPUFreq 驱动也有两个版本,且主流货架硬件普遍搭载的管理核固件通讯协议与 Linux 上游驱动所实现的不兼容。一些国产 Linux 发行版的 Linux fork 集成了旧版的协议,如 [deepin](https://github.com/deepin-community/kernel/pull/143)、openEuler [](https://gitee.com/openeuler/kernel/issues/I6BWFP) [](https://gitee.com/openeuler/kernel/commit/6b4ebaa38760203e2e53878b8fa59bf2be84e760)[openAnolis](https://gitee.com/anolis/cloud-kernel/blob/devel-6.6/drivers/cpufreq/loongson3-acpi-cpufreq.c)(提交历史与 openEuler 相仿),供参考。

## 桥片支持情况

| 功能 | 7A1000 | 7A2000 |
|----------------|-------------------------|---------------------|
| RTC(UEFI)[^注一]| OK | OK |
| RTC(原生)[^注一]| [6.5][rtc-loongson] | [6.5][rtc-loongson] |
| RTC(UEFI)[^rtc-drivers] | OK | OK |
| RTC(原生)[^rtc-drivers] | [6.5][rtc-loongson] | [6.5][rtc-loongson] |
| GPIO | [6.4][gpio] | [6.4][gpio] |
| I2C | [6.3][i2c] | [6.3][i2c] |
| 以太网 | [5.14][dwmac-2k-7a1000] | [WIP][dwmac-7a2000] |
Expand Down Expand Up @@ -62,4 +85,4 @@ sidebar_position: 7
[spi]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6c7a864007b66e60a3f64858a9555efed408b048
[iommu]: https://github.com/loongarchlinux/linux/commit/1d26eae35f9a6f9d318112c33a177b3612179b26

[^注一]: 在遵循 UEFI 规范的龙芯系统中,可以通过 UEFI 的标准接口操作 RTC,也可以绕过固件服务直接读写相关寄存器,但硬件资源实际只有一个。原生 RTC 驱动更多是用于非 EFI 的龙芯系统,如以 DT 方式启动的嵌入式设备等。
[^rtc-drivers]: 在遵循 UEFI 规范的龙芯系统中,可以通过 UEFI 的标准接口操作 RTC,也可以绕过固件服务直接读写相关寄存器,但硬件资源实际只有一个。原生 RTC 驱动更多是用于非 EFI 的龙芯系统,如以 DT 方式启动的嵌入式设备等。
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
},
"dependencies": {
"@ant-design/icons": "^5.5.1",
"@docusaurus/core": "3.6.1",
"@docusaurus/faster": "3.6.1",
"@docusaurus/plugin-client-redirects": "3.6.1",
"@docusaurus/plugin-content-blog": "3.6.1",
"@docusaurus/plugin-content-docs": "3.6.1",
"@docusaurus/preset-classic": "3.6.1",
"@docusaurus/theme-classic": "3.6.1",
"@docusaurus/theme-common": "3.6.1",
"@docusaurus/theme-mermaid": "3.6.1",
"@docusaurus/types": "3.6.1",
"@docusaurus/core": "3.6.3",
"@docusaurus/faster": "3.6.3",
"@docusaurus/plugin-client-redirects": "3.6.3",
"@docusaurus/plugin-content-blog": "3.6.3",
"@docusaurus/plugin-content-docs": "3.6.3",
"@docusaurus/preset-classic": "3.6.3",
"@docusaurus/theme-classic": "3.6.3",
"@docusaurus/theme-common": "3.6.3",
"@docusaurus/theme-mermaid": "3.6.3",
"@docusaurus/types": "3.6.3",
"@easyops-cn/docusaurus-search-local": "^0.45.0",
"@jsdevtools/rehype-url-inspector": "^2.0.2",
"@mdx-js/react": "^3.1.0",
Expand All @@ -45,8 +45,8 @@
"yaml": "^2.6.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.6.1",
"@docusaurus/tsconfig": "3.6.1",
"@docusaurus/module-type-aliases": "3.6.3",
"@docusaurus/tsconfig": "3.6.3",
"@eslint/js": "^9.15.0",
"@types/eslint__js": "^8.42.3",
"@types/glob": "^8.1.0",
Expand All @@ -59,15 +59,15 @@
"@types/react-router-dom": "^5.3.3",
"eslint": "^9.15.0",
"prettier": "^3.3.3",
"typescript": "^5.6.3",
"typescript": "^5.7.2",
"typescript-eslint": "^8.15.0",
"update-browserslist-db": "^1.1.1"
},
"resolutions": {
"@docusaurus/plugin-content-docs": "3.6.1",
"@docusaurus/theme-translations": "3.6.1",
"@docusaurus/utils-common": "3.6.1",
"@docusaurus/utils-validation": "3.6.1"
"@docusaurus/plugin-content-docs": "3.6.3",
"@docusaurus/theme-translations": "3.6.3",
"@docusaurus/utils-common": "3.6.3",
"@docusaurus/utils-validation": "3.6.3"
},
"browserslist": {
"production": [
Expand All @@ -84,5 +84,5 @@
"engines": {
"node": ">=20"
},
"packageManager": "[email protected].1"
"packageManager": "[email protected].3"
}
Loading

0 comments on commit 9ec9f62

Please sign in to comment.