From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ling Su" To: "Nick Garnett" , "Jonathan Larmour" Cc: Subject: Re: [ECOS] How to access PCI memory(HELP).... Date: Tue, 12 Sep 2000 16:56:00 -0000 Message-id: <003301c01d15$784d8980$1201a8c0@crusoe> References: <003401c019c5$26092880$1201a8c0@crusoe> <39BC46ED.987DB46B@redhat.com> <39BC47E6.B8579E55@redhat.com> <007201c01ba1$dcf6cba0$89622a3f@snvl1.sfba.home.com> <39BC5F8F.695822B4@redhat.com> <001e01c01c20$a6e1c900$0201a8c0@raccoon> <001701c01ced$8aed0570$1201a8c0@crusoe> X-SW-Source: 2000-09/msg00176.html > > I still have question on why 4372 will occupies the first 256Mb of the PCI > space, where we initialize this setting, can we decrease the space size. > Currently I change to following configuration, > > <1>. HAL_PCI_PHYSICAL_MEMORY_BASE to 0x4000_0000 > <2>. HAL_PCI_ALLOC_BASE_MEMORY to 0x8000_0000 > <3>. NUMB_PG to 8 > > I can observe signal from PCI bus by using Logic Analyzer, of course, I > wonder if this will conflict with 4372 address space. But anyway right now I > can see signals on PCI pci bus, I haven't fully verify this. I doubt it will > have some conflict with serial port debugging if 4372 also mapps to this > space. > Hi, Dear Nick and Jifl, After carefully examine our FPGA PCI bus design and monitor the signal on PCI bus, I found both south bridge(4372) and our PCI board drive the PCI bus. I am thinking of change the address base of 4372. I found the 256MB address is occupied by I/O memory space configured by N2IOADD, which is set to 0x8000_0000 originally. I changed it to 0x9000_0000, and keep following, <1>. HAL_PCI_PHYSICAL_MEMORY_BASE to 0x4000_0000 <2>. HAL_PCI_ALLOC_BASE_MEMORY to 0x8000_0000 <3>. NUMB_PG to 16 <4>. N2IOADD to 0x9000_0000 Unfortuately the PCI still have multiple target when I access 0x8000_xxxx address. There is no segment fault as before, but I can not actually access my board due to some timing problem. Do you have any idea on why the Segment Falut occurs if I move the PCI address space to ox9000_0000(physical address, CPU address 0xD000_0000), I have no clue. I have a tiny request, hope you can help me out, can you give me the memory map for eCos in vrc4373 case, I am not sure if this is secrect, but I do have trouble to figure it out completely although I am use the source now. :-) More specifically, I'd like to know a following table, Resource Physical Address Virtual Address -------------------------------------------------------------------- Base Memory X X SIMM/DIMM X X PCI-I/O Space X X PCI Mem Space X X (*) VRC 4373 X X (*) VRC 4372 X X (*) Z8530 UART X X (*) Z8536 Timer X X 8255 Parallel X X 7-segment Display X X (*) --------------------------------------------------------------------- (*) are more important, if you don't have time, just let me know them will be fine. Thanks a lot for you time and I appreciate any assiatance you can offer. Ling is poor, always meet some trouble out of prediction, please help him. :-) Best Regards, -Ling