From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Tormod Volden <lists.tormod@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] agp: Enable all supported rates for graphic cards
Date: Mon, 7 Nov 2011 08:50:04 -0500 [thread overview]
Message-ID: <20111107135004.GA9795@phenom.dumpdata.com> (raw)
In-Reply-To: <1320591801-31496-1-git-send-email-lists.tormod@gmail.com>
On Sun, Nov 06, 2011 at 04:03:21PM +0100, Tormod Volden wrote:
> From: Tormod Volden <debian.tormod@gmail.com>
>
> Some cards report that they support only 4x, in which case they
> should support 2x and 1x as well, according to the AGP spec.
Have you tested it on other hardware besides your KN133?
>
> Otherwise a requested 1x or 2x rate will result in 0 being set:
>
> agpgart-via 0000:00:00.0: putting AGP V2 device into 0x mode
>
> For instance ProSavage KN133 [5333:8d02] only reports 4x.
>
> Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
> ---
> drivers/char/agp/generic.c | 18 ++++++++++++++++++
> 1 files changed, 18 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/char/agp/generic.c b/drivers/char/agp/generic.c
> index b072648..c5d04e5 100644
> --- a/drivers/char/agp/generic.c
> +++ b/drivers/char/agp/generic.c
> @@ -526,6 +526,24 @@ static void agp_v2_parse_one(u32 *requested_mode, u32 *bridge_agpstat, u32 *vga_
> break;
> }
>
> + /* Some graphic cards report they only support 4x, however the AGP 2.0 spec
> + * (section 4.1.1) says components must support the lower speeds as well.
> + */
> + switch (*vga_agpstat & 7) {
> + case 4:
> + *vga_agpstat |= (AGPSTAT2_2X | AGPSTAT2_1X);
> + printk(KERN_INFO PFX "Graphics card claims to only support x4 rate. "
> + "Fixing up support for x2 & x1\n");
> + break;
> + case 2:
> + *vga_agpstat |= AGPSTAT2_1X;
> + printk(KERN_INFO PFX "Graphics card claims to only support x2 rate. "
> + "Fixing up support for x1\n");
> + break;
> + default:
> + break;
> + }
> +
> /* Check the speed bits make sense. Only one should be set. */
> tmp = *requested_mode & 7;
> switch (tmp) {
> --
> 1.7.5.4
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2011-11-07 13:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-06 15:03 [PATCH] agp: Enable all supported rates for graphic cards Tormod Volden
2011-11-06 15:37 ` Corbin Simpson
2011-11-06 18:39 ` Tormod Volden
2011-11-06 18:55 ` Corbin Simpson
2011-11-07 13:50 ` Konrad Rzeszutek Wilk [this message]
2011-11-07 16:05 ` Tormod Volden
2011-11-07 16:08 ` Alex Deucher
2011-11-07 16:33 ` Tormod Volden
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=20111107135004.GA9795@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=lists.tormod@gmail.com \
/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.