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

泰晓RISC-V实验箱,不会吃灰,开箱即用
请稍侯

泰晓资讯·9月 / 第一期 / 2021

unicornx 创作于 2021/09/02

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

Linux 内核最新消息

https://lkml.org/lkml/2021/8/29/382

一切符合预期,Linus Torvalds 在 2021 年秋季那些 Linux 发行版发布之前将 Linux 5.14 提升到了稳定版本,该版本加入了最新的特性支持、以及对硬件的支持和其他改进。Linux 5.14 版本中的一些亮点包括 core scheduling、使用 MEMFD_SECRET 的对内存区域进行加密、针对 Intel Alder Lake 处理器的继续改进、增加对 Yellow Carp 和 Beige Goby 这些 AMD 设备的 GPU 驱动支持,对 AMD SmartShift 笔记本电脑和对 Raspberry Pi 400 的支持等等。

Linux 5.14 内核版本是在 Torvalds 宣布 Linux 内核 30 周年之后几天发布的。 Linus Torvalds 在今天的 Linux 5.14 公告中写道:So I realize you must all still be busy with all the galas and fancy balls and all the other 30th anniversary events, but at some point you must be getting tired of the constant glitz, the fireworks, and the champagne. That ball gown or tailcoat isn't the most comfortable thing, either. The celebrations will go on for a few more weeks yet, but you all may just need a breather from them. And when that happens, I have just the thing for you - a new kernel release to test and enjoy. Because 5.14 is out there, just waiting for you to kick the tires and remind yourself what all the festivities are about. 可爱的 Linus 老爷子还是那么朴素无华地保持了一个技术宅男的经典形象。让我们再次向他和他的 Linux 致敬。

现在已经进入 Linux 5.15 版本的合并窗口,让我们期待更多激动人心的改进。

https://www.kernel.org/

分支类型版本发布时间
mainline5.142021-08-29
stable5.13.132021-08-26
longterm5.10.612021-08-26
longterm5.4.1432021-08-26
longterm4.19.2052021-08-26
longterm4.14.2452021-08-26
longterm4.9.2812021-08-26
longterm4.4.2822021-08-26
linux-nextnext-202109012021-09-01

关键词: Linux

近期 Linux 内核的重要补丁(节选)

Architecture-specific

Core kernel

关键词: Linux

提前预览一下 Linux 5.15 可能合入的新特性

节选了部分大家可能感兴趣的特性:

  • 支持 Intel 最新的 DG2/Alchemist 显卡驱动,以及对 XeHP 的支持。预计在接下来的几个内核周期中会有更多的 DG2 和 XeHP 工作。 此外,他们终于取消了 Cannon Lake 图形支持。
  • Radeon Cyan Skillfish support as a yet to launch Navi 1x APU.
  • Amazon’s DAMON is expected to land. - BPF timers are set to finally be mainlined.
  • PREEMPT-RT 的核心 locking 代码看起来已准备好 merge,这部分代码改动占据了 PREEMPT-RT 补丁的很大一块,剩余的东西已经不多了,可能会在不久的将来陆续被合入主线。
  • Btrfs support for IDMAPPED mounts.
  • Btrfs FS-VERITY support is also on the way.
  • Optimized C3 sleep entry handling for AMD CPUs.
  • AMD SB-RMI driver is set to land.
  • An AVX2-optimized SM4 cipher implementation.
  • Qualcomm Adreno 680 and Adreno 7c3 support.
  • Mediatek MT8167 DRM support.
  • Arm SMCCC TRNG driver is ready to go.
  • MCTP protocol support.
  • The LightNVM subsystem is being removed.
  • 来自 Paragon Software 的新的 NTFS 驱动程序可能会被 merge,但由于一些未解决的问题,目前还不能立即明确,但很有可能会合并。
  • Paranoid L1d cache flushing looks like it will try again for Linux 5.15.
  • Networking support for Intel Lunar Lake.
  • More scalable and reliable Open vSwitch support.
  • ……

新闻出处,“Some Of The Features Expected For Linux 5.15: DG2/Alchemist, BPF Timers, DAMON + More” https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.15-Features-Expected

关键词: Linux

PREEMPT_RT 的 Locking 代码合入 Linux 5.15

It looks like the real-time (RT) patches for the Linux kernel are almost to the point of being fully upstream in the mainline Linux kernel. Merged for Linux 5.15 is the PREEMPT_RT locking code that represents a bulk of the outstanding RT patches.

看起来 Linux 内核的实时 (RT) 补丁已经完全满足了合入主线的要求。目前合入 Linux 5.15 是 PREEMPT_RT 补丁的 locking 相关代码,它占据了该补丁的绝大部分。

本月早些时候注意到 PREEMPT_RT locking 代码作为 “sched/core” 更改的一部分已经为 Linux 5.15 做好了准备。果然,在这个 Linux 5.15 合并窗口的第一天,该补丁就发出了拉取请求(Pull Request),立马就被 Linus Torvalds 同意了。

正如我们从前所了解到的那样,由于资源和资金的困扰,实时补丁进入主线上游的工作遇到了很大的困难。但从今年夏季开始,我们开始看到该项目又开始变得活跃起来。现在合并进入 Linux 5.15 的 72 个和锁相关的补丁占据了整个 PREEMPT_RT 补丁未合入主线工作的很大一部分,但从 linux-rt-devel 的补丁中可以看出,仍有不少 RT 工作还未进入主线。

对于那些没有构建实时内核需求的人来说,这些 locking 相关修改应该对他们的系统没有影响。

新闻出处,“The PREEMPT_RT Locking Code Is Merged For Linux 5.15” https://www.phoronix.com/scan.php?page=news_item&px=PREEMPT-RT-Locking-In-Linux-515

关键词: Linux,PREEMPT_RT,locking

传奇骇客 Con Kolivas 考虑结束内核开发生涯

Con Kolivas has worked on many patches for the Linux kernel over the past two decades and particularly focused on innovations around desktop performance/interactivity. For over a decade now he’s primarily been focused on maintaining his work out-of-tree and not catering to mainline acceptance but now he is thinking of bowing out once more and ending his kernel development effort.

在过去的 20 年里,Con Kolivas 为 Linux 内核开发了许多补丁,特别是那些围绕桌面性能交互性的创新。十多年来,他主要专注于维护他那些没有被主线内核合并的开发工作,但现在他正在考虑再次退出并结束他的内核开发工作。

在过去的十年中,他一直在主线之外维护他的 “-ck” 补丁,并针对每个新内核升级它,这个补丁通过各种改进可以增强内核的交互性能。他还一直在维护他的 MuQSS 调度程序,也就是他以前著名的 “BFS” Brain Fuck Scheduler 的后继版本。

虽然 Con 最近的工作还没有被主线化,但这些补丁已经被一些发行版内核和各种第三方内核构建(如 Liquorix 等)所使用。

由于 Con Kolivas 的本职工作是麻醉师,在内核社区中作为一名超级忠实的 “业余爱好者”,因为去年的疫情大流行,他暂时放下内核开发工作,全身心投入到设计救治 COVID-19 患者的医疗设备中去。然而现在,他正在考虑离开更长时间,甚至可能永久放弃 Linux 内核开发工作。

Con 并没有启动为 Linux 5.13 更新 MuQSS 和他的 “-ck” 补丁,现在随着 Linux 5.14 的发布,考虑到手头的 "令人沮丧的大" 变化,他一直在自我反省。他今天分享说,他正在考虑结束他的 “-ck” 和 MuQSS 工作,因此目前在提供了针对 Linux 5.12 的补丁升级后他一直没有计划为新的版本做更新。

Con 在他的博客上写道,I'm once again left wondering if I should be bothering with maintaining this patch-set, as I've mentioned before on this blog. The size of my user-base seems to be diminishing with time, and I'm getting further and further out of touch with what's happening in the linux kernel space at all, with countless other things to preoccupy me in my spare time.看上去随着他的用户群规模日渐减少,而且由于其自身逐渐远离内核社区,他将把他的空闲时间更多用于关注内核社区之外的事务。

所以看上去 Con 将第二次退出社区,并且很可能是最后一次。但这丝毫不影响我们向他致敬,为了他为 Linux 内核曾经做过的贡献,为了一名不想当内核骇客的好医生和一个那么有趣的灵魂。

新闻出处,“Con Kolivas Contemplates Ending Kernel Development, Retiring MuQSS & -ck Patches” https://www.phoronix.com/scan.php?page=news_item&px=Con-Kolivas-EOL-MuQSS-CK

关键词: Linux,Con Kolivas

Linux 5.15 中的调度器将有更新,但似乎忽略了 Intel

Ingo Molnar began sending in his pull requests bright and early as usual for the just-opened Linux 5.15 merge window. With the scheduler changes for this next kernel version there are some improvements worth mentioning but also worth mentioning is what hasn’t found its way to the kernel yet: any software optimizations around Intel Thread Director for upcoming Alder Lake processors.

Ingo Molnar 开始像往常一样早早地为刚刚打开的 Linux 5.15 合并窗口发送他的 PR。针对下一个内核版本的调度器改进,有一些地方值得介绍一下,但有一点需要注意的是,这个版本的改动针对即将推出的 Intel Alder Lake 处理器所提供的 Thread Director 特性似乎没有做出任何代码上的优化。

Linux 5.15 的新调度器包括了针对 asymmetric scheduling affinity 的更改。所谓 asymmetric scheduling affinity 最初发明出来支持在 AArch64 系统上运行 32 位的任务,因为有些具备 AArch64 核心的 SoC 无法执行 32 位 (AArch32) 的程序。改进允许为任务定义自己的 CPU 类型掩码,以确保调度程序将给定任务放置在支持它的 CPU 上。所有的支持重点都集中在针对 ARM 架构。

Linux 5.15 的调度程序更改还添加了针对 cgroup 的 SCHED_IDLE 支持、针对 deadline 调度器的改进、增强的 CPU node-distance >确定以及各种修复。具体修改可以参考 http://lkml.iu.edu/hypermail/linux/kernel/2108.3/05721.html

值得注意的是,本次调度器的改进中并未包含针对 Intel Thread Director 的任何改动,而且在邮件列表中以及其他 git 仓库中也没有看到和它的相关信息。随着即将推出的 Alder Lake 处理器,Thread Director 作为新的基于 Intel 处理器的功能,用于尝试确定给定任务是运行在侧重能效的 E(nergy)型核心上还是侧重性能的 P(erformance) 型核心上。

Thread Director 是基于硬件的,用于尝试在 Alder Lake 和未来的 Intel 组合型(hybrid)处理器设计中确定最合适的任务放置,但这也需要有软件的辅助。Intel 在其 Architecture Day 明确表示,Windows 11 将支持对 Thread Director 进行优化,但具体细节并不太清楚。Intel 对围绕 Thread Director 的任何 Linux 软件支持/优化依然保持沉默。总之目前看不到任何针对 Intel 的优化而 Linux 5.15 将在今年秋天稳定发布,并且第一批 Alder Lake 处理器将于今年晚些时候推出,Intel 似乎不会在发布日进行任何 Linux 优化。

Linux 内核长期以来一直在专门针对 ARM 的 big.LITTLE 设计,以及围绕 energy aware 调度算法等提供代码优化,包括 5.15 中的这项工作,但我们的确还没有在调度程序或电源管理领域看到任何关于 Intel 的新特性支持。 所以说 Wintel 似乎还是 Wintel :(

总之让我们看看未来几周/几个月会发生什么以及 Linux 何时能提供针对 Alder Lake 芯片的开箱支持。

新闻出处,“Scheduler Changes For Linux 5.15 - Still No Sign Of Any Intel Thread Director Optimizations” https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.15-Scheduler

关键词: Linux,Scheduling,Intel

都 2021 年了,Linux 5.15 仍在改进 Intel 486 时代的硬件支持

The x86/IRQ changes for the Linux 5.15 kernel bring some unexpected improvements to old hardware. In particular, some old Intel and ALi hardware is seeing some work done for this modern Linux kernel.

Linux 5.15 内核中针对 x86/IRQ 的更改实在让人感到意外,看上去仍然有人在为这些老古董硬件提交改进补丁。特别地,这些改进有助于一些旧的 Intel 和 ALi 硬件继续在当前最新的内核中可靠地运行。 Thomas Gleixner 解释了这些针对 x86/irq 的 PR:A set of updates to support port 0x22/0x23 based PCI configuration space which can be found on various ALi chipsets and is also available on older Intel systems which expose a PIRQ router. While the Intel support is more or less nostalgia, the ALi chips are still in use on popular embedded boards used for routers. 看上去这些硬件都是 intel 486 那个年代的产品了。

新闻出处,“Linux 5.15 In 2021 Is Still Improving Intel 486 Era Hardware Support” https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.15-x86-IRQ

关键词: Linux, 486

Ubuntu 版本发布状态最新消息

After a slight delay, Ubuntu 20.04.3 LTS is available today as the newest point release for the current Ubuntu Linux long-term support release.

稍有延迟后,Ubuntu 20.04.3 LTS 上周作为当前 Ubuntu Linux 长期支持版本的最新版本发布。

对于 Ubuntu 20.04.3 LTS,它升级了来自 Ubuntu 21.04 的硬件支持包,主要包括 Linux 5.11 和 Mesa 21.0。这对 Ubuntu LTS 用户来说是个好消息,尤其是在更新的开源图形驱动程序方面,在更新的内核功能和更好的全面硬件支持方面,拥有 Linux 5.11 而非 Linux 5.8 对用户来说也是个好消息。

新闻出处,“Ubuntu 20.04.3 LTS Released With Fixes, Newer Hardware Enablement Stack” https://www.phoronix.com/scan.php?page=news_item&px=Ubuntu-20.04.3-LTS

While Ubuntu 21.10 isn’t being released for another two months, the release schedule for Ubuntu 22.04 has been published that is rather notable in being the next bi-annual long-term support (LTS) release.

近日发布的时间表将 Ubuntu 22.04 LTS 的发布日期定为 2022 年 4 月 21 日。这个发布日期并不令人意外,基本上与我们在过去这些年的大部分时间里对 Canonical 所期望的节奏和正常发布时间一致。

Ubuntu 22.04 LTS 功能冻结定为 2 月 24 日,UI 冻结定为 3 月 17 日,测试版定于 3 月 31 日发布,内核定为 4 月 7 日冻结。

Ubuntu 22.04 LTS 预计将与 GNOME 42 一起发布(虽然如果情况有变可能是 GNOME 41)。另外这将是第一个在默认情况下启用 Wayland 的 Ubuntu LTS 版本,令人期待的事项还包括:新的桌面安装程序,OpenZFS 支持,以及和过去一样,很多其他更新的软件包,如 Mesa 22.0、PHP 8.1 等。

新闻出处,“Ubuntu 22.04 LTS Release Schedule Published” https://www.phoronix.com/scan.php?page=news_item&px=Ubuntu-22.04-Release-Schedule

关键词: Ubuntu

联系我们

资讯内容部分来自 “LWN.net“。如果您对某些 LWN 文章感兴趣(譬如希望获得全文翻译的)请扫描二维码加微信联系我们:

tinylab wechat



Read Album:

Read Related:

Read Latest: