Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762480AbZAHUGV (ORCPT ); Thu, 8 Jan 2009 15:06:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752807AbZAHUGE (ORCPT ); Thu, 8 Jan 2009 15:06:04 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:49581 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752093AbZAHUGB (ORCPT ); Thu, 8 Jan 2009 15:06:01 -0500 Date: Thu, 8 Jan 2009 12:05:38 -0800 From: Dirk Hohndel To: Ingo Molnar , iommu@lists.linux-foundation.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Jesse Barnes , Arjan van de Ven Subject: git-latest: kernel oops in IOMMU setup Message-ID: <20090108120538.0176d348@infradead.org> X-Mailer: Claws Mail 3.6.1 (GTK+ 2.14.5; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1403 Lines: 44 latest git from Linus. On a Thinkpad x200s with VT-d enabled (if I disable VT-d, this of course goes away). The oops happens very early during boot in device_to_iommu (called from domain_context_mapping_one). Looking at the code dump and the disassembled function here's where the error happens: static struct intel_iommu *device_to_iommu(u8 bus, u8 devfn) { struct dmar_drhd_unit *drhd = NULL; int i; for_each_drhd_unit(drhd) { if (drhd->ignored) continue; for (i = 0; i < drhd->devices_cnt; i++) if (drhd->devices[i]->bus->number == bus && --> drhd->devices[0] is NULL drhd->devices[i]->devfn == devfn) return drhd->iommu; Given how early this happens it's a little hard to provide logs, etc. I literally used delay_boot=100 and wrote things down by hand (forgot my digital camera) and then added printk's to verify). please let me know what other data I should collect. The system ran fine with the 2.6.28 release kernel. /D -- Dirk Hohndel Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/