580 legacy branch: please backport Linux 7.4 support (vma_is_hugetlb / VM_SPECIAL, drm atomic_create_state)

未关闭
#1,629 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
50/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
c, linux

调研方向

Compare the 580 and 620 branches, starting with kernel-open/nvidia-uvm/uvm_hmm.c and nvidia-drm-crtc.c. Check how the 620 branch handles Linux 7.4 compatibility and identify the corresponding 580 code paths for hugetlb detection and DRM state creation. Done means the 580 branch builds against Linux 7.4 with both compatibility changes backported.

由索引模型根据 Issue 内容生成。

描述

The 580 branch is the last one supporting Maxwell, Pascal and Volta GPUs, so distributions keep shipping it next to the current branch. 580.196.11 does not build against Linux 7.4:

  • nvidia-uvm: Linux 7.4 removed VM_SPECIAL and renamed is_vm_hugetlb_page() to vma_is_hugetlb(); kernel-open/nvidia-uvm/uvm_hmm.c still uses both.
  • nvidia-drm: Linux 7.4 removed the reset callbacks of drm_crtc_funcs/drm_plane_funcs in favour of atomic_create_state; nvidia-drm-crtc.c in 580.196.11 only provides .reset.

620.85.02 already handles both (nv_vma_is_hugetlb() in uvm_hmm.c, atomic_create_state hooks in nvidia-drm-crtc.c). Could these changes be backported to the 580 branch?

For reference, we currently carry our own downstream patches for 580.196.07 (conftest-based atomic_create_state for CRTC/plane, VM_SPECIAL/vma_is_hugetlb fallbacks); they build against 7.4.0-rc4 but are not tested on hardware, so we would much prefer an official 580 update.

AI disclosure: the comparison of the branches was prepared with the help of an AI coding assistant; reviewed by me.

🤖 Generated with Claude Code

主要语言
C
星标
17.7k
派生
2k
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NVIDIA/open-gpu-kernel-modules 的其他 Issue

查看 NVIDIA/open-gpu-kernel-modules 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。