Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GXT4000P/GXT6500P patch
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Motoi-Sakuraba-Milfeuille
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2004
Posts: 114

PostPosted: Sun Mar 06, 2011 10:05 am    Post subject: GXT4000P/GXT6500P patch Reply with quote

I see that even after 2 years, this patch still hasn't been added to the official Linux kernel. Therefore, in order to not force people to use the CRUX PPC install CD in order to install Gentoo PPC on their RS6Ks, would it not be useful to have this following patch included in the gentoo-sources patchset for PPC?

Or just at least patch the kernel in the Gentoo PPC CD so that it works with these cards. Please?

BTW, patch -p1 doesn't quite work here. I recommend simply adding the lines yourself, and you will appreciate how little code this took to save everybody with a GXT6500P card some trouble.

Code:
Signed-off-by: Nico Macrionitis <acrux at cruxppc.org>
Signed-off-by: Giuseppe Coviello <cjg at cruxppc.org>
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index 0048f11..7ee1e65 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -1964,14 +1964,16 @@ config FB_PNX4008_DUM_RGB
     Say Y here to enable support for PNX4008 RGB Framebuffer

config FB_IBM_GXT4500
-   tristate "Framebuffer support for IBM GXT4500P adaptor"
+   tristate "Framebuffer support for IBM GXT4000P/4500P/6000P/6500P adaptors"
   depends on FB && PPC
   select FB_CFB_FILLRECT
   select FB_CFB_COPYAREA
   select FB_CFB_IMAGEBLIT
   ---help---
-     Say Y here to enable support for the IBM GXT4500P display
-     adaptor, found on some IBM System P (pSeries) machines.
+     Say Y here to enable support for the IBM GXT4000P/6000P and
+     GXT4500P/6500P display adaptor based on Raster Engine RC1000,
+     found on some IBM System P (pSeries) machines. This driver
+     doesn't use Geometry Engine GT1000.

config FB_PS3
   tristate "PS3 GPU framebuffer driver"
diff --git a/drivers/video/gxt4500.c b/drivers/video/gxt4500.c
index 896e53d..a3c4d41 100644
--- a/drivers/video/gxt4500.c
+++ b/drivers/video/gxt4500.c
@@ -1,5 +1,6 @@
/*
- * Frame buffer device for IBM GXT4500P and GXT6000P display adaptors
+ * Frame buffer device for IBM GXT4500P/6500P and GXT4000P/6000P
+ * display adaptors
  *
  * Copyright (C) 2006 Paul Mackerras, IBM Corp. <paulus at samba.org>
  */
@@ -14,6 +15,8 @@
#include <linux/string.h>

#define PCI_DEVICE_ID_IBM_GXT4500P   0x21c
+#define PCI_DEVICE_ID_IBM_GXT6500P      0x21b
+#define PCI_DEVICE_ID_IBM_GXT4000P      0x16e
#define PCI_DEVICE_ID_IBM_GXT6000P   0x170

/* GXT4500P registers */
@@ -173,6 +176,8 @@ static const struct fb_videomode defaultmode __devinitdata = {
/* List of supported cards */
enum gxt_cards {
   GXT4500P,
+   GXT6500P,
+   GXT4000P,
   GXT6000P
};

@@ -182,6 +187,8 @@ static const struct cardinfo {
   const char *cardname;
} cardinfo[] = {
   [GXT4500P] = { .refclk_ps = 9259, .cardname = "IBM GXT4500P" },
+   [GXT6500P] = { .refclk_ps = 9259, .cardname = "IBM GXT6500P" },
+   [GXT4000P] = { .refclk_ps = 40000, .cardname = "IBM GXT4000P" },
   [GXT6000P] = { .refclk_ps = 40000, .cardname = "IBM GXT6000P" },
};

@@ -736,6 +743,10 @@ static void __devexit gxt4500_remove(struct pci_dev *pdev)
static const struct pci_device_id gxt4500_pci_tbl[] = {
   { PCI_DEVICE(PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_GXT4500P),
     .driver_data = GXT4500P },
+   { PCI_DEVICE(PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_GXT6500P),
+     .driver_data = GXT6500P },
+   { PCI_DEVICE(PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_GXT4000P),
+     .driver_data = GXT4000P },
   { PCI_DEVICE(PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_GXT6000P),
     .driver_data = GXT6000P },
   { 0 }
@@ -768,7 +779,7 @@ static void __exit gxt4500_exit(void)
module_exit(gxt4500_exit);

MODULE_AUTHOR("Paul Mackerras <paulus at samba.org>");
-MODULE_DESCRIPTION("FBDev driver for IBM GXT4500P/6000P");
+MODULE_DESCRIPTION("FBDev driver for IBM GXT4500P/6500P and GXT4000P/6000P");
MODULE_LICENSE("GPL");
module_param(mode_option, charp, 0);
MODULE_PARM_DESC(mode_option, "Specify resolution as \"<xres>x<yres>[-<bpp>][@<refresh>]\"");

_________________
When you are clever, you realize you are stupid; when you are stupid, you realize you are clever.
Back to top
View user's profile Send private message
blob999
n00b
n00b


Joined: 07 Jun 2009
Posts: 64
Location: NATO area

PostPosted: Sun Mar 06, 2011 11:38 am    Post subject: Reply with quote

i agree, it 'd be nice to have this patch included... and maybe rediffed to have it included in the official linux kernel.
_________________
LinuxPPC user!
my blog: http://linuxpowerpc.blogspot.com/
Back to top
View user's profile Send private message
blob999
n00b
n00b


Joined: 07 Jun 2009
Posts: 64
Location: NATO area

PostPosted: Sat Mar 02, 2013 5:53 pm    Post subject: Reply with quote

upstream from linux-3.8 !

https://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=6c39dcc465373daae484b1a893e47b5e631fb62f
_________________
LinuxPPC user!
my blog: http://linuxpowerpc.blogspot.com/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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