Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Mar 2018 13:13:39 -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:  <a9e8bb89-ae58-caa7-6d71-87d870d62107@FreeBSD.org>
In-Reply-To: <bb001d52-9791-ccb1-52d7-372eb0622f93@gmail.com>
References:  <d4606850-7774-c9c1-8b7b-5d9ece4d8241@gmail.com> <d5df5894-2c46-e0b7-25d2-33402192641b@FreeBSD.org> <bb001d52-9791-ccb1-52d7-372eb0622f93@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)
--TdllqglI7TTemefIOyuUDhW5DYmzEd0uH
Content-Type: multipart/mixed; boundary="u9g6J0NyJZjwgRSwALjT7rxB79erzz5WQ";
 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: <a9e8bb89-ae58-caa7-6d71-87d870d62107@FreeBSD.org>
Subject: Re: kldxref error when installing drm-next-kmod from ports 11.1
References: <d4606850-7774-c9c1-8b7b-5d9ece4d8241@gmail.com>
 <d5df5894-2c46-e0b7-25d2-33402192641b@FreeBSD.org>
 <bb001d52-9791-ccb1-52d7-372eb0622f93@gmail.com>
In-Reply-To: <bb001d52-9791-ccb1-52d7-372eb0622f93@gmail.com>

--u9g6J0NyJZjwgRSwALjT7rxB79erzz5WQ
Content-Type: multipart/mixed;
 boundary="------------79D3FE8B569DF731CDB01D7A"
Content-Language: en-US

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

On 03/07/2018 23:52, Tom Rushworth wrote:
> Hi All,
>=20
> Sorry for the delay in replying, it's been a very long time since I use=
d
> patch and I'm rusty :).
>=20
> On 07/03/2018 13:25, Jung-uk Kim wrote:
>> On 03/06/2018 22:39, Tom Rushworth wrote:
>>> Hi All,
>>>
>>> I'm running X11 with screen saver and the i915kms graphics driver and=

>>> they seem to work, however I got the following messages when installi=
ng
>>> drm-next-kmod from /usr/ports:
>>>
>>> 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
>>>
>>> and I get them again when I install other kernel module (e.g. virtual=
box
>>> kmods).
>>>
>>> The machine in question is a Compulab Airtop, CPU (from boot in
>>> /bar/log/messages):
>>>
>>> CPU: Intel(R) Xeon(R) CPU E3-1285L v4 @ 3.40GHz (3392.22-MHz K8-class=
 CPU)
>>> Mar  5 07:45:01 maxwell kernel: Origin=3D"GenuineIntel"  Id=3D0x40671=

>>> Family=3D0x6  Model=3D0x47  Stepping=3D1
>>>
>>> and from Xorg.log.0:
>>>
>>>  9.042] (--) intel(0): Integrated Graphics Chipset: Intel(R) Iris Pro=

>>> Graphics P6300
>>>
>>> # 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
>>>
>>> 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 =
out
>>> the latest stable ports and did "make install" in
>>> /usr/ports/graphics/drm-next-kmod.
>>>
>>> As I said, it seems to be running reasonably well, can anyone tell me=
 if
>>> I should worry about the error messages?
>>>
>>> I have the entire "make install" output saved via the "script" comman=
d
>>> if more details are needed.
>>>
>>> Thanks in advance for any info or pointers.
>>
>> It looks the module names are too long.  Please try the attached patch=
=2E
>> Note you need to rebuild both graphics/drm-next-kmod and
>> graphics/gpu-firmware-kmod.
>>
>> Jung-uk Kim
>>
>=20
> I couldn't quite get "make install" to work but I installed by hand and=

> things look good.
>=20
> "make install" gave the following message:
>=20
> =3D=3D=3D>   Registering installation for gpu-firmware-kmod-g20180206_1=

> pkg-static: Unable to access file
> /usr/ports/graphics/gpu-firmware-kmod/work/stage/boot/modules/i915_bxt_=
huc_ver01_07_1398_bin.ko:No
> such file or directory
>=20
> plus two more for the other long names.

Sorry, I forgot to update plist.  Fixed and attached.

> I used the "make install" to build and stage them, then copied in the
> modules by hand and removed the old ones.
>=20
> It all runs, the graphics look good, and I can run:
>=20
>    xldxref -d /boot/modules
>=20
> without any erorrs.
>=20
> Thanks for the patch - in fact, thanks to all involved for all the work=

> on the i915 driver!

Thanks for the feedback!

Jung-uk Kim

--------------79D3FE8B569DF731CDB01D7A
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
Index: graphics/gpu-firmware-kmod/pkg-plist
=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/pkg-plist	(revision 463909)
+++ graphics/gpu-firmware-kmod/pkg-plist	(working copy)
@@ -134,15 +134,15 @@
 /%%KMODDIR%%/amdgpu_vega10_vce_bin.ko
 /%%KMODDIR%%/i915_bxt_dmc_ver1_07_bin.ko
 /%%KMODDIR%%/i915_bxt_guc_ver8_7_bin.ko
-/%%KMODDIR%%/i915_bxt_huc_ver01_07_1398_bin.ko
+/%%KMODDIR%%/i915_bxt_huc_ver01_07_bin.ko
 /%%KMODDIR%%/i915_cnl_dmc_ver1_06_bin.ko
 /%%KMODDIR%%/i915_glk_dmc_ver1_04_bin.ko
 /%%KMODDIR%%/i915_kbl_dmc_ver1_01_bin.ko
 /%%KMODDIR%%/i915_kbl_guc_ver9_14_bin.ko
-/%%KMODDIR%%/i915_kbl_huc_ver02_00_1810_bin.ko
+/%%KMODDIR%%/i915_kbl_huc_ver02_00_bin.ko
 /%%KMODDIR%%/i915_skl_dmc_ver1_26_bin.ko
 /%%KMODDIR%%/i915_skl_guc_ver6_1_bin.ko
-/%%KMODDIR%%/i915_skl_huc_ver01_07_1398_bin.ko
+/%%KMODDIR%%/i915_skl_huc_ver01_07_bin.ko
 /%%KMODDIR%%/radeon_ARUBA_me_bin.ko
 /%%KMODDIR%%/radeon_ARUBA_pfp_bin.ko
 /%%KMODDIR%%/radeon_ARUBA_rlc_bin.ko

--------------79D3FE8B569DF731CDB01D7A--

--u9g6J0NyJZjwgRSwALjT7rxB79erzz5WQ--

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

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

iQEzBAEBCAAdFiEEl1bqgKaRyqfWXu/CfJ+WJvzb8UYFAlqhfVwACgkQfJ+WJvzb
8UbRYwf9Em4TWJpv713VCBRHJMU614PVMIshocVGERP+F/GWBuc2/IRfZLFvQuOh
+nJZYUUiLi6Pfvo8rRTZxrMRY6T/Tiu2ils5qacwWVBUi5TwSTjKle+fI/O/NMnd
cXvTvKLfBfos8fQArK97KJtDed7Ffm0VI89ZArnn9KP0a0r1rt+9oLbPOoSQcL1J
lAC2t71ZQgZlLKSc1UrAHgiyM51h4x1vDBEinDwkwS46RYhDSvdQGse8DRiXDHtc
uJjEQdsvMWAZ4mPhOj28CqRJ0nOLatlHy8jDaxV215FDacCai/bjvt8VbBJLj5gS
+qjZ5u66eEbnMxuljfU8ZDoVVpMimw==
=OOP7
-----END PGP SIGNATURE-----

--TdllqglI7TTemefIOyuUDhW5DYmzEd0uH--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a9e8bb89-ae58-caa7-6d71-87d870d62107>