9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: gene <ggarbutt@surewest.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] MBR and nvidia hangups
Date: Thu,  7 Aug 2003 08:39:02 +0000	[thread overview]
Message-ID: <1fcb340f.0308062229.1041e878@posting.google.com> (raw)
In-Reply-To: <87d6g5gd8e.fsf@rgristroph-austin.ath.cx>

rgr@sdf.lonestar.org (Rob Ristroph) wrote in message news:<87d6g5gd8e.fsf@rgristroph-austin.ath.cx>...

> However, no rio comes up:
> 
> init: starting /bin/rc
> aux/vga: nvidia: can't attach mmio segment
> dossrv: serving #s/dos
> rio: can't open display: initdisplay: /dev/draw/new: no frame buffer
> init: rc exit status: rio 13: display open
> 
> init: starting /bin/rc
> term%

I also ran into this problem installing on a system with a Creative
Labs Riva TNT board and was able to get rio working by making a change
in 9/pc/vganvidia.c nvidiapci:

/* Nvidia is good about backwards compatibility -- any did > 0x20 is
fine */
static Pcidev*
nvidiapci(void)
{
	Pcidev *p;

	p = nil;
	while((p = pcimatch(p, 0x10DE, 0)) != nil){
		if(p->did > 0x20 && p->ccrb == 3)	/* video card */
			return p;
	}
	return nil;
}

I believe the test should be:
                
                 if(p->did >= 0x20 && p->ccrb == 3) /* video card */

An earlier lib/vgadb shows the following for Nvidia

ctlr
        vid=0x10DE did=0x0020           # Riva TNT
        vid=0x10DE did=0x0028           # Riva TNT2
        vid=0x10DE did=0x0029           # Riva TNT2 Ultra
        vid=0x10DE did=0x002C           # Riva TNT2 Vanta
        vid=0x10DE did=0x002D           # Riva TNT2 M64
        vid=0x10DE did=0x00A0           # Riva TNT2 Integrated
        vid=0x10DE did=0x0100           # GeForce 256
        vid=0x10DE did=0x0101           # GeForce DDR
        vid=0x10DE did=0x0103           # Quadro
        vid=0x10DE did=0x0110           # GeForce2 MMX
        vid=0x10DE did=0x0111           # GeForce2 MMX DDR
        vid=0x10DE did=0x0112           # GeForce2 Go
        vid=0x10DE did=0x0113           # Quadro 2 MXR
        vid=0x10DE did=0x0150           # GeForce2 GTS
        vid=0x10DE did=0x0151           # GeForce2 GTS (rev 1)
        vid=0x10DE did=0x0152           # GeForce2 Ultra
        vid=0x10DE did=0x0153           # Quadro 2 Pro  
        vid=0x10DE did=0x0200           # GeForce3
        link=vga
        ctlr=nvidia linear=1
        hwgc=nvidiahwgc


-gwg


      parent reply	other threads:[~2003-08-07  8:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-20 20:22 Rob Ristroph
2003-07-22 11:51 ` David Presotto
2003-07-22 16:32   ` Rob Ristroph
2003-07-22 19:57     ` Re[2]: " Martin Althoff
2003-07-29 13:24       ` David Presotto
2003-07-29 13:29         ` David Presotto
2003-08-07  8:39 ` gene [this message]

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=1fcb340f.0308062229.1041e878@posting.google.com \
    --to=ggarbutt@surewest.net \
    --cc=9fans@cse.psu.edu \
    /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).