Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2018 16:25:10 -0500
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        tbr@acm.org, freebsd-x11@freebsd.org
Subject:   Re: kldxref error when installing drm-next-kmod from ports 11.1
Message-ID:  <d5df5894-2c46-e0b7-25d2-33402192641b@FreeBSD.org>
In-Reply-To: <d4606850-7774-c9c1-8b7b-5d9ece4d8241@gmail.com>
References:  <d4606850-7774-c9c1-8b7b-5d9ece4d8241@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--TkEvPHZkJWbqzA89CPfVwgQNlHLoU7iys
Content-Type: multipart/mixed; boundary="cy1dT275IwDBioZJr7dqUwymWOwGeXbFM";
 protected-headers="v1"
From: Jung-uk Kim <jkim@FreeBSD.org>
To: tbr@acm.org, freebsd-x11@freebsd.org
Cc: Gleb Popov <6yearold@gmail.com>, Pete Wright <pete@nomadlogic.org>
Message-ID: <d5df5894-2c46-e0b7-25d2-33402192641b@FreeBSD.org>
Subject: Re: kldxref error when installing drm-next-kmod from ports 11.1
References: <d4606850-7774-c9c1-8b7b-5d9ece4d8241@gmail.com>
In-Reply-To: <d4606850-7774-c9c1-8b7b-5d9ece4d8241@gmail.com>

--cy1dT275IwDBioZJr7dqUwymWOwGeXbFM
Content-Type: multipart/mixed;
 boundary="------------E5E1D690645E80AA103C08E4"
Content-Language: en-US

This is a multi-part message in MIME format.
--------------E5E1D690645E80AA103C08E4
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 03/06/2018 22:39, Tom Rushworth wrote:
> Hi All,
>=20
> I'm running X11 with screen saver and the i915kms graphics driver and
> they seem to work, however I got the following messages when installing=

> drm-next-kmod from /usr/ports:
>=20
> Installing drm-next-kmod-4.11.g20180224...
> kldxref: error while reading
> //boot/modules/i915_bxt_huc_ver01_07_1398_bin.ko: Bad address
> kldxref: error while reading
> //boot/modules/i915_kbl_huc_ver02_00_1810_bin.ko: Bad address
> kldxref: error while reading
> //boot/modules/i915_skl_huc_ver01_07_1398_bin.ko: Bad address
>=20
> and I get them again when I install other kernel module (e.g. virtualbo=
x
> kmods).
>=20
> The machine in question is a Compulab Airtop, CPU (from boot in
> /bar/log/messages):
>=20
> CPU: Intel(R) Xeon(R) CPU E3-1285L v4 @ 3.40GHz (3392.22-MHz K8-class C=
PU)
> Mar  5 07:45:01 maxwell kernel: Origin=3D"GenuineIntel"  Id=3D0x40671
> Family=3D0x6  Model=3D0x47  Stepping=3D1
>=20
> and from Xorg.log.0:
>=20
>  9.042] (--) intel(0): Integrated Graphics Chipset: Intel(R) Iris Pro
> Graphics P6300
>=20
> # uname -a
> FreeBSD maxwell.mannynkapy.net 11.1-STABLE FreeBSD 11.1-STABLE #0
> r330126: Thu Mar  1 11:27:24 PST 2018
> tbr@maxwell:/usr/obj/usr/src/sys/MAXWELL  amd64
>=20
> The machine has 32G of memory.  I checked out the latest 11.1 STABLE
> kernel source, built a custom kernel from GENERIC by dropping the
> network devices not present and the old ATA disk stuff, then checked ou=
t
> the latest stable ports and did "make install" in
> /usr/ports/graphics/drm-next-kmod.
>=20
> As I said, it seems to be running reasonably well, can anyone tell me i=
f
> I should worry about the error messages?
>=20
> I have the entire "make install" output saved via the "script" command
> if more details are needed.
>=20
> Thanks in advance for any info or pointers.

It looks the module names are too long.  Please try the attached patch.
Note you need to rebuild both graphics/drm-next-kmod and
graphics/gpu-firmware-kmod.

Jung-uk Kim

--------------E5E1D690645E80AA103C08E4
Content-Type: text/x-patch;
 name="drm-next.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="drm-next.diff"

Index: graphics/drm-next-kmod/files/patch-i915_intel__huc.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- graphics/drm-next-kmod/files/patch-i915_intel__huc.c	(nonexistent)
+++ graphics/drm-next-kmod/files/patch-i915_intel__huc.c	(working copy)
@@ -0,0 +1,18 @@
+--- i915/intel_huc.c.orig	2018-02-23 15:30:16 UTC
++++ i915/intel_huc.c
+@@ -52,9 +52,15 @@
+ #define KBL_HUC_FW_MINOR 00
+ #define KBL_BLD_NUM 1810
+=20
++#ifdef __linux__
+ #define HUC_FW_PATH(platform, major, minor, bld_num) \
+ 	"i915/" __stringify(platform) "_huc_ver" __stringify(major) "_" \
+ 	__stringify(minor) "_" __stringify(bld_num) ".bin"
++#else
++#define HUC_FW_PATH(platform, major, minor, bld_num) \
++	"i915/" __stringify(platform) "_huc_ver" __stringify(major) "_" \
++	__stringify(minor) ".bin"
++#endif
+=20
+ #define I915_SKL_HUC_UCODE HUC_FW_PATH(skl, SKL_HUC_FW_MAJOR, \
+ 	SKL_HUC_FW_MINOR, SKL_BLD_NUM)

Property changes on: graphics/drm-next-kmod/files/patch-i915_intel__huc.c=

___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Index: graphics/gpu-firmware-kmod/files/patch-i915kmsfw_bxthuc_Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- graphics/gpu-firmware-kmod/files/patch-i915kmsfw_bxthuc_Makefile	(non=
existent)
+++ graphics/gpu-firmware-kmod/files/patch-i915kmsfw_bxthuc_Makefile	(wor=
king copy)
@@ -0,0 +1,11 @@
+--- i915kmsfw/bxthuc/Makefile.orig	2018-02-06 17:27:45 UTC
++++ i915kmsfw/bxthuc/Makefile
+@@ -1,6 +1,6 @@
+ # $FreeBSD$
+=20
+-KMOD	=3D i915_bxt_huc_ver01_07_1398_bin
+-NAME	=3D i915/bxt_huc_ver01_07_1398.bin
++KMOD	=3D i915_bxt_huc_ver01_07_bin
++NAME	=3D i915/bxt_huc_ver01_07.bin
+ IMG	=3D bxt_huc_ver01_07_1398
+ .include <bsd.kmod.mk>

Property changes on: graphics/gpu-firmware-kmod/files/patch-i915kmsfw_bxt=
huc_Makefile
___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Index: graphics/gpu-firmware-kmod/files/patch-i915kmsfw_kblhuc_Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- graphics/gpu-firmware-kmod/files/patch-i915kmsfw_kblhuc_Makefile	(non=
existent)
+++ graphics/gpu-firmware-kmod/files/patch-i915kmsfw_kblhuc_Makefile	(wor=
king copy)
@@ -0,0 +1,11 @@
+--- i915kmsfw/kblhuc/Makefile.orig	2018-02-06 17:27:45 UTC
++++ i915kmsfw/kblhuc/Makefile
+@@ -1,6 +1,6 @@
+ # $FreeBSD$
+=20
+-KMOD	=3D i915_kbl_huc_ver02_00_1810_bin
+-NAME	=3D i915/kbl_huc_ver02_00_1810.bin
++KMOD	=3D i915_kbl_huc_ver02_00_bin
++NAME	=3D i915/kbl_huc_ver02_00.bin
+ IMG	=3D kbl_huc_ver02_00_1810
+ .include <bsd.kmod.mk>

Property changes on: graphics/gpu-firmware-kmod/files/patch-i915kmsfw_kbl=
huc_Makefile
___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Index: graphics/gpu-firmware-kmod/files/patch-i915kmsfw_sklhuc_Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- graphics/gpu-firmware-kmod/files/patch-i915kmsfw_sklhuc_Makefile	(non=
existent)
+++ graphics/gpu-firmware-kmod/files/patch-i915kmsfw_sklhuc_Makefile	(wor=
king copy)
@@ -0,0 +1,11 @@
+--- i915kmsfw/sklhuc/Makefile.orig	2018-02-06 17:27:45 UTC
++++ i915kmsfw/sklhuc/Makefile
+@@ -1,6 +1,6 @@
+ # $FreeBSD$
+=20
+-KMOD	=3D i915_skl_huc_ver01_07_1398_bin
+-NAME	=3D i915/skl_huc_ver01_07_1398.bin
++KMOD	=3D i915_skl_huc_ver01_07_bin
++NAME	=3D i915/skl_huc_ver01_07.bin
+ IMG	=3D skl_huc_ver01_07_1398
+ .include <bsd.kmod.mk>

Property changes on: graphics/gpu-firmware-kmod/files/patch-i915kmsfw_skl=
huc_Makefile
___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property

--------------E5E1D690645E80AA103C08E4--

--cy1dT275IwDBioZJr7dqUwymWOwGeXbFM--

--TkEvPHZkJWbqzA89CPfVwgQNlHLoU7iys
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEl1bqgKaRyqfWXu/CfJ+WJvzb8UYFAlqgWLcACgkQfJ+WJvzb
8UaWoggAkozjNLMMrh4wkJ36i0nXg7ZwpKHR8KJ4Qior74frJOOg5JocfuJqjfFt
vy6hGme4qSDAcflz5SYAT19wVgZtrVrxtQoFEDHhO3ML4qBscpD2j3dXb7PK6QGC
3Mmo5h7Ob/NxbYqhI5ZpOGtYohVzJpXKUWxCkzHCszxzq2IUi/+4+PT4aMFFLpp+
XYq+TnFyprSPUxpzHg4ZPUGlyOAEAHVztGuXU+Zp2VryQFvKcMZT1LUPuBFEX8Bx
fiFB1W6uBJNbW4xstQgpcqzM+U/JIkvnU3n5wirjk/DB3VGtKScWMq6ROQYWbjkd
Li+J6ZaWCEDe6uLtJ1bUpwthUNUfew==
=sBlO
-----END PGP SIGNATURE-----

--TkEvPHZkJWbqzA89CPfVwgQNlHLoU7iys--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d5df5894-2c46-e0b7-25d2-33402192641b>