Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • N nvidia-470xx-utils
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PackagesPackages
  • Extra
  • nvidia-470xx-utils
  • Issues
  • #2
Closed
Open
Issue created Oct 11, 2022 by SoftExpert@SoftExpert

nvidia-470xx-dkms seems to have missed last chunk of the patch that enables compiling with kernel 6.0.0

Hello,

After loading nvidia-470xx-dkms 470.141.0.3-2 and its dependencies, the nvidia module could not be built with kernel 6.0.0. I checked the patch given in the comment 883889 on the forum and I noticed that the last chunk was not applied:

diff --git a/nvidia/nv.c b/nvidia/nv.c
index ab7d17c..e313e2e 100644
--- a/nvidia/nv.c
+++ b/nvidia/nv.c
@@ -5423,7 +5423,8 @@ NvBool NV_API_CALL nv_s2idle_pm_configured(void)
 {
     NvU8 buf[8];
 
-#if defined(NV_SEQ_READ_ITER_PRESENT)
+// FIXME: Avoid this code path because on Linux 6.0-rc1, init_sync_kiocb references a GPL symbol
+#if defined(NV_SEQ_READ_ITER_PRESENT) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0))
     struct file *file;
     ssize_t num_read;
     struct kiocb kiocb;
-- 

When I manually made the modification in the nv.c file, I was able to successfully compile the nvidia module with the 6.0.0 kernel.

Was this part skipped on purpose or was just an oversight ?

Best regards, SoftExpert

Edited Oct 11, 2022 by SoftExpert
Assignee
Assign to
Time tracking