pm_runtime_resume_and_get is used by new versions of amdgpu, and began use between Linux kernel version 6.12, and 6.14.
This is the specific patch where it is introduced, and used; https://racha.ca/patches/0342-drm-amd-pm-use-pm_runtime_get_if_active-for-debugfs-.patch
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
If you want these reviewed can you in the future please add linuxkpi to reviewers and not to subscribers?
| sys/compat/linuxkpi/common/include/linux/pm_runtime.h | ||
|---|---|---|
| 57 | style(9): Please put the return expression in parenthesis: return (0); | |
| sys/compat/linuxkpi/common/include/linux/pm_runtime.h | ||
|---|---|---|
| 57 | I assume @siri_racha.ca just followed the existing style in this file which came from OpenBSD originally. I'd be inclined to just leave it without return parens. | |
I would love to re-do this file entirely as all the stuff gets defined into the void and we have no clue we might ever call it (say if getting in a new version or driver) and at some time we really should start thinking of more PM support (at least me in wifi but I assume gpu is equally munching watts) and at least having pr_debug("%s: TODO\n", func); calls in there will allow us to make these visible.
| sys/compat/linuxkpi/common/include/linux/pm_runtime.h | ||
|---|---|---|
| 57 | You are right, I understand. I noticed other functions didn’t use parenthesis, but I didn’t see the file came from OpenBSD. | |
I agree with @bz about adding printed TODO when called. I’m still accepting this patch because it should be part of another review probably.