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: AMD768 & GeForce5200: nouveau bug??
Date: Fri, 24 Sep 2010 22:27:51 +0200	[thread overview]
Message-ID: <8739syrins.fsf@riseup.net> (raw)
In-Reply-To: <4C9CB7B2.3010401-t9zbU3WrWHI@public.gmane.org> ("Grzesiek Sójka"'s message of "Fri, 24 Sep 2010 16:37:38 +0200")


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

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

> Hi there,
>
> 	Im using ASUS A7M266-D mainboard based on AMD768 chipset and Nvidia
> GeForce FX5200 dual DVI graphics adapter. I'm forced to switch from
> binary Nvidia drivers to nouveau but the problem is that nouveau.ko
> would not load with AGP support turned on. Is it a nouveau/kernel bug??
> 	To build the kernel I used the kernel tree downloaded from the nouveau
> repository about a week ago. The dmesg output with/without the AGP
> support you can find at:
> http://yen.ipipan.waw.pl/~gs159090/tmp/withAGP.txt.gz
> http://yen.ipipan.waw.pl/~gs159090/tmp/withoutAGP.txt.gz
> And here is lspci -vv output
> http://yen.ipipan.waw.pl/~gs159090/tmp/lspci-vv.txt.gz
>
> Thanks in advance for any help.

That looks like a bug in the amdk7 agp driver, can you give this patch a
try?

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


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

diff --git a/drivers/char/agp/amd-k7-agp.c b/drivers/char/agp/amd-k7-agp.c
index b6b1568..82e5189 100644
--- a/drivers/char/agp/amd-k7-agp.c
+++ b/drivers/char/agp/amd-k7-agp.c
@@ -303,13 +303,15 @@ static void amd_irongate_tlbflush(struct agp_memory *temp)
 
 static int amd_insert_memory(struct agp_memory *mem, off_t pg_start, int type)
 {
+	struct agp_bridge_data *bridge = mem->bridge;
 	int i, j, num_entries;
 	unsigned long __iomem *cur_gatt;
 	unsigned long addr;
 
 	num_entries = A_SIZE_LVL2(agp_bridge->current_size)->num_entries;
 
-	if (type != 0 || mem->type != 0)
+	if (!bridge || type != mem->type ||
+	    bridge->driver->agp_type_to_mask_type(bridge, type))
 		return -EINVAL;
 
 	if ((pg_start + mem->page_count) > num_entries)

[-- 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-09-24 20:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-24 14:37 AMD768 & GeForce5200: nouveau bug?? Grzesiek Sójka
     [not found] ` <4C9CB7B2.3010401-t9zbU3WrWHI@public.gmane.org>
2010-09-24 20:27   ` Francisco Jerez [this message]
     [not found]     ` <8739syrins.fsf-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
2010-09-27  8:44       ` 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=8739syrins.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.