public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* radeon framebuffer problem
@ 2002-06-02 19:10 Hanno Böck
  2002-06-02 20:17 ` James Mayer
  0 siblings, 1 reply; 4+ messages in thread
From: Hanno Böck @ 2002-06-02 19:10 UTC (permalink / raw)
  To: linux-kernel

I can't get the radeon framebuffer working.

If I use plain kernel 2.4.18, it doesn't work at all, it says
"cannot map FB"
(complete kernel-output:
Jun  2 19:55:35 hannonb kernel: radeonfb: ref_clk=2700, ref_div=60, xclk=16600 from BIOS
Jun  2 19:55:35 hannonb kernel: radeonfb: panel ID string: 1024x768                
Jun  2 19:55:35 hannonb kernel: radeonfb: detected DFP panel size from BIOS: 1024x768
Jun  2 19:55:35 hannonb kernel: radeonfb: cannot map FB
)

If I use kernel-2.4.18-pre9-ac3 with vga=ask and vga=normal, I get the same error.
If I use an explicit graphics-mode (e.g. vga=791), the screen is just black (X Starts, but I don't have a console).

My card is a Radeon Mobility M6 LY.
All kernels are with radeon framebuffer compiled in as the only framebuffer.

Any idea what is wrong?

cu,

Hanno

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: radeon framebuffer problem
  2002-06-02 19:10 radeon framebuffer problem Hanno Böck
@ 2002-06-02 20:17 ` James Mayer
  2002-06-02 21:18   ` Hanno Böck
  0 siblings, 1 reply; 4+ messages in thread
From: James Mayer @ 2002-06-02 20:17 UTC (permalink / raw)
  To: Hanno B?ck; +Cc: linux-kernel

Hi,

> Jun  2 19:55:35 hannonb kernel: radeonfb: cannot map FB
> 
> My card is a Radeon Mobility M6 LY.
> All kernels are with radeon framebuffer compiled in as the only
> framebuffer.

You might want to try this, I have an M6 LY with what I suspect is the
same problem.

Good luck!

--- radeonfb.c.orig	Thu May  9 16:51:26 2002
+++ radeonfb.c	Thu May  9 16:48:46 2002
@@ -877,6 +877,14 @@
 	/* mem size is bits [28:0], mask off the rest */
 	rinfo->video_ram = tmp & CONFIG_MEMSIZE_MASK;
 
+	/* According to XFree86 4.2.0, some production M6's return 0
+	   for 8MB. */
+	if (rinfo->video_ram == 0 && 
+	    (pdev->device == PCI_DEVICE_ID_RADEON_LY || 
+	     pdev->device == PCI_DEVICE_ID_RADEON_LZ)) {
+	    rinfo->video_ram = 8192 * 1024;
+	  }
+
 	/* ram type */
 	tmp = INREG(MEM_SDRAM_MODE_REG);
 	switch ((MEM_CFG_TYPE & tmp) >> 30) {

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: radeon framebuffer problem
  2002-06-02 20:17 ` James Mayer
@ 2002-06-02 21:18   ` Hanno Böck
  2002-06-03 15:30     ` James Mayer
  0 siblings, 1 reply; 4+ messages in thread
From: Hanno Böck @ 2002-06-02 21:18 UTC (permalink / raw)
  To: James Mayer; +Cc: linux-kernel

> > My card is a Radeon Mobility M6 LY.
> > All kernels are with radeon framebuffer compiled in as the only
> > framebuffer.
> 
> You might want to try this, I have an M6 LY with what I suspect is the
> same problem.

That patch works! Thanks.

Any plans when it will be included into the main kernel? (I currently have to apply three patches for a working kernel ;-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: radeon framebuffer problem
  2002-06-02 21:18   ` Hanno Böck
@ 2002-06-03 15:30     ` James Mayer
  0 siblings, 0 replies; 4+ messages in thread
From: James Mayer @ 2002-06-03 15:30 UTC (permalink / raw)
  To: Hanno =?unknown-8bit?Q?B=F6ck?=; +Cc: linux-kernel

> Any plans when it will be included into the main kernel? (I
> currently have to apply three patches for a working kernel ;-)

I have no idea -- Ani Joshi (the radeonfb maintainer) knows about the
problem, and probably has a better fix than mine.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-06-03 15:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-02 19:10 radeon framebuffer problem Hanno Böck
2002-06-02 20:17 ` James Mayer
2002-06-02 21:18   ` Hanno Böck
2002-06-03 15:30     ` James Mayer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox