From owner-freebsd-x11@freebsd.org Mon Oct 1 13:14:10 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 0FAA210BA628 for ; Mon, 1 Oct 2018 13:14:10 +0000 (UTC) (envelope-from yuripv@yuripv.net) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B226875BD5 for ; Mon, 1 Oct 2018 13:14:09 +0000 (UTC) (envelope-from yuripv@yuripv.net) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B3F3B21DCC for ; Mon, 1 Oct 2018 09:14:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 01 Oct 2018 09:14:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yuripv.net; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=j7jD+j4nfj1kALpVM6ZKnrzuYkbDQKnss3PfzVtOpTw=; b=bm9WqWAD pfLhZdXTESewHRebP+Eap4TrWGNUw69DhSZjmJWgcGGKR3dScQx7EkieOv43wcU/ zJvgQ4FzAOYWeGNRghKD0ZgAKA4CazaNfVTb7Eg0QYGalMMk+cn5krgVMW4qVHo/ feXVKV1KezxT3IqAWkh5KEKxHZhX7xYu8w/DTIvhR90juLmjjNQdChsuGmJ+QoKg 0p7xkfLbylXlYPfBAsiqJBLT9tBK5yqqrFq2+WuiN01WanOdOGl5xQ1xy2b6rEWs EAy9RD5Ws9nLM3zFPwXKSX2VWwsRgPD6Ix+feuMkLXcDGwt29WfKspI24J9+jFut CoevN5u/X7iwLA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=j7jD+j4nfj1kALpVM6ZKnrzuYkbDQ Knss3PfzVtOpTw=; b=iGutkFz7OPbXzqAiyL/G7ZR0c2tF3WqpRjigRh57/nSBD wQT1ZTM8VkJt6SAUxB+qmKHIhIM73gR+rZT8tQmAVoWzbmVXVNsYJij0HDr19yh2 j6H7vmOiSmncuyrADesuVhu33xcmKgT5YPUO9AXvTLz2/kPqyW9KZYkD4eKEhnAz Jucwxe+8F1w7TPTkYas/Aq+GegEmBN+vAO8cmf3ApwxNsggonAb2PgzAHbGuy4pr afXOtiDc3nT/cdaA47ttG4+dJb3DG3dLyGte9cfRVrprl7cxco0zMgyumVRBHFwR TAyYCh0kP+ehD6PU5A4hKeMTM6yiVrdFjGHYiV6UQ== X-ME-Sender: X-ME-Proxy: Received: from [192.168.1.2] (unknown [85.175.16.0]) by mail.messagingengine.com (Postfix) with ESMTPA id 3D59FE49E9 for ; Mon, 1 Oct 2018 09:14:02 -0400 (EDT) To: freebsd-x11 From: Yuri Pankov Subject: drm-next-kmod: Fatal trap 12: page fault while in kernel mode Message-ID: <48f8176d-255d-658f-6709-c7ef2b236985@yuripv.net> Date: Mon, 1 Oct 2018 16:13:59 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Oct 2018 13:14:10 -0000 Hi, 12.0-ALPHA8 #0 r339021, drm-next-kmod 4.11.g20180822. Getting the following panic while trying to `kldload amdgpu`: <6>[drm] amdgpu kernel modesetting enabled. Fatal trap 12: page fault while in kernel mode cpuid = 6; apic id = 06 fault virtual address = 0x0 fault code = supervisor read data, page not present instruction pointer = 0x20:0xffffffff80c76b84 stack pointer = 0x28:0xfffffe00cc12f2f0 frame pointer = 0x28:0xfffffe00cc12f2f0 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 = 11331 (kldload) __curthread () at ./machine/pcpu.h:230 230 __asm("movq %%gs:%1,%0" : "=r" (td) (kgdb) bt #0 __curthread () at ./machine/pcpu.h:230 #1 doadump (textdump=0) at /usr/src/sys/kern/kern_shutdown.c:366 #2 0xffffffff8043ca9b in db_dump (dummy=, dummy2=, dummy3=, dummy4=) at /usr/src/sys/ddb/db_command.c:574 #3 0xffffffff8043c869 in db_command (last_cmdp=, cmd_table=, dopager=) at /usr/src/sys/ddb/db_command.c:481 #4 0xffffffff8043c5e4 in db_command_loop () at /usr/src/sys/ddb/db_command.c:534 #5 0xffffffff8043f7ff in db_trap (type=, code=) at /usr/src/sys/ddb/db_main.c:252 #6 0xffffffff80bd3f83 in kdb_trap (type=12, code=0, tf=) at /usr/src/sys/kern/subr_kdb.c:693 #7 0xffffffff8105edf1 in trap_fatal (frame=0xfffffe00cc12f230, eva=0) at /usr/src/sys/amd64/amd64/trap.c:921 #8 0xffffffff8105ef12 in trap_pfault (frame=0xfffffe00cc12f230, usermode=) at /usr/src/sys/amd64/amd64/trap.c:765 #9 0xffffffff8105e53a in trap (frame=0xfffffe00cc12f230) at /usr/src/sys/amd64/amd64/trap.c:441 #10 #11 strcmp (s1=0x0, s2=) at /usr/src/sys/libkern/strcmp.c:46 #12 0xffffffff80bc200e in devclass_find_driver_internal (classname=0xfffff80003ae7c58 "drm", dc=) at /usr/src/sys/kern/subr_bus.c:1394 #13 first_matching_driver (dc=0xfffff80003767880, dev=) at /usr/src/sys/kern/subr_bus.c:2070 #14 device_probe_child (dev=0xfffff80003ae2b00, child=0xfffff80003ae2900) at /usr/src/sys/kern/subr_bus.c:2116 #15 0xffffffff80bc2e68 in device_probe (dev=0xfffff80003ae2900) at /usr/src/sys/kern/subr_bus.c:2869 #16 0xffffffff80bc2f22 in device_probe_and_attach (dev=0xfffff80003ae2900) at /usr/src/sys/kern/subr_bus.c:2893 #17 0xffffffff80bc4b6d in bus_generic_driver_added (dev=0xfffff80003ae2b00, driver=) at /usr/src/sys/kern/subr_bus.c:3981 #18 0xffffffff80bc0eba in BUS_DRIVER_ADDED (_dev=, _driver=) at ./bus_if.h:210 #19 devclass_driver_added (dc=0xfffff80003767880, driver=0xffffffff84ae9da8 ) at /usr/src/sys/kern/subr_bus.c:1101 #20 0xffffffff80bc0dd9 in devclass_add_driver (dc=0xfffff80003767880, driver=0xffffffff84ae9da8 , pass=2147483647, dcp=0xffffffff84ae9dd8 ) at /usr/src/sys/kern/subr_bus.c:1177 #21 0xffffffff84bb537b in acquire_i2c_hw_engine () at /usr/src/sys/compat/linuxkpi/common/src/linux_pci.c:279 #22 0xffffffff84b5ed21 in dispclkdppclkdcfclk_deep_sleep_prefetch_parameters_watermarks_and_performance_calculation () from /boot/modules/amdgpu.ko #23 0x0000000000000246 in ?? () #24 0xffffffff81fcbde8 in w_locklistdata () #25 0x0000000000000000 in ?? () (kgdb) frame 12 #12 0xffffffff80bc200e in devclass_find_driver_internal (classname=0xfffff80003ae7c58 "drm", dc=) at /usr/src/sys/kern/subr_bus.c:1394 1394 if (!strcmp(dl->driver->name, classname)) (kgdb) list 1389 driverlink_t dl; 1390 1391 PDEBUG(("%s in devclass %s", classname, DEVCLANAME(dc))); 1392 1393 TAILQ_FOREACH(dl, &dc->drivers, link) { 1394 if (!strcmp(dl->driver->name, classname)) 1395 return (dl); 1396 } 1397 1398 PDEBUG(("not found")); So it looks like one of the driver classes has uninitialized name?