Re: New PCI code for Alpha

Martin Mares (mj@ucw.cz)
Mon, 24 Aug 1998 20:04:21 +0200


> Oh yes, the SMP global cli thing. Ok, I'll change it to __cli, since
> that's what I'm really wanting anyway.

Is this SMP safe? What if multiple CPUs attempt to access the PCI config
registers at once?

> > I think you could do it this way:
> >
> > last_bus = 0;
> > for each bus controller {
> > map busses last_bus to 0xff to current controller
> > last_bus = pci_scan_bus(...) + 1
> > }
>
> I'll give it a look and see, but just about anything is going to
> be fairly ugly.

Yes, it could have been more elegant, but it's IMHO much nicer and easier
to do it this way than by traversing the bus trees as we do now.

Have a nice fortnight

-- 
Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"DEC = Delay in Error Correction"

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html