Skip to contentSkip to conversation

drm/radeon: always set GEM function pointer

PATCH In review Christian König 9 participants 28 messages Oct 7, 2024 – Aug 9, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/radeon: always set GEM function pointer

Make sure to always set the GEM function pointer even for in kernel allocations. This fixes a NULL pointer deref caused by switching to GEM references.

Fixes fd69ef05029f ("drm/radeon: use GEM references instead of TTMs")
---
 drivers/gpu/drm/radeon/radeon_gem.c    | 3 ---
 drivers/gpu/drm/radeon/radeon_object.c | 1 +
 2 files changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_gem.c +0 -3
index 9735f4968b86..bf2d4b16dc2a 100644
@@ -44,8 +44,6 @@ struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj);
 int radeon_gem_prime_pin(struct drm_gem_object *obj);
 void radeon_gem_prime_unpin(struct drm_gem_object *obj);
 
-const struct drm_gem_object_funcs radeon_gem_object_funcs;
-
 static vm_fault_t radeon_gem_fault(struct vm_fault *vmf)
 {
 	struct ttm_buffer_object *bo = vmf->vma->vm_private_data;
@@ -132,7 +130,6 @@ int radeon_gem_object_create(struct radeon_device *rdev, unsigned long size,
 		return r;
 	}
 	*obj = &robj->tbo.base;
-	(*obj)->funcs = &radeon_gem_object_funcs;
 	robj->pid = task_pid_nr(current);
 
 	mutex_lock(&rdev->gem.mutex);
drivers/gpu/drm/radeon/radeon_object.c +1 -0
index d0e4b43d155c..7672404fdb29 100644
@@ -151,6 +151,7 @@ int radeon_bo_create(struct radeon_device *rdev,
 	if (bo == NULL)
 		return -ENOMEM;
 	drm_gem_private_object_init(rdev_to_drm(rdev), &bo->tbo.base, size);
+	bo->tbo.base.funcs = &radeon_gem_object_funcs;
 	bo->rdev = rdev;
 	bo->surface_reg = -1;
 	INIT_LIST_HEAD(&bo->list);
Signature · 1 line
2.34.1
#1 lore raw

Add a few people.

This should fix the radeon ttm gem conversion.

Alex

Quoted 48 lines · Christian König

Make sure to always set the GEM function pointer even for in kernel allocations. This fixes a NULL pointer deref caused by switching to GEM references.

Fixes fd69ef05029f ("drm/radeon: use GEM references instead of TTMs")
---
 drivers/gpu/drm/radeon/radeon_gem.c    | 3 ---
 drivers/gpu/drm/radeon/radeon_object.c | 1 +
 2 files changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_gem.c +0 -3
index 9735f4968b86..bf2d4b16dc2a 100644
@@ -44,8 +44,6 @@ struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj);
 int radeon_gem_prime_pin(struct drm_gem_object *obj);
 void radeon_gem_prime_unpin(struct drm_gem_object *obj);
 
-const struct drm_gem_object_funcs radeon_gem_object_funcs;
-
 static vm_fault_t radeon_gem_fault(struct vm_fault *vmf)
 {
        struct ttm_buffer_object *bo = vmf->vma->vm_private_data;
@@ -132,7 +130,6 @@ int radeon_gem_object_create(struct radeon_device *rdev, unsigned long size,
                return r;
        }
        *obj = &robj->tbo.base;
-       (*obj)->funcs = &radeon_gem_object_funcs;
        robj->pid = task_pid_nr(current);
 
        mutex_lock(&rdev->gem.mutex);
drivers/gpu/drm/radeon/radeon_object.c +1 -1
index d0e4b43d155c..7672404fdb29 100644
@@ -151,6 +151,7 @@ int radeon_bo_create(struct radeon_device *rdev,
        if (bo == NULL)
                return -ENOMEM;
        drm_gem_private_object_init(rdev_to_drm(rdev), &bo->tbo.base, size);
+       bo->tbo.base.funcs = &radeon_gem_object_funcs;
        bo->rdev = rdev;
        bo->surface_reg = -1;
        INIT_LIST_HEAD(&bo->list);
--

2.34.1

#2 lore raw

PATCH 1/1 drm/radeon: always set GEM function pointer

Hi All,

I have released the RC2 of kernel 6.12 with Christian Koenig’s patch for the X1000 and X5000.

Download and further information: https://github.com/chzigotzky/kernels/releases/tag/v6.12.0-rc2

Please test the kernels because of the second Radeon DRM driver issue.

Thanks,
Christian

Quoted 60 lines

Am 07.10.2024 um 20:36 schrieb Alex Deucher <[email protected]>:

Add a few people.

This should fix the radeon ttm gem conversion.

Alex

Quoted 50 lines

On Mon, Oct 7, 2024 at 2:33 PM Christian König
<[email protected]> wrote:

Make sure to always set the GEM function pointer even for in kernel allocations. This fixes a NULL pointer deref caused by switching to GEM references.

Fixes fd69ef05029f ("drm/radeon: use GEM references instead of TTMs")

---
drivers/gpu/drm/radeon/radeon_gem.c | 3 ---
drivers/gpu/drm/radeon/radeon_object.c | 1 +

2 files changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_gem.c +0 -3
index 9735f4968b86..bf2d4b16dc2a 100644
@@ -44,8 +44,6 @@ struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj);
 int radeon_gem_prime_pin(struct drm_gem_object *obj);
 void radeon_gem_prime_unpin(struct drm_gem_object *obj);
 
-const struct drm_gem_object_funcs radeon_gem_object_funcs;
-
 static vm_fault_t radeon_gem_fault(struct vm_fault *vmf)
 {
       struct ttm_buffer_object *bo = vmf->vma->vm_private_data;
@@ -132,7 +130,6 @@ int radeon_gem_object_create(struct radeon_device *rdev, unsigned long size,
               return r;
       }
       *obj = &robj->tbo.base;
-       (*obj)->funcs = &radeon_gem_object_funcs;
       robj->pid = task_pid_nr(current);
 
       mutex_lock(&rdev->gem.mutex);
drivers/gpu/drm/radeon/radeon_object.c +1 -1
index d0e4b43d155c..7672404fdb29 100644
@@ -151,6 +151,7 @@ int radeon_bo_create(struct radeon_device *rdev,
       if (bo == NULL)
               return -ENOMEM;
       drm_gem_private_object_init(rdev_to_drm(rdev), &bo->tbo.base, size);
+       bo->tbo.base.funcs = &radeon_gem_object_funcs;
       bo->rdev = rdev;
       bo->surface_reg = -1;
       INIT_LIST_HEAD(&bo->list);
--

2.34.1

#3 lore raw

PATCH 1/1 drm/radeon issues

Hi All,

There is another issue with the Radeon DRM driver but there is already a patch available for this issue.

I compiled a new RC2 of kernel 6.12 with this patch for the X1000 and X5000 today.

Download: https://github.com/chzigotzky/kernels/releases/tag/v6.12.0-rc2-2

We need 3 patches for the Radeon DRM driver currently.

Please test it.

Thanks,
Christian

Quoted 73 lines · Christian Zigotzky

Hi All,

I have released the RC2 of kernel 6.12 with Christian Koenig’s patch for the X1000 and X5000.

Download and further information: https://github.com/chzigotzky/kernels/releases/tag/v6.12.0-rc2

Please test the kernels because of the second Radeon DRM driver issue.

Thanks,
Christian

Quoted 60 lines

Am 07.10.2024 um 20:36 schrieb Alex Deucher <[email protected]>:

Add a few people.

This should fix the radeon ttm gem conversion.

Alex

Quoted 50 lines

On Mon, Oct 7, 2024 at 2:33 PM Christian König
<[email protected]> wrote:

Make sure to always set the GEM function pointer even for in kernel allocations. This fixes a NULL pointer deref caused by switching to GEM references.

Fixes fd69ef05029f ("drm/radeon: use GEM references instead of TTMs")

---
drivers/gpu/drm/radeon/radeon_gem.c | 3 ---
drivers/gpu/drm/radeon/radeon_object.c | 1 +

2 files changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_gem.c +0 -3
index 9735f4968b86..bf2d4b16dc2a 100644
@@ -44,8 +44,6 @@ struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj);
 int radeon_gem_prime_pin(struct drm_gem_object *obj);
 void radeon_gem_prime_unpin(struct drm_gem_object *obj);
 
-const struct drm_gem_object_funcs radeon_gem_object_funcs;
-
 static vm_fault_t radeon_gem_fault(struct vm_fault *vmf)
 {
      struct ttm_buffer_object *bo = vmf->vma->vm_private_data;
@@ -132,7 +130,6 @@ int radeon_gem_object_create(struct radeon_device *rdev, unsigned long size,
              return r;
      }
      *obj = &robj->tbo.base;
-       (*obj)->funcs = &radeon_gem_object_funcs;
      robj->pid = task_pid_nr(current);
 
      mutex_lock(&rdev->gem.mutex);
drivers/gpu/drm/radeon/radeon_object.c +1 -1
index d0e4b43d155c..7672404fdb29 100644
@@ -151,6 +151,7 @@ int radeon_bo_create(struct radeon_device *rdev,
      if (bo == NULL)
              return -ENOMEM;
      drm_gem_private_object_init(rdev_to_drm(rdev), &bo->tbo.base, size);
+       bo->tbo.base.funcs = &radeon_gem_object_funcs;
      bo->rdev = rdev;
      bo->surface_reg = -1;
      INIT_LIST_HEAD(&bo->list);
--

2.34.1

#4 lore raw

Re: [PATCHES] drm/radeon issues

Quoted 11 lines · Christian Zigotzky

Hi All,

There is another issue with the Radeon DRM driver but there is already a patch available for this issue.

I compiled a new RC2 of kernel 6.12 with this patch for the X1000 and X5000 today.

Download: https://github.com/chzigotzky/kernels/releases/tag/v6.12.0-rc2-2

We need 3 patches for the Radeon DRM driver currently.

Can you provide links to all 3 patches?

6.12-rc2 was back merged to my ath.git project, but then my laptop stopped booting correctly and I discovered a few Radeon KASAN reports. Based upon my search of lore I found:

[email protected] [PATCH] drm/radeon: add late_register for connector

[email protected] [PATCH] drm/radeon: always set GEM function pointer

But that is only 2 patches.

#5 lore raw

PATCH 1/1 drm/radeon issues

On 11 October 2024 at 01:49am, Jeff Johnson <[email protected]> wrote:

Can you provide links to all 3 patches?

6.12-rc2 was back merged to my ath.git project, but then my laptop stopped booting correctly and I discovered a few Radeon KASAN reports. Based upon my search of lore I found:

[email protected] [PATCH] drm/radeon: add late_register for connector

[email protected] [PATCH] drm/radeon: always set GEM function pointer

But that is only 2 patches.

- - -

The third patch: https://github.com/chzigotzky/kernels/blob/main/patches/X1000/radeon_encoders.patch

#6 lore raw

Re: [PATCHES] drm/radeon issues

Quoted 12 lines · Christian Zigotzky

On 11 October 2024 at 01:49am, Jeff Johnson <[email protected]> wrote:

Can you provide links to all 3 patches?

6.12-rc2 was back merged to my ath.git project, but then my laptop stopped booting correctly and I discovered a few Radeon KASAN reports. Based upon my search of lore I found:

[email protected] [PATCH] drm/radeon: add late_register for connector

Quoted 8 lines

[email protected] [PATCH] drm/radeon: always set GEM function pointer

But that is only 2 patches.

- - -

The third patch: https://github.com/chzigotzky/kernels/blob/main/patches/X1000/radeon_encoders.patch

Can whoever wrote this send it out as a proper patch?

Alex

#9 lore raw

radeon_fbdev_river_fbdev: failed to initialize framebuffer and setup emulaton

Hello,

Xorg doesn't work after the DRM updates drm-next-2025-07-30.

Error messages:

[dr:.radeon_fbdev_river_fbdev_proe] *ERROR* failed to initialize framebuffer -22 radeon 0000:01:0.0: [drm] *ERRO* fbdev: Failedto setup emulaton (ret=-22)
brd module loadedm
lop: module loadd
mpt3ss version 52.10.00.00 loaded
nve nvme0: pci fuction 0002:04:0.0
fsl-sata ffe20000.sata: SataFSL Platform/CS Driver init
scs host0: sata_fs
ta1: SATA max DMA/133 irq 68 pm-pol 0
;21;39mfsl-sat ffe221000.sata Sata FSL Platfrm/CSB Driver iit
ata1: Signatue Update detectd @ 0 msecs
scsihost1: sata_fsl[0m
ta2: SATA max UMA/133 irq 69 lm-pol 0
nvme nvm0: 4/0/0 defaul/read/poll queus
nvme0n1: p1 p p3 p4 p5 p6 p7[0m
drm:.radeon_fbdv_driver_fbdev_robe] *ERROR* filed to initialze framebuffer 22 fsl_dpaa_mac fe4e6000.ethernt: of_get_mac_adress(/soc@ffe00000/fman@40000/ethernet@e6000 failed radeon 000:01:00.0: [dr] *ERROR* fbdev Failed to setu emulation (ret-22) fsl_dpaa_ma ffe4e6000.ethenet: FMan MEMAC[0m
sl_dpaa_mac ffee6000.ethernet:Using random MA address: 0e

Could you please check the latest DRM updates?

Thanks,
Christian

#10 lore raw

radeon_fbdev_river_fbdev: failed to initialize framebuffer and setup emulaton

Hello,

I have the same issue on another machine either. Blank screen during the boot. The Radeon graphics framebuffer device doesn't work anymore.

Here is the modifed code from the DRM updates (drm-next-2025-07-30):

- https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_fbdev.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2
- https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_drv.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2
- https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_display.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2
- https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/evergreen_cs.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2

Do you have a patch for reverting these modifications? I would like to revert these modifications for testing.

Thanks in advance,
Christian

Quoted 32 lines · Christian Zigotzky

Hello,

Xorg doesn't work after the DRM updates drm-next-2025-07-30.

Error messages:

[dr:.radeon_fbdev_river_fbdev_proe] *ERROR* failed to initialize framebuffer -22 radeon 0000:01:0.0: [drm] *ERRO* fbdev: Failedto setup emulaton (ret=-22)
brd module loadedm
lop: module loadd
mpt3ss version 52.10.00.00 loaded
nve nvme0: pci fuction 0002:04:0.0
fsl-sata ffe20000.sata: SataFSL Platform/CS Driver init
scs host0: sata_fs
ta1: SATA max DMA/133 irq 68 pm-pol 0
;21;39mfsl-sat ffe221000.sata Sata FSL Platfrm/CSB Driver iit
ata1: Signatue Update detectd @ 0 msecs
scsihost1: sata_fsl[0m
ta2: SATA max UMA/133 irq 69 lm-pol 0
nvme nvm0: 4/0/0 defaul/read/poll queus
nvme0n1: p1 p p3 p4 p5 p6 p7[0m
drm:.radeon_fbdv_driver_fbdev_robe] *ERROR* filed to initialze framebuffer 22 fsl_dpaa_mac fe4e6000.ethernt: of_get_mac_adress(/soc@ffe00000/ fman@40000/ethernet@e6000 failed radeon 000:01:00.0: [dr] *ERROR* fbdev Failed to setu emulation (ret-22) fsl_dpaa_ma ffe4e6000.ethenet: FMan MEMAC[0m
sl_dpaa_mac ffee6000.ethernet:Using random MA address: 0e

Could you please check the latest DRM updates?

Thanks,
Christian

#11 lore raw

radeon_fbdev_river_fbdev: failed to initialize framebuffer and setup emulation

FYI: We are using PowerPC machines.

+ dri-devel

Quoted 46 lines · Christian Zigotzky

Hello,

I have the same issue on another machine either. Blank screen during the boot. The Radeon graphics framebuffer device doesn't work anymore.

Here is the modifed code from the DRM updates (drm-next-2025-07-30):

- https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_fbdev.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2
- https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_drv.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2
- https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_display.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2
- https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/evergreen_cs.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2

Do you have a patch for reverting these modifications? I would like to revert these modifications for testing.

Thanks in advance,
Christian

Quoted 27 lines · Christian Zigotzky

Hello,
Xorg doesn't work after the DRM updates drm-next-2025-07-30.
Error messages:
[dr:.radeon_fbdev_river_fbdev_proe] *ERROR* failed to initialize framebuffer -22 radeon 0000:01:0.0: [drm] *ERRO* fbdev: Failedto setup emulaton (ret=-22)
brd module loadedm
lop: module loadd
mpt3ss version 52.10.00.00 loaded
nve nvme0: pci fuction 0002:04:0.0
fsl-sata ffe20000.sata: SataFSL Platform/CS Driver init
scs host0: sata_fs
ta1: SATA max DMA/133 irq 68 pm-pol 0
;21;39mfsl-sat ffe221000.sata Sata FSL Platfrm/CSB Driver iit
ata1: Signatue Update detectd @ 0 msecs
scsihost1: sata_fsl[0m
ta2: SATA max UMA/133 irq 69 lm-pol 0
nvme nvm0: 4/0/0 defaul/read/poll queus
nvme0n1: p1 p p3 p4 p5 p6 p7[0m
drm:.radeon_fbdv_driver_fbdev_robe] *ERROR* filed to initialze framebuffer 22 fsl_dpaa_mac fe4e6000.ethernt: of_get_mac_adress(/soc@ffe00000/ fman@40000/ethernet@e6000 failed radeon 000:01:00.0: [dr] *ERROR* fbdev Failed to setu emulation (ret-22) fsl_dpaa_ma ffe4e6000.ethenet: FMan MEMAC[0m
sl_dpaa_mac ffee6000.ethernet:Using random MA address: 0e
Could you please check the latest DRM updates?
Thanks,
Christian

#12 lore raw

Re: radeon_fbdev_river_fbdev: failed to initialize framebuffer and setup emulaton

In reply to Christian Zigotzky
Quoted 6 lines · Christian Zigotzky

Hello,

I have the same issue on another machine either. Blank screen during the boot. The Radeon graphics framebuffer device doesn't work anymore.

Quoted 6 lines

Here is the modifed code from the DRM updates (drm-next-2025-07-30):

-
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_fbdev.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2
-
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_drv.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2

This change just bumps the driver version it shouldn't affect the fbdev.

Quoted 4 lines

-
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_display.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2
-
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/evergreen_cs.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2

This only affects acceleration, it should not affect fbdev.

What chip are you using? Can you attach your full dmesg output? Can you bisect? This cultrit could be a core drm change.

Alex

Quoted 44 lines

Do you have a patch for reverting these modifications? I would like to revert these modifications for testing.

Thanks in advance,
Christian

Quoted 35 lines · Christian Zigotzky

Hello,

Xorg doesn't work after the DRM updates drm-next-2025-07-30.

Error messages:

[dr:.radeon_fbdev_river_fbdev_proe] *ERROR* failed to initialize framebuffer -22
radeon 0000:01:0.0: [drm] *ERRO* fbdev: Failedto setup emulaton (ret=-22) brd module loadedm
lop: module loadd
mpt3ss version 52.10.00.00 loaded
nve nvme0: pci fuction 0002:04:0.0
fsl-sata ffe20000.sata: SataFSL Platform/CS Driver init
scs host0: sata_fs
ta1: SATA max DMA/133 irq 68 pm-pol 0
;21;39mfsl-sat ffe221000.sata Sata FSL Platfrm/CSB Driver iit
ata1: Signatue Update detectd @ 0 msecs
scsihost1: sata_fsl[0m
ta2: SATA max UMA/133 irq 69 lm-pol 0
nvme nvm0: 4/0/0 defaul/read/poll queus
nvme0n1: p1 p p3 p4 p5 p6 p7[0m drm:.radeon_fbdv_driver_fbdev_robe] *ERROR* filed to initialze framebuffer 22
fsl_dpaa_mac fe4e6000.ethernt: of_get_mac_adress(/soc@ffe00000/ fman@40000/ethernet@e6000 failed
radeon 000:01:00.0: [dr] *ERROR* fbdev Failed to setu emulation (ret-22) fsl_dpaa_ma ffe4e6000.ethenet: FMan MEMAC[0m
sl_dpaa_mac ffee6000.ethernet:Using random MA address: 0e

Could you please check the latest DRM updates?

Thanks,
Christian

#13 lore raw

radeon_fbdev_river_fbdev: failed to initialize framebuffer and setup emulation

Quoted 24 lines · Alex Deucher
Quoted 6 lines · Christian Zigotzky

Hello,

I have the same issue on another machine either. Blank screen during the boot. The Radeon graphics framebuffer device doesn't work anymore.

Quoted 6 lines

Here is the modifed code from the DRM updates (drm-next-2025-07-30):

-
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_fbdev.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2
-
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_drv.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2

This change just bumps the driver version it shouldn't affect the fbdev.

Quoted 4 lines

-
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_display.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2
-
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/evergreen_cs.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2

This only affects acceleration, it should not affect fbdev.

Quoted 49 lines

What chip are you using? Can you attach your full dmesg output? Can you bisect? This cultrit could be a core drm change.

Alex

Quoted 44 lines

Do you have a patch for reverting these modifications? I would like to revert these modifications for testing.

Thanks in advance,
Christian

Quoted 35 lines · Christian Zigotzky

Hello,

Xorg doesn't work after the DRM updates drm-next-2025-07-30.

Error messages:

[dr:.radeon_fbdev_river_fbdev_proe] *ERROR* failed to initialize framebuffer -22
radeon 0000:01:0.0: [drm] *ERRO* fbdev: Failedto setup emulaton (ret=-22) brd module loadedm
lop: module loadd
mpt3ss version 52.10.00.00 loaded
nve nvme0: pci fuction 0002:04:0.0
fsl-sata ffe20000.sata: SataFSL Platform/CS Driver init
scs host0: sata_fs
ta1: SATA max DMA/133 irq 68 pm-pol 0
;21;39mfsl-sat ffe221000.sata Sata FSL Platfrm/CSB Driver iit
ata1: Signatue Update detectd @ 0 msecs
scsihost1: sata_fsl[0m
ta2: SATA max UMA/133 irq 69 lm-pol 0
nvme nvm0: 4/0/0 defaul/read/poll queus
nvme0n1: p1 p p3 p4 p5 p6 p7[0m drm:.radeon_fbdv_driver_fbdev_robe] *ERROR* filed to initialze framebuffer 22
fsl_dpaa_mac fe4e6000.ethernt: of_get_mac_adress(/soc@ffe00000/ fman@40000/ethernet@e6000 failed
radeon 000:01:00.0: [dr] *ERROR* fbdev Failed to setu emulation (ret-22) fsl_dpaa_ma ffe4e6000.ethenet: FMan MEMAC[0m
sl_dpaa_mac ffee6000.ethernet:Using random MA address: 0e

Could you please check the latest DRM updates?

Thanks,
Christian

Hello Alex,

Thanks for your answer.

I use a BARTS chip (Radeon HD6870). I would like to bisect but I don't have time for it currently. Sorry

There are some other user reports:

- https://forum.hyperion-entertainment.com/viewtopic.php?p=60606#p60606
- https://forum.hyperion-entertainment.com/viewtopic.php?p=60595#p60595

They use other Radeon graphics chips.

Bug report: https://github.com/chzigotzky/kernels/issues/15

What do you think about the following commit?

@Hypex
Could you please attach your full dmesg output?

Thanks,
Christian

#14 lore raw

Re: radeon_fbdev_river_fbdev: failed to initialize framebuffer and setup emulation

I am using the R580 chip which is the Radeon X1950 XT.

The board i am using is a T1042 PowerPC based one with e5500 core.

I also lost the ability to start Xorg and therefore just a blank screen.

Dave

Op ma 4 aug 2025, 18:04 schreef Christian Zigotzky <[email protected]>:

Quoted 110 lines · Alex Deucher
Quoted 5 lines
Quoted 3 lines · Christian Zigotzky

Hello,

Quoted 7 lines
Quoted 7 lines

I have the same issue on another machine either. Blank screen during the boot. The Radeon graphics framebuffer device doesn't work anymore.

Here is the modifed code from the DRM updates (drm-next-2025-07-30):

-

https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_fbdev.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2

Quoted 2 lines
Quoted 2 lines

-

https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_drv.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2

Quoted 5 lines

This change just bumps the driver version it shouldn't affect the fbdev.

Quoted 2 lines

-

https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_display.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2

Quoted 2 lines
Quoted 2 lines

-

https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/evergreen_cs.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2

Quoted 25 lines

This only affects acceleration, it should not affect fbdev.

What chip are you using? Can you attach your full dmesg output? Can you bisect? This cultrit could be a core drm change.

Alex

Quoted 17 lines

Do you have a patch for reverting these modifications? I would like to revert these modifications for testing.

Thanks in advance,
Christian

Quoted 9 lines · Christian Zigotzky

Hello,

Xorg doesn't work after the DRM updates drm-next-2025-07-30.

Error messages:

[dr:.radeon_fbdev_river_fbdev_proe] *ERROR* failed to initialize framebuffer -22
radeon 0000:01:0.0: [drm] *ERRO* fbdev: Failedto setup emulaton

(ret=-22)

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

brd module loadedm
lop: module loadd
mpt3ss version 52.10.00.00 loaded
nve nvme0: pci fuction 0002:04:0.0
fsl-sata ffe20000.sata: SataFSL Platform/CS Driver init scs host0: sata_fs
ta1: SATA max DMA/133 irq 68 pm-pol 0 ;21;39mfsl-sat ffe221000.sata Sata FSL Platfrm/CSB Driver iit
ata1: Signatue Update detectd @ 0 msecs
scsihost1: sata_fsl[0m

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

ta2: SATA max UMA/133 irq 69 lm-pol 0
nvme nvm0: 4/0/0 defaul/read/poll queus
nvme0n1: p1 p p3 p4 p5 p6 p7[0m drm:.radeon_fbdv_driver_fbdev_robe] *ERROR* filed to initialze framebuffer 22
fsl_dpaa_mac fe4e6000.ethernt: of_get_mac_adress(/soc@ffe00000/ fman@40000/ethernet@e6000 failed
radeon 000:01:00.0: [dr] *ERROR* fbdev Failed to setu emulation

(ret-22)

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

fsl_dpaa_ma ffe4e6000.ethenet: FMan MEMAC[0m sl_dpaa_mac ffee6000.ethernet:Using random MA address: 0e

Could you please check the latest DRM updates?

Thanks,
Christian

Hello Alex,

Thanks for your answer.

I use a BARTS chip (Radeon HD6870). I would like to bisect but I don't have time for it currently. Sorry

There are some other user reports:

- https://forum.hyperion-entertainment.com/viewtopic.php?p=60606#p60606
- https://forum.hyperion-entertainment.com/viewtopic.php?p=60595#p60595

They use other Radeon graphics chips.

Bug report: https://github.com/chzigotzky/kernels/issues/15

What do you think about the following commit?

Link:

https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0e7d5874fb6b80c44be3cfbcf1cf356e81d91232

@Hypex
Could you please attach your full dmesg output?

Thanks,
Christian

#15 lore raw

radeon_fbdev_river_fbdev: failed to initialize framebuffer and setup emulation

I bisected today.
git clone https://gitlab.freedesktop.org/drm/kernel a
git bisect start
git bisect good 2f29b5c231011b94007d2c8a6d793992f2275db1(Good: video: screen_info: Relocate framebuffers behind PCI bridges)
git bisect bad f62408efc8669b82541295a4611494c8c8c52684(Bad: drm/xe/vf: Disable CSC support on VF)
4d4c10f763d7808fbade28d83d237411603bca05 is the first bad commitcommit 4d4c10f763d7808fbade28d83d237411603bca05Author: Mario Limonciello <[email protected]>Date:   Wed Apr 23 23:31:32 2025 -0500
    PCI: Explicitly put devices into D0 when initializing
    AMD BIOS team has root caused an issue that NVMe storage failed to come    back from suspend to a lack of a call to _REG when NVMe device was probed.
    112a7f9c8edbf ("PCI/ACPI: Call _REG when transitioning D-states") added    support for calling _REG when transitioning D-states, but this only works    if the device actually "transitions" D-states. 967577b062417 ("PCI/PM: Keep runtime PM enabled for unbound PCI devices")    added support for runtime PM on PCI devices, but never actually    'explicitly' sets the device to D0. To make sure that devices are in D0 and that platform methods such as    _REG are called, explicitly set all devices into D0 during initialization.

Fixes 967577b062417 ("PCI/PM: Keep runtime PM enabled for unbound PCI devices")    Signed-off-by: Mario Limonciello <[email protected]>    Signed-off-by: Bjorn Helgaas <[email protected]>    Tested-by: Denis Benato <[email protected]>    Tested-By: Yijun Shen <[email protected]>    Tested-By: David Perry <[email protected]>    Reviewed-by: Rafael J. Wysocki <[email protected]>    Link: https://patch.msgid.link/[email protected] open here

 drivers/pci/pci-driver.c |  6 ------ drivers/pci/pci.c        | 13 ++++++++++--- drivers/pci/pci.h        |  1 + 3 files changed, 11 insertions(+), 9 deletions(-) I bisected with a ATi Radeon 7000 / VE (-device ati-vga,model=rv100) :-)
On 04 August 2025 at 06:26 pm, mad skateman <[email protected]> wrote:

I am using the R580 chip which is the Radeon X1950 XT.
The board i am using is a T1042 PowerPC based one with e5500 core. I also lost the ability to start Xorg and therefore just a blank screen. Dave

Op ma 4 aug 2025, 18:04 schreef Christian Zigotzky <[email protected]>:

Quoted 24 lines · Alex Deucher
Quoted 6 lines · Christian Zigotzky

Hello,

I have the same issue on another machine either. Blank screen during the boot. The Radeon graphics framebuffer device doesn't work anymore.

Quoted 6 lines

Here is the modifed code from the DRM updates (drm-next-2025-07-30):

-
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_fbdev.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2
-
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_drv.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2

This change just bumps the driver version it shouldn't affect the fbdev.

Quoted 4 lines

-
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_display.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2
-
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/evergreen_cs.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2

This only affects acceleration, it should not affect fbdev.

Quoted 49 lines

What chip are you using?  Can you attach your full dmesg output?  Can you bisect?  This cultrit could be a core drm change.

Alex

Quoted 44 lines

Do you have a patch for reverting these modifications? I would like to revert these modifications for testing.

Thanks in advance,
Christian

Quoted 35 lines · Christian Zigotzky

Hello,

Xorg doesn't work after the DRM updates drm-next-2025-07-30.

Error messages:

[dr:.radeon_fbdev_river_fbdev_proe] *ERROR* failed to initialize framebuffer -22
radeon 0000:01:0.0: [drm] *ERRO* fbdev: Failedto setup emulaton (ret=-22) brd module loadedm
lop: module loadd
mpt3ss version 52.10.00.00 loaded
nve nvme0: pci fuction 0002:04:0.0
fsl-sata ffe20000.sata: SataFSL Platform/CS Driver init
scs host0: sata_fs
ta1: SATA max DMA/133 irq 68 pm-pol 0
;21;39mfsl-sat ffe221000.sata Sata FSL Platfrm/CSB Driver iit
ata1: Signatue Update detectd @ 0 msecs
scsihost1: sata_fsl[0m
ta2: SATA max UMA/133 irq 69 lm-pol 0
nvme nvm0: 4/0/0 defaul/read/poll queus
nvme0n1: p1 p p3 p4 p5 p6 p7[0m drm:.radeon_fbdv_driver_fbdev_robe] *ERROR* filed to initialze framebuffer 22
fsl_dpaa_mac fe4e6000.ethernt: of_get_mac_adress(/soc@ffe00000/ fman@40000/ethernet@e6000 failed
radeon 000:01:00.0: [dr] *ERROR* fbdev Failed to setu emulation (ret-22) fsl_dpaa_ma ffe4e6000.ethenet: FMan MEMAC[0m
sl_dpaa_mac ffee6000.ethernet:Using random MA address: 0e

Could you please check the latest DRM updates?

Thanks,
Christian

Hello Alex,

Thanks for your answer.

I use a BARTS chip (Radeon HD6870). I would like to bisect but I don't have time for it currently. Sorry

There are some other user reports:

- https://forum.hyperion-entertainment.com/viewtopic.php?p=60606#p60606
- https://forum.hyperion-entertainment.com/viewtopic.php?p=60595#p60595

They use other Radeon graphics chips.

Bug report: https://github.com/chzigotzky/kernels/issues/15

What do you think about the following commit?

Link:
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0e7d5874fb6b80c44be3cfbcf1cf356e81d91232

@Hypex
Could you please attach your full dmesg output?

Thanks,
Christian

#16 lore raw

Re: radeon_fbdev_river_fbdev: failed to initialize framebuffer and setup emulation

Quoted 46 lines · Christian Zigotzky

I bisected today.

git clone https://gitlab.freedesktop.org/drm/kernel a

git bisect start

git bisect good 2f29b5c231011b94007d2c8a6d793992f2275db1 (Good: video: screen_info: Relocate framebuffers behind PCI bridges)

git bisect bad f62408efc8669b82541295a4611494c8c8c52684 (Bad: drm/xe/vf: Disable CSC support on VF)

4d4c10f763d7808fbade28d83d237411603bca05 is the first bad commit commit 4d4c10f763d7808fbade28d83d237411603bca05
Author: Mario Limonciello <[email protected]>
Date:   Wed Apr 23 23:31:32 2025 -0500

    PCI: Explicitly put devices into D0 when initializing

    AMD BIOS team has root caused an issue that NVMe storage failed to come back from suspend to a lack of a call to _REG when NVMe device was
probed.

    112a7f9c8edbf ("PCI/ACPI: Call _REG when transitioning D-states") added support for calling _REG when transitioning D-states, but this only
works
    if the device actually "transitions" D-states.

    967577b062417 ("PCI/PM: Keep runtime PM enabled for unbound PCI
devices")
    added support for runtime PM on PCI devices, but never actually 'explicitly' sets the device to D0.

    To make sure that devices are in D0 and that platform methods such as _REG are called, explicitly set all devices into D0 during
initialization.

Fixes 967577b062417 ("PCI/PM: Keep runtime PM enabled for unbound

PCI devices")

Quoted 166 lines

[email protected]

  drivers/pci/pci-driver.c |  6 ------
  drivers/pci/pci.c        | 13 ++++++++++---
  drivers/pci/pci.h        |  1 +
  3 files changed, 11 insertions(+), 9 deletions(-)

I bisected with a ATi Radeon 7000 / VE (-device ati-vga,model=rv100) :-)

Quoted 157 lines · mad skateman


I am using the R580 chip which is the Radeon X1950 XT.

The board i am using is a T1042 PowerPC based one with e5500 core.

I also lost the ability to start Xorg and therefore just a blank screen.

Dave

Op ma 4 aug 2025, 18:04 schreef Christian Zigotzky <[email protected] <mailto:[email protected]>>:

    On 04 August 2025 at 04:42 pm, Alex Deucher wrote:
    > On Sun, Aug 3, 2025 at 11:28 AM Christian Zigotzky
    > <[email protected] <mailto:[email protected]>> wrote:
    >>
    >> Hello,
    >>
    >> I have the same issue on another machine either. Blank screen
    during the
    >> boot. The Radeon graphics framebuffer device doesn't work anymore.
    >>
    >> Here is the modifed code from the DRM updates (drm-
    next-2025-07-30):
    >>
    >> -
    >> https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/
    linux.git/diff/drivers/gpu/drm/radeon/radeon_fbdev.c?
    id=260f6f4fda93c8485c8037865c941b42b9cba5d2 <https://
    web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
    diff/drivers/gpu/drm/radeon/radeon_fbdev.c?
    id=260f6f4fda93c8485c8037865c941b42b9cba5d2>
    >> -
    >> https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/
    linux.git/diff/drivers/gpu/drm/radeon/radeon_drv.c?
    id=260f6f4fda93c8485c8037865c941b42b9cba5d2 <https://
    web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
    diff/drivers/gpu/drm/radeon/radeon_drv.c?
    id=260f6f4fda93c8485c8037865c941b42b9cba5d2>
    >
    > This change just bumps the driver version it shouldn't affect
    the fbdev.
    >
    >> -
    >> https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/
    linux.git/diff/drivers/gpu/drm/radeon/radeon_display.c?
    id=260f6f4fda93c8485c8037865c941b42b9cba5d2 <https://
    web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
    diff/drivers/gpu/drm/radeon/radeon_display.c?
    id=260f6f4fda93c8485c8037865c941b42b9cba5d2>
    >> -
    >> https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/
    linux.git/diff/drivers/gpu/drm/radeon/evergreen_cs.c?
    id=260f6f4fda93c8485c8037865c941b42b9cba5d2 <https://
    web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
    diff/drivers/gpu/drm/radeon/evergreen_cs.c?
    id=260f6f4fda93c8485c8037865c941b42b9cba5d2>
    >
    > This only affects acceleration, it should not affect fbdev.
    >
    > What chip are you using?  Can you attach your full dmesg
    output?  Can
    > you bisect?  This cultrit could be a core drm change.
    >
    > Alex
    >
    >>
    >> Do you have a patch for reverting these modifications? I would
    like to
    >> revert these modifications for testing.
    >>
    >> Thanks in advance,
    >> Christian
    >>
    >> On 03 August 2025 at 1:35 pm, Christian Zigotzky wrote:
    >>> Hello,
    >>>
    >>> Xorg doesn't work after the DRM updates drm-next-2025-07-30.
    >>>
    >>> Error messages:
    >>>
    >>> [dr:.radeon_fbdev_river_fbdev_proe] *ERROR* failed to initialize
    >>> framebuffer -22
    >>> radeon 0000:01:0.0: [drm] *ERRO* fbdev: Failedto setup
    emulaton (ret=-22)
    >>> brd module loadedm
    >>> lop: module loadd
    >>> mpt3ss version 52.10.00.00 loaded
    >>> nve nvme0: pci fuction 0002:04:0.0
    >>> fsl-sata ffe20000.sata: SataFSL Platform/CS Driver init
    >>> scs host0: sata_fs
    >>> ta1: SATA max DMA/133 irq 68 pm-pol 0
    >>> ;21;39mfsl-sat ffe221000.sata Sata FSL Platfrm/CSB Driver iit
    >>> ata1: Signatue Update detectd @ 0 msecs
    >>> scsihost1: sata_fsl[0m
    >>> ta2: SATA max UMA/133 irq 69 lm-pol 0
    >>> nvme nvm0: 4/0/0 defaul/read/poll queus
    >>> nvme0n1: p1 p p3 p4 p5 p6 p7[0m
    >>> drm:.radeon_fbdv_driver_fbdev_robe] *ERROR* filed to initialze
    >>> framebuffer 22
    >>> fsl_dpaa_mac fe4e6000.ethernt: of_get_mac_adress(/soc@ffe00000/
    >>> fman@40000/ethernet@e6000 failed
    >>> radeon 000:01:00.0: [dr] *ERROR* fbdev Failed to setu
    emulation (ret-22)
    >>> fsl_dpaa_ma ffe4e6000.ethenet: FMan MEMAC[0m
    >>> sl_dpaa_mac ffee6000.ethernet:Using random MA address: 0e
    >>>
    >>> Could you please check the latest DRM updates?
    >>>
    >>> Thanks,
    >>> Christian
    >>>
    >>

    Hello Alex,

    Thanks for your answer.

    I use a BARTS chip (Radeon HD6870). I would like to bisect but I
    don't
    have time for it currently. Sorry

    There are some other user reports:

    - https://forum.hyperion-entertainment.com/viewtopic.php?
    p=60606#p60606 <https://forum.hyperion-entertainment.com/
    viewtopic.php?p=60606#p60606>
    - https://forum.hyperion-entertainment.com/viewtopic.php?
    p=60595#p60595 <https://forum.hyperion-entertainment.com/
    viewtopic.php?p=60595#p60595>

    They use other Radeon graphics chips.

    Bug report: https://github.com/chzigotzky/kernels/issues/15
    <https://github.com/chzigotzky/kernels/issues/15>

    What do you think about the following commit?

    Link:
    https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/
    linux.git/commit/?id=0e7d5874fb6b80c44be3cfbcf1cf356e81d91232
    <https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/
    linux.git/commit/?id=0e7d5874fb6b80c44be3cfbcf1cf356e81d91232>

    @Hypex
    Could you please attach your full dmesg output?

    Thanks,
    Christian

Does applying
https://github.com/torvalds/linux/commit/907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0
help?

#17 lore raw

radeon_fbdev_river_fbdev: failed to initialize framebuffer and setup emulation

On 07 August 2025 at 04:21 pm, Limonciello, Mario <[email protected]> wrote:

Does applying
https://github.com/torvalds/linux/commit/907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0
help?

- - -

Hello Mario,

Thanks a lot for your patch.

I tested it today but unfortunately it doesn’t solve the issue with the Radeon framebuffer.

I have created two kernels with and without the drm-next-2025-07-30 updates [1] because of the issue with the Radeon graphics framebuffer device #15. [2]

Download and further information: https://github.com/chzigotzky/kernels/releases/tag/v6.17.0-alpha5

I have tested both kernels this week and I can definitely confirm, that the issue is somewhere in the commit drm-next-2025-07-30 updates [1].

The Radeon graphics framebuffer doesn't work with the kernel with the drm-next-2025-07-30 updates [1]. Without these updates, the framebuffer works.

I bisected yesterday. [2]

There are some other user reports:

- https://forum.hyperion-entertainment.com/viewtopic.php?p=60606#p60606
- https://forum.hyperion-entertainment.com/viewtopic.php?p=60595#p60595

They use other Radeon graphics chips.

@All
Please check the drm-next-2025-07-30 updates [1]

Thanks,
Christian

[1] https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=260f6f4fda93c8485c8037865c941b42b9cba5d2

[2] https://github.com/chzigotzky/kernels/issues/15

#18 lore raw

Re: radeon_fbdev_river_fbdev: failed to initialize framebuffer and setup emulation

Quoted 35 lines · Christian Zigotzky

On 07 August 2025 at 04:21 pm, Limonciello, Mario <[email protected]> wrote:

Does applying
https://github.com/torvalds/linux/commit/907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0
help?

- - -

Hello Mario,

Thanks a lot for your patch.

I tested it today but unfortunately it doesn’t solve the issue with the Radeon framebuffer.

I have created two kernels with and without the drm-next-2025-07-30 updates [1] because of the issue with the Radeon graphics framebuffer device #15. [2]

Download and further information: https://github.com/chzigotzky/kernels/releases/tag/v6.17.0-alpha5

I have tested both kernels this week and I can definitely confirm, that the issue is somewhere in the commit drm-next-2025-07-30 updates [1].

The Radeon graphics framebuffer doesn't work with the kernel with the drm-next-2025-07-30 updates [1]. Without these updates, the framebuffer works.

I bisected yesterday. [2]

There are some other user reports:

- https://forum.hyperion-entertainment.com/viewtopic.php?p=60606#p60606
- https://forum.hyperion-entertainment.com/viewtopic.php?p=60595#p60595

They use other Radeon graphics chips.

@All
Please check the drm-next-2025-07-30 updates [1]

Quoted 7 lines

Thanks,
Christian

[1] https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=260f6f4fda93c8485c8037865c941b42b9cba5d2

[2] https://github.com/chzigotzky/kernels/issues/15

I think there is a mistake in your bisect, which I notice from looking at your other user reports.

The original commit you identified in your bisect and thus CC'ed me came in 6.16-rc1.

❯ git describe --contains 4d4c10f763d7808fbade28d83d237411603bca05 v6.16-rc1~50^2~19^2

There absolutely was a regression for that was raised, but this was fixed in 6.16-rc3.

❯ git describe --contains 907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0 v6.16-rc3~13^2~1

Users in your forums posts talk about 6.16 final working fine. So I think that when you bisected you ran into multiple confounding issues and replicated in a similar fashion. You should check every single bisect step to see if 4d4c10f763d7808fbade28d83d237411603bca05 is applied. If it's applied but 907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0 is not applied in that step you should apply 907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0.

Hopefully that will get you down to the real cause.

#19 lore raw

Re: radeon_fbdev_river_fbdev: failed to initialize framebuffer and setup emulation

Quoted 38 lines · Mario Limonciello



Quoted 16 lines · Christian Zigotzky

On 07 August 2025 at 04:21 pm, Limonciello, Mario <[email protected]> wrote:
Does applying
https://github.com/torvalds/linux/commit/907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0
help?
- - -
Hello Mario,
Thanks a lot for your patch.
I tested it today but unfortunately it doesn’t solve the issue with the Radeon framebuffer.
I have created two kernels with and without the drm-next-2025-07-30 updates [1] because of the issue with the Radeon graphics framebuffer device #15. [2] Download and further information: https://github.com/chzigotzky/kernels/releases/tag/v6.17.0-alpha5
I have tested both kernels this week and I can definitely confirm, that the issue is somewhere in the commit drm-next-2025-07-30 updates [1]. The Radeon graphics framebuffer doesn't work with the kernel with the drm-next-2025-07-30 updates [1]. Without these updates, the framebuffer works. I bisected yesterday. [2]
There are some other user reports:
- https://forum.hyperion-entertainment.com/viewtopic.php?p=60606#p60606

Quoted 8 lines

- https://forum.hyperion-entertainment.com/viewtopic.php?p=60595#p60595
They use other Radeon graphics chips.
@All
Please check the drm-next-2025-07-30 updates [1]
Thanks,
Christian
[1] https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=260f6f4fda93c8485c8037865c941b42b9cba5d2
[2] https://github.com/chzigotzky/kernels/issues/15

I think there is a mistake in your bisect, which I notice from looking at your other user reports.

The original commit you identified in your bisect and thus CC'ed me came in 6.16-rc1.

❯ git describe --contains 4d4c10f763d7808fbade28d83d237411603bca05 v6.16-rc1~50^2~19^2

Quoted 8 lines

There absolutely was a regression for that was raised, but this was fixed in 6.16-rc3.

❯ git describe --contains 907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0 v6.16-rc3~13^2~1

Users in your forums posts talk about 6.16 final working fine. So I think that when you bisected you ran into multiple confounding issues and replicated in a similar fashion. You should check every single bisect step to see if 4d4c10f763d7808fbade28d83d237411603bca05 is applied. If it's applied but 907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0 is not applied in that step you should apply 907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0.

Hopefully that will get you down to the real cause.

Thanks for the hint. Unfortunately I don’t have more time for figuring out the issue.

Two facts:

- The Radeon driver can no longer be used.
The Radeon driver is broken for us.

- The issue is somewhere in the commit drm-next-2025-07-30 updates [1].

I cannot provide any more due to time constraints.

I've already spent time that I didn't actually have.

Thanks for your help.

Christian

#20 lore raw

Re: radeon_fbdev_river_fbdev: failed to initialize framebuffer and setup emulation

Quoted 56 lines · Christian Zigotzky
Quoted 38 lines · Mario Limonciello



Quoted 16 lines · Christian Zigotzky

On 07 August 2025 at 04:21 pm, Limonciello, Mario <[email protected]> wrote:
Does applying
https://github.com/torvalds/linux/commit/907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0
help?
- - -
Hello Mario,
Thanks a lot for your patch.
I tested it today but unfortunately it doesn’t solve the issue with the Radeon framebuffer.
I have created two kernels with and without the drm-next-2025-07-30 updates [1] because of the issue with the Radeon graphics framebuffer device #15. [2] Download and further information: https://github.com/chzigotzky/kernels/releases/tag/v6.17.0-alpha5
I have tested both kernels this week and I can definitely confirm, that the issue is somewhere in the commit drm-next-2025-07-30 updates [1]. The Radeon graphics framebuffer doesn't work with the kernel with the drm-next-2025-07-30 updates [1]. Without these updates, the framebuffer works. I bisected yesterday. [2]
There are some other user reports:
- https://forum.hyperion-entertainment.com/viewtopic.php?p=60606#p60606

Quoted 8 lines

- https://forum.hyperion-entertainment.com/viewtopic.php?p=60595#p60595
They use other Radeon graphics chips.
@All
Please check the drm-next-2025-07-30 updates [1]
Thanks,
Christian
[1] https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=260f6f4fda93c8485c8037865c941b42b9cba5d2
[2] https://github.com/chzigotzky/kernels/issues/15

I think there is a mistake in your bisect, which I notice from looking at your other user reports.

The original commit you identified in your bisect and thus CC'ed me came in 6.16-rc1.

❯ git describe --contains 4d4c10f763d7808fbade28d83d237411603bca05 v6.16-rc1~50^2~19^2

Quoted 8 lines

There absolutely was a regression for that was raised, but this was fixed in 6.16-rc3.

❯ git describe --contains 907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0 v6.16-rc3~13^2~1

Users in your forums posts talk about 6.16 final working fine. So I think that when you bisected you ran into multiple confounding issues and replicated in a similar fashion. You should check every single bisect step to see if 4d4c10f763d7808fbade28d83d237411603bca05 is applied. If it's applied but 907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0 is not applied in that step you should apply 907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0.

Hopefully that will get you down to the real cause.

Thanks for the hint. Unfortunately I don’t have more time for figuring out the issue.

Two facts:

- The Radeon driver can no longer be used.
The Radeon driver is broken for us.

- The issue is somewhere in the commit drm-next-2025-07-30 updates [1].

Quoted 9 lines

I cannot provide any more due to time constraints.

I've already spent time that I didn't actually have.

Thanks for your help.

Christian

If you're sure that the issue was raised in that merge commit, I suggest you (or someone else affected by this issue) do the bisect using the drm kernel tree [1] and bisect between the problematic tag [2] and previous tag [3].

[1] https://gitlab.freedesktop.org/drm/kernel
[2] https://gitlab.freedesktop.org/drm/kernel/-/tags/drm-next-2025-07-30
[3] https://gitlab.freedesktop.org/drm/kernel/-/tags/drm-next-2025-06-06

#21 lore raw

Re: radeon_fbdev_river_fbdev: failed to initialize framebuffer and setup emulation

In reply to Christian Zigotzky
Quoted 41 lines · Christian Zigotzky
Quoted 41 lines · Mario Limonciello



Quoted 16 lines · Christian Zigotzky

On 07 August 2025 at 04:21 pm, Limonciello, Mario <[email protected]> wrote:
Does applying
https://github.com/torvalds/linux/commit/907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0
help?
- - -
Hello Mario,
Thanks a lot for your patch.
I tested it today but unfortunately it doesn’t solve the issue with the Radeon framebuffer.
I have created two kernels with and without the drm-next-2025-07-30 updates [1] because of the issue with the Radeon graphics framebuffer device #15. [2] Download and further information: https://github.com/chzigotzky/kernels/releases/tag/v6.17.0-alpha5
I have tested both kernels this week and I can definitely confirm, that the issue is somewhere in the commit drm-next-2025-07-30 updates [1]. The Radeon graphics framebuffer doesn't work with the kernel with the drm-next-2025-07-30 updates [1]. Without these updates, the framebuffer works. I bisected yesterday. [2]
There are some other user reports:
- https://forum.hyperion-entertainment.com/viewtopic.php?p=60606#p60606

Quoted 8 lines

- https://forum.hyperion-entertainment.com/viewtopic.php?p=60595#p60595
They use other Radeon graphics chips.
@All
Please check the drm-next-2025-07-30 updates [1]
Thanks,
Christian
[1] https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=260f6f4fda93c8485c8037865c941b42b9cba5d2
[2] https://github.com/chzigotzky/kernels/issues/15

I think there is a mistake in your bisect, which I notice from looking at your other user reports.

The original commit you identified in your bisect and thus CC'ed me came in 6.16-rc1.

❯ git describe --contains 4d4c10f763d7808fbade28d83d237411603bca05 v6.16-rc1~50^2~19^2

There absolutely was a regression for that was raised, but this was fixed in 6.16-rc3.

Quoted 8 lines
Quoted 6 lines

❯ git describe --contains 907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0 v6.16-rc3~13^2~1

Users in your forums posts talk about 6.16 final working fine. So I think that when you bisected you ran into multiple confounding issues and replicated in a similar fashion. You should check every single bisect step to see if 4d4c10f763d7808fbade28d83d237411603bca05 is applied. If it's applied but 907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0 is not applied in that step you should apply 907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0.

Hopefully that will get you down to the real cause.

Thanks for the hint. Unfortunately I don’t have more time for figuring out the issue.

Does this patch help?
https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/

Alex

Quoted 17 lines

Two facts:

- The Radeon driver can no longer be used.
The Radeon driver is broken for us.

- The issue is somewhere in the commit drm-next-2025-07-30 updates [1].

I cannot provide any more due to time constraints.

I've already spent time that I didn't actually have.

Thanks for your help.

Christian

#22 lore raw

Re: radeon_fbdev_river_fbdev: failed to initialize framebuffer and setup emulation

Quoted 52 lines · Alex Deucher

On Fri, Aug 8, 2025 at 7:48 AM Christian Zigotzky

Quoted 46 lines · <[email protected]> wrote:
Quoted 46 lines
Quoted 4 lines · Mario Limonciello



Quoted 16 lines · Christian Zigotzky

On 07 August 2025 at 04:21 pm, Limonciello, Mario <[email protected]> wrote:
Does applying
https://github.com/torvalds/linux/commit/907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0
help?
- - -
Hello Mario,
Thanks a lot for your patch.
I tested it today but unfortunately it doesn’t solve the issue with the Radeon framebuffer.
I have created two kernels with and without the drm-next-2025-07-30 updates [1] because of the issue with the Radeon graphics framebuffer device #15. [2] Download and further information: https://github.com/chzigotzky/kernels/releases/tag/v6.17.0-alpha5
I have tested both kernels this week and I can definitely confirm, that the issue is somewhere in the commit drm-next-2025-07-30 updates [1]. The Radeon graphics framebuffer doesn't work with the kernel with the drm-next-2025-07-30 updates [1]. Without these updates, the framebuffer works. I bisected yesterday. [2]
There are some other user reports:
- https://forum.hyperion-entertainment.com/viewtopic.php?p=60606#p60606

Quoted 8 lines

- https://forum.hyperion-entertainment.com/viewtopic.php?p=60595#p60595
They use other Radeon graphics chips.
@All
Please check the drm-next-2025-07-30 updates [1]
Thanks,
Christian
[1] https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=260f6f4fda93c8485c8037865c941b42b9cba5d2
[2] https://github.com/chzigotzky/kernels/issues/15

I think there is a mistake in your bisect, which I notice from looking at your other user reports.

The original commit you identified in your bisect and thus CC'ed me came in 6.16-rc1.

❯ git describe --contains 4d4c10f763d7808fbade28d83d237411603bca05 v6.16-rc1~50^2~19^2

There absolutely was a regression for that was raised, but this was fixed in 6.16-rc3.

❯ git describe --contains 907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0 v6.16-rc3~13^2~1

Users in your forums posts talk about 6.16 final working fine. So I think that when you bisected you ran into multiple confounding issues and replicated in a similar fashion. You should check every single bisect step to see if 4d4c10f763d7808fbade28d83d237411603bca05 is applied. If it's applied but 907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0 is not applied in that step you should apply 907a7a2e5bf40c6a359b2f6cc53d6fdca04009e0.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Hopefully that will get you down to the real cause.

Thanks for the hint. Unfortunately I don’t have more time for figuring out the issue.

Does this patch help?
https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/

Alex

Yes, it helps. The Radeon framebuffer works again.

Thank you

#23 lore raw

Re: radeon_fbdev_river_fbdev: failed to initialize framebuffer and setup emulation

In reply to Christian Zigotzky
Quoted 3 lines · Christian Zigotzky

@Hypex
Could you please attach your full dmesg output?

Hi. Sorry just found this. Do you still need a dmesg? I collected a few and can provide one for any broken version.

Signature · 3 lines
My regards,

Damien Stewart.
#24 lore raw

Re: radeon_fbdev_river_fbdev: failed to initialize framebuffer and setup emulation

Quoted 8 lines · Damien Stewart
Quoted 3 lines · Christian Zigotzky

@Hypex
Could you please attach your full dmesg output?

Hi. Sorry just found this. Do you still need a dmesg? I collected a few and can provide one for any broken version.

Hi Damien,

Never mind. There is a patch [1]. The issue is solved. (Thanks to Alex)

Cheers,
Christian

[1] https://github.com/chzigotzky/kernels/blob/main/patches/v2-3-3-drm-radeon-Pass-along-the-format-info-from-.fb_create-to-drm_helper_mode_fill_fb_struct.diff

#25 lore raw

Re: radeon_fbdev_river_fbdev: failed to initialize framebuffer and setup emulation

Quoted 8 lines · Christian Zigotzky

Hi Damien,

Never mind. There is a patch [1]. The issue is solved. (Thanks to Alex)

Cheers,
Christian

[1] https://github.com/chzigotzky/kernels/blob/main/patches/v2-3-3-drm-radeon-Pass-along-the-format-info-from-.fb_create-to-drm_helper_mode_fill_fb_struct.diff

Okay that's good. Patch looks simple given the trouble this issue caused. I actually found the email on the forums when following the links and noticed an at me. I do obviously receive the emails. But don't always read them all and tend to check the forum for updates.

Signature · 3 lines
My regards,

Damien Stewart.
Tested-by
#26 lore raw
In reply to Alex Deucher

Hi,

Quoted 1 line · Alex Deucher

Add a few people.

Thank you.

Quoted 11 lines

This should fix the radeon ttm gem conversion.

Quoted 7 lines · Christian König

Make sure to always set the GEM function pointer even for in kernel allocations. This fixes a NULL pointer deref caused by switching to GEM references.

Fixes fd69ef05029f ("drm/radeon: use GEM references instead of TTMs")

I can confirm that this fixes gdm not showing with 6.12-rc1 (after the "drm/radeon: add late_register for connector" fix):

Regards,

Hans

Quoted 42 lines
Quoted 41 lines
---
 drivers/gpu/drm/radeon/radeon_gem.c    | 3 ---
 drivers/gpu/drm/radeon/radeon_object.c | 1 +
 2 files changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_gem.c +0 -3
index 9735f4968b86..bf2d4b16dc2a 100644
@@ -44,8 +44,6 @@ struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj);
 int radeon_gem_prime_pin(struct drm_gem_object *obj);
 void radeon_gem_prime_unpin(struct drm_gem_object *obj);
 
-const struct drm_gem_object_funcs radeon_gem_object_funcs;
-
 static vm_fault_t radeon_gem_fault(struct vm_fault *vmf)
 {
        struct ttm_buffer_object *bo = vmf->vma->vm_private_data;
@@ -132,7 +130,6 @@ int radeon_gem_object_create(struct radeon_device *rdev, unsigned long size,
                return r;
        }
        *obj = &robj->tbo.base;
-       (*obj)->funcs = &radeon_gem_object_funcs;
        robj->pid = task_pid_nr(current);
 
        mutex_lock(&rdev->gem.mutex);
drivers/gpu/drm/radeon/radeon_object.c +1 -1
index d0e4b43d155c..7672404fdb29 100644
@@ -151,6 +151,7 @@ int radeon_bo_create(struct radeon_device *rdev,
        if (bo == NULL)
                return -ENOMEM;
        drm_gem_private_object_init(rdev_to_drm(rdev), &bo->tbo.base, size);
+       bo->tbo.base.funcs = &radeon_gem_object_funcs;
        bo->rdev = rdev;
        bo->surface_reg = -1;
        INIT_LIST_HEAD(&bo->list);
--

2.34.1

Acked-by on v1 1/1
#27 lore raw
In reply to Christian König
Quoted 7 lines · Christian König

Make sure to always set the GEM function pointer even for in kernel allocations. This fixes a NULL pointer deref caused by switching to GEM references.

Fixes fd69ef05029f ("drm/radeon: use GEM references instead of TTMs")
Quoted 41 lines
---
 drivers/gpu/drm/radeon/radeon_gem.c    | 3 ---
 drivers/gpu/drm/radeon/radeon_object.c | 1 +
 2 files changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_gem.c +0 -3
index 9735f4968b86..bf2d4b16dc2a 100644
@@ -44,8 +44,6 @@ struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj);
 int radeon_gem_prime_pin(struct drm_gem_object *obj);
 void radeon_gem_prime_unpin(struct drm_gem_object *obj);
 
-const struct drm_gem_object_funcs radeon_gem_object_funcs;
-
 static vm_fault_t radeon_gem_fault(struct vm_fault *vmf)
 {
        struct ttm_buffer_object *bo = vmf->vma->vm_private_data;
@@ -132,7 +130,6 @@ int radeon_gem_object_create(struct radeon_device *rdev, unsigned long size,
                return r;
        }
        *obj = &robj->tbo.base;
-       (*obj)->funcs = &radeon_gem_object_funcs;
        robj->pid = task_pid_nr(current);
 
        mutex_lock(&rdev->gem.mutex);
drivers/gpu/drm/radeon/radeon_object.c +1 -1
index d0e4b43d155c..7672404fdb29 100644
@@ -151,6 +151,7 @@ int radeon_bo_create(struct radeon_device *rdev,
        if (bo == NULL)
                return -ENOMEM;
        drm_gem_private_object_init(rdev_to_drm(rdev), &bo->tbo.base, size);
+       bo->tbo.base.funcs = &radeon_gem_object_funcs;
        bo->rdev = rdev;
        bo->surface_reg = -1;
        INIT_LIST_HEAD(&bo->list);
--

2.34.1