LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-20-2018, 06:00 AM   #1
venugatla
LQ Newbie
 
Registered: Jan 2018
Location: Bangalore
Posts: 4

Rep: Reputation: Disabled
PCI BAR0/1 memory mapping in Tile Architecture


We have connected an Ethernet switch device to Tilera processor using PCI interface. Tilera maps the internal registers of the switch BAR0 and BAR1 memory on its physical address space.

In general BAR0/BAR1 will be mapped in /sys/bus/pci/device/0000:xx:xx.x/resource0 and resource1...
(application accesses and configures the switch, using mmap of resource0/1 .)

Tilera Linux source code arch/tile/asm/pci.h, do not have HAVE_PCI_MMAP defined and does not provide a pci_mmap_page_range function. So in tileGx Linux we are not getting the resource0/1 in /sys/bus/pci/device/0000:xx:xx.x/.

Can someone suggest a different method to access the BAR0/1 in user space using mmap.
 
Old 04-20-2018, 06:04 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,145

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
Are you aware that support for the tile architecture is about to be dropped ?. Linus has flagged it for the next release he ships.
 
Old 04-20-2018, 06:18 AM   #3
venugatla
LQ Newbie
 
Registered: Jan 2018
Location: Bangalore
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Are you aware that support for the tile architecture is about to be dropped ?. Linus has flagged it for the next release he ships.
Yes, I know Linux-4.17 kernel dropping Old CPUs (including tile).
We are using a custom board with Tile processor, and Linux version-3.10.61. There is no planning of Linux upgradation on our custom board at this movement.
 
  


Reply

Tags
bar, kernel, mmap, pci



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 Virtual memory mapping to Board memory map !rajkums! Linux - Kernel 4 10-19-2008 12:27 PM
Help!?! RH 8 Memory Mapping -High Memory-Virtural Memory issues.. Merlin53 Linux - Hardware 2 06-18-2003 04:48 PM
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
Memory Mapping RH8 w/VMIC Memory Merlin53 Linux - Hardware 0 05-01-2003 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration