From owner-freebsd-current@freebsd.org Fri Nov 27 18:10:36 2020 Return-Path: Delivered-To: freebsd-current@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 161804ADBB3 for ; Fri, 27 Nov 2020 18:10:36 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (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 4CjN2z3tPyz3ptK for ; Fri, 27 Nov 2020 18:10:35 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.16.1/8.16.1) with ESMTPS id 0ARIA1JS095365 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 27 Nov 2020 20:10:04 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 0ARIA1JS095365 Received: (from kostik@localhost) by tom.home (8.16.1/8.16.1/Submit) id 0ARIA1B8095363; Fri, 27 Nov 2020 20:10:01 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 27 Nov 2020 20:10:01 +0200 From: Konstantin Belousov To: Rebecca Cran Cc: freebsd-current@freebsd.org Subject: Re: panic shortly after boot when amdgpu.ko is loaded (fpu?) Message-ID: References: <2a0f9031-a96d-2989-4d6c-a7691c451b74@bsdio.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2a0f9031-a96d-2989-4d6c-a7691c451b74@bsdio.com> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on tom.home X-Rspamd-Queue-Id: 4CjN2z3tPyz3ptK X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Nov 2020 18:10:36 -0000 On Thu, Nov 26, 2020 at 10:09:24PM -0700, Rebecca Cran wrote: > I have a Threadripper 2990WX system that I recently installed an AMD Radeon > Pro W5700 into. It runs fine unless I load the amdgpu driver, at which point > it panics several seconds after boot: I have enough time to login and run a > few commands, but even if I just leave it it'll panic.  I'm running: > > > FreeBSD photon.int.bluestop.org 13.0-CURRENT FreeBSD 13.0-CURRENT #0 > 6db1a3e8098-c273171(master): Thu Nov 26 01:26:17 MST 2020 bcran@photon.int.bluestop.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG > amd64 > > > I rebuilt the drm-current-kmod-5.4.62.g20201109_1 port today. > > > The panic is: > > Fatal trap 9: general protection fault while in kernel mode > cpuid = 24; apic id = 18 > instruction pointer = 0x20:0xffffffff81002dcf > stack pointer = 0x0:0xfffffe016e6ffaa0 > frame pointer = 0x0:0xfffffe016e6ffaa0 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 4372 (hald) > trap number = 9 > panic: general protection fault > cpuid = 24 > time = 1606450595 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe016e6ff7b0 > vpanic() at vpanic+0x181/frame 0xfffffe016e6ff800 > panic() at panic+0x43/frame 0xfffffe016e6ff860 > trap_fatal() at trap_fatal+0x387/frame 0xfffffe016e6ff8c0 > trap() at trap+0x8e/frame 0xfffffe016e6ff9d0 > calltrap() at calltrap+0x8/frame 0xfffffe016e6ff9d0 > --- trap 0x9, rip = 0xffffffff81002dcf, rsp = 0xfffffe016e6ffaa0, rbp = 0xfffffe016e6ffaa0 --- > fpurestore_xrstor3264() at fpurestore_xrstor3264+0x2f/frame 0xfffffe016e6ffaa0 > restore_fpu_curthread() at restore_fpu_curthread+0x85/frame 0xfffffe016e6ffac0 > fpudna() at fpudna+0x3a/frame 0xfffffe016e6ffae0 > trap() at trap+0x246/frame 0xfffffe016e6ffbf0 > calltrap() at calltrap+0x8/frame 0xfffffe016e6ffbf0 > --- trap 0x16, rip = 0x80067137f, rsp = 0x7fffffffd8b0, rbp = 0x7fffffffd8f0 --- > Uptime: 1m4s > Dumping 4193 out of 130894 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91% > > > I've uploaded details (core.txt, dmesg.txt etc.) to > https://bsdio.com/freebsd/crashes/2020-11-26-amdgpu/ and the vmcore file is > available on request. And what is the instruction at 0xffffffff81002dcf ?