Date: Sat, 21 May 2011 01:34:02 +0200 From: Damjan Marion <damjan.marion@gmail.com> To: freebsd-arm@freebsd.org, freebsd-hackers@freebsd.org Subject: vm_fault when accessing PCI address space Message-ID: <D209676D-CDA8-4490-8965-86488C41D404@gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, I'm made some progress on porting existing marvell orion ARM code=20 to work on 88F5181L SoC which have embedded PCI controller. PCI driver detects resources and recognizes Atheros wlan card,=20 however when driver tries to access 1st register with bus_space_write_4 vm_fault happens: vm_fault(0xc0e4f000, e8007000, 2, 0) -> 1 Fatal kernel mode data abort: 'Translation Fault (S)' trapframe: 0xc0d3faa4 FSR=3D00000005, FAR=3De800704c, spsr=3D600000d3 r0 =3D00000000, r1 =3De8000000, r2 =3D0000704c, r3 =3D00000003 r4 =3Dc13cd000, r5 =3Dc0c4bd60, r6 =3Dc0bece04, r7 =3Dc12dd000 r8 =3D00000023, r9 =3Dc0d074c8, r10=3Dc0d3fba4, r11=3Dc0d3fb00 r12=3D00000000, ssp=3Dc0d3faf0, slr=3Dc095f830, pc =3Dc0bece04 [ thread pid 0 tid 100000 ] Stopped at generic_bs_w_4: str r3, [r1, r2] 0xe8000000 is PCI mem space. I can see that PCI driver (mv_pci.c) = allocates this resource: pcib0: <Marvell Integrated PCI/PCI-E Controller> mem = 0xf1030000-0xf1031fff irq 0 on fdtbus0 pci0: <PCI bus> on pcib0 mv_pcib_alloc_resource: start=3D0xe8000000 end=3D0xe800ffff = count=3D0x00010000 flags=3D0x00 What can be the reason for this vm_fault?=20 Thanks for any hint or idea, Damjan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D209676D-CDA8-4490-8965-86488C41D404>