Created attachment 234445 [details] drm-kmod.patch
For the archives: see https://reviews.freebsd.org/D35276 for the proposed kernel change and https://github.com/freebsd/drm-kmod/pull/169 for this one. Many thanks!
Consider having a blanket for drm-kmod update.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=fbb380683a1bec542030450e6f05bf58097a64cf commit fbb380683a1bec542030450e6f05bf58097a64cf Author: Vladimir Kondratyev <wulf@FreeBSD.org> AuthorDate: 2022-06-05 15:44:51 +0000 Commit: Vladimir Kondratyev <wulf@FreeBSD.org> CommitDate: 2022-06-05 15:44:51 +0000 graphics/drm-{drm-510,drm-54,fbsd13}-kmod: Update after migration of pm_message_t from kernel.h to pm.h. PR: 264449 Approved by: x11 (manu) graphics/drm-510-kmod/Makefile | 4 ++-- graphics/drm-510-kmod/distinfo | 6 +++--- graphics/drm-54-kmod/Makefile | 4 ++-- graphics/drm-54-kmod/distinfo | 6 +++--- graphics/drm-fbsd13-kmod/Makefile | 4 ++-- graphics/drm-fbsd13-kmod/distinfo | 6 +++--- graphics/drm-fbsd13-kmod/pkg-plist | 2 ++ 7 files changed, 17 insertions(+), 15 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=0e981d79b19da8fc550ea0dbe46e8658be988db4 commit 0e981d79b19da8fc550ea0dbe46e8658be988db4 Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2022-05-20 21:50:01 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: 2022-06-10 14:05:12 +0000 LinuxKPI: move pm_message_t from kernel.h to pm.h Move pm_message_t from kernel.h to pm.h and remove a private define in usb.h as well as adjust the implementation in linux_usb.c. This cleans up what I believe to be a historic shortcut and is needed for future wireless driver updates. Leave a note in UPDATING that drm-kmod users need to update to the latest version before re-compiling a new kernel to avoid errors (see PR). Sponsored by: The FreeBSD Foundation MFC after: 3 days PR: 264449 (drm-kmod port update, thanks wulf) Obtained from: bz_git_iwlwifi (Dec 2020) (partly) Reviewed by: hselasky, imp Differential Revision: https://reviews.freebsd.org/D35276 UPDATING | 4 ++++ sys/compat/linuxkpi/common/include/linux/kernel.h | 4 ---- sys/compat/linuxkpi/common/include/linux/pci.h | 1 + sys/compat/linuxkpi/common/include/linux/pm.h | 4 ++++ sys/compat/linuxkpi/common/include/linux/usb.h | 3 ++- sys/compat/linuxkpi/common/src/linux_usb.c | 7 +++++-- 6 files changed, 16 insertions(+), 7 deletions(-)
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=a478f4afd83a11f8f11d9b4e594aed21691f63b0 commit a478f4afd83a11f8f11d9b4e594aed21691f63b0 Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2022-05-20 21:50:01 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: 2022-07-01 13:48:24 +0000 LinuxKPI: move pm_message_t from kernel.h to pm.h Move pm_message_t from kernel.h to pm.h and remove a private define in usb.h as well as adjust the implementation in linux_usb.c. This cleans up what I believe to be a historic shortcut and is needed for future wireless driver updates. Leave a note in UPDATING that drm-kmod users need to update to the latest version before re-compiling a new kernel to avoid errors (see PR). Sponsored by: The FreeBSD Foundation PR: 264449 (drm-kmod port update, thanks wulf) Obtained from: bz_git_iwlwifi (Dec 2020) (partly) Reviewed by: hselasky, imp Differential Revision: https://reviews.freebsd.org/D35276 (cherry picked from commit 0e981d79b19da8fc550ea0dbe46e8658be988db4) UPDATING | 4 ++++ sys/compat/linuxkpi/common/include/linux/kernel.h | 4 ---- sys/compat/linuxkpi/common/include/linux/pci.h | 1 + sys/compat/linuxkpi/common/include/linux/pm.h | 4 ++++ sys/compat/linuxkpi/common/include/linux/usb.h | 3 ++- sys/compat/linuxkpi/common/src/linux_usb.c | 7 +++++-- 6 files changed, 16 insertions(+), 7 deletions(-)