iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: Florian Dazinger <florian-Q0TRQrZM+Zzk1uMJSBkQmQ@public.gmane.org>
To: Alex Williamson
	<alex.williamson-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [RFC PATCH 0/5] amd_iommu: Refactor IOMMU group and support virtual aliases
Date: Tue, 9 Oct 2012 20:27:38 +0200	[thread overview]
Message-ID: <20121009202738.7e047e64@brain.lan> (raw)
In-Reply-To: <20121009044057.16302.44577.stgit-xdHQ/5r00wBBDLzU/O5InQ@public.gmane.org>

Am Mon, 08 Oct 2012 22:49:28 -0600
schrieb Alex Williamson <alex.williamson-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>:

> This series is meant to refactor IOMMU group support in amd_iommu
> to properly support virtual aliases.  If multiple devices alias to
> the same virtual alias, they should be grouped together.  This code
> also verifies whether the alias should be the root of the group vs
> devices above the alias.
> 
> This seems to do the right thing on my system, but that's not saying
> a lot since it doesn't do anything interesting with aliases.  I'd
> appreciate if Joerg and Florian could test this on their systems.
> Thanks,
> 
> Alex
> 
> ---
> 
> Alex Williamson (5):
>       amd_iommu: Properly account for virtual aliases in IOMMU groups
>       amd_iommu: Split IOMMU group allocation and attach
>       amd_iommu: Split upstream bus device lookup
>       amd_iommu: Split IOMMU Group topology walk
>       amd_iommu: Split IOMMU group initialization
> 
> 
>  drivers/iommu/amd_iommu.c       |  184 ++++++++++++++++++++++++++++++---------
>  drivers/iommu/amd_iommu_types.h |    1 
>  2 files changed, 142 insertions(+), 43 deletions(-)
> 

patch #5 does not apply cleanly on top of 3.6, I had to edit amd_iommu_types.h manually (easy enough), apart from that, it is working fine!
thanks, Florian 

dmesg:
[    1.475665] pci 0000:01:00.0: Boot video device
[    1.475762] PCI: CLS 64 bytes, default 64
[    1.478371] AMD-Vi: device: 00:00.2 cap: 0040 seg: 0 flags: 3e info 1300
[    1.478409] AMD-Vi:        mmio-addr: 00000000feb20000
[    1.478487] AMD-Vi:   DEV_SELECT_RANGE_START  devid: 00:00.0 flags: 00
[    1.478521] AMD-Vi:   DEV_RANGE_END           devid: 00:00.2
[    1.478555] AMD-Vi:   DEV_SELECT                      devid: 00:02.0 flags: 00
[    1.478588] AMD-Vi:   DEV_SELECT_RANGE_START  devid: 01:00.0 flags: 00
[    1.478622] AMD-Vi:   DEV_RANGE_END           devid: 01:00.1
[    1.478655] AMD-Vi:   DEV_SELECT                      devid: 00:04.0 flags: 00
[    1.478688] AMD-Vi:   DEV_SELECT                      devid: 02:00.0 flags: 00
[    1.478722] AMD-Vi:   DEV_SELECT                      devid: 00:05.0 flags: 00
[    1.478755] AMD-Vi:   DEV_SELECT                      devid: 03:00.0 flags: 00
[    1.478788] AMD-Vi:   DEV_SELECT                      devid: 00:06.0 flags: 00
[    1.478822] AMD-Vi:   DEV_SELECT                      devid: 04:00.0 flags: 00
[    1.478855] AMD-Vi:   DEV_SELECT                      devid: 00:07.0 flags: 00
[    1.478888] AMD-Vi:   DEV_SELECT                      devid: 05:00.0 flags: 00
[    1.478921] AMD-Vi:   DEV_SELECT                      devid: 00:09.0 flags: 00
[    1.478955] AMD-Vi:   DEV_SELECT                      devid: 06:00.0 flags: 00
[    1.478988] AMD-Vi:   DEV_SELECT                      devid: 00:0d.0 flags: 00
[    1.479021] AMD-Vi:   DEV_SELECT                      devid: 07:00.0 flags: 00
[    1.479055] AMD-Vi:   DEV_ALIAS_RANGE                 devid: 08:01.0 flags: 00 devid_to: 08:00.0
[    1.479091] AMD-Vi:   DEV_RANGE_END           devid: 08:1f.7
[    1.479128] AMD-Vi:   DEV_SELECT                      devid: 00:11.0 flags: 00
[    1.479162] AMD-Vi:   DEV_SELECT_RANGE_START  devid: 00:12.0 flags: 00
[    1.479195] AMD-Vi:   DEV_RANGE_END           devid: 00:12.2
[    1.479229] AMD-Vi:   DEV_SELECT_RANGE_START  devid: 00:13.0 flags: 00
[    1.479262] AMD-Vi:   DEV_RANGE_END           devid: 00:13.2
[    1.479295] AMD-Vi:   DEV_SELECT                      devid: 00:14.0 flags: d7
[    1.479329] AMD-Vi:   DEV_SELECT                      devid: 00:14.3 flags: 00
[    1.479362] AMD-Vi:   DEV_SELECT                      devid: 00:14.4 flags: 00
[    1.479396] AMD-Vi:   DEV_ALIAS_RANGE                 devid: 09:00.0 flags: 00 devid_to: 00:14.4
[    1.479432] AMD-Vi:   DEV_RANGE_END           devid: 09:1f.7
[    1.479478] AMD-Vi:   DEV_SELECT                      devid: 00:14.5 flags: 00
[    1.479513] AMD-Vi:   DEV_SELECT_RANGE_START  devid: 00:16.0 flags: 00
[    1.479547] AMD-Vi:   DEV_RANGE_END           devid: 00:16.2
[    1.533745] AMD-Vi: Found IOMMU at 0000:00:00.2 cap 0x40
[    1.533781] 
[    1.533830] pci 0000:00:00.2: irq 72 for MSI/MSI-X
[    1.542957] AMD-Vi: Lazy IO/TLB flushing enabled

lspci:
00:00.0 Host bridge: Advanced Micro Devices [AMD] nee ATI RD890 PCI to PCI bridge (external gfx0 port B) (rev 02)
00:00.2 IOMMU: Advanced Micro Devices [AMD] nee ATI RD990 I/O Memory Management Unit (IOMMU)
00:02.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD890 PCI to PCI bridge (PCI express gpp port B)
00:04.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD890 PCI to PCI bridge (PCI express gpp port D)
00:05.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD890 PCI to PCI bridge (PCI express gpp port E)
00:06.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD890 PCI to PCI bridge (PCI express gpp port F)
00:07.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD890 PCI to PCI bridge (PCI express gpp port G)
00:09.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD890 PCI to PCI bridge (PCI express gpp port H)
00:0d.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD890 PCI to PCI bridge (external gfx1 port B)
00:11.0 SATA controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices [AMD] nee ATI SBx00 SMBus Controller (rev 42)
00:14.3 ISA bridge: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: Advanced Micro Devices [AMD] nee ATI SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:16.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RV730XT [Radeon HD 4670]
01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI RV710/730 HDMI Audio [Radeon HD 4000 series]
02:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)
03:00.0 Ethernet controller: Intel Corporation 82583V Gigabit Network Connection
04:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
05:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
06:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
07:00.0 PCI bridge: PLX Technology, Inc. PEX8112 x1 Lane PCI Express-to-PCI Bridge (rev aa)
08:04.0 Multimedia audio controller: C-Media Electronics Inc CMI8788 [Oxygen HD Audio]

  parent reply	other threads:[~2012-10-09 18:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-09  4:49 [RFC PATCH 0/5] amd_iommu: Refactor IOMMU group and support virtual aliases Alex Williamson
     [not found] ` <20121009044057.16302.44577.stgit-xdHQ/5r00wBBDLzU/O5InQ@public.gmane.org>
2012-10-09  4:49   ` [RFC PATCH 1/5] amd_iommu: Split IOMMU group initialization Alex Williamson
     [not found]     ` <20121009044935.16302.93049.stgit-xdHQ/5r00wBBDLzU/O5InQ@public.gmane.org>
2012-10-09 14:33       ` Shuah Khan
     [not found]         ` <CAKocOOOTp7BMbqFyZx=rH-2uOC51C17JTjP77w7=7KB8jKh=hA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-10-09 14:41           ` Alex Williamson
2012-10-09  4:49   ` [RFC PATCH 2/5] amd_iommu: Split IOMMU Group topology walk Alex Williamson
2012-10-09  4:49   ` [RFC PATCH 3/5] amd_iommu: Split upstream bus device lookup Alex Williamson
2012-10-09  4:49   ` [RFC PATCH 4/5] amd_iommu: Split IOMMU group allocation and attach Alex Williamson
2012-10-09  4:50   ` [RFC PATCH 5/5] amd_iommu: Properly account for virtual aliases in IOMMU groups Alex Williamson
2012-10-09 18:27   ` Florian Dazinger [this message]
     [not found]     ` <20121009202738.7e047e64-mGxavARqDwv/PtFMR13I2A@public.gmane.org>
2012-10-09 18:35       ` [RFC PATCH 0/5] amd_iommu: Refactor IOMMU group and support virtual aliases Alex Williamson
     [not found]         ` <1349807739.2759.292.camel-85EaTFmN5p//9pzu0YdTqQ@public.gmane.org>
2012-10-09 18:57           ` Florian Dazinger
     [not found]             ` <20121009205758.45c9fcc0-mGxavARqDwv/PtFMR13I2A@public.gmane.org>
2012-10-09 19:33               ` Alex Williamson
2012-10-18 21:29   ` Alex Williamson
     [not found]     ` <1350595750.2112.438.camel-xdHQ/5r00wBBDLzU/O5InQ@public.gmane.org>
2012-10-24 15:28       ` Joerg Roedel

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=20121009202738.7e047e64@brain.lan \
    --to=florian-q0trqrzm+zzk1umjsbkqmq@public.gmane.org \
    --cc=alex.williamson-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).