LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 2.6.28-rc3] x86: make CONFIG_SWIOTLB configurable
@ 2008-11-04 16:28 Constantin Baranov
2008-11-05 10:21 ` Pavel Machek
2008-11-06 0:53 ` FUJITA Tomonori
0 siblings, 2 replies; 4+ messages in thread
From: Constantin Baranov @ 2008-11-04 16:28 UTC (permalink / raw)
To: Ingo Molnar; +Cc: linux-kernel
Make it possible to enable individually the CONFIG_SWIOTLB option.
This is useful for Intel x86_64 systems without DMAR support.
Signed-off-by: Constantin Baranov <const@mimas.ru>
---
Tested on my system based on Gigabyte GA-EP45-DS3 mainboard
(P45 chipset) with 8 GiB of RAM.
Currently I need to enable either CONFIG_GART_IOMMU or
CONFIG_AMD_IOMMU for proper work. Both are AMD specific.
When the patch applied, just CONFIG_SWIOTLB is sufficient.
arch/x86/Kconfig | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- linux-2.6.28-rc3/arch/x86/Kconfig 2008-11-04 17:32:29.846408880 +0400
+++ linux-2.6.28-rc3-swiotlb/arch/x86/Kconfig 2008-11-04 18:11:47.796408084 +0400
@@ -566,7 +566,9 @@ config AMD_IOMMU
# need this always selected by IOMMU for the VIA workaround
config SWIOTLB
- bool
+ bool "Support for software bounce buffers"
+ depends on X86_64 && EXPERIMENTAL
+ default n
help
Support for software bounce buffers used on x86-64 systems
which don't have a hardware IOMMU (e.g. the current generation
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2.6.28-rc3] x86: make CONFIG_SWIOTLB configurable
2008-11-04 16:28 [PATCH 2.6.28-rc3] x86: make CONFIG_SWIOTLB configurable Constantin Baranov
@ 2008-11-05 10:21 ` Pavel Machek
2008-11-05 15:59 ` Constantin Baranov
2008-11-06 0:53 ` FUJITA Tomonori
1 sibling, 1 reply; 4+ messages in thread
From: Pavel Machek @ 2008-11-05 10:21 UTC (permalink / raw)
To: Constantin Baranov; +Cc: Ingo Molnar, linux-kernel
On Tue 2008-11-04 20:28:52, Constantin Baranov wrote:
> Make it possible to enable individually the CONFIG_SWIOTLB option.
> This is useful for Intel x86_64 systems without DMAR support.
>
> Signed-off-by: Constantin Baranov <const@mimas.ru>
> ---
> Tested on my system based on Gigabyte GA-EP45-DS3 mainboard
> (P45 chipset) with 8 GiB of RAM.
> Currently I need to enable either CONFIG_GART_IOMMU or
> CONFIG_AMD_IOMMU for proper work. Both are AMD specific.
> When the patch applied, just CONFIG_SWIOTLB is sufficient.
>
> arch/x86/Kconfig | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> --- linux-2.6.28-rc3/arch/x86/Kconfig 2008-11-04 17:32:29.846408880 +0400
> +++ linux-2.6.28-rc3-swiotlb/arch/x86/Kconfig 2008-11-04 18:11:47.796408084 +0400
> @@ -566,7 +566,9 @@ config AMD_IOMMU
>
> # need this always selected by IOMMU for the VIA workaround
> config SWIOTLB
> - bool
> + bool "Support for software bounce buffers"
> + depends on X86_64 && EXPERIMENTAL
> + default n
> help
> Support for software bounce buffers used on x86-64 systems
> which don't have a hardware IOMMU (e.g. the current generation
Why experimental?
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2.6.28-rc3] x86: make CONFIG_SWIOTLB configurable
2008-11-05 10:21 ` Pavel Machek
@ 2008-11-05 15:59 ` Constantin Baranov
0 siblings, 0 replies; 4+ messages in thread
From: Constantin Baranov @ 2008-11-05 15:59 UTC (permalink / raw)
To: Pavel Machek; +Cc: Ingo Molnar, linux-kernel
Pavel Machek wrote:
> On Tue 2008-11-04 20:28:52, Constantin Baranov wrote:
>> Make it possible to enable individually the CONFIG_SWIOTLB option.
>> This is useful for Intel x86_64 systems without DMAR support.
>>
>> Signed-off-by: Constantin Baranov <const@mimas.ru>
>> ---
>> Tested on my system based on Gigabyte GA-EP45-DS3 mainboard
>> (P45 chipset) with 8 GiB of RAM.
>> Currently I need to enable either CONFIG_GART_IOMMU or
>> CONFIG_AMD_IOMMU for proper work. Both are AMD specific.
>> When the patch applied, just CONFIG_SWIOTLB is sufficient.
>>
>> arch/x86/Kconfig | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> --- linux-2.6.28-rc3/arch/x86/Kconfig 2008-11-04 17:32:29.846408880 +0400
>> +++ linux-2.6.28-rc3-swiotlb/arch/x86/Kconfig 2008-11-04 18:11:47.796408084 +0400
>> @@ -566,7 +566,9 @@ config AMD_IOMMU
>>
>> # need this always selected by IOMMU for the VIA workaround
>> config SWIOTLB
>> - bool
>> + bool "Support for software bounce buffers"
>> + depends on X86_64 && EXPERIMENTAL
>> + default n
>> help
>> Support for software bounce buffers used on x86-64 systems
>> which don't have a hardware IOMMU (e.g. the current generation
>
> Why experimental?
>
As far as I understood, the comment before config SWIOTLB ('need this always selected by IOMMU for the VIA workaround') stands that voluntary enabling SWIOTLB may cause problems. Although I'm not sure that EXPERIMENTAL is really needed, or may be something else is better to prevent catastrophes.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2.6.28-rc3] x86: make CONFIG_SWIOTLB configurable
2008-11-04 16:28 [PATCH 2.6.28-rc3] x86: make CONFIG_SWIOTLB configurable Constantin Baranov
2008-11-05 10:21 ` Pavel Machek
@ 2008-11-06 0:53 ` FUJITA Tomonori
1 sibling, 0 replies; 4+ messages in thread
From: FUJITA Tomonori @ 2008-11-06 0:53 UTC (permalink / raw)
To: const; +Cc: mingo, linux-kernel
On Tue, 04 Nov 2008 20:28:52 +0400
Constantin Baranov <const@mimas.ru> wrote:
> Make it possible to enable individually the CONFIG_SWIOTLB option.
> This is useful for Intel x86_64 systems without DMAR support.
>
> Signed-off-by: Constantin Baranov <const@mimas.ru>
> ---
> Tested on my system based on Gigabyte GA-EP45-DS3 mainboard
> (P45 chipset) with 8 GiB of RAM.
> Currently I need to enable either CONFIG_GART_IOMMU or
> CONFIG_AMD_IOMMU for proper work. Both are AMD specific.
> When the patch applied, just CONFIG_SWIOTLB is sufficient.
>
> arch/x86/Kconfig | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> --- linux-2.6.28-rc3/arch/x86/Kconfig 2008-11-04 17:32:29.846408880 +0400
> +++ linux-2.6.28-rc3-swiotlb/arch/x86/Kconfig 2008-11-04 18:11:47.796408084 +0400
> @@ -566,7 +566,9 @@ config AMD_IOMMU
>
> # need this always selected by IOMMU for the VIA workaround
> config SWIOTLB
> - bool
> + bool "Support for software bounce buffers"
> + depends on X86_64 && EXPERIMENTAL
> + default n
> help
> Support for software bounce buffers used on x86-64 systems
> which don't have a hardware IOMMU (e.g. the current generation
IMHO, it's better to always enable SWIOTLB for X86_64 (the description
is a bit misleading; even with a hardware IOMMU, SWIOTLB is
necessary).
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-11-06 0:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-04 16:28 [PATCH 2.6.28-rc3] x86: make CONFIG_SWIOTLB configurable Constantin Baranov
2008-11-05 10:21 ` Pavel Machek
2008-11-05 15:59 ` Constantin Baranov
2008-11-06 0:53 ` FUJITA Tomonori
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).