* [9fans] nvidia 7600GS works now
@ 2014-04-15 2:49 kokamoto
2014-04-15 4:13 ` kokamoto
2014-04-15 7:46 ` cinap_lenrek
0 siblings, 2 replies; 4+ messages in thread
From: kokamoto @ 2014-04-15 2:49 UTC (permalink / raw)
To: 9fans
I managed to work nVidia 7600GS (10de/0392) card for Plan 9.
As I don't know to whom I send this patch, and it's very small,
I decided to post it here.
/sys/src/cmd/aux/vga/nvidia.c should be changed as follows:
===========from here===========
208c208
< case 0x0390:
---
> case 0x0390: /* nvidia 7600 */
810c810
< nv->pramin[0x0818] = 0x0100805F;
---
> nv->pramin[0x0818] = 0x0100805F; /*WaitVSync not possible, if possible =0x01008062 */
929c929
< nv->pgraph[0x0608/4] |= 0x00100000;
---
> nv->pgraph[0x0608/4] |= nv->pfb[(0x0608/4)] | 0x00100000; /* K.Okamoto */
1013,1015c1013,1023
< } else {
< nv->pgraph[0x09F0/4] = nv->pfb[0x0200/4];
< nv->pgraph[0x09F4/4] = nv->pfb[0x0204/4];
---
> } else { /* K.Okamoto */
> if ((nv->did & 0xfff0) == 0x0090 ||
> (nv->did & 0xfff0) == 0x01D0 ||
> (nv->did & 0xfff0) == 0x0290 ||
> (nv->did & 0xfff0) == 0x0390) {
> nv->pgraph[0x0DF0/4] = nv->pfb[0x0200/4];
> nv->pgraph[0x0DF4/4] = nv->pfb[0x0204/4];
> } else {
> nv->pgraph[0x09F0/4] = nv->pfb[0x0200/4];
> nv->pgraph[0x09F4/4] = nv->pfb[0x0204/4];
> }
===========to here==============
Kenji
PS. nVidia 7950 card should work, too.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] nvidia 7600GS works now
2014-04-15 2:49 [9fans] nvidia 7600GS works now kokamoto
@ 2014-04-15 4:13 ` kokamoto
2014-04-15 7:46 ` cinap_lenrek
1 sibling, 0 replies; 4+ messages in thread
From: kokamoto @ 2014-04-15 4:13 UTC (permalink / raw)
To: 9fans
I'm using this for 1680x1050x32 Nanao S2231W
LCD deisplay.
The entry for this display in /lib/vgadb is as follows:
==========from here========
#
# EIZO Flexscan s2231W (LCD) Analog
#
s2231wA=1680x1050
defaultclock=146.25
shb=1784 ehb=1960 ht=2240
vrs=1053 vre=1059 vt=1089
hsync=- vsync=+
#
# EIZO Flexscan s2231w (LCD) Digital
#
s2231wD=1680x1050
defaultclock=119.0
shb=1728 ehb=1760 vt=1840
vrs=1053 vre=1059 vt=1080
hsync=+ vsync=-
=========to here==========
Kenji
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] nvidia 7600GS works now
2014-04-15 2:49 [9fans] nvidia 7600GS works now kokamoto
2014-04-15 4:13 ` kokamoto
@ 2014-04-15 7:46 ` cinap_lenrek
2014-04-15 12:44 ` kokamoto
1 sibling, 1 reply; 4+ messages in thread
From: cinap_lenrek @ 2014-04-15 7:46 UTC (permalink / raw)
To: 9fans
applied, thanks.
--
cinap
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] nvidia 7600GS works now
2014-04-15 7:46 ` cinap_lenrek
@ 2014-04-15 12:44 ` kokamoto
0 siblings, 0 replies; 4+ messages in thread
From: kokamoto @ 2014-04-15 12:44 UTC (permalink / raw)
To: 9fans
> applied, thanks.
You are well come!
Kenji
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-04-15 12:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-15 2:49 [9fans] nvidia 7600GS works now kokamoto
2014-04-15 4:13 ` kokamoto
2014-04-15 7:46 ` cinap_lenrek
2014-04-15 12:44 ` kokamoto
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).