linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [-mm patch] drivers/video/geode/video_gx.c: make struct gx_pll_table_48MHz static
       [not found] <20060207220627.345107c3.akpm@osdl.org>
@ 2006-02-10  0:43 ` Adrian Bunk
  2006-02-10 14:52 ` Radeonfb ignores video= parameter [was: Re: 2.6.16-rc2-mm1] Mattia Dongili
  1 sibling, 0 replies; 4+ messages in thread
From: Adrian Bunk @ 2006-02-10  0:43 UTC (permalink / raw)
  To: Andrew Morton, David Vrabel
  Cc: linux-kernel, Antonino Daplas, linux-fbdev-devel

On Tue, Feb 07, 2006 at 10:06:27PM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.16-rc1-mm5:
>...
> +fbdev-framebuffer-driver-for-geode-gx.patch
>...
>  fbdev updates/drivers/fixes
>...


There is no good reason for struct gx_pll_table_48MHz being global.


Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.16-rc2-mm1-full/drivers/video/geode/video_gx.c.old	2006-02-10 00:55:07.000000000 +0100
+++ linux-2.6.16-rc2-mm1-full/drivers/video/geode/video_gx.c	2006-02-10 00:56:13.000000000 +0100
@@ -34,7 +34,7 @@
 #define PREMULT2 ((u32)MSR_GLCP_SYS_RSTPLL_DOTPREMULT2)
 #define PREDIV2  ((u32)MSR_GLCP_SYS_RSTPLL_DOTPOSTDIV3)
 
-struct gx_pll_entry gx_pll_table_48MHz[] = {
+static struct gx_pll_entry gx_pll_table_48MHz[] = {
 	{ 40123, POSTDIV3,	    0x00000BF2 },	/*  24.9230 */
 	{ 39721, 0,		    0x00000037 },	/*  25.1750 */
 	{ 35308, POSTDIV3|PREMULT2, 0x00000B1A },	/*  28.3220 */

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

* Radeonfb ignores video= parameter [was: Re: 2.6.16-rc2-mm1]
       [not found] <20060207220627.345107c3.akpm@osdl.org>
  2006-02-10  0:43 ` [-mm patch] drivers/video/geode/video_gx.c: make struct gx_pll_table_48MHz static Adrian Bunk
@ 2006-02-10 14:52 ` Mattia Dongili
  2006-02-10 15:14   ` [PATCH] fbdev: Fix typo in fbmem.c Antonino A. Daplas
  1 sibling, 1 reply; 4+ messages in thread
From: Mattia Dongili @ 2006-02-10 14:52 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, linux-fbdev-devel

On Tue, Feb 07, 2006 at 10:06:27PM -0800, Andrew Morton wrote:
> 
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.16-rc2/2.6.16-rc2-mm1/

Hello,

radeonfb ignores the video= parameter and always run at 1400x1050 (the
highest available). Things where fine with .16-rc1-mm5.
I also tried booting with 640x480-32@60 without success.

# fbset -s
mode "1400x1050-60"
    # D: 108.003 MHz, H: 63.983 kHz, V: 60.021 Hz
    geometry 1400 1050 1408 1050 8
    timings 9259 136 40 13 0 112 3
    hsync high
    vsync high
    rgba 8/0,8/0,8/0,0/0
endmode

Oh, however running
	fbset -xres 800 -yres 600
works when the system is up.

This is the relevant dmesg snippets:

[    0.000000] Linux version 2.6.16-rc2-mm1-1 (mattia@inferi) (gcc version 4.0.3 20051201 (prerelease) (Debian 4.0.2-5)) #1 PREEMPT Wed Feb 8 13:19:29 CET 2006
...
[    8.398523] Kernel command line: root=/dev/hda1 ro vga=extended video=radeonfb:800x600-32@60 fbcon=font:Acorn8x8 lapic resume=/dev/hda2
[    8.399088] CPU 0 irqstacks, hard=c03c1000 soft=c03c2000
[    8.399095] PID hash table entries: 1024 (order: 10, 16384 bytes)
[    8.482408] Console: colour VGA+ 80x50
...
[    8.919903] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 9
[    8.919950] ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKA] -> GSI 9 (level, low) -> IRQ 9
[    8.930704] radeonfb: Retrieved PLL infos from BIOS
[    8.930750] radeonfb: Reference=27.00 MHz (RefDiv=60) Memory=166.00 Mhz, System=166.00 MHz
[    8.930804] radeonfb: PLL min 12000 max 35000
[    9.865869] Non-DDC laptop panel detected
[   10.861036] radeonfb: Monitor 1 type LCD found
[   10.861080] radeonfb: Monitor 2 type no found
[   10.861127] radeonfb: panel ID string: Samsung LTN150P1-L02    
[   10.861172] radeonfb: detected LVDS panel size from BIOS: 1400x1050
[   10.861217] radeondb: BIOS provided dividers will be used
[   11.096839] radeonfb: Dynamic Clock Power Management enabled
[   11.364622] Console: switching to colour frame buffer device 175x131
[   11.365363] radeonfb (0000:01:00.0): ATI Radeon LY 
...

the only thing being different from -rc1-mm5:
--- boot_as_usual_but_working	2006-02-10 15:43:03.505874694 +0100
+++ boot_as_usual	2006-02-10 15:42:55.322907583 +0100
@@ -1,4 +1,4 @@
-Linux version 2.6.16-rc1-mm5-1 (mattia@inferi) (gcc version 4.0.3 20051201 (prerelease) (Debian 4.0.2-5)) #1 PREEMPT Sat Feb 4 14:38:36 CET 2006
+Linux version 2.6.16-rc2-mm1-1 (mattia@inferi) (gcc version 4.0.3 20051201 (prerelease) (Debian 4.0.2-5)) #1 PREEMPT Wed Feb 8 13:19:29 CET 2006
 BIOS-provided physical RAM map:
  BIOS-e820: 0000000000000000 - 000000000009e800 (usable)
  BIOS-e820: 000000000009e800 - 00000000000a0000 (reserved)
@@ -144,7 +144,7 @@
 radeonfb: detected LVDS panel size from BIOS: 1400x1050
 radeondb: BIOS provided dividers will be used
 radeonfb: Dynamic Clock Power Management enabled
-Console: switching to colour frame buffer device 100x75
+Console: switching to colour frame buffer device 175x131
 radeonfb (0000:01:00.0): ATI Radeon LY 
 ACPI: AC Adapter [ACAD] (on-line)
 ACPI: Battery Slot [BAT1] (battery present)

And finally lspci:

0000:01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M6 LY (prog-if 00 [VGA])
	Subsystem: Sony Corporation VAIO PCG-GR214EP/GR214MP/GR215MP/GR314MP/GR315MP
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B+
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 66 (2000ns min), Cache Line Size: 0x08 (32 bytes)
	Interrupt: pin A routed to IRQ 9
	Region 0: Memory at d8000000 (32-bit, prefetchable) [size=128M]
	Region 1: I/O ports at 3000 [size=256]
	Region 2: Memory at d0100000 (32-bit, non-prefetchable) [size=64K]
	Expansion ROM at d0120000 [disabled] [size=128K]
	Capabilities: [58] AGP version 2.0
		Status: RQ=48 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW- AGP3- Rate=x1,x2,x4
		Command: RQ=1 ArqSz=0 Cal=0 SBA+ AGP- GART64- 64bit- FW- Rate=<none>
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

-- 
mattia
:wq!

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

* [PATCH] fbdev: Fix typo in fbmem.c
  2006-02-10 14:52 ` Radeonfb ignores video= parameter [was: Re: 2.6.16-rc2-mm1] Mattia Dongili
@ 2006-02-10 15:14   ` Antonino A. Daplas
  2006-02-10 16:34     ` Mattia Dongili
  0 siblings, 1 reply; 4+ messages in thread
From: Antonino A. Daplas @ 2006-02-10 15:14 UTC (permalink / raw)
  To: Andrew Morton, linux-kernel, linux-fbdev-devel; +Cc: malattia

A typo in fbmem.c prevents recognition of video= parameter.

Signed-off-by: Antonino Daplas <adaplas@pol.net>

---
Mattia Dongili wrote:

> On Tue, Feb 07, 2006 at 10:06:27PM -0800, Andrew Morton wrote:
>> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.16-rc2/2.6.16-rc2-mm1/
> 
> Hello,
> 
> radeonfb ignores the video= parameter and always run at 1400x1050 (the
> highest available). Things where fine with .16-rc1-mm5.
> I also tried booting with 640x480-32@60 without success.

Try this patch.

Tony

PS: Andrew, maybe this patch should go into your hotfixes?

 fbmem.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
index 6454a37..3ff1a54 100644
--- a/drivers/video/fbmem.c
+++ b/drivers/video/fbmem.c
@@ -1569,7 +1569,7 @@ int fb_get_options(char *name, char **op
 	return retval;
 }
 
-#ifdef MODULE
+#ifndef MODULE
 /**
  *	video_setup - process command line options
  *	@options: string of options


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

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

* Re: [PATCH] fbdev: Fix typo in fbmem.c
  2006-02-10 15:14   ` [PATCH] fbdev: Fix typo in fbmem.c Antonino A. Daplas
@ 2006-02-10 16:34     ` Mattia Dongili
  0 siblings, 0 replies; 4+ messages in thread
From: Mattia Dongili @ 2006-02-10 16:34 UTC (permalink / raw)
  To: Antonino A. Daplas; +Cc: Andrew Morton, linux-kernel, linux-fbdev-devel

On Fri, Feb 10, 2006 at 11:14:04PM +0800, Antonino A. Daplas wrote:
> A typo in fbmem.c prevents recognition of video= parameter.
> 
> Signed-off-by: Antonino Daplas <adaplas@pol.net>
> 
> ---
> Mattia Dongili wrote:
> 
> > On Tue, Feb 07, 2006 at 10:06:27PM -0800, Andrew Morton wrote:
> >> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.16-rc2/2.6.16-rc2-mm1/
> > 
> > Hello,
> > 
> > radeonfb ignores the video= parameter and always run at 1400x1050 (the
> > highest available). Things where fine with .16-rc1-mm5.
> > I also tried booting with 640x480-32@60 without success.
> 
> Try this patch.

Thanks, now working as usual. (BTW: my ISP smtp is blacklisted so my
messages won't reach linux-fbdev-devel)

ciao
-- 
mattia
:wq!

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

end of thread, other threads:[~2006-02-10 16:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20060207220627.345107c3.akpm@osdl.org>
2006-02-10  0:43 ` [-mm patch] drivers/video/geode/video_gx.c: make struct gx_pll_table_48MHz static Adrian Bunk
2006-02-10 14:52 ` Radeonfb ignores video= parameter [was: Re: 2.6.16-rc2-mm1] Mattia Dongili
2006-02-10 15:14   ` [PATCH] fbdev: Fix typo in fbmem.c Antonino A. Daplas
2006-02-10 16:34     ` Mattia Dongili

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).