public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Lars Noschinski <lars@usenet.noschinski.de>
To: <linux-kernel@vger.kernel.org>, James Simmons <jsimmons@infradead.org>
Subject: Re: Much better framebuffer fixes.
Date: Wed, 2 Apr 2003 16:00:28 -0500	[thread overview]
Message-ID: <20030402210028Z262961-25575+40862@vger.kernel.org> (raw)
In-Reply-To: 20030327002012$0b44@gated-at.bofh.it

James Simmons <jsimmons@infradead.org> writes:

> Okay. Here are more framebuffer fixes. Please try these fixes and let me 
> know how they work out for you.

Doesn't work for my Radeon 9100, as I get a kernel panic. As of 2.5.66
the Radeon 9100 is not supported, I run a slightly modified version
(diff to 2.5.66 appended). At least the framebuffer seems to work,
till now I had now time for further tests.

Kernel panic (typos possible):
==============================
EFLAGS   00010282
EIP is at fb_set_var+0x23/0xa0
eax: 6b6b6b6b   ebx: dffe3000   ecx: 0000009f   edx: 00000000
esi: dff8fe71   edi: dffe3001   ebp: dff8f464   esp: dff8fe2c
ds: 007b    es: 007b    ss: 0068
Process swapper (pid: 1, threadinfo=dff8e000 task dff8c000)
Stack: dff8fe64 dff8ff04 dffe30ac dffe3000 co45132e dff8fe64 dffe3000 dffe31dc
       00000100 00000000 dff28000 dffe32fc dffe30bc dffe32fe 00000280 000001e0
       00000280 000001e0 00000000 00000000 00000008 00000000 00000000 00000008
Call Trace
     [<c02adbd8>] radeonfb_pci_register+0x68/0x7e0
     [<c022a591>] pci_device_probe+0x41/0x60
     [<c0271237>] bus_match+0x37/0x70
     [<c0271323>] driver_attach+0x43/0x70
     [<c02715d2>] bus_add_driver+0xa2/0xe0
     [<c02719e1>] driver_register+0x41/0x50
     [<c022a6a2>] pci_register_driver+0x42/0x60
     [<c01051a8>] init+0xc8/0x290
     [<c01050e0>] init+0x0/0x290
     [<c010712d>] kernel_thread_helper+0x5/0x18
Code: 83 78 14 00 75 0f 89 df 8d 75 0c fc b9 28 00 00 00 f3 a5 eb
  <0> Kernel panic: Attempted to kill init!
==============================

Patch:
==============================
--- linux-2.5.66/drivers/video/radeonfb.c	2003-04-02 22:10:08.000000000 +0200
+++ linux-2.5.66-fbdev-ln/drivers/video/radeonfb.c	2003-04-02 22:02:42.000000000 +0200
@@ -121,7 +121,8 @@
 	RADEON_ND,
 	RADEON_NE,
 	RADEON_NF,
-	RADEON_NG
+	RADEON_NG,
+	RADEON_QM	/* LN (my Radeon 9100) */
 };
 
 enum radeon_arch {
@@ -168,7 +169,8 @@
 	{ "9700 ND", RADEON_R300 },
 	{ "9700 NE", RADEON_R300 },
 	{ "9700 NF", RADEON_R300 },
-	{ "9700 NG", RADEON_R300 }
+	{ "9700 NG", RADEON_R300 },
+	{ "9100 QM", RADEON_R200 } /* LN (my Radeon 9100) */
 };
 
 
@@ -213,6 +215,7 @@
 	{ PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RADEON_NE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_NE},
 	{ PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RADEON_NF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_NF},
 	{ PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RADEON_NG, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_NG},
+	{ PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RADEON_QM, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_QM}, /* LN (my Radeon 9100) */
 	{ 0, }
 };
 MODULE_DEVICE_TABLE(pci, radeonfb_pci_table);
@@ -881,6 +884,16 @@
 				rinfo->pll.ref_div = 12;
 				rinfo->pll.ref_clk = 2700;
 				break;
+			case PCI_DEVICE_ID_ATI_RADEON_ND:
+			case PCI_DEVICE_ID_ATI_RADEON_NE:
+			case PCI_DEVICE_ID_ATI_RADEON_NF:
+			case PCI_DEVICE_ID_ATI_RADEON_NG:
+				rinfo->pll.ppll_max = 40000;
+				rinfo->pll.ppll_min = 20000;
+				rinfo->pll.xclk = 27000;
+				rinfo->pll.ref_div = 12;
+				rinfo->pll.ref_clk = 2700;
+				break;
 			case PCI_DEVICE_ID_ATI_RADEON_QD:
 			case PCI_DEVICE_ID_ATI_RADEON_QE:
 			case PCI_DEVICE_ID_ATI_RADEON_QF:
--- linux-2.5.66/include/linux/pci_ids.h	2003-04-02 22:10:00.000000000 +0200
+++ linux-2.5.66-fbdev-ln/include/linux/pci_ids.h	2003-04-02 22:02:32.000000000 +0200
@@ -279,6 +279,7 @@
 #define PCI_DEVICE_ID_ATI_RADEON_QO	0x514f
 #define PCI_DEVICE_ID_ATI_RADEON_Ql	0x516c
 #define PCI_DEVICE_ID_ATI_RADEON_BB	0x4242
+#define PCI_DEVICE_ID_ATI_RADEON_QM	0x514d /* LN (my Radeon 9100) */
 /* Radeon RV200 (7500) */
 #define PCI_DEVICE_ID_ATI_RADEON_QW	0x5157
 #define PCI_DEVICE_ID_ATI_RADEON_QX	0x5158

Lars Noschinski

       reply	other threads:[~2003-04-02 21:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20030327002012$0b44@gated-at.bofh.it>
2003-04-02 21:00 ` Lars Noschinski [this message]
     [not found] <20030402221008$2d6c@gated-at.bofh.it>
     [not found] ` <20030402221008$69b9@gated-at.bofh.it>
2003-04-03 15:25   ` Much better framebuffer fixes Lars Noschinski
     [not found] <20030402211245Z20779-11684+4820@humbolt.nl.linux.org>
2003-04-02 21:59 ` James Simmons
2003-03-27  0:18 James Simmons
2003-03-27  9:58 ` Helge Hafting
2003-03-27 15:58   ` Thomas Molina
2003-03-27 16:09   ` Mike Houston
2003-03-27 10:16 ` Michael Dreher

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=20030402210028Z262961-25575+40862@vger.kernel.org \
    --to=lars@usenet.noschinski.de \
    --cc=jsimmons@infradead.org \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox