Bug 7463 - wrong fan speed of my mobility radeon 9700 on asus laptop
Summary: wrong fan speed of my mobility radeon 9700 on asus laptop
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: 7.0 (2005.12)
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-08 13:44 UTC by eric
Modified: 2006-11-22 10:45 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
xorg.conf (14.17 KB, text/plain)
2006-07-08 16:56 UTC, eric
no flags Details
xorg.log (38.19 KB, text/plain)
2006-07-08 16:57 UTC, eric
no flags Details

Description eric 2006-07-08 13:44:21 UTC
When I log into xorg, the ati fans run at full speed. It is very noisy and
worrying. Switching back to console speed them down at the speed they should run. 
It worked ok with xorg 6.8.2
Comment 1 Erik Andren 2006-07-08 16:22:05 UTC
Please post your xorg.conf and your log file. 
Also are you using the radeon framebuffer driver?
Comment 2 eric 2006-07-08 16:56:01 UTC
Created attachment 6164 [details]
xorg.conf
Comment 3 eric 2006-07-08 16:57:07 UTC
Created attachment 6165 [details]
xorg.log
Comment 4 eric 2006-07-08 17:02:46 UTC
This problem appears whether i'm using a framebuffer (vesafb) or not.
Please don't tell me that's because i'm using a gentoo system :-)
Comment 5 Erik Andren 2006-07-28 10:32:52 UTC
Are you experiencing the same issue with the fglrx driver?
Comment 6 eric 2006-08-07 03:12:54 UTC
no I don't.
Comment 7 eric 2006-08-20 10:04:18 UTC
Since i'm maybe the only one with this problem, I'm playing with the old/new
files of the xf86-video-ati drivers. The problem is located in radeon_video.c
With the old file it runs silently.
More news soon.
Comment 8 eric 2006-08-20 14:41:18 UTC
Ok, I found the problem, but I don't know how to solve it.
Fans go crazy just after this call in radeon_video.c

/* Initialize VIP bus */
    RADEONVIP_init(pScrn, pPriv);

Deeper in radeon_vip.c, it goes wrong just after this:
void RADEONVIP_init(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv)
{
    pPriv->VIP=xcalloc(1,sizeof(GENERIC_BUS_Rec)); <=====at this line
    pPriv->VIP->scrnIndex=pScrn->scrnIndex;
    pPriv->VIP->DriverPrivate.ptr=pPriv;
    pPriv->VIP->ioctl=RADEONVIP_ioctl;
    pPriv->VIP->read=RADEONVIP_read;
    pPriv->VIP->write=RADEONVIP_write;
    pPriv->VIP->fifo_read=RADEONVIP_fifo_read;
    pPriv->VIP->fifo_write=RADEONVIP_fifo_write;
   
    RADEONVIP_reset(pScrn, pPriv);
}

Any suggestion?
Comment 9 eric 2006-08-21 07:45:50 UTC
Ok, now finally :
pPriv->VIP=xcalloc(1,sizeof(GENERIC_BUS_Rec)); just makes that pPriv->VIP is not
NULL. It's not the problem itself.
The problem comes from RADEONVIP_reset. I don't know what it talks about so my
contribution on this problem stops here. I commented out this function, and it's
OK for me. I stay at your disposal if you wish to change anything in the code
and if you need data you don't have.
sincerely

Comment 10 Alex Deucher 2006-11-06 05:26:37 UTC
(In reply to comment #9)
> Ok, now finally :
> pPriv->VIP=xcalloc(1,sizeof(GENERIC_BUS_Rec)); just makes that pPriv->VIP is not
> NULL. It's not the problem itself.
> The problem comes from RADEONVIP_reset. I don't know what it talks about so my
> contribution on this problem stops here. I commented out this function, and it's
> OK for me. I stay at your disposal if you wish to change anything in the code
> and if you need data you don't have.
> sincerely
> 
> 

That should be fine. That function just resets the VIP bus on the radeon (used
for tv-in stuff).  Not sure exactly how it would affect the fan though.  Perhaps
your card (no tv-in?) doesn't care for having the VIP bus active.
Comment 11 eric 2006-11-06 22:30:47 UTC
Well, thank you Alex for giving me your opinion.
You're right. My card has no tv input.
The problem is present with the recent xf86-video-ati-6.6.3 drivers too and I
applied the same solution. I don't know why it changes the fan speed, but maybe
that Asus applied some no conventional tricks to use the radeon in this laptop...
I don't know if i have to close this bug or leave it open.

Comment 12 Alex Deucher 2006-11-07 08:14:00 UTC
(In reply to comment #11)
> Well, thank you Alex for giving me your opinion.
> You're right. My card has no tv input.
> The problem is present with the recent xf86-video-ati-6.6.3 drivers too and I
> applied the same solution. I don't know why it changes the fan speed, but maybe
> that Asus applied some no conventional tricks to use the radeon in this laptop...
> I don't know if i have to close this bug or leave it open.
> 
> 

Leave it open for now.  I may revisit this if I get a chance at some point in
the future.
Comment 13 Alex Deucher 2006-11-22 10:45:28 UTC
fix pushed to git.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.