From nobody Sat Apr 22 10:47:57 2023 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q3Smk10tfz46YjD for ; Sat, 22 Apr 2023 10:48:38 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Received: from smtp052.goneo.de (smtp052.goneo.de [85.220.129.60]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q3Smg6fhKz400X for ; Sat, 22 Apr 2023 10:48:35 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=walstatt-de.de header.s=DKIM001 header.b=kMOu051K; spf=none (mx1.freebsd.org: domain of freebsd@walstatt-de.de has no SPF policy when checking 85.220.129.60) smtp.mailfrom=freebsd@walstatt-de.de; dmarc=none Received: from hub2.goneo.de (hub2.goneo.de [85.220.129.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp5.goneo.de (Postfix) with ESMTPS id E015010A1E96 for ; Sat, 22 Apr 2023 12:48:27 +0200 (CEST) Received: from hub2.goneo.de (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by hub2.goneo.de (Postfix) with ESMTPS id 50D2510A3330 for ; Sat, 22 Apr 2023 12:48:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walstatt-de.de; s=DKIM001; t=1682160506; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=O+hWeCyGYAkofmHTaPCTSZpZXmg1jsQwmPde2ogmarI=; b=kMOu051KicsAKD7LuTKZwjv+Ahkln5sgbDlvbwzjCQcRV3jsOw3+RJhNy6tyCLA4n9t/pm Qs2iLxRlQBLIZfMI1dHADSZfaG84+ldIk9t6ltzy5j3I6arAXC0vNJVKdusiC4wbv3CWbU XsPiVnEGShPwqgsalrrKH8yA7HH0e/D5jcwAbWl4DixTf/YKQ9KrcQaB3fkWZYMZbqYufR RrTmOHk/dREHK4PNJSCp/rqmRhwl5vFbxbeY+d2wzBERUed4lIiqb/RUd4FWa5CGqm8olv u7rU4bl01lqY4uY9OoZ4hqnL+bjYqFB7jKv781BqtvQoFbA0Hu0d8E2TkAYsfw== Received: from thor.intern.walstatt.dynvpn.de (dynamic-092-224-246-010.92.224.pool.telefonica.de [92.224.246.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hub2.goneo.de (Postfix) with ESMTPSA id 24B7510A3339 for ; Sat, 22 Apr 2023 12:48:26 +0200 (CEST) Date: Sat, 22 Apr 2023 12:47:57 +0200 From: FreeBSD User To: FreeBSD Ports Subject: i915kms.ko: link_elf_obj: symbol __lkpi_fpu_ctx_level undefined Message-ID: <20230422124824.6ccdb29e@thor.intern.walstatt.dynvpn.de> Organization: walstatt-de.de List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-UID: 0871f8 X-Rspamd-UID: b26788 X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[walstatt-de.de:s=DKIM001]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; DKIM_TRACE(0.00)[walstatt-de.de:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_NA(0.00)[no SPF record]; TO_DN_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:25394, ipnet:85.220.128.0/17, country:DE]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; HAS_ORG_HEADER(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[walstatt-de.de]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4Q3Smg6fhKz400X X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N Running FreeBSD-13-STABLE ( FreeBSD 13.2-STABLE #2 stable/13-n255158-9f9b65a0933a: Sat Apr 22 11:20:16 CEST 2023 AMD64) on a Lenovo T560 (see below for some technical specifications). OS has cusatomised kernel. The system is compiled on-site. Scenario one: In /etc/src.conf: PORTS_MODULES+= graphics/drm-kmod PORTS_MODULES+= graphics/drm-510-kmod compiling drm-kmod kernel module whenever a kernel is compiled. In this scenario running X11 with windowmaker (windowmaker-0.95.9_1 x11-wm/windowmaker) as the window system, running wmaker crashes silently the box! This happens with poudriere compiled ports using almost the same FreeBSD 13 as installed on the notebook, it happens also with official ports taken from a freebsd pkg mirror, designated branch "latest". Scenario two: Using the official drm-kmod and drm-510-kmod from the pkg repository designated "latest". The kernel drops this kernel messages onto the console: [...] login: link_elf_obj: symbol __lkpi_fpu_ctx_level undefined linker_load_file: /boot/modules/i915kms.ko - unsupported file type link_elf_obj: symbol __lkpi_fpu_ctx_level undefined linker_load_file: /boot/modules/i915kms.ko - unsupported file type link_elf_obj: symbol __lkpi_fpu_ctx_level undefined linker_load_file: /boot/modules/i915kms.ko - unsupported file type link_elf_obj: symbol __lkpi_fpu_ctx_level undefined linker_load_file: /boot/modules/i915kms.ko - unsupported file type link_elf_obj: symbol __lkpi_fpu_ctx_level undefined linker_load_file: /boot/modules/i915kms.ko - unsupported file type link_elf_obj: symbol __lkpi_fpu_ctx_level undefined linker_load_file: /boot/modules/i915kms.ko - unsupported file type link_elf_obj: symbol __lkpi_fpu_ctx_level undefined linker_load_file: /boot/modules/i915kms.ko - unsupported file type [...] kldstat reveals these modules loaded: $ kldstat Id Refs Address Size Name 1 64 0xffffffff80200000 1afd148 kernel 2 1 0xffffffff81cff000 8050 acpi_wmi.ko 3 1 0xffffffff838f9000 73b0 linprocfs.ko 4 3 0xffffffff83901000 be88 linux_common.ko 5 1 0xffffffff8390d000 3284 linsysfs.ko 6 1 0xffffffff83911000 2eca0 linux64.ko 7 1 0xffffffff83940000 1818b8 i915kms.ko 8 1 0xffffffff83ac2000 73bd8 drm.ko 9 2 0xffffffff83b36000 30fc linuxkpi_gplv2.ko 10 3 0xffffffff83b3a000 62d8 dmabuf.ko 11 1 0xffffffff83b41000 c748 agp.ko 12 1 0xffffffff83b4e000 22e0 uarduno.ko 13 1 0xffffffff83b51000 18310 if_iwm.ko 14 1 0xffffffff83c00000 207d78 iwm8000Cfw.ko 15 1 0xffffffff83b6a000 6730 cuse.ko I tried several window manager, twm seems to work as well as x11-wm/blackbox, but they also crash silently when starting larger applications like libreoffice or firefox. So, the problem is not bound to windowmaker. Another "fun" part is that I also use FreeBSD 13-STABLE on an oldish HP 800 G1 UltraSlim/Small box, also using i915 iGPU driver, also x11-wm/windowmaker, there is no such thing of crashing or even the funny "symbol __lkpi_fpu_ctx_level undefined: message - but the system has an oldish iGPU and is another architecture at least in some details, so the comparison might be inadequate - but as a hint? dmesg of the Lenovo T560: [...] CPU: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (2807.99-MHz K8-class CPU) Origin="GenuineIntel" Id=0x406e3 Family=0x6 Model=0x4e Stepping=3 Features=0xbfebfbff Features2=0x7ffafbff AMD Features=0x2c100800 AMD Features2=0x121 Structured Extended Features=0x29c6fbf Structured Extended Features3=0xbc002e00 XSAVE Features=0xf IA32_ARCH_CAPS=0xc04 VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID TSC: P-state invariant, performance statistics drmn0: on vgapci0 vgapci0: child drmn0 requested pci_enable_io vgapci0: child drmn0 requested pci_enable_io [drm] Unable to create a private tmpfs mount, hugepage support will be disabled(-19). [drm] Got stolen memory base 0xba800000, size 0x2000000 [...] # dmesg | grep drm [...] drmn0: on vgapci0 vgapci0: child drmn0 requested pci_enable_io vgapci0: child drmn0 requested pci_enable_io [drm] Unable to create a private tmpfs mount, hugepage support will be disabled(-19). [drm] Got stolen memory base 0xba800000, size 0x2000000 lkpi_iic0: on drmn0 lkpi_iic1: on drmn0 lkpi_iic2: on drmn0 drmn0: successfully loaded firmware image 'i915/skl_dmc_ver1_27.bin' drmn0: [drm] Finished loading DMC firmware i915/skl_dmc_ver1_27.bin (v1.27) lkpi_iic3: on drm1 lkpi_iic4: on drm2 lkpi_iic5: on drm4 [drm] Initialized i915 1.6.0 20200917 for drmn0 on minor 0 name=drmn0 flags=0x0 stride=7680 bpp=32 [...] -- O. Hartmann