All of lore.kernel.org
 help / color / mirror / Atom feed
From: Francisco Jerez <currojerez-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
To: "Grzesiek Sójka" <pld-t9zbU3WrWHI@public.gmane.org>
Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: GeForce FX5200 dual DVI & Samsung 204b
Date: Tue, 05 Oct 2010 14:55:42 +0200	[thread overview]
Message-ID: <87fwwkhk8h.fsf@riseup.net> (raw)
In-Reply-To: <4CAAFB3A.8010804-t9zbU3WrWHI@public.gmane.org> ("Grzesiek Sójka"'s message of "Tue, 05 Oct 2010 12:17:30 +0200")


[-- Attachment #1.1.1: Type: text/plain, Size: 1735 bytes --]

Grzesiek Sójka <pld-t9zbU3WrWHI@public.gmane.org> writes:

> On 10/02/10 15:31, Francisco Jerez wrote:
>> Ah, I think you're hitting the bandwidth limitation of the nv34
>> integrated TMDS transmitter. The attached patch should help with the
>> console modesetting problem, but you'll still need to set the modelines
>> manually (and force panel rescaling) if you want to go up to 1600x1200,
>> because your GPU *cannot* handle the video mode your monitor is asking
>> for.
>
> Your patch works fine. Now I have clear image at both displays. Only
> disadvantage is that the resolution is 1280x1024 (PixClk 135MHz). So I
> was wondering if it is possible to force particular modeline (by
> editing the kernel source tree??). The mode:
>
> Modeline "1600x1200_def" 144  1600 1628 1788 1920  1200 1201 1204 1250
>
> works fine with the XServer. Is it possible to force it at the console??
>
You could try to force a reduced blanking mode in the kernel command
line like: "video=DVI-I-1:1600x1200RM". But it isn't going to work with
GPU rescaling, the attached patch (on top of the previous one) will make
the kernel detect that, and automatically fall back to panel rescaling.

> Thanks again!
>
> PS. I'm afraid that my system is not very stable when the AGP support
> is turned on both using the nouveau kernel source tree and the PLD
> patched 2.6.35-5 version with an extra amd-k7-agp patch. The Xserver
> uses the driver:
Unstable? How? What's the problem?

> [    38.842] (II) Module nouveau: vendor="X.Org Foundation"
> [    38.842]    compiled for 1.9.0, module version = 0.0.16
> [    38.842]    Module class: X.Org Video Driver
> [    38.842]    ABI class: X.Org Video Driver, version 8.0


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.2: nouveau_force_panel_scaling.patch --]
[-- Type: text/x-diff, Size: 1250 bytes --]

diff --git a/drivers/gpu/drm/nouveau/nv04_dfp.c b/drivers/gpu/drm/nouveau/nv04_dfp.c
index c936403..0d6ee18 100644
--- a/drivers/gpu/drm/nouveau/nv04_dfp.c
+++ b/drivers/gpu/drm/nouveau/nv04_dfp.c
@@ -185,14 +185,19 @@ static bool nv04_dfp_mode_fixup(struct drm_encoder *encoder,
 	struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder);
 	struct nouveau_connector *nv_connector = nouveau_encoder_connector_get(nv_encoder);
 
-	/* For internal panels and gpu scaling on DVI we need the native mode */
-	if (nv_connector->scaling_mode != DRM_MODE_SCALE_NONE) {
-		if (!nv_connector->native_mode)
-			return false;
+	if (!nv_connector->native_mode ||
+	    mode->hdisplay > nv_connector->native_mode->hdisplay ||
+	    mode->vdisplay > nv_connector->native_mode->vdisplay) {
+		NV_DEBUG_KMS(encoder->dev, "Mode larger than native mode, "
+			     "forcing panel rescaling.\n");
+		nv_encoder->mode = *adjusted_mode;
+
+	} else if (nv_connector->scaling_mode == DRM_MODE_SCALE_NONE) {
+		nv_encoder->mode = *adjusted_mode;
+
+	} else {
 		nv_encoder->mode = *nv_connector->native_mode;
 		adjusted_mode->clock = nv_connector->native_mode->clock;
-	} else {
-		nv_encoder->mode = *adjusted_mode;
 	}
 
 	return true;

[-- Attachment #1.2: Type: application/pgp-signature, Size: 229 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

  parent reply	other threads:[~2010-10-05 12:55 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-25 14:04 GeForce FX5200 dual DVI & Samsung 204b Grzesiek Sójka
     [not found] ` <4C9E0167.8000507-t9zbU3WrWHI@public.gmane.org>
2010-09-27 21:41   ` Pekka Paalanen
     [not found]     ` <20100928004117.0a0ae0ca-cxYvVS3buNOdIgDiPM52R8c4bpwCjbIv@public.gmane.org>
2010-09-28 10:43       ` Grzesiek Sójka
     [not found]         ` <4CA1C6C0.1000709-t9zbU3WrWHI@public.gmane.org>
2010-09-28 14:02           ` Pekka Paalanen
     [not found]             ` <20100928170227.00665f76-cxYvVS3buNOdIgDiPM52R8c4bpwCjbIv@public.gmane.org>
2010-09-28 16:17               ` Grzesiek Sójka
     [not found]                 ` <4CA21515.4030903-t9zbU3WrWHI@public.gmane.org>
2010-09-29 16:31                   ` Pekka Paalanen
     [not found]                     ` <20100929193136.644e0d68-cxYvVS3buNOdIgDiPM52R8c4bpwCjbIv@public.gmane.org>
2010-09-30 10:41                       ` Francisco Jerez
     [not found]                         ` <878w2jike0.fsf-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
2010-09-30 15:13                           ` Grzesiek Sójka
     [not found]                             ` <4CA4A934.4080109-t9zbU3WrWHI@public.gmane.org>
2010-09-30 16:05                               ` Francisco Jerez
     [not found]                                 ` <87zkuzgqsv.fsf-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
2010-09-30 18:06                                   ` Grzesiek Sójka
     [not found]                                     ` <4CA4D199.8010403-t9zbU3WrWHI@public.gmane.org>
2010-09-30 23:29                                       ` Francisco Jerez
     [not found]                                         ` <87pqvuhksw.fsf-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
2010-10-01 10:22                                           ` Grzesiek Sójka
     [not found]                                             ` <4CA5B64D.8000608-t9zbU3WrWHI@public.gmane.org>
2010-10-02 13:31                                               ` Francisco Jerez
     [not found]                                                 ` <871v88hgam.fsf-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
2010-10-05 10:17                                                   ` Grzesiek Sójka
     [not found]                                                     ` <4CAAFB3A.8010804-t9zbU3WrWHI@public.gmane.org>
2010-10-05 12:55                                                       ` Francisco Jerez [this message]
     [not found]                                                         ` <87fwwkhk8h.fsf-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
2010-10-05 13:27                                                           ` Grzesiek Sójka
2010-10-05 14:53                                                           ` Grzesiek Sójka
     [not found]                                                             ` <4CAB3BDC.4070502-t9zbU3WrWHI@public.gmane.org>
2010-10-05 21:33                                                               ` Pekka Paalanen
     [not found]                                                                 ` <20101006003325.3bfb33e9-cxYvVS3buNOdIgDiPM52R8c4bpwCjbIv@public.gmane.org>
2010-10-05 21:45                                                                   ` Marcin Slusarz
     [not found]                                                                     ` <20101005214537.GA4034-OI9uyE9O0yo@public.gmane.org>
2010-10-05 21:53                                                                       ` Grzesiek Sójka
     [not found]                                                                         ` <4CAB9E43.7080801-t9zbU3WrWHI@public.gmane.org>
2010-10-05 21:59                                                                           ` Grzesiek Sójka
2010-10-07  2:53                                                               ` Francisco Jerez
     [not found]                                                                 ` <87wrpug1d0.fsf-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
2010-10-07 19:34                                                                   ` Grzesiek Sójka
2010-10-07 18:47                                                           ` Grzesiek Sójka
2010-09-28 10:53       ` Grzesiek Sójka

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=87fwwkhk8h.fsf@riseup.net \
    --to=currojerez-sgozh3hwpm2stnjn9+bgxg@public.gmane.org \
    --cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=pld-t9zbU3WrWHI@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.