[haiku-bugs] Re: [Haiku] #17664: radeon_hd "Cedar": app_server crashes writing to 0MB tiny framebuffer

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Fri, 18 Nov 2022 18:40:50 -0000

#17664: radeon_hd "Cedar": app_server crashes writing to 0MB tiny framebuffer
-----------------------------------------+----------------------------
  Reporter:  thebuck                     |      Owner:  kallisti5
      Type:  bug                         |     Status:  new
  Priority:  high                        |  Milestone:  Unscheduled
 Component:  Drivers/Graphics/radeon_hd  |    Version:  R1/Development
Resolution:                              |   Keywords:  Cedar
Blocked By:                              |   Blocking:
  Platform:  x86-64                      |
-----------------------------------------+----------------------------

Old description:

Boot hrev55954 x86_64 with defaults and a Radeon HD 5450 "Cedar".\\
All icons light up, black screen for a moment, machine resets.

With VESA it works.

Monitor info (Model, 1600x1200 at DVI) from syslog seems adequate.

== Some interesting syslog snippets:
{{{
radeon_hd: device_open: open(name = graphics/radeon_hd_040000)

radeon_hd: radeon_hd_init: card(0): Radeon Cedar 1002:68E0

radeon_hd: radeon_hd_init: mapping a frame buffer of 0MB out of 0MB video
ram
radeon_hd: framebuffer paddr: 0xd0000000

radeon_hd: frambuffer vaddr: 0xffffffff81959000
radeon_hd: frambuffer size: 0x400

radeon_hd: radeon_hd_getbios: AtomBIOS found using active method 2 at
0xFEBA0000
radeon_hd: card(0): radeon_hd_init found VESA EDID information.

radeon_hd: radeon_set_display_mode
radeon_hd:   mode->space: 0x8
radeon_hd:   mode->virtual_width: 1600
radeon_hd:   mode->virtual_height: 1200
radeon_hd:   mode->h_display_start: 0
radeon_hd:   mode->v_display_start: 0
radeon_hd:   mode->flags: 0x8000001f

radeon_hd: radeon_get_frame_buffer_config
radeon_hd:   config->frame_buffer: 0xffffffff81959000
radeon_hd:   config->frame_buffer_dma: 0xd0000000
radeon_hd:   config->bytes_per_row: 6400

stack trace, current PC 0x60a3e6ddc6  memcpy + 0x26:
  (0x7f81477c79c0)  0x3462082f61  _ZNK11HWInterface12_CopyToFrontEPhjiiii
+ 0x4e1
  (0x7f81477c7a40)  0x3462083102
_ZN11HWInterface16_CopyBackToFrontER7BRegion + 0x92
  (0x7f81477c7aa0)  0x3462067929
_ZN21AccelerantHWInterface16_CopyBackToFrontER7BRegion + 0xd9
  (0x7f81477c7b00)  0x3462084c37
_ZN11HWInterface15CopyBackToFrontERK5BRect + 0x187
  (0x7f81477c7ba0)  0x346208266b
_ZN11HWInterface16InvalidateRegionERK7BRegion + 0x5b
  (0x7f81477c7c00)  0x346207aeb2
_ZN13DrawingEngine10FillRegionER7BRegionRK9rgb_color + 0x172
  (0x7f81477c7cc0)  0x3462010425  _ZN7Desktop14_SetBackgroundER7BRegion +
0xa5
  (0x7f81477c7d30)  0x346201448f  _ZN7Desktop4InitEv + 0x2ff
  (0x7f81477c7de0)  0x346200827f  _ZN9AppServer14_CreateDesktopEjPKc +
0x4f
  (0x7f81477c7e30)  0x346200853d
_ZN9AppServer15MessageReceivedEP8BMessage + 0x14d
  (0x7f81477c7ee0)  0xe5019b3bd4  _ZN7BLooper11task_looperEv + 0x284
  (0x7f81477c7f30)  0xe5019a8b31  _ZN12BApplication3RunEv + 0x21
  (0x7f81477c7f50)  0x3462006fd2  main + 0x52
  (0x7f81477c7f80)  0x3462007a4f  _start + 0x3f
  (0x7f81477c7fb0)  0x10bb666f005  runtime_loader + 0x105
vm_soft_fault: va 0xffffffff8195a000 not covered by area in address space
}}}

New description:

 Booting with defaults and a Radeon HD 5450 "Cedar".
 After all icons are lighted up, get a colorful horizontally-bricked
 garbled display (hard to work with, but no crash).

 With VESA it works.

 Monitor info (Model, 1600x1200 at DVI) from syslog seems adequate.

 NOTE: Originally this bug described an app_server crash due to accessing a
 too tiny framebuffer. That part has been fixed in hrev56333.

 Please update title, it seems I cannot.

--
Comment (by thebuck):

 Still there with R1beta4tc0.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/17664#comment:21>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: