9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David Hogan dhog@lore.plan9.cs.su.oz.au
Subject: [9fans] Plan9 commercial licenses
Date: Wed,  1 Oct 1997 05:09:50 +1000	[thread overview]
Message-ID: <19970930190950.HJJWXFuLXUe10jrHYx6gCzisOVzy1xlfXbmuN8mRf4I@z> (raw)

> I got wedged trying to scribble into the Matrox MGA from a user process
> because I couldn't figure out how to wire a user page to a physical
> address that was higher than KZERO (0x8000000).. the PCI bios tends to
> wire my MGA framebuffer to 0xe800000 and segattach won't allow physaddrs 
> that high.  I *could* change the MGAs framebuffer addr but I'd prefer
> to let PCI bios set it up where it thinks is ok (as if pci bioses always
> worked right, heh).

Probably better to set the PCI base addrs yourself -- it's either that,
or else hack around with mmu.c.  I think that the current implementation
only maps 128M of physical space to KZERO; this costs 128K for the pte
mappings.  I think I might have read somewhere that you can map
``big pages'' with a single pte on the intel arch (at least with
recent versions thereof).  Either way, it seems advantageous to
keep the physical address allocation as contiguous as possible
(which means not going with the PCI BIOS allocations).

I have some code which allocates addresses for PCI and PnP
cards, but it's a bit of a mess.  I made this "/dev/cards"
interface which allows accessing the device registers from
user mode; not efficiently, though, you need segattach for
that.  FWIW, I have heard that Brazil has some ``improved
PCI support''.

Do you have aux/vga working with the Matrox Millenium?  I'd
be interested in that, I have one of these cards at work.




             reply	other threads:[~1997-09-30 19:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-30 19:09 David [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-10-01  7:45 elliott
1997-09-30 21:45 Eric
1997-09-30 21:19 jmk
1997-09-30 21:07 Eric
1997-09-30 20:02 Eric
1997-09-30 19:56 jmk
1997-09-30 19:11 Scott
1997-09-30 18:44 Eric
1997-09-30 18:20 Scott
1997-09-30 16:41 Eric
1997-09-30 16:23 Frank
1997-09-30 15:14 G.David

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=19970930190950.HJJWXFuLXUe10jrHYx6gCzisOVzy1xlfXbmuN8mRf4I@z \
    --to=9fans@9fans.net \
    /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;
as well as URLs for NNTP newsgroup(s).