Skip to contentSkip to conversation

AMD768 & GeForce5200: nouveau bug??

DISCUSSION Grzesiek Sójka 2 participants 3 messages Sep 24, 2010 – Sep 27, 2010 2 messages not in the archive Agpgart driver

lore
Share & tools
lore
#0 lore raw

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.

Regards
Greg

#2 lore raw
In reply to a message not in the archive
Quoted 14 lines · Grzesiek Sójka

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

Quoted 1 line

Thanks in advance for any help.

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

Quoted 7 lines

Regards
Greg
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

drivers/char/agp/amd-k7-agp.c +3 -1
index b6b1568..82e5189 100644
@@ -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)

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw
In reply to a message not in the archive
Quoted 16 lines · Francisco Jerez
Quoted 14 lines · Grzesiek Sójka

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

Quoted 4 lines
Quoted 1 line

Thanks in advance for any help.

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

The patch from Francisco Jerez works fine for me so I was wondering what to do next. It would be nice to apply it to the official kernel tree. Should I open a bug?? Write to someone??