Gentoo Archives: gentoo-user

From: Hilco Wijbenga <hilco.wijbenga@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] CONFIG_IOMMU_SUPPORT???
Date: Wed, 24 Aug 2011 18:59:25
Message-Id: CAE1pOi3jxBsds4iiY_q0OXNZTmkD+J2nEPTzhtZcnhj1jDV+rw@mail.gmail.com
In Reply to: Re: [gentoo-user] CONFIG_IOMMU_SUPPORT??? by Mark Knecht
1 On 24 August 2011 10:55, Mark Knecht <markknecht@×××××.com> wrote:
2 > On Tue, Aug 23, 2011 at 9:18 PM, Hilco Wijbenga
3 > <hilco.wijbenga@×××××.com> wrote:
4 >> On 23 August 2011 20:38, Mark Knecht <markknecht@×××××.com> wrote:
5 >>> Hi all,
6 >>>   Can someone point me toward somehow enabling CONFIG_IOMMU_SUPPORT?
7 >>> It is apparently a kernel config option no required by
8 >>> virtualbox-drivers but I'm not finding it in the 3.0.3 kernel. I
9 >>> suspect there's something else I need to enable before this option
10 >>> becomes available? Unfortunately I haven't been able to Google what I
11 >>> need to do to find it.
12 >>>
13 >>> Thanks,
14 >>> Mark
15 >>>
16 >>> * Messages for package app-emulation/virtualbox-modules-4.1.2:
17 >>>
18 >>>  *   CONFIG_IOMMU_SUPPORT:       is not set when it should be.
19 >>>  * Please check to make sure these options are set correctly.
20 >>>  * Failure to do so may cause unexpected problems.
21 >>> <SNIP>
22 >>>
23 >>> k2 linux # cat .config | grep IOMMU
24 >>> CONFIG_GART_IOMMU=y
25 >>> # CONFIG_CALGARY_IOMMU is not set
26 >>> CONFIG_AMD_IOMMU=y
27 >>> # CONFIG_AMD_IOMMU_STATS is not set
28 >>> CONFIG_IOMMU_HELPER=y
29 >>> CONFIG_IOMMU_API=y
30 >>> # CONFIG_IOMMU_DEBUG is not set
31 >>> # CONFIG_IOMMU_STRESS is not set
32 >>> k2 linux #
33 >>
34 >> I noticed the same. There does not appear to be any such option but
35 >> luckily its absence does not appear to affect running VB at all.
36 >>
37 >
38 > At the time of writing this I haven't tried Gregory's item about the
39 > CONFIG_CALGARY_IOMMU option. I'll try that later when I get to the
40 > machine but the reading I did on the web sounded like that was for IBM
41 > specific hardware.
42 >
43 > Here it seems that on the machine I was working - Intel based, i920 -
44 > VB won't install Win 7 64-bit without it. I get a bunch of messages
45 > that it will install but many cause problems. Are you running any
46 > 64-bit VMs?
47
48 Sort of. I'm working on installing Gentoo AMD64 in a VB machine. No
49 problems so far but I've only just started (it's a weekend project).
50 Certainly no Windows.
51
52 > However I've got another Intel machine where I can install Win 7
53 > 64-bit in VB just fine with no complaints at all. Here's the IOMMU
54 > stuff from that box:
55 >
56 > mark@c2stable ~ $ uname -a
57 > Linux c2stable 3.0.1-gentoo #1 SMP PREEMPT Mon Aug 8 13:05:19 PDT 2011
58 > x86_64 Intel(R) Core(TM) i7 CPU X 980 @ 3.33GHz GenuineIntel GNU/Linux
59 > mark@c2stable ~ $ zcat /proc/config.gz | grep IOMMU
60 > CONFIG_GART_IOMMU=y
61 > # CONFIG_CALGARY_IOMMU is not set
62 > # CONFIG_AMD_IOMMU is not set
63 > CONFIG_IOMMU_HELPER=y
64 > CONFIG_IOMMU_API=y
65 > # CONFIG_IOMMU_DEBUG is not set
66 > # CONFIG_IOMMU_STRESS is not set
67 > mark@c2stable ~ $
68 >
69 > Except for the AMD option they seem identical unless I'm misreading something.
70 >
71 > I'm now wondering if there is both a BIOS and chipset component to
72 > making this work? I'm pretty sure I've got all the Vt-d stuff enabled
73 > but I'll have to wait to go into BIOS on both of them to compare.
74 >
75 > I'll try to do a diff later today between both machine's .config files
76 > to look for differences.
77
78 Can't you simply install the Calgary IOMMU as well? I know that it
79 seems IBM based stuff (I noticed it myself when I was going through
80 the same process) which you probably do not need but I assume it can't
81 hurt (apart from making the kernel a bit bigger). But if it fixes your
82 problem... Probably worth a try.

Replies

Subject Author
Re: [gentoo-user] CONFIG_IOMMU_SUPPORT??? Mark Knecht <markknecht@×××××.com>