Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel: VIA PT894 not totally recognised [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Daniel Tourde - Caelae.se
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2006
Posts: 138
Location: Stockholm

PostPosted: Thu Jun 01, 2006 11:00 pm    Post subject: Kernel: VIA PT894 not totally recognised [SOLVED] Reply with quote

Hello,

I have a probem with a VIA PT894 Host bridge:
lspci
00:00.0 Host bridge: VIA Technologies, Inc. PT894 Host Bridge
00:00.1 Host bridge: VIA Technologies, Inc. PT894 Host Bridge
00:00.2 Host bridge: VIA Technologies, Inc. PT894 Host Bridge
00:00.3 Host bridge: VIA Technologies, Inc. PT890 Host Bridge
00:00.4 Host bridge: VIA Technologies, Inc. PT894 Host Bridge

lspci -n
00:00.0 0600: 1106:0308
00:00.1 0600: 1106:1308
00:00.2 0600: 1106:2308
00:00.3 0600: 1106:3208
00:00.4 0600: 1106:4308

However
grep 308 /usr/include/linux/pci_ids.h
#define PCI_DEVICE_ID_NVIDIA_QUADRO_FX_2000 0x0308

grep 308 /usr/src/linux-2.6.16-gentoo-r7/include/linux/pci_ids.h
#define PCI_DEVICE_ID_NVIDIA_QUADRO_FX_2000 0x0308

I understand it as: a video card is assigned instead of the VIA Host bridge.

As a result, agpgart finds nothing:
dmesg | grep agp
Linux agpgart interface v0.101 (c) Dave Jones

and I cannot get drm... :(

Any comment? Is that a bug?
How can I quickly fix it?
Do I need to rebuild the kernel if I change the pci_ids.h file?


Last edited by Daniel Tourde - Caelae.se on Fri Jun 02, 2006 8:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
gami
Apprentice
Apprentice


Joined: 02 Jun 2006
Posts: 297

PostPosted: Fri Jun 02, 2006 12:45 am    Post subject: Reply with quote

This issue has been fixed in the upcoming kernel 2.6.17. See http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=7dd1d9b85cfb63eebf48fa13d3c5d25a3deb3a25 for the patch in the kernel git.

Here's the patch, with which I can get drm without any problem, for your convenience:
Code:

--- a/include/linux/pci_ids.h 2006-04-24 06:36:03.000000000 +0100
+++ b/include/linux/pci_ids.h 2006-05-18 14:00:01.000000000 +0100
@@ -1220,6 +1220,7 @@
 #define PCI_DEVICE_ID_VIA_8380_0       0x0204
 #define PCI_DEVICE_ID_VIA_3238_0       0x0238
 #define PCI_DEVICE_ID_VIA_PT880                0x0258
+#define PCI_DEVICE_ID_VIA_PT880ULTRA   0x0308
 #define PCI_DEVICE_ID_VIA_PX8X0_0      0x0259
 #define PCI_DEVICE_ID_VIA_3269_0       0x0269
 #define PCI_DEVICE_ID_VIA_K8T800PRO_0  0x0282
--- a/drivers/char/agp/via-agp.c 2006-04-24 06:36:03.000000000 +0100
+++ b/drivers/char/agp/via-agp.c 2006-05-18 14:02:59.000000000 +0100
@@ -345,6 +345,12 @@
                .chipset_name   = "PT880",
        },

+       /* PT880 Ultra */
+       {
+               .device_id      = PCI_DEVICE_ID_VIA_PT880ULTRA,
+               .chipset_name   = "PT880 Ultra",
+       },
+
        /* PT890 */
        {
                .device_id      = PCI_DEVICE_ID_VIA_8783_0,
@@ -511,6 +517,7 @@
        ID(PCI_DEVICE_ID_VIA_8763_0),
        ID(PCI_DEVICE_ID_VIA_8378_0),
        ID(PCI_DEVICE_ID_VIA_PT880),
+       ID(PCI_DEVICE_ID_VIA_PT880ULTRA),
        ID(PCI_DEVICE_ID_VIA_8783_0),
        ID(PCI_DEVICE_ID_VIA_PX8X0_0),
        ID(PCI_DEVICE_ID_VIA_3269_0),

After applying the patch you need to rebuild the via-agpgart module (or your kernel if compiled in).
Back to top
View user's profile Send private message
Daniel Tourde - Caelae.se
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2006
Posts: 138
Location: Stockholm

PostPosted: Fri Jun 02, 2006 7:20 am    Post subject: Reply with quote

Great!

Thanks for your quick and effective answer.

Daniel
Back to top
View user's profile Send private message
Daniel Tourde - Caelae.se
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2006
Posts: 138
Location: Stockholm

PostPosted: Fri Jun 02, 2006 8:19 am    Post subject: Reply with quote

By the way, your patch does not cover:
#define PCI_DEVICE_ID_NVIDIA_QUADRO_FX_2000 0x0308

What am I supposed to do with that?

Daniel
Back to top
View user's profile Send private message
gami
Apprentice
Apprentice


Joined: 02 Jun 2006
Posts: 297

PostPosted: Fri Jun 02, 2006 10:50 am    Post subject: Reply with quote

Daniel Tourde - Caelae.se wrote:
By the way, your patch does not cover:
#define PCI_DEVICE_ID_NVIDIA_QUADRO_FX_2000 0x0308

What am I supposed to do with that?

Daniel


Leave it as it is. It's not a problem to have duplicates for devices in the pci_ids.h file. Each device is identified by the pair VENDOR_ID:DEVICE_ID. The VENDOR_ID is different for NVidia and VIA devices.

PS: Please mark this thread as [SOLVED] once you have your system patched and running


Last edited by gami on Fri Jun 02, 2006 2:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
Daniel Tourde - Caelae.se
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2006
Posts: 138
Location: Stockholm

PostPosted: Fri Jun 02, 2006 11:53 am    Post subject: Reply with quote

Hello,

Of course but how am I supposed to mark a thread 'SOLVED'. How do I do that?
Back to top
View user's profile Send private message
gami
Apprentice
Apprentice


Joined: 02 Jun 2006
Posts: 297

PostPosted: Fri Jun 02, 2006 12:59 pm    Post subject: Reply with quote

Daniel Tourde - Caelae.se wrote:
Of course but how am I supposed to mark a thread 'SOLVED'. How do I do that?

As the author of the first post in a thread you can click the "edit" button and prepend the subject with "[SOLVED]".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum