Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-23 Thread Michael Schmitz
> > Can I read that from user space? Or should I add some printk to > > radeon_probe_pll_params ? > > You can probably mmap /dev/mem to the right address and read it from > userspace ;) I don't want to lock things up, that's all :-) > > Did I mention that radeon_probe_pll_params fails to detect t

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-23 Thread Benjamin Herrenschmidt
More specifically... PPLL_REF_DIV holds the reference divider for the pixel clock PLL (though the register has a weird format on >= r300) PPLL_DIV_{0..3} holds the forward and feedback dividers for that PLL, (feedback divider in bits 0..10 and post div in bits 16..18) the CLK_CNTL_INDEX bits 8..

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-23 Thread Michael Schmitz
Hi, > > At least the feedback divider and post divider there (for the albook 5,3) > > are different from what I've got (1, and 56 vs. 4 and 80) > > What do you have at boot in in PPLL_DIV_0 ? It's the value set by OF, > Linux uses PPLL_DIV_3 to set it's own. Can I read that from user space? Or sh

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-23 Thread Benjamin Herrenschmidt
On Thu, 2004-09-23 at 21:28, Michael Schmitz wrote: > Hi, > > > > At least the feedback divider and post divider there (for the albook 5,3) > > > are different from what I've got (1, and 56 vs. 4 and 80) > > > > What do you have at boot in in PPLL_DIV_0 ? It's the value set by OF, > > Linux uses P

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-23 Thread Michael Schmitz
> > You mentioned a patch for hardcoding the PLL; any specific pointer for > > that? > > Look at radeon_fixup_panel_info() in radeon_monitor.c, let me know if > adding your machine type there helps. At least the feedback divider and post divider there (for the albook 5,3) are different from what I

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-23 Thread Benjamin Herrenschmidt
On Thu, 2004-09-23 at 18:31, Michael Schmitz wrote: > > > You mentioned a patch for hardcoding the PLL; any specific pointer for > > > that? > > > > Look at radeon_fixup_panel_info() in radeon_monitor.c, let me know if > > adding your machine type there helps. > > At least the feedback divider and

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-23 Thread Benjamin Herrenschmidt
> How so? > > You mentioned a patch for hardcoding the PLL; any specific pointer for > that? Look at radeon_fixup_panel_info() in radeon_monitor.c, let me know if adding your machine type there helps. > > Have you tried, when it happens, turning the backlight all the way down > > to 0, waiting

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-20 Thread Michael Schmitz
> > A ghost image of whatever is on the screen, displaced by (roughly) 128 > > pixels to the left. At the refresh rate used by X, the ghost image > > flickers so that you see it light up with a periodicity of around a cm > > vertical, or approximately 40 pixels (that's rather harder to estimate). >

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-20 Thread Michael Schmitz
> > > Wait ... you are talking about console flickering or X flickering ? If > > > > console - X is fine until I switch to console and back. > > Weird... It's usually the opposite... ok, now the hard one: try to > describe precisely what you mean by "flicker" :) A ghost image of whatever is on the

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-20 Thread Benjamin Herrenschmidt
On Mon, 2004-09-20 at 23:29, Michael Schmitz wrote: > A ghost image of whatever is on the screen, displaced by (roughly) 128 > pixels to the left. At the refresh rate used by X, the ghost image > flickers so that you see it light up with a periodicity of around a cm > vertical, or approximately 40

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-20 Thread Benjamin Herrenschmidt
On Mon, 2004-09-20 at 18:49, Michael Schmitz wrote: > > > > Nope, have you hard-wired the PLL value like I do for other laptops ? > > > > > > Nope, the OF data are used to set up the PLL. Even feeding it utter > > > bullshit for SCLK and MCLK does nothing at all to change the picture. > > > > Wait

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-20 Thread Michael Schmitz
> > > Nope, have you hard-wired the PLL value like I do for other laptops ? > > > > Nope, the OF data are used to set up the PLL. Even feeding it utter > > bullshit for SCLK and MCLK does nothing at all to change the picture. > > Wait ... you are talking about console flickering or X flickering ? I

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-20 Thread Michael Schmitz
> > I can confirm frequent lockups on GPU load (CPU load doesn't matter, > > that's handled fine by the thermostat). In case it matters: the OF device > > tree seems to indicate that the two fans aren't CPU and GPU but rather > > left and right side of the rear exhaust grille. So they need to be se

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-20 Thread Benjamin Herrenschmidt
On Mon, 2004-09-20 at 18:10, Michael Schmitz wrote: > > > I can confirm frequent lockups on GPU load (CPU load doesn't matter, > > > that's handled fine by the thermostat). In case it matters: the OF device > > > tree seems to indicate that the two fans aren't CPU and GPU but rather > > > left and

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-19 Thread Benjamin Herrenschmidt
> I can confirm frequent lockups on GPU load (CPU load doesn't matter, > that's handled fine by the thermostat). In case it matters: the OF device > tree seems to indicate that the two fans aren't CPU and GPU but rather > left and right side of the rear exhaust grille. So they need to be set to >

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-19 Thread Michael Schmitz
> > Compile it as a module and you can load the module with the the params > > fan_speed > > and limit_adjust e.g in /etc/modules ;-) The solution to adjust the > > gpu temp linear to the cpu temp isn't a good one yet. We have to > > control them separate. Maybe Ben is reading this an can tell so

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-17 Thread Benjamin Herrenschmidt
> Compile it as a module and you can load the module with the the params > fan_speed > and limit_adjust e.g in /etc/modules ;-) The solution to adjust the > gpu temp linear to the cpu temp isn't a good one yet. We have to > control them separate. Maybe Ben is reading this an can tell some > deta

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-06 Thread Elimar Riesebieter
On Mon, 06 Sep 2004 the mental interface of Sam Zoghaib told: > On Mon, Sep 06, 2004 at 07:55:33PM +0200, Elimar Riesebieter wrote: > > > However, with these settings, the fan is almost all the time at speed 128. > > > If I don't do anything, the temperature is around 48°C. > > > > So why is your

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-06 Thread Sam Zoghaib
On Mon, Sep 06, 2004 at 07:55:33PM +0200, Elimar Riesebieter wrote: > > However, with these settings, the fan is almost all the time at speed 128. > > If I don't do anything, the temperature is around 48°C. > > So why is your fan running at this temperature? The fan starts > definitly at 50°C at t

Re: Powerbook G4 1.33 GHz CPU temperature

2004-09-06 Thread Elimar Riesebieter
On Mon, 06 Sep 2004 the mental interface of Sam Zoghaib told: > Hello, > > The current (default) setting for therm_adt76x is to start the CPU fan at > speed 128 when the CPU temperature reaches 50°C (that is, 122 °F). It's set > at speed 255 when it reaches 55°C (134 °F). > However, with these se

Powerbook G4 1.33 GHz CPU temperature

2004-09-05 Thread Sam Zoghaib
Hello, The current (default) setting for therm_adt76x is to start the CPU fan at speed 128 when the CPU temperature reaches 50°C (that is, 122 °F). It's set at speed 255 when it reaches 55°C (134 °F). However, with these settings, the fan is almost all the time at speed 128. If I don't do anything