public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2/3] Set compatibility flag for 4GB zone on IA64
@ 2005-09-11 16:59 Andi Kleen
  0 siblings, 0 replies; 8+ messages in thread
From: Andi Kleen @ 2005-09-11 16:59 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel, discuss, tony.luck

Set compatibility flag for 4GB zone on IA64

IA64 traditionally had a 4GB DMA32 zone. Set the compatibility flag
to keep old drivers working.

For new drivers it would be better to use ZONE_DMA32 now. 

Signed-off-by: Andi Kleen <ak@suse.de>
Cc: tony.luck@intel.com

Index: linux/arch/ia64/Kconfig
===================================================================
--- linux.orig/arch/ia64/Kconfig
+++ linux/arch/ia64/Kconfig
@@ -54,6 +54,10 @@ config IA64_UNCACHED_ALLOCATOR
 	bool
 	select GENERIC_ALLOCATOR
 
+config ZONE_DMA_IS_DMA32
+	bool
+	default y
+
 choice
 	prompt "System type"
 	default IA64_GENERIC

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [2/3] Set compatibility flag for 4GB zone on IA64
@ 2005-09-11 20:44 Luck, Tony
  2005-09-11 21:05 ` Andi Kleen
  2005-09-11 23:24 ` Jeff Garzik
  0 siblings, 2 replies; 8+ messages in thread
From: Luck, Tony @ 2005-09-11 20:44 UTC (permalink / raw)
  To: ak, torvalds, Greg Edwards; +Cc: linux-kernel, discuss

>Set compatibility flag for 4GB zone on IA64
>
>IA64 traditionally had a 4GB DMA32 zone. Set the compatibility flag
>to keep old drivers working.
>
>For new drivers it would be better to use ZONE_DMA32 now. 
>
>Signed-off-by: Andi Kleen <ak@suse.de>
>Cc: tony.luck@intel.com
>
>Index: linux/arch/ia64/Kconfig
>===================================================================
>--- linux.orig/arch/ia64/Kconfig
>+++ linux/arch/ia64/Kconfig
>@@ -54,6 +54,10 @@ config IA64_UNCACHED_ALLOCATOR
> 	bool
> 	select GENERIC_ALLOCATOR
> 
>+config ZONE_DMA_IS_DMA32
>+	bool
>+	default y
>+
> choice
> 	prompt "System type"
> 	default IA64_GENERIC
>

ia64 isn't all that homogeneous.  SGI systems stuff *all* memory
into the DMA zone as their I/O devices have no 32-bit limits (just
as well really as there is no memory below 4G on an Altix!).

What does this ZONE_DMA_IS_DMA32 thing do?

-Tony

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [2/3] Set compatibility flag for 4GB zone on IA64
  2005-09-11 20:44 Luck, Tony
@ 2005-09-11 21:05 ` Andi Kleen
  2005-09-11 23:24 ` Jeff Garzik
  1 sibling, 0 replies; 8+ messages in thread
From: Andi Kleen @ 2005-09-11 21:05 UTC (permalink / raw)
  To: Luck, Tony; +Cc: torvalds, Greg Edwards, linux-kernel, discuss

On Sunday 11 September 2005 22:44, Luck, Tony wrote:

> What does this ZONE_DMA_IS_DMA32 thing do?

It just gives you the same behaviour as before when the DMA32 patchkit
from l-k is applied.

-Andi

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [2/3] Set compatibility flag for 4GB zone on IA64
  2005-09-11 20:44 Luck, Tony
  2005-09-11 21:05 ` Andi Kleen
@ 2005-09-11 23:24 ` Jeff Garzik
  2005-09-12  2:09   ` Chris Wedgwood
  1 sibling, 1 reply; 8+ messages in thread
From: Jeff Garzik @ 2005-09-11 23:24 UTC (permalink / raw)
  To: Luck, Tony; +Cc: ak, torvalds, Greg Edwards, linux-kernel, discuss

Luck, Tony wrote:
> ia64 isn't all that homogeneous.  SGI systems stuff *all* memory
> into the DMA zone as their I/O devices have no 32-bit limits (just
> as well really as there is no memory below 4G on an Altix!).

SGI machines support random PCI cards, right?  If so, you cannot presume 
I/O devices have no 32-bit limits.

	Jeff



^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [2/3] Set compatibility flag for 4GB zone on IA64
@ 2005-09-12  1:05 Luck, Tony
  2005-09-12  1:17 ` Jeff Garzik
  0 siblings, 1 reply; 8+ messages in thread
From: Luck, Tony @ 2005-09-12  1:05 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: ak, torvalds, Greg Edwards, linux-kernel, discuss


>Luck, Tony wrote:
>> ia64 isn't all that homogeneous.  SGI systems stuff *all* memory
>> into the DMA zone as their I/O devices have no 32-bit limits (just
>> as well really as there is no memory below 4G on an Altix!).
>
>SGI machines support random PCI cards, right?  If so, you 
>cannot presume 
>I/O devices have no 32-bit limits.

No, SGI machines don't support random PCI cards.  The lowest
possible physical address in an Altix is 192GB.  Cards that
can only DMA to addresses below 4G aren't going to be very
useful, are they?

-Tony

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [2/3] Set compatibility flag for 4GB zone on IA64
  2005-09-12  1:05 Luck, Tony
@ 2005-09-12  1:17 ` Jeff Garzik
  2005-09-12  2:58   ` Jesse Barnes
  0 siblings, 1 reply; 8+ messages in thread
From: Jeff Garzik @ 2005-09-12  1:17 UTC (permalink / raw)
  To: Luck, Tony; +Cc: ak, torvalds, Greg Edwards, linux-kernel, discuss

Luck, Tony wrote:
>>Luck, Tony wrote:
>>
>>>ia64 isn't all that homogeneous.  SGI systems stuff *all* memory
>>>into the DMA zone as their I/O devices have no 32-bit limits (just
>>>as well really as there is no memory below 4G on an Altix!).
>>
>>SGI machines support random PCI cards, right?  If so, you 
>>cannot presume 
>>I/O devices have no 32-bit limits.
> 
> 
> No, SGI machines don't support random PCI cards.  The lowest
> possible physical address in an Altix is 192GB.  Cards that
> can only DMA to addresses below 4G aren't going to be very
> useful, are they?

Do the boxes have IOMMUs?

	Jeff




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [2/3] Set compatibility flag for 4GB zone on IA64
  2005-09-11 23:24 ` Jeff Garzik
@ 2005-09-12  2:09   ` Chris Wedgwood
  0 siblings, 0 replies; 8+ messages in thread
From: Chris Wedgwood @ 2005-09-12  2:09 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Luck, Tony, ak, torvalds, Greg Edwards, linux-kernel, discuss

On Sun, Sep 11, 2005 at 07:24:43PM -0400, Jeff Garzik wrote:

> SGI machines support random PCI cards, right?

Technically the hardware does but I doubt SGI will help you if your
ne2k doesn't work.

> If so, you cannot presume I/O devices have no 32-bit limits.

The IO busses have IOMMUs on them anyhow.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [2/3] Set compatibility flag for 4GB zone on IA64
  2005-09-12  1:17 ` Jeff Garzik
@ 2005-09-12  2:58   ` Jesse Barnes
  0 siblings, 0 replies; 8+ messages in thread
From: Jesse Barnes @ 2005-09-12  2:58 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Luck, Tony, ak, torvalds, Greg Edwards, linux-kernel, discuss

On Sunday, September 11, 2005 6:17 pm, Jeff Garzik wrote:
> Luck, Tony wrote:
> >>Luck, Tony wrote:
> >>>ia64 isn't all that homogeneous.  SGI systems stuff *all* memory
> >>>into the DMA zone as their I/O devices have no 32-bit limits (just
> >>>as well really as there is no memory below 4G on an Altix!).
> >>
> >>SGI machines support random PCI cards, right?  If so, you
> >>cannot presume
> >>I/O devices have no 32-bit limits.
> >
> > No, SGI machines don't support random PCI cards.  The lowest
> > possible physical address in an Altix is 192GB.  Cards that
> > can only DMA to addresses below 4G aren't going to be very
> > useful, are they?
>
> Do the boxes have IOMMUs?

Yes, but they can only support devices that can do 32 bit or above 
addressing due to the fact that their IOMMU page tables are only 
referenced if the high bit of a 32 bit address is set, iirc.

Anyway, for those boxes, all memory was put in the DMA zone and the I/O 
mapping routines failed if devices that didn't support at least 32 bits 
tried to do a DMA map.

Jesse

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-09-12  2:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-11 16:59 [2/3] Set compatibility flag for 4GB zone on IA64 Andi Kleen
  -- strict thread matches above, loose matches on Subject: below --
2005-09-11 20:44 Luck, Tony
2005-09-11 21:05 ` Andi Kleen
2005-09-11 23:24 ` Jeff Garzik
2005-09-12  2:09   ` Chris Wedgwood
2005-09-12  1:05 Luck, Tony
2005-09-12  1:17 ` Jeff Garzik
2005-09-12  2:58   ` Jesse Barnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox