All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephan Seitz <s.seitz@netz-haut.de>
To: xen-devel@lists.xensource.com
Cc: Wei Wang2 <wei.wang2@amd.com>
Subject: Re: [PATCH 0/4] [AMD IOMMU] Enable PCI passthru for	HVM guest
Date: Mon, 18 Feb 2008 12:28:14 +0100	[thread overview]
Message-ID: <47B96BCE.1030103@netz-haut.de> (raw)
In-Reply-To: <C375FA43.19397%Keir.Fraser@cl.cam.ac.uk>


[-- Attachment #1.1.1: Type: text/plain, Size: 13573 bytes --]

Hi developers,

i'm currently trying to test pci passthru on a ht2000/ht1000 platform (Tyan h2000M (S3992-E) ).
Using enable_amd_iommu with Xen 3.2.0 shows "AMD IOMMU not present".
Could reworking this patch into 3.2.0 could solve this issue?
Or has this patch made it into xen-unstable, or is superseded by some later work?

Thanks for any response!

Maybe IOMMU isn't supported on this mainborad, but I'm unable to get a clear answer from tyan.

lspci -v shows following devices:

00:01.0 PCI bridge: Broadcom BCM5785 [HT1000] PCI/PCI-X Bridge (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 64
	Bus: primary=00, secondary=01, subordinate=03, sec-latency=64
	I/O behind bridge: 00009000-0000afff
	Memory behind bridge: f8700000-f88fffff
	Prefetchable memory behind bridge: 00000000af500000-00000000afcfffff
	Capabilities: [90] PCI-X bridge device
	Capabilities: [a0] HyperTransport: MSI Mapping
	Capabilities: [b0] HyperTransport: Slave or Primary Interface
	Capabilities: [d8] Subsystem: Gammagraphx, Inc. Unknown device 0000

00:02.0 Host bridge: Broadcom BCM5785 [HT1000] Legacy South Bridge
	Subsystem: Broadcom Unknown device 0201
	Flags: bus master, medium devsel, latency 64

00:02.1 IDE interface: Broadcom BCM5785 [HT1000] IDE (prog-if 8a [Master SecP PriP])
	Subsystem: Broadcom BCM5785 [HT1000] IDE
	Flags: bus master, medium devsel, latency 64
	I/O ports at 01f0 [size=8]
	I/O ports at 03f4 [size=1]
	I/O ports at 0170 [size=8]
	I/O ports at 0374 [size=1]
	I/O ports at ffa0 [size=16]

00:02.2 ISA bridge: Broadcom BCM5785 [HT1000] LPC
	Subsystem: Broadcom Unknown device 0230
	Flags: bus master, medium devsel, latency 0

00:03.0 USB Controller: Broadcom BCM5785 [HT1000] USB (rev 01) (prog-if 10 [OHCI])
	Subsystem: Broadcom BCM5785 [HT1000] USB
	Flags: 66MHz, medium devsel, IRQ 10
	Memory at febf9000 (32-bit, non-prefetchable) [disabled] [size=4K]
	I/O ports at e000 [disabled] [size=256]
	Capabilities: [dc] Power Management version 2

00:03.1 USB Controller: Broadcom BCM5785 [HT1000] USB (rev 01) (prog-if 10 [OHCI])
	Subsystem: Broadcom BCM5785 [HT1000] USB
	Flags: 66MHz, medium devsel, IRQ 10
	Memory at febfa000 (32-bit, non-prefetchable) [disabled] [size=4K]
	I/O ports at e400 [disabled] [size=256]
	Capabilities: [dc] Power Management version 2

00:03.2 USB Controller: Broadcom BCM5785 [HT1000] USB (rev 01) (prog-if 20 [EHCI])
	Subsystem: Broadcom BCM5785 [HT1000] USB
	Flags: 66MHz, medium devsel, IRQ 10
	Memory at febfb000 (32-bit, non-prefetchable) [disabled] [size=4K]
	I/O ports at e800 [disabled] [size=256]
	Capabilities: [dc] Power Management version 2

00:04.0 Ethernet controller: Intel Corporation 82557/8/9 Ethernet Pro 100 (rev 10)
	Subsystem: Intel Corporation EtherExpress PRO/100 S Server Adapter
	Flags: bus master, medium devsel, latency 64, IRQ 16
	Memory at febf8000 (32-bit, non-prefetchable) [size=4K]
	I/O ports at ec00 [size=64]
	Memory at febc0000 (32-bit, non-prefetchable) [size=128K]
	Capabilities: [dc] Power Management version 2

00:06.0 PCI bridge: Broadcom BCM5780 [HT2000] PCI-X bridge (rev b0) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 64
	Bus: primary=00, secondary=04, subordinate=04, sec-latency=64
	Capabilities: [90] PCI-X bridge device
	Capabilities: [a0] HyperTransport: MSI Mapping
	Capabilities: [b0] HyperTransport: Slave or Primary Interface

00:07.0 PCI bridge: Broadcom BCM5780 [HT2000] PCI-X bridge (rev b0) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 64
	Bus: primary=00, secondary=05, subordinate=05, sec-latency=64
	Memory behind bridge: f8900000-f89fffff
	Prefetchable memory behind bridge: 00000000afd00000-00000000afdfffff
	Capabilities: [90] PCI-X bridge device
	Capabilities: [a0] HyperTransport: MSI Mapping

00:08.0 PCI bridge: Broadcom BCM5780 [HT2000] PCI-Express Bridge (rev b0) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=06, subordinate=06, sec-latency=64
	I/O behind bridge: 0000b000-0000bfff
	Memory behind bridge: f8a00000-feafffff
	Prefetchable memory behind bridge: 00000000afe00000-00000000cfefffff
	Capabilities: [a0] HyperTransport: MSI Mapping
	Capabilities: [b0] Express Root Port (Slot-) IRQ 0

00:09.0 PCI bridge: Broadcom BCM5780 [HT2000] PCI-Express Bridge (rev b0) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=07, subordinate=07, sec-latency=64
	Capabilities: [a0] HyperTransport: MSI Mapping
	Capabilities: [b0] Express Root Port (Slot-) IRQ 0

00:0a.0 PCI bridge: Broadcom BCM5780 [HT2000] PCI-Express Bridge (rev b0) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=08, subordinate=08, sec-latency=64
	Capabilities: [a0] HyperTransport: MSI Mapping
	Capabilities: [b0] Express Root Port (Slot-) IRQ 0

00:0b.0 PCI bridge: Broadcom BCM5780 [HT2000] PCI-Express Bridge (rev b0) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=09, subordinate=09, sec-latency=64
	Capabilities: [a0] HyperTransport: MSI Mapping
	Capabilities: [b0] Express Root Port (Slot-) IRQ 0

00:0c.0 VGA compatible controller: ATI Technologies Inc ES1000 (rev 02) (prog-if 00 [VGA])
	Subsystem: ATI Technologies Inc ES1000
	Flags: stepping, medium devsel, IRQ 17
	Memory at d8000000 (32-bit, prefetchable) [disabled] [size=128M]
	I/O ports at d000 [disabled] [size=256]
	Memory at febe0000 (32-bit, non-prefetchable) [disabled] [size=64K]
	Expansion ROM at feba0000 [disabled] [size=128K]
	Capabilities: [50] Power Management version 2

00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h [Opteron, Athlon64, Sempron] HyperTransport Configuration
	Flags: fast devsel
	Capabilities: [80] HyperTransport: Host or Secondary Interface
	Capabilities: [a0] HyperTransport: Host or Secondary Interface
	Capabilities: [c0] HyperTransport: Host or Secondary Interface

00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h [Opteron, Athlon64, Sempron] Address Map
	Flags: fast devsel

00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h [Opteron, Athlon64, Sempron] DRAM Controller
	Flags: fast devsel

00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h [Opteron, Athlon64, Sempron] Miscellaneous Control
	Flags: fast devsel
	Capabilities: [f0] #0f [0010]

00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h [Opteron, Athlon64, Sempron] Link Control
	Flags: fast devsel
	Capabilities: [c0] HyperTransport: Host or Secondary Interface

00:19.0 Host bridge: Advanced Micro Devices [AMD] Family 10h [Opteron, Athlon64, Sempron] HyperTransport Configuration
	Flags: fast devsel
	Capabilities: [80] HyperTransport: Host or Secondary Interface
	Capabilities: [a0] HyperTransport: Host or Secondary Interface
	Capabilities: [c0] HyperTransport: Host or Secondary Interface

00:19.1 Host bridge: Advanced Micro Devices [AMD] Family 10h [Opteron, Athlon64, Sempron] Address Map
	Flags: fast devsel

00:19.2 Host bridge: Advanced Micro Devices [AMD] Family 10h [Opteron, Athlon64, Sempron] DRAM Controller
	Flags: fast devsel

00:19.3 Host bridge: Advanced Micro Devices [AMD] Family 10h [Opteron, Athlon64, Sempron] Miscellaneous Control
	Flags: fast devsel
	Capabilities: [f0] #0f [0010]

00:19.4 Host bridge: Advanced Micro Devices [AMD] Family 10h [Opteron, Athlon64, Sempron] Link Control
	Flags: fast devsel
	Capabilities: [80] HyperTransport: Host or Secondary Interface
	Capabilities: [c0] HyperTransport: Host or Secondary Interface

01:0d.0 PCI bridge: Broadcom BCM5785 [HT1000] PCI/PCI-X Bridge (rev c0) (prog-if 00 [Normal decode])
	Flags: bus master, 66MHz, medium devsel, latency 64
	Bus: primary=01, secondary=02, subordinate=03, sec-latency=64
	Memory behind bridge: f8700000-f87fffff
	Prefetchable memory behind bridge: 00000000af500000-00000000afcfffff
	Capabilities: [90] PCI-X bridge device
	Capabilities: [88] Subsystem: Illegal Vendor ID Unknown device ffff

01:0e.0 IDE interface: Broadcom BCM5785 [HT1000] SATA (PATA/IDE Mode) (prog-if 8f [Master SecP SecO PriP PriO])
	Subsystem: Broadcom BCM5785 [HT1000] SATA (PATA/IDE Mode)
	Flags: bus master, medium devsel, latency 64, IRQ 11
	I/O ports at ac00 [size=8]
	I/O ports at a880 [size=4]
	I/O ports at a800 [size=8]
	I/O ports at a480 [size=4]
	I/O ports at a400 [size=16]
	Memory at f88fe000 (32-bit, non-prefetchable) [size=8K]
	Expansion ROM at f88c0000 [disabled] [size=128K]
	Capabilities: [60] PCI-X non-bridge device
	Capabilities: [90] Power Management version 2
	Capabilities: [a0] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-

01:0e.1 IDE interface: Broadcom BCM5785 [HT1000] SATA (PATA/IDE Mode) (prog-if 8f [Master SecP SecO PriP PriO])
	Subsystem: Broadcom BCM5785 [HT1000] SATA (PATA/IDE Mode)
	Flags: 66MHz, medium devsel, IRQ 11
	I/O ports at a080 [size=8]
	I/O ports at a000 [size=4]
	I/O ports at 9c00 [size=8]
	I/O ports at 9880 [size=4]
	I/O ports at 9800 [size=16]
	Capabilities: [60] PCI-X non-bridge device
	Capabilities: [90] Power Management version 2
	Capabilities: [a0] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-

02:07.0 PCI bridge: Intel Corporation 80331 [Lindsay] I/O processor (PCI-X Bridge) (rev 0a) (prog-if 00 [Normal decode])
	Flags: bus master, 66MHz, medium devsel, latency 64
	Bus: primary=02, secondary=03, subordinate=03, sec-latency=64
	Memory behind bridge: f8700000-f87fffff
	Prefetchable memory behind bridge: 00000000af500000-00000000afcfffff
	Capabilities: [dc] Power Management version 2
	Capabilities: [f0] PCI-X bridge device

03:0e.0 RAID bus controller: Areca Technology Corp. ARC-1110 4-Port PCI-X to SATA RAID Controller
	Subsystem: Areca Technology Corp. ARC-1110 4-Port PCI-X to SATA RAID Controller
	Flags: bus master, stepping, 66MHz, medium devsel, latency 64, IRQ 23
	Memory at f87ff000 (32-bit, non-prefetchable) [size=4K]
	Memory at af800000 (32-bit, prefetchable) [size=4M]
	Expansion ROM at f87e0000 [disabled] [size=64K]
	Capabilities: [c0] Power Management version 2
	Capabilities: [d0] Message Signalled Interrupts: Mask- 64bit+ Queue=0/1 Enable-
	Capabilities: [e0] PCI-X non-bridge device

05:04.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5780 Gigabit Ethernet (rev 10)
	Subsystem: Broadcom Corporation NetXtreme BCM5780 Gigabit Ethernet
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 26
	Memory at f89d0000 (64-bit, non-prefetchable) [size=64K]
	Memory at f89c0000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: [40] PCI-X non-bridge device
	Capabilities: [48] Power Management version 2
	Capabilities: [50] Vital Product Data
	Capabilities: [58] Message Signalled Interrupts: Mask- 64bit+ Queue=0/3 Enable-

05:04.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5780 Gigabit Ethernet (rev 10)
	Subsystem: Broadcom Corporation NetXtreme BCM5780 Gigabit Ethernet
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 27
	Memory at f89f0000 (64-bit, non-prefetchable) [size=64K]
	Memory at f89e0000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: [40] PCI-X non-bridge device
	Capabilities: [48] Power Management version 2
	Capabilities: [50] Vital Product Data
	Capabilities: [58] Message Signalled Interrupts: Mask- 64bit+ Queue=0/3 Enable-

06:00.0 VGA compatible controller: nVidia Corporation GeForce 8600 GT (rev a1) (prog-if 00 [VGA])
	Flags: fast devsel, IRQ 28
	Memory at fd000000 (32-bit, non-prefetchable) [disabled] [size=16M]
	Memory at b0000000 (64-bit, prefetchable) [disabled] [size=256M]
	Memory at fa000000 (64-bit, non-prefetchable) [disabled] [size=32M]
	I/O ports at bc00 [disabled] [size=128]
	Expansion ROM at feae0000 [disabled] [size=128K]
	Capabilities: [60] Power Management version 2
	Capabilities: [68] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
	Capabilities: [78] Express Endpoint IRQ 0




Cheers,

Stephan




Keir Fraser schrieb:
> I assume this isn't intended for 3.2.0?
> 
>  -- Keir
> 
> 
> On 30/11/07 15:49, "Wei Wang2" <wei.wang2@amd.com> wrote:
> 
>> Hi, 
>> The following 4 patches enable direct device assignment (PCI passthru)
>> for HVM guest
>> on AMD IOMMU platforms. Please apply them against C/S 16491 as the named
>> order.
>> To enable AMD IOMMU, please add "enable_amd_iommu" as xen boot
>> parameter. 
>>
>> 1-cleanup.patch: code cleanup, bug fix, minor enhancements to existing
>> amd-iommu codes.
>> 2-passthru-amd.patch: passthru support, modifications to exsiting
>> amd-iommu codes.
>> 3-passthru-xen.patch: passthru support, minimodifications to in xen and
>> vtd code.
>> 4-ht1100.patch: fixup to ht1100 chipset detection.
>>
>>
>> Signed-off-by: Wei Wang <wei.wang2@amd.com>
>>
>>
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel


-- 
Stephan Seitz
Senior System Administrator

*netz-haut* e.K.
multimediale kommunikation

zweierweg 22
97074 würzburg

fon: +49 931 2876247
fax: +49 931 2876248

web: www.netz-haut.de <http://www.netz-haut.de/>

registriergericht: amtsgericht würzburg, hra 5054

[-- Attachment #1.1.2: s_seitz.vcf --]
[-- Type: text/x-vcard, Size: 335 bytes --]

begin:vcard
fn:Stephan Seitz
n:Seitz;Stephan
org:netz-haut e.K.
adr:;;Zweierweg 22;Wuerzburg;Bayern;97074;Deutschland
email;internet:s.seitz@netz-haut.de
title:Senior System Administrator
tel;work:+49-931-287-6247
tel;fax:+49-931-287-6248
x-mozilla-html:FALSE
url:http://www.schwarz-mode.de/files/
version:2.1
end:vcard


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

  reply	other threads:[~2008-02-18 11:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-30 15:49 [PATCH 0/4] [AMD IOMMU] Enable PCI passthru for HVM guest Wei Wang2
2007-11-30 17:34 ` Keir Fraser
2008-02-18 11:28   ` Stephan Seitz [this message]
2008-02-18 13:06     ` Wei Wang2
2008-02-18 15:13       ` Stephan Seitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47B96BCE.1030103@netz-haut.de \
    --to=s.seitz@netz-haut.de \
    --cc=wei.wang2@amd.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.