Re: Test atomic operations on SPARC 32-bit

2017-12-09 Thread Petr Vorel
Hi Romain,

> 2017-12-09 0:45 GMT+01:00 Petr Vorel :
> 
> > Nice, thanks a lot! I might use kernel implementation, but this is handy.
> > (...)
> > I need threads only, no shmem...
> 
> The lib was designed to support GCC 4.8 (IIRC) and some C++11
> threading on S7 and S8. If that's what you need (except for the Solaris
> bit), it should be directly usable.
You're right. It's much easier to use it than spinlock implementation from 
Linux kernel.

I test it (in my github fork of) LTP project [1], but unfortunately some tests 
which heavy
test it fails.

$ ./test09
test09.c:53: INFO: Joining thread 63
test09.c:61: FAIL: Atomic does not have expected value

The tests just get slightly fewer incrementation than it should get (6373821 
instead of 640).

The implementation in github is for SPARC32, but I adjusted the code to test it 
on SPARC64
and (of course) it behaves the same.

Any idea what can be wrong?


Kind regards,
Petr

[1] https://github.com/pevik/ltp/commit/ec5fe3595e4efd6455a38c580c8a5461f840d96f
[2] https://github.com/pevik/ltp/blob/master/lib/newlib_tests/test09.c



Re: GRUB testers on SPARC needed

2017-12-09 Thread Frans van Berckel
On Fri, 2017-12-08 at 14:37 +0100, Frans van Berckel wrote:

> On Fri, 2017-12-08 at 14:28 +0100, John Paul Adrian Glaubitz wrote:
> > 
> > So, I assume this means GRUB works as expected?
> > 
> > Do you get the normal boot menu? Does everything work?
> 
> Yes, yes and yes.

About grub.conf the header section ...

### BEGIN /etc/grub.d/00_header ###

at

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_sun
insmod part_sun
insmod diskfilter
insmod mdraid1x
insmod ext2

The part_sun module is called twice.

Thanks,

Frans van Berckel