Re: newbus bus access routines and bus_space_barrier()



Usually they are needed, but we get away without them often because they are needed in a limited set of circumstances and we have memory barriers in our locking primitives.

Warner

On Oct 15, 2011, at 7:48 PM, Adrian Chadd wrote:

Hi all,

I'm not clued up on the way of the bus API, so please excuse the
newbie questions.

Nathan and I found that ath(4) wasn't working for a user because of a
missing bus barrier. Ath trips it up because it does lots of loops of
register reads/writes through the bus stream API rather than the
normal bus API.
It does this because it handles the register value swapping in
hardware rather than in software.

The correct fix is to teach ath(4) to use bus_space_barrier() calls
when doing stream calls, which I can do, but the newbus documentation
points out that both normal and stream bus access doesn't enforce
ordering, and barrier calls are needed. But I don't see lots of
bus_space_barrier() calls everywhere. Why's that?

Thanks,


Adrian
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • newbus bus access routines and bus_space_barrier()
    ... I'm not clued up on the way of the bus API, ... normal bus API. ... when doing stream calls, which I can do, but the newbus documentation ...
    (freebsd-arch)
  • Re: [PATCH] Document Linuxs memory barriers
    ... the bus, and just about anything with a cache wont (as it'll burst cache ... + before the barrier will happen before all the memory accesses after the ... It does _not_ guarantee that all memory accesses before the ...
    (Linux-Kernel)
  • Re: Catching a bite
    ... people and ask for "permission to cross the barrier at speed". ... Costs are zero, GBP2.00, GBP5.00, zero and GBP2.70 respectively. ... Occasionally some fool asks me why I don't bother to travel by bus, ...
    (alt.sysadmin.recovery)
  • Re: Schoolkid Pedestrian
    ... There were several kids on the road side of the barrier, yet the bus driver had not adjusted his speed or position - in fact, one kid steps off the road a split second before the bus arrives. ...
    (uk.rec.driving)
  • Re: Tragedy
    ... > I don't remember the exact figures but every time the provincial police ... I hope inspections are better in the UK:( ... About 5 years ago a bus crashed into a barrier at Bristol bus station when its brakes failed, making the national news. ...
    (uk.rec.cycling)