From nobody Sat Jan 29 21:25:17 2022 X-Original-To: freebsd-current@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 4780C197455F for ; Sat, 29 Jan 2022 21:25:22 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JmS6B0j7Nz4cBW; Sat, 29 Jan 2022 21:25:22 +0000 (UTC) (envelope-from se@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643491522; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=ExGS+VIk6aK6a6NIbtRSs9MnGe3Qe66claapPcYO6PI=; b=WPUfW0LE5KD+f9JjJ1CvMknaR9ES/mKgUZRHy4sIaC/1XCuvHOhVIipKh3wge5ewpNhpu8 y9q5+97FRl8juYXFvg2V0xtOBkfPi2xLV5l2WLocWIX+xcFZzmIEpXksmw5JYr9BwrdeA4 gCs3HceqxYbMalip+y0lOOsCLWuKnYnIlkjjn0pI+HAem98lphHL0WL+iPWL4jNGIm5eH6 2xwru4R7pozTn9/Oyo+XktXg3i+oQqUKnSChk1Dx3Jhorti/C+0Tv/88JTrFFZEeNOnl2s T06XmpAxM3+fhDaXwlJuRs58Zw3R9r5+VsNcEmOyjutgB2WN2JDCLkiocRXO7A== Received: from [IPV6:2003:cd:5f0c:9800:b50a:1ab6:2f63:fb85] (p200300cd5f0c9800b50a1ab62f63fb85.dip0.t-ipconnect.de [IPv6:2003:cd:5f0c:9800:b50a:1ab6:2f63:fb85]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: se/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id D6C1C2DE74; Sat, 29 Jan 2022 21:25:20 +0000 (UTC) (envelope-from se@FreeBSD.org) Message-ID: Date: Sat, 29 Jan 2022 22:25:17 +0100 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Content-Language: en-US From: Stefan Esser To: FreeBSD CURRENT Subject: Kernel changes causing AMDGPU / DRM to fail? i2c related? Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------FVa8KjCSzfw1wj5MC00K3S4G" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643491522; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=ExGS+VIk6aK6a6NIbtRSs9MnGe3Qe66claapPcYO6PI=; b=gHml+fGrmUu0bbx/NYDMHHPylk0OHbsxz71QK/ldwS+3yZoHOlxzs9V/rVmEYU1atRpq/a OrOBcwOMBMutBw0hFIq7JLnwbXnTF9kCDZSmAKVkPG04u3DC5ymF+RDewt5lSeYPrI8XVg EDk3k+SaDlwJSuNXUd6dbaJIePI3U11C2H8QZizWWT5KuoCFEcE3vEqkz9skMyUoACCYES ElqzaGDWhtcJs/Jn2iyn9aWJXV5Dsi81348lvUy7YOr3jfJt4cPuEJLeDlZrmfWK0o0Bb3 KneK/mgNU/c6uYqZN5Wdr2tCxU6I4vNotQk0ldeFFAqNZjwNHwGIULgdnnfF8g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643491522; a=rsa-sha256; cv=none; b=ceWQonbfG0KIfQQaIqPHoyssS6PCHuFRpIuYConE5c5FsLw0jsDzl7A+fy/lUw6M7lz/xg P+vXZWCR0a4hI72RNcqVkY4MUh6eFiIBZTT8BPz099hA3wOXB5F3NDV1I9FCRne3SUmS4Q 71BOVGMGYxvLRVw2NkyG63o0aDeeW1z4pmxKKEJfUNYUTUuZ+NJ0wApyUp4XwK5aGw95ep qKECjJIwVIHlJG8wnvCj1cpqZH3yNdDNDTEkYC2myAZrGjfhhgNQhleexxaPRFCmHBlHjh E30wDFx7I+jUA2Dfb1X35qPX4UZBibRAo1bcmvYm9cNXHINHuDi4rSjs21Jh7w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------FVa8KjCSzfw1wj5MC00K3S4G Content-Type: multipart/mixed; boundary="------------p9TPy0mjPlFxg7x05eUIdmJV"; protected-headers="v1" From: Stefan Esser To: FreeBSD CURRENT Message-ID: Subject: Kernel changes causing AMDGPU / DRM to fail? i2c related? --------------p9TPy0mjPlFxg7x05eUIdmJV Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable After rebooting with freshly built world, kernel and the amdgpu driver my console stopped working. It goes blank and the display goes into a power save mode, as soon as the amdgpu driver is loaded. The GPU (a Radeon R7 250E) is correctly detected as before, but there is an error message "drmn0: [drm] Cannot find any crtc or sizes". I'm asking here and not on the ports list, since the AMDGPU driver has not been updated for half a year. But to be sure that there is no mismatc= h between kernel and user land, I have rebuilt all X11 server and library ports. There have been changes affecting the i2c driver, IIRC, and the error message seems to point at an issue obtaining information from the LCD display. The output of "grep drm /var/run/dmesg.boot" follows: [drm] amdgpu kernel modesetting enabled. drmn0: on vgapci0 vgapci0: child drmn0 requested pci_enable_io vgapci0: child drmn0 requested pci_enable_io [drm] initializing kernel modesetting (VERDE 0x1002:0x683F 0x174B:0xA001 = 0x00). [drm] register mmio base: 0xFCE00000 [drm] register mmio size: 262144 [drm] add ip block number 0 [drm] add ip block number 1 [drm] add ip block number 2 [drm] add ip block number 3 [drm] add ip block number 4 [drm] add ip block number 5 [drm] add ip block number 6 [drm] BIOS signature incorrect 0 0 [drm] vm size is 512 GB, 2 levels, block size is 10-bit, fragment size is= 9-bit drmn0: successfully loaded firmware image 'amdgpu/verde_mc.bin' drmn0: VRAM: 1024M 0x000000F400000000 - 0x000000F43FFFFFFF (1024M used) drmn0: GART: 1024M 0x000000FF00000000 - 0x000000FF3FFFFFFF [drm] Detected VRAM RAM=3D1024M, BAR=3D256M [drm] RAM width 128bits GDDR5 [drm] amdgpu: 1024M of VRAM memory ready [drm] amdgpu: 3072M of GTT memory ready. [drm] GART: num cpu pages 262144, num gpu pages 262144 drmn0: PCIE GART of 1024M enabled (table at 0x000000F400500000). [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). drmn0: successfully loaded firmware image 'amdgpu/verde_pfp.bin' drmn0: successfully loaded firmware image 'amdgpu/verde_me.bin' drmn0: successfully loaded firmware image 'amdgpu/verde_ce.bin' drmn0: successfully loaded firmware image 'amdgpu/verde_rlc.bin' drmn0: successfully loaded firmware image 'amdgpu/verde_smc.bin' [drm] Internal thermal controller without fan control [drm] amdgpu: dpm initialized [drm] Connector DP-1: get mode from tunables: [drm] - kern.vt.fb.modes.DP-1 [drm] - kern.vt.fb.default_mode [drm] Connector HDMI-A-1: get mode from tunables: [drm] - kern.vt.fb.modes.HDMI-A-1 [drm] - kern.vt.fb.default_mode [drm] Connector DVI-I-1: get mode from tunables: [drm] - kern.vt.fb.modes.DVI-I-1 [drm] - kern.vt.fb.default_mode [drm] AMDGPU Display Connectors [drm] Connector 0: [drm] DP-1 [drm] HPD4 [drm] DDC: 0x1950 0x1950 0x1951 0x1951 0x1952 0x1952 0x1953 0x1953 [drm] Encoders: [drm] DFP1: INTERNAL_UNIPHY2 [drm] Connector 1: [drm] HDMI-A-1 [drm] HPD1 [drm] DDC: 0x195c 0x195c 0x195d 0x195d 0x195e 0x195e 0x195f 0x195f [drm] Encoders: [drm] DFP2: INTERNAL_UNIPHY2 [drm] Connector 2: [drm] DVI-I-1 [drm] HPD2 [drm] DDC: 0x1958 0x1958 0x1959 0x1959 0x195a 0x195a 0x195b 0x195b [drm] Encoders: [drm] DFP3: INTERNAL_UNIPHY [drm] CRT1: INTERNAL_KLDSCP_DAC1 drmn0: [drm] Cannot find any crtc or sizes drmn0: [drm] Cannot find any crtc or sizes drmn0: [drm] Cannot find any crtc or sizes [drm] Initialized amdgpu 3.37.0 20150101 for drmn0 on minor 0 A successful driver attach from a reboot a few days ago had ended in: [drm] CRT1: INTERNAL_KLDSCP_DAC1 [drm] fb mappable at 0xE0503000 [drm] vram apper at 0xE0000000 [drm] size 33177600 [drm] fb depth is 24 [drm] pitch is 15360 [drm] Initialized amdgpu 3.36.0 20150101 for drmn0 on minor 0 Regards, STefan --------------p9TPy0mjPlFxg7x05eUIdmJV-- --------------FVa8KjCSzfw1wj5MC00K3S4G Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEo3HqZZwL7MgrcVMTR+u171r99UQFAmH1sL0FAwAAAAAACgkQR+u171r99UQC OQgAzAUuy2P+Uyph5gkj9GAQU9DR2t5VSsLTnAFISOcmRmX4+9g4Z4WmaSS7l8oJvHXTHe8PlpOt oN0mqec5jsWHoZLzbNm+Od3hHVhWKDSFmo20FXxbWrpUxV1Mo9BtHRF3LR+01Y6egvv585W5iEUO 4nqXBreHluZPvK5L2EEbrclRvBl4KzQZGg+YgABqPhataSy0cqAaNfUNGsLinIhUunSvbtb6VWv3 EKOOXkvuBUSN4Q/4jZlQaoIdYdbkZsp31b7+5M01swA9kY+sDMCUJV/xB0nGfAfssNPSCUsWR/D8 H7kSBxKCJr1Azsf3Y42EihLrfbZLKbVeqpH10BuF6Q== =DD/u -----END PGP SIGNATURE----- --------------FVa8KjCSzfw1wj5MC00K3S4G--