ccio-dma 64bit debug_init info
Hello Grant,
Quoted 5 lines · Joel Soete
Quoted 3 lines
Ah I thought (too quickly) that it could be the reason why:
...ccio-dma.c: failed to claim CCIO bus address space (ffffffff00000000,=
ffffffffffffffff)
Quoted 6 lines
That's a completely different issue.
It would be interesting to know why it's asking for that range. Where are the values of that range coming from?
(ie what is the origin offfffffff00000000value)
Here are more DBG_INIT() :-)
32bit kernel:
...
Found devices:
1. U2-IOA BC Runway Port at 0xfff88000 [8] { 12, 0xf, 0x580, 0x0000b }
2. UL 550 Lasi Core BA at 0xffd00000 [8/16] { 11, 0x0, 0x02f, 0x00081 }, additional addresses: 0xffd0c000 0xffc00000
3. UL 550 Lasi Core RS-232 at 0xffd05000 [8/16/4] { 10, 0x0, 0x02f, 0x000= 8c
}
4. UL 550 Core SCSI at 0xffd06000 [8/16/5] { 10, 0x0, 0x02f, 0x00082 }
5. UL 350 Core LAN (802.3) at 0xffd07000 [8/16/6] { 10, 0x0, 0x02f, 0x000= 8a
}
6. UL 550 Core Centronics at 0xffd02000 [8/16/0] { 10, 0x0, 0x02f, 0x0007= 4
}, additional addresses: 0xffd01000 0xffd03000
7. UL 550 Core PS/2 Port at 0xffd08000 [8/16/7] { 10, 0x0, 0x02f, 0x00084=
}
8. UL 550 Core PS/2 Port at 0xffd08100 [8/16/8] { 10, 0x0, 0x02f, 0x00084=
}
9. UL 550 Core Wax BA at 0xffe00000 [8/20] { 11, 0x0, 0x031, 0x0008e }
10. UL 550 Wax EISA BA at 0xfc000000 [8/20/5] { 11, 0x0, 0x031, 0x00090 }= ,
additional addresses: 0xffc88000
11. UL 550 Wax Core RS-232 at 0xffe02000 [8/20/2] { 10, 0x0, 0x031, 0x000= 8c
}
12. Bluefish Add-on FW-SCSI at 0xf1004000 [8/4] { 4, 0x1, 0x013, 0x00089 }
13. Bluefish Add-on FW-SCSI at 0xf1008000 [8/8] { 4, 0x1, 0x013, 0x00089 }
14. Bluefish Add-on FW-SCSI at 0xf100c000 [8/12] { 4, 0x1, 0x013, 0x00089=
}
15. U2-IOA BC GSC+ Port at 0xf103f000 [8/63] { 7, 0x1, 0x501, 0x0000c }
16. U2-IOA BC Runway Port at 0xfff8a000 [10] { 12, 0xf, 0x580, 0x0000b }
17. U2-IOA BC GSC+ Port at 0xf183f000 [10/63] { 7, 0x1, 0x501, 0x0000c }
18. UL proc 2-way U180 1M/1M at 0xfffa0000 [32] { 0, 0x0, 0x5aa, 0x00004 }
19. UL proc 2-way U180 1M/1M at 0xfffa2000 [34] { 0, 0x0, 0x5aa, 0x00004 }
20. Memory at 0xfffb1000 [49] { 1, 0x0, 0x07c, 0x00009 } CONFIG_SMP=3Dn ignoring additional CPUs
CPU: probe of 34 failed with error 1
CPU(s): 1 x PA8000 (PCX-U) at 180.000000 MHz
Setting cache flush threshold to 20 (1 CPUs online)
Found U2 at 0xfff88000ccio_probe() ioc_count 0ccio_probe() dev->hpa fff88000ccio_probe() ioc->ioc_regs fff88000ccio_ioc_init() num_physpages 65536
count_parisc_driver 2
iova_space_size 32768
limited iova_space_size 32768
iov_order 15
iova_space_size now bytes 134217728
ioc->pdir_size 262144ccio_ioc_init() hpa 0xfff88000 mem 256MB IOV 128MB (27 bits) ccio_ioc_init() pdir 10740000 size 40000
base 10740000ccio_ioc_init() res_size 0x1000ccio_ioc_init() res_map 106b7000 size 1000
chainid_shift 0x13ccio_init_resource(res=3D10712c68, name=3DGSC Bus [8/], ioaddr=3Dfff88078= )ccio_init_resource() res->start f1000000ccio_init_resource() res->end f17fffffccio_init_resource() res->end + 1 f1800000 ccio_init_resource() claimed CCIO bus address space (f1000000, f17fffff) ccio_init_resource(res=3D10712c84, name=3DGSC Bus [8/], ioaddr=3Dfff88060= )ccio_init_resource() res->start fc000000ccio_init_resource() res->end fff7ffffccio_init_resource() res->end + 1 fff80000 ccio_init_resource() claimed CCIO bus address space (fc000000, fff7ffff) Found U2 at 0xfff8a000ccio_probe() ioc_count 1ccio_probe() dev->hpa fff8a000ccio_probe() ioc->ioc_regs fff8a000ccio_ioc_init() num_physpages 65536
count_parisc_driver 2
iova_space_size 32768
limited iova_space_size 32768
iov_order 15
iova_space_size now bytes 134217728
ioc->pdir_size 262144ccio_ioc_init() hpa 0xfff8a000 mem 256MB IOV 128MB (27 bits) ccio_ioc_init() pdir 10780000 size 40000
base 10780000ccio_ioc_init() res_size 0x1000ccio_ioc_init() res_map 106b9000 size 1000
chainid_shift 0x13
ccio_init_resource(res=3D1071245c, name=3DGSC Bus [10/], ioaddr=3Dfff8a07=
8)ccio_init_resource() res->start f1800000ccio_init_resource() res->end f1ffffffccio_init_resource() res->end + 1 f2000000 ccio_init_resource() claimed CCIO bus address space (f1800000, f1ffffff) ccio_init_resource(res=3D10712478, name=3DGSC Bus [10/], ioaddr=3Dfff8a06=
0)ccio_init_resource() res->start 00000000ccio_init_resource() res->end ffffffffccio_init_resource() res->end + 1 00000000
Lasi version 0 at 0xffd00000 found.
...
64bit kernel:
Found devices:
1. U2-IOA BC Runway Port at 0xfffffffffff88000 [8] { 12, 0xf, 0x580, 0x00= 00b
}
2. UL 550 Lasi Core BA at 0xffffffffffd00000 [8/16] { 11, 0x0, 0x02f, 0x0= 0081
}, additional addresses: 0xffffffffffd0c000 0xffffffffffc00000
3. UL 550 Lasi Core RS-232 at 0xffffffffffd05000 [8/16/4] { 10, 0x0, 0x02= f,0x0008c }
4. UL 550 Core SCSI at 0xffffffffffd06000 [8/16/5] { 10, 0x0, 0x02f, 0x00= 082
}
5. UL 350 Core LAN (802.3) at 0xffffffffffd07000 [8/16/6] { 10, 0x0, 0x02= f,0x0008a }
6. UL 550 Core Centronics at 0xffffffffffd02000 [8/16/0] { 10, 0x0, 0x02f= ,0x00074 }, additional addresses: 0xffffffffffd01000 0xffffffffffd03000
7. UL 550 Core PS/2 Port at 0xffffffffffd08000 [8/16/7] { 10, 0x0, 0x02f,=
0x00084 }
8. UL 550 Core PS/2 Port at 0xffffffffffd08100 [8/16/8] { 10, 0x0, 0x02f,=
0x00084 }
9. UL 550 Core Wax BA at 0xffffffffffe00000 [8/20] { 11, 0x0, 0x031, 0x00= 08e
}
10. UL 550 Wax EISA BA at 0xfffffffffc000000 [8/20/5] { 11, 0x0, 0x031, 0= x00090
}, additional addresses: 0xffffffffffc88000
11. UL 550 Wax Core RS-232 at 0xffffffffffe02000 [8/20/2] { 10, 0x0, 0x03= 1,0x0008c }
12. Bluefish Add-on FW-SCSI at 0xfffffffff1004000 [8/4] { 4, 0x1, 0x013, 0x00089 }
13. Bluefish Add-on FW-SCSI at 0xfffffffff1008000 [8/8] { 4, 0x1, 0x013, 0x00089 }
14. Bluefish Add-on FW-SCSI at 0xfffffffff100c000 [8/12] { 4, 0x1, 0x013,=
0x00089 }
15. U2-IOA BC GSC+ Port at 0xfffffffff103f000 [8/63] { 7, 0x1, 0x501, 0x0= 000c
}
16. U2-IOA BC Runway Port at 0xfffffffffff8a000 [10] { 12, 0xf, 0x580, 0x= 0000b
}
17. U2-IOA BC GSC+ Port at 0xfffffffff183f000 [10/63] { 7, 0x1, 0x501, 0x= 0000c
}
18. UL proc 2-way U180 1M/1M at 0xfffffffffffa0000 [32] { 0, 0x0, 0x5aa, 0x00004 }
19. UL proc 2-way U180 1M/1M at 0xfffffffffffa2000 [34] { 0, 0x0, 0x5aa, 0x00004 }
20. Memory at 0xfffffffffffb1000 [49] { 1, 0x0, 0x07c, 0x00009 } CONFIG_SMP=3Dn ignoring additional CPUs
CPU: probe of 34 failed with error 1
CPU(s): 1 x PA8000 (PCX-U) at 180.000000 MHz
Setting cache flush threshold to e9f80 (1 CPUs online)
Found U2 at 0xfffffffffff88000ccio_probe() ioc_count 0ccio_probe() dev->hpa fffffffffff88000ccio_probe() ioc->ioc_regs fffffffffff88000ccio_ioc_init() num_physpages 65536
count_parisc_driver 2
iova_space_size 32768
limited iova_space_size 32768
iov_order 15
iova_space_size now bytes 134217728
ioc->pdir_size 262144ccio_ioc_init() hpa 0xfffffffffff88000 mem 256MB IOV 128MB (27 bits) ccio_ioc_init() pdir 0000000010a80000 size 40000
base 0000000010a80000ccio_ioc_init() res_size 0x1000ccio_ioc_init() res_map 00000000109e4000 size 1000
chainid_shift 0x13ccio_init_resource(res=3D00000000109e3858, name=3DGSC Bus [8/], ioaddr=3D= fffffffffff88078)ccio_init_resource() res->start fffffffff1000000 ccio_init_resource() res->end fffffffff17fffff ccio_init_resource() res->end + 1 fffffffff1800000 ccio_init_resource() claimed CCIO bus address space (fffffffff1000000, ff= fffffff17fffff)ccio_init_resource(res=3D00000000109e3890, name=3DGSC Bus [8/], ioaddr=3D= fffffffffff88060)ccio_init_resource() res->start fffffffffc000000 ccio_init_resource() res->end fffffffffff7ffff ccio_init_resource() res->end + 1 fffffffffff80000 ccio_init_resource() claimed CCIO bus address space (fffffffffc000000, ff= fffffffff7ffff)
Found U2 at 0xfffffffffff8a000ccio_probe() ioc_count 1ccio_probe() dev->hpa fffffffffff8a000ccio_probe() ioc->ioc_regs fffffffffff8a000ccio_ioc_init() num_physpages 65536
count_parisc_driver 2
iova_space_size 32768
limited iova_space_size 32768
iov_order 15
iova_space_size now bytes 134217728
ioc->pdir_size 262144ccio_ioc_init() hpa 0xfffffffffff8a000 mem 256MB IOV 128MB (27 bits) ccio_ioc_init() pdir 0000000010ac0000 size 40000
base 0000000010ac0000ccio_ioc_init() res_size 0x1000ccio_ioc_init() res_map 00000000109e6000 size 1000
chainid_shift 0x13ccio_init_resource(res=3D00000000109e5858, name=3DGSC Bus [10/], ioaddr=3D= fffffffffff8a078)ccio_init_resource() res->start fffffffff1800000 ccio_init_resource() res->end fffffffff1ffffff ccio_init_resource() res->end + 1 fffffffff2000000 ccio_init_resource() claimed CCIO bus address space (fffffffff1800000, ff= fffffff1ffffff)ccio_init_resource(res=3D00000000109e5890, name=3DGSC Bus [10/], ioaddr=3D= fffffffffff8a060)ccio_init_resource() res->start ffffffff00000000 ccio_init_resource() res->end ffffffffffffffff ccio_init_resource() res->end + 1 0000000000000000 ccio_init_resource() failed to claim CCIO bus address space (ffffffff0000= 0000,
ffffffffffffffff)ccio_init_resource() claimed CCIO bus address space (ffffffff00000000, ff= ffffffffffffff)
Lasi version 0 at 0xffffffffffd00000 found.
even thought I have no doc to now what would means:
res->start =3D (unsigned long)(signed) READ_U32(ioaddr) << 16; (=3D=
=3D
0x0 in 32bits)
res->end =3D (unsigned long)(signed) (READ_U32(ioaddr + 4) << 16)= -
1; (=3D=3D 0xffffffff in 32bits too)
but seems that test:
if (res->end + 1 =3D=3D res->start)
is a stuff which not love 64bit :-(
Any idea?
Thanks,
Joel
PS: I also noticed something weird versus my c110:
Found devices:
1. U2-IOA BC Runway Port at 0xfff8a000 [10] { 12, 0x7, 0x580, 0x0000b }
...
4. U2-IOA BC Runway Port at 0xfff88000 [8] { 12, 0x7, 0x580, 0x0000b }
...
Found U2 at 0xfff8a000
...
ccio_init_resource(res=3D10be2434, name=3DGSC Bus [10/], ioaddr=3Dfff8a07=
8)ccio_init_resource() claimed CCIO bus address space (f3fc0000, f3ffffff) ccio_init_resource(res=3D10be2450, name=3DGSC Bus [10/], ioaddr=3Dfff8a06=
0)ccio_init_resource() claimed CCIO bus address space (f4000000, f7ffffff) Found U2 at 0xfff88000
...ccio_init_resource(res=3D10becc34, name=3DGSC Bus [8/], ioaddr=3Dfff88078= )ccio_init_resource() claimed CCIO bus address space (f3f80000, f3fbffff) ccio_init_resource(res=3D10becc50, name=3DGSC Bus [8/], ioaddr=3Dfff88060= )ccio_init_resource() claimed CCIO bus address space (f8000000, ffe3ffff)
...
So there are well (2*2) resources initialized.
OTC on the d380 (32bit kernel)
Found devices:
1. U2-IOA BC Runway Port at 0xfff88000 [8] { 12, 0xf, 0x580, 0x0000b }
...
16. U2-IOA BC Runway Port at 0xfff8a000 [10] { 12, 0xf, 0x580, 0x0000b }
...
Found U2 at 0xfff88000
...ccio_init_resource(res=3D10712c68, name=3DGSC Bus [8/], ioaddr=3Dfff88078= )ccio_init_resource() claimed CCIO bus address space (f1000000, f17fffff) ccio_init_resource(res=3D10712c84, name=3DGSC Bus [8/], ioaddr=3Dfff88060= )ccio_init_resource() claimed CCIO bus address space (fc000000, fff7ffff) Found U2 at 0xfff8a000
...
ccio_init_resource(res=3D1071245c, name=3DGSC Bus [10/], ioaddr=3Dfff8a07=
8)ccio_init_resource() claimed CCIO bus address space (f1800000, f1ffffff) ccio_init_resource(res=3D10712478, name=3DGSC Bus [10/], ioaddr=3Dfff8a06=
0)
...
if I well understand only 3 resources initialized?
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
Quoted 1 line · Joel Soete
Quoted 1 line
Quoted 1 line
ccio-dma.c: failed to claim CCIO bus address space (ffffffff00000000,ffffffffffffffff)
...
Quoted 4 lines
Quoted 2 lines
It would be interesting to know why it's asking for that range. Where are the values of that range coming from?
32bit kernel:
...
Quoted 10 lines
ccio_init_resource(res=10712c68, name=GSC Bus [8/], ioaddr=fff88078)ccio_init_resource()res->startf1000000ccio_init_resource()res->endf17fffffccio_init_resource()res->end+ 1f1800000ccio_init_resource()claimed CCIO bus address space (f1000000,f17fffff)ccio_init_resource(res=10712c84, name=GSC Bus [8/], ioaddr=fff88060)ccio_init_resource()res->startfc000000ccio_init_resource()res->endfff7ffffccio_init_resource()res->end+ 1fff80000ccio_init_resource()claimed CCIO bus address space (fc000000,fff7ffff)
...
Ah...I forgot that U2/Uturn have two sets of range registers. One per GSC bus....
BTW, PDC sets all of this address stuff up AFAIK.
...
Quoted 11 lines
ccio_init_resource(res=1071245c, name=GSC Bus [10/], ioaddr=fff8a078)ccio_init_resource()res->startf1800000ccio_init_resource()res->endf1ffffffccio_init_resource()res->end+ 1f2000000ccio_init_resource()claimed CCIO bus address space (f1800000,f1ffffff)ccio_init_resource(res=10712478, name=GSC Bus [10/], ioaddr=fff8a060)ccio_init_resource()res->start00000000ccio_init_resource()res->endffffffffccio_init_resource()res->end+ 1 00000000
Lasi version 0 at0xffd00000found.
...
This last one seems to be disabled.
That's what this code in ccio_init_resource() is testing for:
if (res->end + 1 == res->start)
return;/me puts on his fortune teller hat and looks in his crystal ball:
"Joel will be submitting a patch shortly...You must add a comment explaining WTF this test is doing..."
Quoted 1 line
64bit kernel:
...
Quoted 10 lines
ccio_init_resource(res=00000000109e3858, name=GSC Bus [8/], ioaddr=fffffffffff88078)ccio_init_resource()res->startfffffffff1000000ccio_init_resource()res->endfffffffff17fffffccio_init_resource()res->end+ 1fffffffff1800000ccio_init_resource()claimed CCIO bus address space (fffffffff1000000,fffffffff17fffff)ccio_init_resource(res=00000000109e3890, name=GSC Bus [8/], ioaddr=fffffffffff88060)ccio_init_resource()res->startfffffffffc000000ccio_init_resource()res->endfffffffffff7ffffccio_init_resource()res->end+ 1fffffffffff80000ccio_init_resource()claimed CCIO bus address space (fffffffffc000000,fffffffffff7ffff)
No problem with the first one.
...
Quoted 9 lines
ccio_init_resource(res=00000000109e5858, name=GSC Bus [10/], ioaddr=fffffffffff8a078)ccio_init_resource()res->startfffffffff1800000ccio_init_resource()res->endfffffffff1ffffffccio_init_resource()res->end+ 1fffffffff2000000ccio_init_resource()claimed CCIO bus address space (fffffffff1800000,fffffffff1ffffff)ccio_init_resource(res=00000000109e5890, name=GSC Bus [10/], ioaddr=fffffffffff8a060)ccio_init_resource()res->startffffffff00000000ccio_init_resource()res->endffffffffffffffffccio_init_resource()res->end+ 1 0000000000000000
This fails because io_io_low/high registers in reality are only 16 bits. The upper 16 bits are hardcoded to 1's.
The conversion of res->start to 64-bit is wrong for this one case:
res->start = (unsigned long)(signed) __raw_readl(ioaddr) << 16;
__raw_readl(ioaddr) returns 0xffff0000.0xffff0000 << 16 should be 0 but it's not since this is 64-bit. That line should read something like:
res->start = (unsigned long) ((signed) __raw_readl(ioaddr) << 16);
And please add a comment here too that parenthesis *do* matter. Then it should fail the same test that I point out above....
Quoted 2 lines
ccio_init_resource()failed to claim CCIO bus address space (ffffffff00000000, ffffffffffffffff)
...and we wouldn't even try to acquire this range.
Quoted 4 lines
ccio_init_resource()claimed CCIO bus address space (ffffffff00000000, ffffffffffffffff) Lasi version 0 at0xffffffffffd00000found.even thought I have no doc to now what would means:
Quoted 8 lines
res->start = (unsigned long)(signed) READ_U32(ioaddr) << 16; (== 0x0 in 32bits) res->end = (unsigned long)(signed) (READ_U32(ioaddr + 4) << 16) -1; (==
0xffffffffin 32bits too)but seems that test:
if (res->end + 1 == res->start)is a stuff which not love 64bit :-(
You almost got it right.
grant
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux