LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 06-01-2009, 11:22 AM   #1
webquinty
Member
 
Registered: Apr 2008
Location: Espaņa
Distribution: Suse
Posts: 210

Rep: Reputation: 32
Problem access IO memory PCI upper 1Mbyte ....


Hello,

I have developed a pci driver to access own pci card, but I have a bit problem. When I try to access IO memory 0x7fffc , PCI transaction is ok, but if I try to access IO memory 0x80000, or above, my pci card detect a configuration trasaction (IDSEL is ON while FRAME fall edge).
Base address our card is configurate to 2 MByte.

In my driver code, I follow this code: (more or less)
Code:
for (index = 0 ; index < NUM_BASE_ADDRESS ; index++)
{
	if ((io_base[index] != 0) && (io_length[index] != 0))
	{
		check_mem = check_mem_region (io_base[index], io_length[index]);
		if (check_mem < 0)
       		{
      			printk ("Allocation for I/O memory range bank %d is failed: Try other range\n", index);
       			return (check_mem);
       		} 
		retorno = request_mem_region(io_base[index], io_length[index], "LEICIF");
		if (retorno == NULL)
		{
			printk("<1>LEICIF: Error memory allocation bank%d\n", index);
			return -1;
		}
		ioremap_dir[index] = ioremap(io_base[index], io_length[index]);
	
		if (ioremap_dir[index] == NULL)
		{
			printk("<1>LEICIF: Error ioremap bank%d\n", index);
			return -1;
		}
	}
}
and here, it is code when I try to write.
Code:
iowrite32( 0x12345678 , ioremap_dir[BANK_1] + 0x80000);
any advice???

Last edited by webquinty; 06-01-2009 at 02:39 PM.
 
Old 06-02-2009, 04:52 AM   #2
webquinty
Member
 
Registered: Apr 2008
Location: Espaņa
Distribution: Suse
Posts: 210

Original Poster
Rep: Reputation: 32
Well,

finally, my colleague find a problem in FPGA IP core, and now, Linux driver can access address upper to 1 Mbyte.

I am sorry.

Best regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux shared memory segment access problem and x86 Virtual Memory layout. regmee Linux - Kernel 1 08-23-2008 12:11 AM
upper panel problem rahilmaknojia Linux - Desktop 1 08-02-2008 06:09 PM
kernel: how do pci-memory a conventional memory? vv40in Linux - Newbie 0 06-05-2008 02:55 AM
Gpio Twiddling In Embedded Linux? or How to access PCI memory space regs? jds-linux Programming 1 07-11-2004 02:17 AM
RH 8.0 Mapping Virtual Memory to get access to VMIC Reflective Memory PCI card. Merlin53 Linux - Hardware 0 05-05-2003 12:50 PM


All times are GMT -5. The time now is 11:41 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration