Bug#676299: xserver-xorg-video-radeon: [RV 740] (EE) radeon_setup_kernel_mem failed
Here are the diffs of the patches I applied. I don't pretend to
understand why they worked, but the comment that introduced them is
extensive: https://bugs.freedesktop.org/show_bug.cgi?id=43448#c9
In libdrm:
diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c
index 6303c47..26ba580 100644
--- a/radeon/radeon_surface.c
+++ b/radeon/radeon_surface.c
@@ -213,6 +213,9 @@ static int r6_init_hw_info(struct radeon_surface_manager *surf_man)
case 1:
surf_man->hw_info.num_banks = 8;
break;
+ case 2:
+ surf_man->hw_info.num_banks = 16;
+ break;
default:
return -EINVAL;
}
In mesa:
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index 008a0b9..f9a9e5c 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -664,6 +664,9 @@ static int r600_interpret_tiling(struct r600_screen *rscreen, uint32_t tiling_co
case 1:
rscreen->tiling_info.num_banks = 8;
break;
+ case 2:
+ rscreen->tiling_info.num_banks = 16;
+ break;
default:
return -EINVAL;
In xserver-xorg-video-ati:
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index edc8fe3..27de267 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -580,6 +580,9 @@ static Bool r600_get_tile_config(ScrnInfoPtr pScrn)
case 1:
info->num_banks = 8;
break;
+ case 2:
+ info->num_banks = 16;
+ break;
default:
return FALSE;
}
Reply to: