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

Problem with proxmox kernel 6.8.12-5-pve #227

Open
neroita opened this issue Dec 10, 2024 · 14 comments
Open

Problem with proxmox kernel 6.8.12-5-pve #227

neroita opened this issue Dec 10, 2024 · 14 comments

Comments

@neroita
Copy link

neroita commented Dec 10, 2024

I get that error trying to compile with latest proxmox kernel upgrade:

/var/lib/dkms/i915-sriov-dkms/2024.09.21/build/drivers/gpu/drm/i915/intel_runtime_pm.c:246:21: error: too many arguments to function ~@~Xpm_runtime_get_if_active~@~Y
  246 |                 if (pm_runtime_get_if_active(rpm->kdev, ignore_usecount) <= 0)
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/i915-sriov-dkms/2024.09.21/build/drivers/gpu/drm/i915/intel_runtime_pm.c:29:
./include/linux/pm_runtime.h:75:12: note: declared here   75 | extern int pm_runtime_get_if_active(struct device *dev);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~make[2]: *** [scripts/Makefile.build:243: /var/lib/dkms/i915-sriov-dkms/2024.09.21/build/drivers/gpu/drm/i915/intel_runtime_pm.o] Error 1

Is there a solution ?

@carfanatic93
Copy link

I got the same error

@Ch3ck3rM0n
Copy link

Same to me, i rolled back to 6.8.12-4-pve till its fixed

@brokenbuddha
Copy link

brokenbuddha commented Dec 10, 2024

I have the same problem, i've pinned 6.8.12-4-pve until resolved, looking forward to a resolution.

@emrepolat7
Copy link

The suggestion from ChatGPT worked for me. I hope it works for you as well! If you encounter any issues, feel free to share them here.

The i915-sriov-dkms module might be incompatible with your current kernel version. You can resolve the issue by modifying the relevant function call in the source code.

File: ~/i915-sriov-dkms/drivers/gpu/drm/i915/intel_runtime_pm.c

Line: 246
Replace the following:
if (pm_runtime_get_if_active(rpm->kdev, ignore_usecount) <= 0)
with:
if (pm_runtime_get_if_active(rpm->kdev) <= 0)

This ensures the pm_runtime_get_if_active function uses only the struct device *dev parameter, aligning with the kernel's function definition.

@KyberofChirrut
Copy link

The suggestion from ChatGPT worked for me. I hope it works for you as well! If you encounter any issues, feel free to share them here.

The i915-sriov-dkms module might be incompatible with your current kernel version. You can resolve the issue by modifying the relevant function call in the source code.

File: ~/i915-sriov-dkms/drivers/gpu/drm/i915/intel_runtime_pm.c

Line: 246 Replace the following: if (pm_runtime_get_if_active(rpm->kdev, ignore_usecount) <= 0) with: if (pm_runtime_get_if_active(rpm->kdev) <= 0)

This ensures the pm_runtime_get_if_active function uses only the struct device *dev parameter, aligning with the kernel's function definition.

greatman!
it worked for me too!thank you!

@Ch3ck3rM0n
Copy link

works perfectly to me, too.. so my win11 vm is running again with gpu support of my 12650h

@Reginard
Copy link

Didn't work for my Alder Lake iGPU :(

@FabioEight
Copy link

Please prepare a pull request with these changes.

@neroita
Copy link
Author

neroita commented Dec 12, 2024

The problem is that with that change I won't compile with kernel lower than -5pve and detect extraversion is not that simple.

@rjblake
Copy link

rjblake commented Dec 12, 2024

Didn't work for my Alder Lake iGPU :(

Didn't work initially for me on Alder Lake (i7-12700 and i5-12500). On boot hung loading the kernel. Realised I'd forgotten a couple of steps (duh) - don't forget to do the following after update:

sudo update-initramfs -u -k 6.8.12-5-pve (or sudo update-initramfs -u -k all)
sudo update-grub

After that, all good and loaded fine

@Reginard
Copy link

Reginard commented Dec 12, 2024

Update:

Looks like the symlink still had the unedited line 246. Removed the /var/lib/dkms/i915-sriov-dkms folder and it now works. Thanks for the help.

@FelixLAI85
Copy link

Update:

Looks like the symlink still had the unedited line 246. Removed the /var/lib/dkms/i915-sriov-dkms folder and it now works. Thanks for the help.

Thanks a lot for the tip! It works for me!

@Roomba5
Copy link

Roomba5 commented Dec 18, 2024

The suggestion from ChatGPT worked for me. I hope it works for you as well! If you encounter any issues, feel free to share them here.

The i915-sriov-dkms module might be incompatible with your current kernel version. You can resolve the issue by modifying the relevant function call in the source code.

File: ~/i915-sriov-dkms/drivers/gpu/drm/i915/intel_runtime_pm.c

Line: 246 Replace the following: if (pm_runtime_get_if_active(rpm->kdev, ignore_usecount) <= 0) with: if (pm_runtime_get_if_active(rpm->kdev) <= 0)

This ensures the pm_runtime_get_if_active function uses only the struct device *dev parameter, aligning with the kernel's function definition.

This worked for me as well.

@coffee0818
Copy link

The suggestion from ChatGPT worked for me. I hope it works for you as well! If you encounter any issues, feel free to share them here.

The i915-sriov-dkms module might be incompatible with your current kernel version. You can resolve the issue by modifying the relevant function call in the source code.

File: ~/i915-sriov-dkms/drivers/gpu/drm/i915/intel_runtime_pm.c

Line: 246 Replace the following: if (pm_runtime_get_if_active(rpm->kdev, ignore_usecount) <= 0) with: if (pm_runtime_get_if_active(rpm->kdev) <= 0)

This ensures the pm_runtime_get_if_active function uses only the struct device *dev parameter, aligning with the kernel's function definition.

That works for me. Thank you.
pve6.8.12-5-pve, i5-12500

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

13 participants