Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content suggestion for This Week in LoongArch newsletter / 《每周一龙》新闻线索信箱 #16

Open
xen0n opened this issue May 11, 2023 · 256 comments

Comments

@xen0n
Copy link
Member

xen0n commented May 11, 2023

直接回复新闻线索。尽可能附上出典链接。

欢迎任何形式的投稿只要内容与 LoongArch 新世界(又称“社区生态”、“ABI 2.0”)有关:

  • 谁整了新活(开源项目 PR、提案、视频、论坛水贴等均可)
  • 可公开的秘闻
  • 其他你认为有关的内容:项目维护者会帮你判断

也建议同步投递《狗剩微闻》栏目,那边的投稿内容也会在周报编撰时被考虑。

注意事项

本站原则上不报道纯粹旧世界(又称“ABI 1.0”,或在 2021~2023 的语境下与“商业生态”大致等价)范畴的新闻

不报道纯粹的旧世界动态,主要还是由于社区无法实质参与旧世界研发:Loongnix、Kylin、UOS 等发行版的工单系统、自动化构建系统等基础设施未对公网开放。总不能指望通过 [email protected] 的唯一渠道有效协作。

此外,目前已知所有旧世界发行版均有商业背景,但本站作为利益无关方,也不便单方面提供商业宣传渠道(进而招致未提及的友商,以至其他非龙芯阵营的“友商”的不必要指摘)。

@xen0n

This comment was marked as resolved.

@xen0n xen0n pinned this issue May 11, 2023
@donmor

This comment was marked as resolved.

@donmor

This comment was marked as resolved.

@donmor

This comment was marked as resolved.

@donmor

This comment was marked as resolved.

@donmor

This comment was marked as resolved.

@donmor

This comment was marked as resolved.

@donmor

This comment was marked as resolved.

@donmor

This comment was marked as resolved.

@dbhrscom

This comment was marked as resolved.

@xen0n
Copy link
Member Author

xen0n commented May 16, 2023

以上的内容都已在《每周一龙:第 1 期》体现

@KatyushaScarlet

This comment was marked as resolved.

@donmor

This comment was marked as resolved.

@KatyushaScarlet

This comment was marked as resolved.

@xen0n

This comment was marked as resolved.

@xen0n
Copy link
Member Author

xen0n commented Jun 5, 2023

以上的内容都已在《每周一龙:第 4 期》体现

@xen0n

This comment was marked as resolved.

@yxd-ym

This comment was marked as resolved.

@xen0n
Copy link
Member Author

xen0n commented Jun 12, 2023

以上的内容都已在《每周一龙:第 5 期》体现

@xry111

This comment was marked as resolved.

@xry111

This comment was marked as resolved.

@xen0n

This comment was marked as resolved.

@xen0n
Copy link
Member Author

xen0n commented Jun 27, 2023

以上的内容都已在《每周两龙:第 6 期》(#26)体现

@xen0n

This comment was marked as resolved.

@Luo-Chang

This comment was marked as off-topic.

@Luo-Chang

This comment was marked as resolved.

@xen0n

This comment was marked as resolved.

@Luo-Chang

This comment was marked as resolved.

@yetist

This comment was marked as resolved.

@phorcys

This comment was marked as resolved.

@xen0n
Copy link
Member Author

xen0n commented May 14, 2024

以上内容都已在《每周一龙:第 48 期》(#184)体现

@xen0n

This comment was marked as resolved.

@xen0n
Copy link
Member Author

xen0n commented May 19, 2024

以上内容都已在《每周一龙:第 49 期》(#186)体现

@xen0n

This comment was marked as resolved.

@xen0n

This comment was marked as resolved.

@plum930

This comment was marked as resolved.

@LinuxResearcher

This comment was marked as resolved.

@xry111

This comment was marked as resolved.

@LiarOnce
Copy link

LiarOnce commented Jun 10, 2024

算整活项目

实测在XA61200主板上,将7A2000桥片原本的铝制散块更换为尺寸更大且加装了风扇的散热器后,更新目前最新版本bios,稳定性大幅度提升,GCN4的显卡出现gpu reset的概率大幅度降低,现在已经很难出现gpu reset了。

该改装从5月18日开始实施并使用到现在,稳定性已经相对可用,改装图例已经放入:https://github.com/LiarOnce-LoongAL/.github/blob/main/cooler/chipset.md

硬件配置单公开于(下图的西数绿盘并不推荐用于正式生产环境,请勿安装):https://github.com/LiarOnce-LoongAL/.github/blob/main/profile/README.md
经此改装后整块主板只有纽扣电池,散热器背板,BIOS Flash还是原装的了
运行效果:
IMG_20240610_233818

@yxd-ym
Copy link
Contributor

yxd-ym commented Jun 11, 2024

Loongarch64 support is added to zig's internal glibc ABI definitions. But the new ABI list file is not added to zig's new release 0.13.0 yet.

ziglang/glibc-abi-tool#5
ziglang/glibc-abi-tool@7b9fce7

@yxd-ym
Copy link
Contributor

yxd-ym commented Jun 11, 2024

Toolchains (LLVM, musl, glibc) of zig 0.13.0 are all updated to versions that support loongarch64. I think it is possible to add full loongarch64 support to zig now.

https://ziglang.org/download/0.13.0/release-notes.html#Toolchain

For previous attempt, see:

yxd-ym/zig-bootstrap#1

@xen0n
Copy link
Member Author

xen0n commented Jun 11, 2024

#16 (comment) 及之上的评论已在《每周一龙:第 50 期》(#188)体现

#16 (comment) 已在《每周两龙:第 51 期》(#190)体现

@xry111
Copy link
Member

xry111 commented Jun 13, 2024

整活项目:xry111 为 GCC 增加 __builtin_{add,sub,mul}_overflow__builtin_{add,sub}c 的 LBT 实现,
发现生成的代码虽然指令数更少,但反而跑得更慢,故不向上游提交该实现。

@MingcongBai
Copy link
Member

修复了先前龙架构无法正常启动使用 grub-mkrescue 工具生成的安同 OS 镜像的问题:

grub-mkrescue 会创建小写的 EFI removable image 路径 (/efi/boot/bootloongarch64.efi) ,ESP 镜像文件系统为 FAT12。然而,无长文件名支持的 FAT 实际上是不会区分大小写的,但龙芯的固件似乎还是把 FAT12 当成了区分大小写的文件系统,于是就发生了找不到标准 EFI 路径的问题(UEFI 标准 3.4.1.1 节定义路径必须全大写,BOOTx64.EFI 除外)。于是我们编写补丁,将 grub-mkrescue 写入的 EFI 镜像路径全部改为大写,严格符合 UEFI 标准,在龙架构主板上也可以正常启动了。

这个问题很可能源于上游疏忽,因为通过观察 util/grub-install.c 可知,grub-install 默认写入的路径为全大写,某种意义上让绝大多数发行版侥幸绕开了这个坑(新世界据我所知只有安同 OS 在用 grub-mkrescue 生成 ISO)。

补丁链接 >>

@xen0n
Copy link
Member Author

xen0n commented Jun 14, 2024

@xry111
Copy link
Member

xry111 commented Jun 18, 2024

Binutils 开发分支对于基于栈的重定位类型支持已经爆炸:https://sourceware.org/pipermail/binutils/2024-June/134876.html

我个人建议干脆把这些重定位类型的支持删掉。

@MarsDoge
Copy link

MarsDoge commented Jun 19, 2024

整活项目:
kilaterlee 针对Memtest86+增加了LoongArch64的支持: https://github.com/loongson/Firmware/tree/main/Memtest86%2B
EDK2社区OvmfPkg
正式接收LoongArch Qemu virt-machine: tianocore/edk2#5746
EDK II Test Project: edk2-test-stable202406 正式支持LoongArch64: https://github.com/tianocore/edk2-test/releases

@FurryAcetylCoA
Copy link

FurryAcetylCoA commented Jun 28, 2024

@zhangn1985
Copy link

Sui Jingfeng发布了etnaviv 的PCIe形态驱动的第14版

Christian Gmeiner表示近期会抽时间审查代码,并希望能尽快合并这组补丁

但作者对此似乎不太乐观, 仅表示请求合并前6个补丁。

如果顺利合并的话,接下来的工作可能是用TTM重写GEM

@shankerwangmiao
Copy link
Contributor

https://gist.github.com/shankerwangmiao/a15e17fc5c1c1dfb883490862107fcbb

@yxd-ym
Copy link
Contributor

yxd-ym commented Aug 16, 2024

https://github.com/ziglang/zig/pulls?q=is%3Apr+loongarch

目前 zig 的 loongarch64 支持已经基本就绪。当前正在等待引入 LLVM 19 以解决已知问题:

乐观估计的话, zig 下一个版本 0.14.0 可能可以支持

  • loongarch64-linux-gnu
  • loongarch64-linux-musl

@yxd-ym
Copy link
Contributor

yxd-ym commented Sep 20, 2024

ziglang/zig-bootstrap#188

zig 的 loongarch64 初步支持已经完成。zig-bootstrap 已经能初始化一个可以工作的 zig。

@LinuxResearcher
Copy link

ventoy/Ventoy#2955

@Fearyncess
Copy link

nix-rust/nix#2507
nix-rust/nix#2509

@Catty2014
Copy link

Catty2014 commented Sep 22, 2024

移植了osu-lazer到loongarch(ABI2.0)
https://github.com/Catty2014/osu-lazer-loongarch
代码正在整理

@yxd-ym
Copy link
Contributor

yxd-ym commented Sep 25, 2024

https://ziglang.org/devlog/#2024-09-24

目前还有一些已知问题,比如

  • llvm fp16 的处理
  • memory page size hard code 在新世界发行版主流的 16KiB

@yxd-ym
Copy link
Contributor

yxd-ym commented Oct 10, 2024

zig 计划在 0.15 版本实现 loongarch64-linux tier 1 支持

ziglang/zig#21646

Contributions are welcomed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests