From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Bainbridge Subject: Re: SATA detect fails on ICH7 chipset / DellPoweredgeSC430 Date: Mon, 5 Sep 2005 15:16:09 +0100 Message-ID: <623652d505090507166b31aa50@mail.gmail.com> References: <623652d50508310925c65ca36@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <623652d50508310925c65ca36@mail.gmail.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Pratt , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi, I've booted a Xen kernel over nfs using the mboot.c32 from patched pxelinux previously posted on this list. Now I can get some debug info from a running Xen kernel: # cat /proc/iomem 000a0000-000bffff : Video RAM area 000c0000-000c7fff : Video ROM 000ca000-000cb7ff : Adapter ROM 000cb800-000cbfff : Adapter ROM 000f0000-000fffff : System ROM 06000000-060003ff : 0000:00:1f.2 ec000000-edffffff : 0000:05:07.0 efac0000-efafffff : 0000:05:07.0 efc00000-efcfffff : PCI Bus #04 efcf0000-efcfffff : 0000:04:00.0 efcf0000-efcfffff : tg3 efd00000-efdfffff : PCI Bus #02 efe00000-efefffff : PCI Bus #01 ffa80800-ffa80bff : 0000:00:1d.7 For comparison the native one looks like: 00000000-0009ffff : System RAM 000a0000-000bffff : Video RAM area 000c0000-000c7fff : Video ROM 000ca000-000cbfff : Adapter ROM 000f0000-000fffff : System ROM 00100000-3fe8cbff : System RAM 00100000-0028a7bd : Kernel code 0028a7be-00337b7f : Kernel data 3fe8cc00-3fe8ebff : ACPI Non-volatile Storage 3fe8ec00-3fe90bff : ACPI Tables 3fe90c00-3fffffff : reserved 40000000-400003ff : 0000:00:1f.2 40000000-400003ff : libata ec000000-edffffff : 0000:05:07.0 efac0000-efafffff : 0000:05:07.0 efc00000-efcfffff : PCI Bus #04 efcf0000-efcfffff : 0000:04:00.0 efcf0000-efcfffff : tg3 efd00000-efdfffff : PCI Bus #02 efe00000-efefffff : PCI Bus #01 f0000000-f3ffffff : reserved fec00000-fed003ff : reserved fed20000-fed9ffff : reserved fee00000-feefffff : reserved ffa80800-ffa80bff : 0000:00:1d.7 ffb00000-ffffffff : reserved The region "06000000-060003ff : 0000:00:1f.2" is the SATA MMIO region. On a native kernel it sits at 0x40000000, which is 1GB, just above physical memory. Xen seems to make it visible at 0x06000000 which is 96MB, at the end of the dom0_mem region since I have "dom0_mem=3D98304". When the kernel tries to probe the MMIO area Xen gives the error: (XEN) (file=3D.../xen/include/asm/mm.h, line=3D201) Error pfn 6000: rd=3Dffbfb080, od=3D00000000, caf=3D00000000, taf=3D0000000c ata_piix: probe of 0000:00:1f.2 failed with error -12 Which is a failed read at 96MB.=20 Note that the SATA MMIO region is the only device that appears at a different address under the Xen /proc/iomem - the tg3 ethernet, for example, keeps the same address. lspci confirms this is the case: Native lspci -vvvv: 0000:00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controllers cc=3DIDE (rev 01) (prog-if 8f [Master SecP SecO PriP PriO]) Subsystem: Dell: Unknown device 01ae Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=3Dmedium >TAbort- SERR- TAbort- SERR-