From owner-freebsd-arch@FreeBSD.ORG Sat Jan 3 17:12:08 2015 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B52D5A64 for ; Sat, 3 Jan 2015 17:12:08 +0000 (UTC) Received: from mail-wg0-x22c.google.com (mail-wg0-x22c.google.com [IPv6:2a00:1450:400c:c00::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B47B648E9 for ; Sat, 3 Jan 2015 17:12:08 +0000 (UTC) Received: by mail-wg0-f44.google.com with SMTP id b13so25660719wgh.31 for ; Sat, 03 Jan 2015 09:12:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=JCDADHFA4sha4ReO0PQ29CN4P4zrdKs3uRgayggxE/8=; b=AdmY1fvaOIyg0PYsdX6fR2uGinGdlHs8/XbziTaxEVv3Y+jFQV83g5oysVU9dNSSkt VK2+7hxtwezr1YFzjb6ZhcoVqyMD1PzyvBmUrFoJfIxV4egLGVsyy1bpNSlg4QcEwjdh e9IwFhpx2l+RFvvovC8P1X9qUNkLOs80GmF751p0rPz0cOmDKH6AVYb0xQ6Pg0K9utPU JyN5CFpDJlBli/IH6G+ahhPtNh/DxublkDXUSdgzfZz70+YuXFGGbjzKgKq2wpTd5qT4 zH6HSx7877FtTPxSPa995ViEcDSnaUHwnCGiyy0G93dj+MGpOLJFKVVbH2L65wKuWlQa Ft5Q== MIME-Version: 1.0 X-Received: by 10.180.80.163 with SMTP id s3mr8341099wix.59.1420305126746; Sat, 03 Jan 2015 09:12:06 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.41.136 with HTTP; Sat, 3 Jan 2015 09:12:06 -0800 (PST) Date: Sat, 3 Jan 2015 09:12:06 -0800 X-Google-Sender-Auth: sYQD9CasKHd9-AJAJTVO1o4vjR4 Message-ID: Subject: odd behaviour with graphics, vt(4), VGA, and probing the text region leading to NMIs at boot From: Adrian Chadd To: "freebsd-arch@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2015 17:12:08 -0000 Hi, I found -head didn't boot on a T400 I have here with external radeon graphics (ie, not using the intel graphics.) I was getting a memory parity error NMI upon boot, shortly after probing option ROMs. It turns out that it's the ISA device probe/attach path trying to attach the VGA adapter, and doing testing of the memory regions at 0xb800:0000 (mono text) and 0xb000:0000 (colour text) - yes, I'm using the 8086 real mode notation because I'm talking about ISA graphics cards. If I boot -HEAD with vt(4) in graphics mode, then it's using 640x480 graphics and that's mapped at 0xa000:0000 for 64k. There apparently isn't anything at 0xb800:0000 or 0xb000:0000 and touching those regions leads to an NMI. Now, the tricksy bit is that it's not accessing those addresses directly - it's going via the physical map, that's mapped it at 0xc00b8000 and 0xc00b0000 - yes, those are 32 bit (virtual, kernel mode) addresses. I don't know if this is part of the problem. If I boot -HEAD with vt(4) in text mode (hw.vga.textmode=1) then it boots fine. So - has anyone else seen/debugged this? It doesn't happen on everything - just this one T400 I have. But I can't help but wonder what else is going to get finnicky about ISA probing like this.