泰晓科技 -- 聚焦 Linux - 追本溯源,见微知著!
网站地址:https://tinylab.org

泰晓RISC-V实验箱,转战RISC-V,开箱即用
请稍侯

泰晓资讯·4 月 / 第一期 / 2024

unicornx 创作于 2024/04/04

“泰晓资讯”,广泛报道 “Linux/开源” 业界资讯。欢迎广大读者投递相关资讯来源和素材,本站将进一步收集整理后发布给大家。

Linux 内核最新消息

本周初 Linus Torvalds 发布了 Linux 6.9-rc2,而稳定版本估计会与 5 月中旬发布。

在复活节期间,继上周关闭此周期合并窗口的 6.9-rc1 内核之后,新 rc2 主要是合入了的各种针对错误和回归的修复。值得注意的是,本周修复了 AMD Zen 3 / Zen 4 SRSO 问题以及其他错误修复。

Torvalds 在 6.9-rc2 的发布公告中声称:无论是下雪、下雨、炎热还是夜晚的阴霾,都不会阻止内核发布新版本,所以复活节同样我们也没有歇着(“Neither snow nor rain nor heat nor gloom of night stays kernel rc releases. Nor does Easter.”)。

https://www.kernel.org/ updated by 2024/4/4

分支类型版本发布时间
mainline6.9-rc22024-03-31
stable6.8.32024-04-03
stable6.7.122024-04-03
longterm6.6.242024-04-03
longterm6.1.842024-04-03
longterm5.15.1532024-03-26
longterm5.10.2142024-03-26
longterm5.4.2732024-03-26
longterm4.19.3112024-03-26
linux-nextnext-202404032024-04-03

关键词: Linux

Arm China 正在考虑将他们的 “Zhouyi” NPU 驱动程序提交到 Linux 内核上游去

Arm China is looking at upstreaming their “Zhouyi” NPU driver into the Linux kernel via the recently-created accelerator “accel” subsystem. The Arm China Neural Processing Unit (NPU) driver in its current form has both an open-source kernel and user-space stack.

Arm China 正在考虑基于最近创建的 “accel” 子系统将其 “Zhouyi” NPU 驱动程序提交到 Linux 内核上游中去。Arm China 的 Neural Processing Unit(NPU) 驱动程序分为内核和用户空间两部分,而且都已经开源了。

三年前,一位来自 Baidu 的工程师曾经开发过基于 Linux 版本的 Zhouyi AI accelerator 驱动程序,但当时只是一个开源的内核驱动程序,并且缺乏开源的用户空间软件。从那时起,Arm China 就一直致力于完善这个完全开放的驱动程序堆栈。Arm China NPU 被用于一些 SoC 中,例如 Allwinner R329。

来自 Arm China 的一位工程师今天宣布,希望将他们的 NPU 驱动器提交到上游的 accel 子系统中。目前,用户模式的驱动程序和内核驱动程序开源在 https://github.com/Arm-China/Compass_NPU_Driver

这个开源的 AI Accelerator 驱动程序堆栈依赖于通过 ArmChina 的 NN 图形编译器将 TensorFlow Lite 和 ONNX 模型转换为可执行库。然后,应用程序将该可执行文件加载到用户模式驱动程序中,并进而将二进制文件提交到内核驱动程序,然后内核驱动程序将分派到受支持的 SoC 上的 NPU 硬件中执行。

AliExpress 和类似经销商提供了一些开发板,这些开发板支持 Arm China NPU。

到目前为止,邮件只是表达了上游化的兴趣,并弄列出了将这个 Arm China NPU 驱动程序提交到主线 Linux 内核中的要求。这仍然需要上游DRM/accel 维护者来审查代码,确保它适合适当的接口等,所以前面还有很长的路要走,但至少很高兴看到 Arm China 现在有一个完全开源的NPU 驱动程序栈用于 Linux。

新闻出处,“Arm China Looking At Upstreaming Their “Zhouyi” NPU Driver Into The Linux Kernel”: https://www.phoronix.com/news/Arm-China-Zhouyi-NPU-Linux-RFC

关键词: Linux, Arm China, NPU Driver

Microsoft 帮助清理 Linux 内核代码

With time Microsoft’s Linux kernel contributions have extended beyond just the initial business focus on Hyper-V support and other needs for Azure as well as around Windows Subsystem for Linux (WSL) to more general contributions. Microsoft has also hired more key Linux contributors along with stakes in other projects like systemd. Earlier this week were patches from a Microsoft engineer working out Rust language improvements for the Linux kernel while now in ending out the holiday weekend are patches for making the Linux kernel language more inclusive.

随着时间的推移,Microsoft 对 Linux 内核的贡献已经超出了最初的业务重点,即对 Hyper-V、Azure 以及围绕 Windows Subsystem for Linux (WSL) 的的支持,进而推广到更多的贡献。Microsoft 还聘请了更多资深的 Linux 贡献者,以及参与到 systemd 等其他项目。本周早些时候,一位 Microsoft 工程师发布了针对 Linux 内核的 Rust 语言改进补丁,最近他又发布了新的补丁,对 Linux 内核的代码进行进一步的清理。

上周末,来自 Microsoft 的 Linux 工程师 Easwar Hariharan 提交了一组包含 14 个补丁的补丁集,这位工程师负责主要 Azure Linux plumbing、Azure Cobalt 等云芯片的支持以及虚拟化事务。他提交的这组补丁不涉及核心业务,主要是清理了代码中语言描述,使其更具包容性。譬如,根据最新的 I2C、SMBus 和 I3C 规范调整代码并使用更为准确的的术语。

补丁中大多数的改动,是将代码和注释中诸如 masterslave 这些单词改为 controllertarget(或者 client)。但即使对于这些补丁,也还存在一些问题,因为行业规范倾向于引用新的 controller/target 术语,而不是大多数新内核补丁中使用的 client。在上游内核开发人员中,显然还没有就如何区分 clienttarget 达成明确的共识。

这些补丁清理了近 400 行,从核心子系统代码到 AMD 和 Intel 的图形驱动程序、各种 media 和 FBDEV 驱动程序以及其他 I2C/I3C/SMBus 代码。

新闻出处,“Microsoft Helping Out In Making The Linux Kernel Language More Inclusive”: https://www.phoronix.com/news/Microsoft-Linux-More-Inclusive

关键词: Linux, Microsoft

Linux 内核开始为升级 Rust 1.78 做准备

Following the recent upgrade to Rust 1.77, the Linux kernel Rust code is preparing to move to Rust 1.78 that will be released as stable in about one month.

在最近升级到 Rust 1.77 之后,Linux 内核 Rust 代码正准备迁移到 Rust 1.78,该版本将在大约一个月后作为稳定版本发布。

Rust 1.78 要到 5 月初才会发布,而由 Miguel Ojeda 领导的 Rust Linux 内核开发人员已经在为下一次升级做准备。随着向 Rust 1.78 的转变,这是他们第一次不需要 “alloc” 分支代码,也为 Linux 内核的 Rust Allocation API 扫清了道路,进而为管道中的其他功能扫清了道路,例如 in-place 模块初始化。

Rust 1.78 升级补丁会进行升级,然后随着兼容性的变化,删除一些冗余的 imports 并作为兼容性实现 LockClassKey 的 “默认值”。

Rust 1.78 增加了 “feature(asm_goto)”功能,支持指向 Rust 静态的 mutable 指针,在启用调试断言时检查所有不安全的前提条件等等。有关 Rust 1.78 更改的更多详细信息,请访问 https://releases.rs/docs/1.78.0/

Rust 1.78 版本应该在 5 月 2 日左右发布,并为下一个内核周期 Linux 6.10 留出时间进行内核代码升级以及 merge。

新闻出处,“Linux 6.9 Adds New RISC-V Vector-Accelerated Crypto Routines”: https://www.phoronix.com/news/Linux-6.9-RISC-V

关键词: Linux, Rust

Canonical 宣称对 Ubuntu Pro 客户的 Ubuntu LTS 支持将延长至 12 年

Ubuntu Long-Term Support (LTS) releases have been support for 10 years of updates by Canonical while now that has been extended to 12 years but only for Ubuntu Pro customers going for their legacy support add-on. This 12 year support is extended retroactively going back to Ubuntu 14.04 LTS.

Ubuntu 的 Long-Term Support(LTS) 版本目前的维护周期为 10 年。近日 Canonical 通过 Ubuntu 博客宣布了对 Ubuntu LTS 版本长达 12 年的旧版支持扩展,但仅适用于 Ubuntu Pro 客户。这会影响 Ubuntu 14.04 以及其后的所有长期支持版本。

今年已经是 2024 年,考虑到十年的有效期限,Ubuntu 14.04 LTS 将很快结束生命周期,但如果您是 Ubuntu Pro 客户,将获得额外两年的更新知支持。这 12 年的 Ubuntu LTS 支持是他们作为 Ubuntu Pro add-on 提供的 “legacy support” 的一部分。对于那些直接使用 Ubuntu LTS 版本而无需付费的用户,更新期限为五年,Ubuntu Pro 用户原本可以获得十年的支持和安全更新,现在延长至长达 12 年。

新闻出处,“Canonical Extends Ubuntu LTS Support To 12 Years For Ubuntu Pro Customers”: https://www.phoronix.com/news/Ubuntu-LTS-Pro-12-Years

关键词: Canonical, Ubuntu, LTS

Ubuntu 24.04 Beta 因 XZ 问题延迟发布

The Ubuntu 24.04 beta won’t be happening tomorrow as planned but has been pushed back by one week due to the XZ security nightmare and wanting to rebuild packages out of an abundance of caution.

原本定于 4 月 4 日 发布的 Ubuntu 24.04 beta 测试版本被推迟发布,由于 XZ 安全噩梦以及出于谨慎考虑需要重建软件包,因此该 beta 版本的发布将推迟一周。

Canonical 决定在修复 xz-utils 包中受感染的 XZ 代码后为 Ubuntu 24.04 (Noble Numbat) 重建所有二进制包,虽然没有迹象表明其他包因此而受到损害,但出于谨慎考虑,他们还是重新构建了所有二进制文件。

由于软件包重建需要时间,Ubuntu 24.04 测试版已从 4 月 4 日推迟到 4 月 11 日。原计划 4 月 25 日发布 Ubuntu 24.04 LTS 的日期似乎仍在按计划进行,并未受到影响。

新闻出处,“Ubuntu 24.04 Beta Delayed Due To XZ Nightmare”: https://www.phoronix.com/news/Ubuntu-24.04-Beta-Delayed

关键词: Ubuntu, XZ

联系我们

欢迎扫描二维码加微信联系我们:

tinylab wechat



Read Album:

Read Related:

Read Latest: