From owner-freebsd-x11@freebsd.org Wed Mar 7 21:25:18 2018 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A5F5DF321EF for ; Wed, 7 Mar 2018 21:25:18 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) by mx1.freebsd.org (Postfix) with ESMTP id 2E2636FC73; Wed, 7 Mar 2018 21:25:18 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Subject: Re: kldxref error when installing drm-next-kmod from ports 11.1 To: tbr@acm.org, freebsd-x11@freebsd.org References: From: Jung-uk Kim Message-ID: Date: Wed, 7 Mar 2018 16:25:10 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="TkEvPHZkJWbqzA89CPfVwgQNlHLoU7iys" X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Mar 2018 21:25:18 -0000 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 To: tbr@acm.org, freebsd-x11@freebsd.org Cc: Gleb Popov <6yearold@gmail.com>, Pete Wright Message-ID: Subject: Re: kldxref error when installing drm-next-kmod from ports 11.1 References: In-Reply-To: --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 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 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 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--