From: GatoLoko <gatoloko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [Bug 33967] No image on a VGA screen attached to DVI with a dvi to vga adaptor on NVa3 card..
Date: Sun, 13 Feb 2011 04:11:18 +0100 [thread overview]
Message-ID: <4D574BD6.603@gmail.com> (raw)
In-Reply-To: <20110207203446.94A0D13004E-4GnqB8vgsbnwRzGw0Gvu8Q/tdpCO6/zZ@public.gmane.org>
[-- Attachment #1.1.1: Type: text/plain, Size: 465 bytes --]
I got bored, and started messing with the code. Found a
apply_dcb_connector_quirks function on nouveau_bios.c, made by Ben
Skeggs to fix a similar problem I had with a different card, and seems
pretty easy to extend it for this new card. But my C skills are very
rusty and it feels "too easy" to be true, so now it scares me to build
and run my own patch.
Can somebody have a look at it and hit me in the head if I'm doing it wrong?
--
GatoLoko
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.2: nouveau_gt-240x-ya_dcb_quirk.patch --]
[-- Type: text/x-patch; name="nouveau_gt-240x-ya_dcb_quirk.patch", Size: 649 bytes --]
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c
index 7b7a184..d37ddc9 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bios.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bios.c
@@ -5948,6 +5948,13 @@ apply_dcb_connector_quirks(struct nvbios *bios, int idx)
if (cte->type == DCB_CONNECTOR_HDMI_1)
cte->type = DCB_CONNECTOR_DVI_I;
}
+ /* XFX GT-240X-YA */
+ if (nv_match_device(dev, 0x0ca3, 0x1682, 0x3003)) {
+ if (cte->type == DCB_CONNECTOR_DVI_I_1)
+ cte->type = DCB_CONNECTOR_VGA;
+ if (cte->type == DCB_CONNECTOR_VGA_1)
+ cte->type = DCB_CONNECTOR_DVI_I;
+ }
}
static void
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
[-- Attachment #2: Type: text/plain, Size: 181 bytes --]
_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
next prev parent reply other threads:[~2011-02-13 3:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-06 17:09 [Bug 33967] New: No image on a VGA screen attached to DVI with a dvi to vga adaptor on NVa3 card bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
[not found] ` <bug-33967-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2011-02-06 17:11 ` [Bug 33967] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2011-02-06 17:11 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2011-02-06 17:12 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2011-02-07 13:13 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2011-02-07 20:34 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
[not found] ` <20110207203446.94A0D13004E-4GnqB8vgsbnwRzGw0Gvu8Q/tdpCO6/zZ@public.gmane.org>
2011-02-13 3:11 ` GatoLoko [this message]
2011-02-13 15:57 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2011-02-14 1:51 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2011-02-14 2:29 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2011-02-14 3:42 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2011-02-14 3:45 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2011-02-14 15:13 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2011-03-19 20:30 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2011-12-05 21:29 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
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=4D574BD6.603@gmail.com \
--to=gatoloko-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.