linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: VME - PowerPC: Resource sizes
@ 2004-06-10 13:03 Heater, Daniel (GE Infrastructure)
  2004-06-10 15:11 ` Oliver Korpilla
  0 siblings, 1 reply; 3+ messages in thread
From: Heater, Daniel (GE Infrastructure) @ 2004-06-10 13:03 UTC (permalink / raw)
  To: okorpil; +Cc: linuxppc-embedded


> We could iterate the PCI bus tree to the top (there is some
> parent bus
> field, IIRC), and then start complete iteration until a suitable
> resource is found. This may produce larger resource regions with
> reasonable effort.

On the x86 boards we've dealt with we've gotten away with opening
VMEbus windows in PCI space not allocated by the Universe's parent
bridge because the parent bridges have always been set up for
subtractive decoding. So if no one else claimed the cycle, it got
passed down through the bridge to the Universe anyway.

> Are you sure you mean 768 _KB_ and 2 _MB_, not 768 _MB_ and 2
> _GB_? My SLSI window is already 64 MB big.

My bad. It's actually 768KB and 2GB are correct. The SLSI window
does fail to allocate with the patch.

daniel.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread
* RE: VME driver patch for PowerPC
@ 2004-06-09 20:01 Heater, Daniel (GE Infrastructure)
  2004-06-10  7:32 ` VME - PowerPC: Resource sizes Oliver Korpilla
  0 siblings, 1 reply; 3+ messages in thread
From: Heater, Daniel (GE Infrastructure) @ 2004-06-09 20:01 UTC (permalink / raw)
  To: okorpil; +Cc: linuxppc-embedded


> >>Could you check, whether the patch to your driver (version
> >>7433-3.2 of your
> >>Linux support) still compiles on an Intel platform, and works
> >>as intended?
> >>
> >Yep. I only did a quick test, but it appears to work fine on x86.
> >I've merged your patch up with the code base for the next release.
> >
> Great!
>
> I don't know about x86 bus organization, but maybe it limits
> the address
> range for available addresses too strongly (on a single bus,
> where the
> Universe is on). Comparing how much window space you can map with the
> old version and the new one on x86 could prove useful.

Your dead on right. I cannot allocate as much space. In fact,
on a VMIVME-7750 I'm only able to allocate 768KB now vs. the
~2MB I could access before.

> Adding the patch below activated correct behaviour for vme_peek/poke,
> with correct data width (tested VME_D8, VME_D16 and VME_D32), and
> without cache bursts.
>
> It simply sets the cache-inhibited and guarded bits before
> remapping the pages (these flags are PowerPC-specific, and the
> pci_mmap_page_range() function is sadly no exported kernel symbol).
>
> Would you again be so kind to run some "still works"-test on an
> Intel board?

That part still works.

Thanks,
Daniel L. Heater
Software Development, Embedded Systems
GE Fanuc Automation Americas, Inc.
VMIC, Inc.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2004-06-10 15:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-10 13:03 VME - PowerPC: Resource sizes Heater, Daniel (GE Infrastructure)
2004-06-10 15:11 ` Oliver Korpilla
  -- strict thread matches above, loose matches on Subject: below --
2004-06-09 20:01 VME driver patch for PowerPC Heater, Daniel (GE Infrastructure)
2004-06-10  7:32 ` VME - PowerPC: Resource sizes Oliver Korpilla

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).