From owner-freebsd-bugs@freebsd.org Fri Nov 4 02:50:45 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D7AF5C2E330 for ; Fri, 4 Nov 2016 02:50:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 AEB061FDC for ; Fri, 4 Nov 2016 02:50:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uA42oilR073049 for ; Fri, 4 Nov 2016 02:50:45 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 187015] [panic] make_dev_credv: bad si_name (error=17, si_name=agpgart) Date: Fri, 04 Nov 2016 02:50:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.0-STABLE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: geoff@minaret.biz X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2016 02:50:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D187015 Geoff Mottram changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |geoff@minaret.biz --- Comment #13 from Geoff Mottram --- Created attachment 176606 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D176606&action= =3Dedit Patch for FreeBSD 11 to remove kernel panic and number agpgart devices I was affected when I installed FreeBSD 11 on a 2004 Toshiba laptop with an Intel 855 graphics chip and an external VGA port. There was a kernel panic = as the PCI bus was checked for devices. Each graphics port has a separate set = of memory addresses and shows up separately during the PCI probe. The patch uses make_dev_s with MAKEDEV_CHECKNAME to prevent a kernel panic = if something goes wrong but includes logging and state cleanup on error. The patch creates /dev/agpgart for the first AGP device found on the bus and numbers each unit after that (/dev/agpgart2, ...). Without the patch, the work-around is to stop the boot loader and enter the following commands: set hint.agp.1.disabled=3D1 boot Once booted, the following line is added to /boot/loader.conf: hint.agp.1.disabled=3D1 These fixes have been tested with X11 and a dual monitor setup. --=20 You are receiving this mail because: You are the assignee for the bug.=