[haiku-commits] Re: r41289 - in haiku/trunk: headers/private/graphics/radeon_hd src/add-ons/kernel/drivers/graphics/radeon_hd

  • From: Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx, haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 28 Apr 2011 21:58:44 -0500

On Fri, 29 Apr 2011 00:39:20 +0200
Philippe Houdoin <philippe.houdoin@xxxxxxxxx> wrote:

> BTW, I tried the radeon_hd (after adding my 4870 IDs) + its
> radeon_hd.accelerant. It didn't crash but the display mode was out f
> sync. Then I searched how and where the accelerant DPrintf() traces
> are visible and can't find them. Then I run out of free time ;-)
> 
> For the next free time slot, could you tell me how to see these
> traces? Thanks.

Item one,

  The mode lines aren't detected via EDID/DDC yet... we/I have to
  finishing integrating AMD's Atombios parser to pull the correct
  vsync,hsync,etc from the Radeon card.  I have the Xorg AMD Atombios
  parser ported already (and it is in the RadeonHD accelerant as of
  r41088), but I am still in the progress of tying it together to be
  used.

  If you want to play with modelines, you can spin up linux and look
  through the Xorg logs... they should display your monitor's modelines:
  
  $ cat /var/log/Xorg.0.log | grep Modeline
  (II) fglrx(0): Modeline "1600x900"x0.0   97.75  1600 1648 1680 1760
  900 903 908 926 +hsync -vsync (55.5 kHz)
  .
  .

  They are hard-coded here:
   
http://dev.haiku-os.org/browser/haiku/trunk/src/add-ons/accelerants/radeon_hd/mode.cpp#L44

  Modelines will be different for each monitor, and can be *super*
  flaky to get working by hand. YMMV


Item two,
  Tracing should be enabled by default atm, you should see tracing
  messages in /var/log/syslog.  If you do not something may be wrong.


I do plan to put more work into this... I took a small break because
AtomBIOS was driving me nuts, then I kind of got side tracked with real
life (which seems to happen ;) )

There is a radeon_hd category in trac now if you find any bugs... or
if you want to make any small changes feel free.  Most of the heavy
construction is in:
  
http://dev.haiku-os.org/browser/haiku/trunk/src/add-ons/accelerants/radeon_hd/bios.cpp

CailXXXX are function callbacks used within AMD's AtomBios parser, AMD
kind of goes in circles at times.

Else, feel free to email me or chat me up in irc.

Including -dev as this is more of a -dev topic :D


 Thanks!

 -- Alex

Other related posts: