Re: [sparc64] mkfs.btrfs bus error / align issue?

2016-07-29 Thread Anatoly Pugachev
On Fri, Jul 29, 2016 at 3:41 PM, David Sterba wrote: > On Thu, Jul 28, 2016 at 11:34:58PM +0300, Anatoly Pugachev wrote: >> well, I think mkfs.btrfs is fixed, since I just tested it with : > > Good news, thanks. > > quick stats of the TPC messages: > > 23

Re: [sparc64] mkfs.btrfs bus error / align issue?

2016-07-29 Thread David Sterba
On Thu, Jul 28, 2016 at 11:34:58PM +0300, Anatoly Pugachev wrote: > well, I think mkfs.btrfs is fixed, since I just tested it with : Good news, thanks. > Not sure what we need to do with sparc64 btrfs module TPC messages. > Probably fill kernel bugzilla report? Yes please. > [1]

Re: [sparc64] mkfs.btrfs bus error / align issue?

2016-07-29 Thread John Paul Adrian Glaubitz
On 07/28/2016 08:04 PM, David Sterba wrote: > And I've fixed it that way, now pushed to devel ("btrfs-progs: fix > unaligned access in raid6 calculations" [1]). Would be great if you or > Anatoly can test it so I can add it to the 4.7 release (ETA tomorrow). Awesome, thank you very much! Much

Re: [sparc64] mkfs.btrfs bus error / align issue?

2016-07-29 Thread Anatoly Pugachev
On Thu, Jul 28, 2016 at 11:34 PM, Anatoly Pugachev wrote: > On Thu, Jul 28, 2016 at 9:04 PM, David Sterba wrote: >> On Thu, Jul 28, 2016 at 04:28:41PM +0200, John Paul Adrian Glaubitz wrote: >>> On 07/28/2016 04:25 PM, John Paul Adrian Glaubitz wrote: >>> >

Re: [sparc64] mkfs.btrfs bus error / align issue?

2016-07-28 Thread Anatoly Pugachev
On Thu, Jul 28, 2016 at 9:04 PM, David Sterba wrote: > On Thu, Jul 28, 2016 at 04:28:41PM +0200, John Paul Adrian Glaubitz wrote: >> On 07/28/2016 04:25 PM, John Paul Adrian Glaubitz wrote: >> > On 07/28/2016 04:01 PM, Anatoly Pugachev wrote: >> >> Program received signal SIGBUS,

Re: [sparc64] mkfs.btrfs bus error / align issue?

2016-07-28 Thread Patrick Baggett
> Oh, and you will somehow need to guard this with #if BITS_PER_LONG == 64 ... > #else ... #endif respectively since you need to use different versions > (64 vs. 32) of get_unaligned_* depending on the size of unative_t. Maybe a get_unaligned_unative() would be better so that preprocessor fun is

Re: [sparc64] mkfs.btrfs bus error / align issue?

2016-07-28 Thread John Paul Adrian Glaubitz
On 07/28/2016 04:25 PM, John Paul Adrian Glaubitz wrote: > On 07/28/2016 04:01 PM, Anatoly Pugachev wrote: >> Program received signal SIGBUS, Bus error. >> 0x00177dfc in raid6_gen_syndrome (disks=4, bytes=65536, >> ptrs=0x2c4510) at raid6.c:87 >> 87 wq0 = wp0 =

Re: [sparc64] mkfs.btrfs bus error / align issue?

2016-07-28 Thread John Paul Adrian Glaubitz
On 07/28/2016 04:01 PM, Anatoly Pugachev wrote: > Program received signal SIGBUS, Bus error. > 0x00177dfc in raid6_gen_syndrome (disks=4, bytes=65536, > ptrs=0x2c4510) at raid6.c:87 > 87 wq0 = wp0 = *(unative_t *)[z0][d+0*NSIZE]; That should be easy to fix. Just make

Re: [sparc64] mkfs.btrfs bus error / align issue?

2016-07-28 Thread Anatoly Pugachev
On Thu, Jul 28, 2016 at 3:24 PM, David Sterba wrote: > On Thu, Jul 28, 2016 at 02:09:03PM +0200, John Paul Adrian Glaubitz wrote: >> Hi David! >> >> On 07/28/2016 01:58 PM, Anatoly Pugachev wrote: >> >> Can you please test with the current 'devel' branch? Fixed by the patch >> >>

Re: [sparc64] mkfs.btrfs bus error / align issue?

2016-07-28 Thread David Sterba
On Thu, Jul 28, 2016 at 02:09:03PM +0200, John Paul Adrian Glaubitz wrote: > Hi David! > > On 07/28/2016 01:58 PM, Anatoly Pugachev wrote: > >> Can you please test with the current 'devel' branch? Fixed by the patch > >> "btrfs-progs: fix unaligned access calculating raid56 data" (depends on > >>

Re: [sparc64] mkfs.btrfs bus error / align issue?

2016-07-28 Thread John Paul Adrian Glaubitz
Hi David! On 07/28/2016 01:58 PM, Anatoly Pugachev wrote: >> Can you please test with the current 'devel' branch? Fixed by the patch >> "btrfs-progs: fix unaligned access calculating raid56 data" (depends on >> another patch in devel). Thanks. Are you sure you pushed these changes? I don't see

Re: [sparc64] mkfs.btrfs bus error / align issue?

2016-07-28 Thread John Paul Adrian Glaubitz
On 07/28/2016 01:58 PM, Anatoly Pugachev wrote: > but where do I get -devel branch of btrfs-progs? > I just tried git://repo.or.cz/btrfs-progs-unstable/devel.git , but > still seeing last commit in it: glaubitz@ikarus:~/upstream/devel$ git checkout devel Branch devel set up to track remote branch

Re: [sparc64] mkfs.btrfs bus error / align issue?

2016-07-28 Thread Anatoly Pugachev
On Thu, Jul 28, 2016 at 12:44 PM, David Sterba wrote: > On Wed, Jul 27, 2016 at 09:56:09PM +0200, David Sterba wrote: >> On Wed, Jul 27, 2016 at 04:59:27PM +0300, Anatoly Pugachev wrote: >> > Hello! >> > >> > Running xfstests suite, got in logs mkfs.btrfs bus error, debugging it

Re: [sparc64] mkfs.btrfs bus error / align issue?

2016-07-27 Thread Patrick Baggett
On Wed, Jul 27, 2016 at 3:40 PM, John Paul Adrian Glaubitz wrote: > On 07/27/2016 03:59 PM, Anatoly Pugachev wrote: >> Program received signal SIGBUS, Bus error. >> 0x0015e160 in write_raid56_with_parity (info=0x2b17b0, >> eb=0x2c7fe0, multi=0x2c2870,

Re: [sparc64] mkfs.btrfs bus error / align issue?

2016-07-27 Thread John Paul Adrian Glaubitz
On 07/27/2016 03:59 PM, Anatoly Pugachev wrote: > Program received signal SIGBUS, Bus error. > 0x0015e160 in write_raid56_with_parity (info=0x2b17b0, > eb=0x2c7fe0, multi=0x2c2870, stripe_len=65536, raid_map=0x2c2570) at > volumes.c:2156 > 2156*(unsigned

[sparc64] mkfs.btrfs bus error / align issue?

2016-07-27 Thread Anatoly Pugachev
Hello! Running xfstests suite, got in logs mkfs.btrfs bus error, debugging it shows the following : mator@nvg5120:~/btrfs-progs$ git log -1 --oneline 40650bf Btrfs progs v4.6.1 root@nvg5120:/home/mator/xfstests# gdb GNU gdb (Debian 7.11.1-2) 7.11.1 (gdb) file /opt/btrfs/bin/mkfs.btrfs Reading