lkml.org 
[lkml]   [2002]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [BK PATCH] PCI reorg fix
Uz.ytkownik James Bottomley napisa?:
> dalecki@evision-ventures.com said:
>
>>If your are at it: I was always itching my had what
>>pci_alloc_inconsistent and pci_free_inconsistent is supposed to be?
>>Negating semantically the consistent attribute shows nicely that the
>>_consistent is a bad nomenclatures. Perhaps something more related to
>>the purpose of it would help. Like
>
>
>>ioalloc() and iofree()
>
>
>>Could be even abstracted from the bus implementation.
>
>
>>And of course much less typing...
>
>
> I'm all for less typing, but "consistent" memory has a definite meaning to
> some non-x86 architectures (and inconsistent also has a definite and
> semantically opposite meaning).
>
> The x86 is nice because it is fully coherent architecture: the CPUs snoop the
> I/O busses and do CPU cache invalidations for data transferred from an I/O
> device directly to memory and CPU cache flushes when a device reads directly
> from memory.

So what you are requesting is memmory which is suitable to be run
for IO. All you are talking about is io. I think ioalloc() and iofree()
fit it nice as names.

> If the CPU doesn't snoop I/O transfers, you have to manually invalidate or
> flush the necessary CPU cache lines. The pci_sync_... functions are for doing
...
> drivers simply choose not to bother with consistent memory at all because the
> cache manipulation operations are optimised away on fully consistent platforms.
>
> I'd like to say that this is totally unrelated to the bus type, but some
> architectures place MMUs on their busses which means that memory consistency
> (and even memory addressability) can indeed be bus specific depending on what
> the MMU actually does.


Thank you finally for explaining that the _consistant is about
well coherency and caches... This should have been put up in to the
documentation in question... becouse beleve me or not -
I know well about the "MESIs of the world", but I still wasn't
able to make any sense out of this _consistent term in first place.

And I still have the feeling that the nomenclature is bad.
What are you going to do if on some silly VLSI new slow CPU
invention at some time the need of doing pciIV_alloc_asynchronous() araises?
or pciXI_alloc_remote() or whatever? Are you going to request
all the driver writers to adjust to it again!?

(Something like this could for example just happen very urgently if Transmeta
decided to reveal native access to the hardware and tools in question I guess ;-).

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.049 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site