[haiku-bugs] Re: [Haiku] #5487: [ACPI] PowerStatus fails to KDL during start with "Unexpected exception 'Divide Error Exception'"

  • From: "siarzhuk" <trac@xxxxxxxxxxxx>
  • Date: Mon, 01 Mar 2010 17:25:09 -0000

#5487: [ACPI] PowerStatus fails to KDL during start with "Unexpected exception
'Divide Error Exception'"
--------------------------+-------------------------------------------------
 Reporter:  siarzhuk      |       Owner:  nobody   
     Type:  bug           |      Status:  new      
 Priority:  normal        |   Milestone:  R1       
Component:  Drivers/ACPI  |     Version:  R1/alpha1
 Keywords:                |   Blockedby:           
 Platform:  All           |    Blocking:           
--------------------------+-------------------------------------------------

Comment(by siarzhuk):

 Replying to [comment:2 mmlr]:
 > I'd hazard a guess and say it's [source:haiku/trunk/src/add-
 ons/kernel/drivers/power/enhanced_speedstep/frequency.cpp#L153 that
 division]. Both that and the one above don't check for getting 0 after the
 shift.

 For debug purposes I have traced msr, id and 8-shifted id and returned
 B_ERROR in zero-case:


 {{{
 KERN: est: open
 KERN: EST: Get frequency table from model specific register
 KERN: msr:20 id:0 id8:0
 KERN: est: CPU supports Enhanced Speedstep, but is not recognized.
 KERN: est: open
 KERN: EST: Get frequency table from model specific register
 KERN: msr:20 id:0 id8:0
 KERN: est: CPU supports Enhanced Speedstep, but is not recognized.

 }}}

 The check for zero divider is required here in any case.

 Probably I can perform more tests to check why it "is not recognized"? Any
 suggestions?

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5487#comment:4>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: