public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: JDeas <jdeas@jadsystems.com>
To: linux-kernel@vger.kernel.org
Subject: Mapping PCI video memory with remap_page_range
Date: 25 Sep 2003 08:37:36 -0700	[thread overview]
Message-ID: <1064504256.2328.10.camel@HD1> (raw)

I am having problems using the remap_page_range on
a PCI card. I am using a driver that claims to have
worked on RH7.2 but nothing else.

I have setup a RH9.0 (2.4.20-6smp kernel) and made
the changes needed to compile the driver. I have
managed ioctl access and am able to talk and configure
the card with the exception of the mmaped areas
(video buffer and alternate mapped registers).

The only change I made related to this in the old driver
was to change the remap_page_range(). The old version did not supply the
vma struct like needed by the new kernel so I
added it along with a VM_IO flag.(side note: should the VM_IO flag be
used for iomem?)

I inserted printk commands and found the following remap
was being executed.

remap_page_range(421330000,f0000000,4000000,0x27)
I also found the vma->Flag = 840fb


End results were this. Running a program to keep the
driver open, I was able to get the following info
(/proc/[pid]/maps)
42133000-46133000 rw-s 00000000

This seems wrong. The size is right but the mapped address shows 0
Should I not see f0000000? The /proc files (iomem and pci) both show the
card and its resources where requested. 

What else should I check?

Regards,
JD


                 reply	other threads:[~2003-09-25 15:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1064504256.2328.10.camel@HD1 \
    --to=jdeas@jadsystems.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox