From owner-freebsd-ports@freebsd.org Mon Apr 6 08:32:20 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AC68E2A8652 for ; Mon, 6 Apr 2020 08:32:20 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48wkLB5b80z3DXf for ; Mon, 6 Apr 2020 08:32:18 +0000 (UTC) (envelope-from matthias.andree@gmx.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1586161937; bh=MSE8Kez1VN+9XQl+MVdMmO9nxwCdz+fCQVnw//1iIb8=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=WlnLX3v0lp4xGMgzCYyA9tuc9VbiH7OBK6drdDSqBUWZpVKjNnJJMO6uFr86Yjzrk DBbXPXeRqgP9jllU1Rna+kLjYKCmlXBX8NAwm7OqOl0g+mNN/gXNFnirHd18FRU/FW V51C1+bmnvJ3uyIZGQRSw0CqPBpUPbspaUOWoIdo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from mandree.no-ip.org ([217.224.125.209]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MOREi-1jffTy4Aow-00PwR5 for ; Mon, 06 Apr 2020 10:32:17 +0200 Received: from ryzen.an3e.de (localhost [IPv6:::1]) by ryzen.an3e.de (Postfix) with ESMTP id 76F6412054E for ; Mon, 6 Apr 2020 10:32:16 +0200 (CEST) Subject: Re: amdgpu panics To: freebsd-ports@freebsd.org References: <6b0092f3-8d90-f1bc-b2ae-cf2fa2f029e0@gjunka.com> <47774b7a-0a6d-8806-6dee-4f0036651ace@gjunka.com> <20200312163447.GB42880@phouka1.phouka.net> <8d8ae2c8-1ecd-5c8c-2437-4e47cf48bd60@gmx.de> <96c03c59-b28e-3af1-e98b-e95517c20010@gjunka.com> <83bfb6f7-0a84-2905-7849-e4e93d9f6fb1@selasky.org> <9426b9bb-4fe6-37ba-ecb4-13a1ade47f92@gjunka.com> <9bc766aa-b17f-e8bc-bea2-11431972cf5d@selasky.org> From: Matthias Andree Message-ID: <2ddfe444-7a20-9835-0875-6f93aa0f6ab3@gmx.de> Date: Mon, 6 Apr 2020 10:32:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Provags-ID: V03:K1:jZ7B84bOTzBel8d4LteHzvIgUkRvRZ3XDVqDZLYojZsVa9yMlpP TGuLE8vH4TsgWTB6xjdP4OAOzHmJNiHhad4kZHLCajYdwp/0R0k1ujIy2Biy7WMsKXZ4Zap utYV4mxFqIdj9lyKdzb7h6h7BOemCd9DXCZgLX8PdsqJYx+6OzM3nX8oWCvv4NCwWokwTyD VP8+X6n2d4fFZANUQOdSA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Uz9kSKw62Qw=:Q0M8qF9eomNMZOeNo4ZgUu nCq41b9dXErUTACgsH78fFTH8z2Vof6I4gqzQ6rdb9EgSXEJMRTF9lTWWxiaPZT8qNd48C+o5 UYY402r+phsJovAQcKAxXNCxObHHtlQd220K8/XJ9UKycxuW9CucyDGOGIf1+gIwAwhqxcp61 zOIWcn8jAP/sLPsffNM20LzgfrHbIfHRhS388/hugaAGAlBWTVt3JVCCfSxkLZ/aGbUSXdI6P NkhQCZ9cPeTv5bTKthEKs8GJ92OVfvmZVf1BrK0FCwBmmXyqgNVlLLt2DzFzlKbwhKEfAxMVW B67T5kc5zI7Qcoj0Cn6OMDshrq32DvYu8Ad/DZ41fgKBH+D+wyfkAxEKK7g02OIikMKYjq5Zu VDvi1p9hYTK65MFgw+O1/N5JbEW712Grr3T9OSArEtt3lizWMHwPzF9Ht6ZQsTFprtwtxYfzG 6Tl04sUUu5eq9UVJhTwMC/V60Hgf6OZiC/s9lDViSjIrdlGqFqyb0GmeWMgwXiCe+pDecTvbo wID9+uSo2BC/d2eCGCaqtiOreXcuI9BGw947Hl/XRY8W62nA8ld8gBhLpc/PK1M+RGF5Dv9Iv z1KvBRU/8ucO1v6almcWtjsOKBoeQ1EbrbMv7foR0fjFI+e2HbdXvXRDr0KMCwanMZa/xhv+H RHLQ/ikcNvYA51DIs3cUkgNWwbOAtkq4goVWOTrNSc/04KV51IQ82wFsQ4X+rj8HRSjHJOL33 vEvavf+aFRLlClCVNIWna+pky9XMMfDKJe0MRfsB8xZ63CEahKVDYl176Xa2tKiQTtcT0Z0nP AYZn9ZJNRpH9l6wY6dmq5nx7swreFzS2v3DhGTC31n8zPLTmkVVs2GUVCCCkS+xknYKl5faaq scSDuVRp1fpzN2dMM1qp+cwCKeliqOR8HAoAYIhJNUnVnXTPD5mm5dvroXbRshCe4z1B+WKlM lrp26xqlOWXeMirw6zQm6E1fZDpIShBt6FyR4nY8X20kGVWS9eDvC0ClnnXlP+6CMlv5Y/MKk FDZmQOvbJjgsIsOAN5GlS3NXTV75eZXWujvyE0Q7WFdlGSJq0wGZpzBICTbwVGf2sOFxVHYcl iwmuxDnHw2AM4z+dNPIgYDumed1nHZUMlbHAYEJBHuKEhf23EGvtUJE5Qn18L8L94ackA1YZE YUBTzIpuPfvyFIbtlz0oTreyZRaAqA0fv3PvKF4xiNwwjEbgPRaoGCxCkI76oOfOHXzaKMjzh JrGpavSNz90HNW4sj X-Rspamd-Queue-Id: 48wkLB5b80z3DXf X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=WlnLX3v0; dmarc=none; spf=pass (mx1.freebsd.org: domain of matthias.andree@gmx.de designates 212.227.15.15 as permitted sender) smtp.mailfrom=matthias.andree@gmx.de X-Spamd-Result: default: False [-2.60 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.227.15.0/25:c]; FREEMAIL_FROM(0.00)[gmx.de]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmx.net:+]; RECEIVED_SPAMHAUS_PBL(0.00)[209.125.224.217.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; RCVD_IN_DNSWL_LOW(-0.10)[15.15.227.212.list.dnswl.org : 127.0.3.1]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmx.de]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmx.net:s=badeba3b8450]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; DMARC_NA(0.00)[gmx.de]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (-7.06), ipnet: 212.227.0.0/16(-1.16), asn: 8560(2.12), country: DE(-0.02)]; RCVD_TLS_LAST(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[15.15.227.212.rep.mailspike.net : 127.0.0.17] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Apr 2020 08:32:20 -0000 Am 06.04.20 um 09:37 schrieb Grzegorz Junka: > > On 06/04/2020 08:21, Hans Petter Selasky wrote: >>> >>> They don't match, and they can't. >>> >>> Files in /boot/modules have been installed by drm-fbsd12.0-kmod and >>> files in /boot/kernel have been installed by >>> FreeBSD-kernel-venus-12.1_3 (venus is the name I gave the kernel >>> configuration). >> >> Is drm-fbsd12.0-kmod built using the same sources as >> FreeBSD-kernel-venus-12.1_3. Can you try this: >> >> 1) Build and install a fresh 12-stable kernel, not release kernel, >> from /usr/src >> 2) Build and install /usr/ports/graphics/gpu-firmware-kmod >> 3) Build and install /usr/ports/graphics/drm-fbsd12.0-kmod >> >>> >>> I built the ports and the kernel on the same system but at different >>> times. First I updated all sources (/usr/src and /usr/ports) then I >>> built packages. When that didn't work, few days later I built the >>> kernel and world. No updates to the sources have been made between >>> those two. >>> >>> kldload /boot/modules/drm.ko /boot/modules/amdgpu.ko=C2=A0 <- doesn't >>> work, system halts after loading one of the vega10 modules. >> >> --HPS > > > I am not sure I understand your question. drm-fbsd12.0-kmod is a port > so it's built from /usr/local/poudriere/ports whereas > FreeBSD-kernel-venus-12.1_3 is one of base packages build from /usr/src. AGAIN: Do *NOT* build kernel modules in poudriere unless you can guarantee it's using the *EXACT SAME* kernel configuration and sources, you must solve this discrepancy: > > If you are asking if /usr/src is the same when building ports and > kernel then again, no, because when building ports the jail's /usr/src > is used, whereas when building the kernel the host's /usr/src is used. > > But I verified that both are the same, i.e., > > diff -r /usr/src /usr/local/poudriere/jails/12rel1/usr/src > > doesn't return any differences, apart from the additional kernel > configuration. They are both 12.1-RELEASE-p3 (checked the version > against sources in Github and SVN). ...and "additional kernel configuration" is the thing that MIGHT break the module in build if the kernel config has any impact on sources that the module uses. I still haven't understood why you cannot boot without amdgpu, and then built (a) kernel, (b) firmware, (c) amdgpu and DRM drivers all directly from /usr/src and updated /usr/ports *ON THE MACHINE WITH THE AMD VGA CARD*. There are way too many variables in the mix.