Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Mar 2023 18:37:54 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ffbe0e2b363c - main - graphics/drm-510-kmod: fix runtime on powerpc64*
Message-ID:  <202303161837.32GIbsOt003520@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ffbe0e2b363cf65d1d86cbf7d9ebc966bfdba1c6

commit ffbe0e2b363cf65d1d86cbf7d9ebc966bfdba1c6
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-03-16 18:12:45 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-03-16 18:12:45 +0000

    graphics/drm-510-kmod: fix runtime on powerpc64*
    
    Add a patch from https://github.com/freebsd/drm-kmod/issues/214 to failure to load:
    Mar 16 10:29:34 talos kernel: link_elf: symbol acpi_iicbus_driver undefined
    Mar 16 10:29:35 talos kernel: KLD radeonkms.ko: depends on drmn - not available or version mismatch
    
    evadot mentioned that it had been fixed, but the issue still happens on FreeBSD
    13.2-RC2 with drm-510-kmod-5.10.163_2.
---
 graphics/drm-510-kmod/Makefile                         |  2 +-
 .../files/patch-drivers_gpu_drm_drm__os__freebsd.c     | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/graphics/drm-510-kmod/Makefile b/graphics/drm-510-kmod/Makefile
index c772517a383e..02fa8713eed5 100644
--- a/graphics/drm-510-kmod/Makefile
+++ b/graphics/drm-510-kmod/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	drm-510-kmod
 PORTVERSION=	5.10.163
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	graphics kld
 
 MAINTAINER=	x11@FreeBSD.org
diff --git a/graphics/drm-510-kmod/files/patch-drivers_gpu_drm_drm__os__freebsd.c b/graphics/drm-510-kmod/files/patch-drivers_gpu_drm_drm__os__freebsd.c
new file mode 100644
index 000000000000..389f8ebfeed0
--- /dev/null
+++ b/graphics/drm-510-kmod/files/patch-drivers_gpu_drm_drm__os__freebsd.c
@@ -0,0 +1,18 @@
+--- drivers/gpu/drm/drm_os_freebsd.c.bak	2022-11-05 15:37:52.826643000 -0400
++++ drivers/gpu/drm/drm_os_freebsd.c	2022-11-05 15:38:25.740620000 -0400
+@@ -202,11 +202,15 @@
+ #if __FreeBSD_version >= 1301505
+ #if __FreeBSD_version >= 1400058
+ DRIVER_MODULE(iicbus, drmn, iicbus_driver, NULL, NULL);
++#if defined(__amd64__) || defined(__aarch64__) || defined(__i386__)
+ DRIVER_MODULE(acpi_iicbus, drmn, acpi_iicbus_driver, NULL, NULL);
++#endif
+ #else
+ DRIVER_MODULE(iicbus, drmn, iicbus_driver, iicbus_devclass, NULL, NULL);
++#if defined(__amd64__) || defined(__aarch64__) || defined(__i386__)
+ DRIVER_MODULE(acpi_iicbus, drmn, acpi_iicbus_driver, iicbus_devclass, NULL,
+     NULL);
++#endif
+ #endif
+ MODULE_DEPEND(drmn, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
+ MODULE_DEPEND(drmn, iic, 1, 1, 1);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303161837.32GIbsOt003520>