* [PATCH 1/3] drm/amdgpu/gfx8: fix CP jump table size
@ 2016-06-10 14:13 Alex Deucher
2016-06-10 14:13 ` [PATCH 2/3] drm/amdgpu/gfx7: " Alex Deucher
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Alex Deucher @ 2016-06-10 14:13 UTC (permalink / raw)
To: dri-devel; +Cc: Alex Deucher
Align to the jump table offset. Fixes hangs on some
systems with GFX PG enabled.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
index 4e34877..42dc5fe 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
@@ -1299,7 +1299,7 @@ static int gfx_v8_0_rlc_init(struct amdgpu_device *adev)
if ((adev->asic_type == CHIP_CARRIZO) ||
(adev->asic_type == CHIP_STONEY)) {
- adev->gfx.rlc.cp_table_size = (96 * 5 * 4) + (64 * 1024); /* JT + GDS */
+ adev->gfx.rlc.cp_table_size = ALIGN(96 * 5 * 4, 2048) + (64 * 1024); /* JT + GDS */
if (adev->gfx.rlc.cp_table_obj == NULL) {
r = amdgpu_bo_create(adev, adev->gfx.rlc.cp_table_size, PAGE_SIZE, true,
AMDGPU_GEM_DOMAIN_VRAM,
--
2.5.5
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] drm/amdgpu/gfx7: fix CP jump table size
2016-06-10 14:13 [PATCH 1/3] drm/amdgpu/gfx8: fix CP jump table size Alex Deucher
@ 2016-06-10 14:13 ` Alex Deucher
2016-06-10 14:13 ` [PATCH 3/3] drm/radeon/cik: " Alex Deucher
2016-06-13 6:58 ` [PATCH 1/3] drm/amdgpu/gfx8: " Nicolai Hähnle
2 siblings, 0 replies; 4+ messages in thread
From: Alex Deucher @ 2016-06-10 14:13 UTC (permalink / raw)
To: dri-devel; +Cc: Alex Deucher
Align to the jump table offset. May fix hangs on some
asics with GFX PG enabled.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
index 0f8149d..34227e2 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
@@ -3221,7 +3221,7 @@ static int gfx_v7_0_rlc_init(struct amdgpu_device *adev)
}
}
adev->gfx.rlc.cs_data = ci_cs_data;
- adev->gfx.rlc.cp_table_size = CP_ME_TABLE_SIZE * 5 * 4; /* CP JT */
+ adev->gfx.rlc.cp_table_size = ALIGN(CP_ME_TABLE_SIZE * 5 * 4, 2048); /* CP JT */
adev->gfx.rlc.cp_table_size += 64 * 1024; /* GDS */
src_ptr = adev->gfx.rlc.reg_list;
--
2.5.5
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] drm/radeon/cik: fix CP jump table size
2016-06-10 14:13 [PATCH 1/3] drm/amdgpu/gfx8: fix CP jump table size Alex Deucher
2016-06-10 14:13 ` [PATCH 2/3] drm/amdgpu/gfx7: " Alex Deucher
@ 2016-06-10 14:13 ` Alex Deucher
2016-06-13 6:58 ` [PATCH 1/3] drm/amdgpu/gfx8: " Nicolai Hähnle
2 siblings, 0 replies; 4+ messages in thread
From: Alex Deucher @ 2016-06-10 14:13 UTC (permalink / raw)
To: dri-devel; +Cc: Alex Deucher
Align to the jump table offset. May fix hangs on some
asics with GFX PG enabled.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/radeon/cik.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c
index 3beac4e..0c1b9ff 100644
--- a/drivers/gpu/drm/radeon/cik.c
+++ b/drivers/gpu/drm/radeon/cik.c
@@ -8366,7 +8366,7 @@ static int cik_startup(struct radeon_device *rdev)
}
}
rdev->rlc.cs_data = ci_cs_data;
- rdev->rlc.cp_table_size = CP_ME_TABLE_SIZE * 5 * 4; /* CP JT */
+ rdev->rlc.cp_table_size = ALIGN(CP_ME_TABLE_SIZE * 5 * 4, 2048); /* CP JT */
rdev->rlc.cp_table_size += 64 * 1024; /* GDS */
r = sumo_rlc_init(rdev);
if (r) {
--
2.5.5
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3] drm/amdgpu/gfx8: fix CP jump table size
2016-06-10 14:13 [PATCH 1/3] drm/amdgpu/gfx8: fix CP jump table size Alex Deucher
2016-06-10 14:13 ` [PATCH 2/3] drm/amdgpu/gfx7: " Alex Deucher
2016-06-10 14:13 ` [PATCH 3/3] drm/radeon/cik: " Alex Deucher
@ 2016-06-13 6:58 ` Nicolai Hähnle
2 siblings, 0 replies; 4+ messages in thread
From: Nicolai Hähnle @ 2016-06-13 6:58 UTC (permalink / raw)
To: Alex Deucher, dri-devel; +Cc: Alex Deucher
For the series:
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This patch is also:
Tested-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
On 10.06.2016 16:13, Alex Deucher wrote:
> Align to the jump table offset. Fixes hangs on some
> systems with GFX PG enabled.
>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> index 4e34877..42dc5fe 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> @@ -1299,7 +1299,7 @@ static int gfx_v8_0_rlc_init(struct amdgpu_device *adev)
>
> if ((adev->asic_type == CHIP_CARRIZO) ||
> (adev->asic_type == CHIP_STONEY)) {
> - adev->gfx.rlc.cp_table_size = (96 * 5 * 4) + (64 * 1024); /* JT + GDS */
> + adev->gfx.rlc.cp_table_size = ALIGN(96 * 5 * 4, 2048) + (64 * 1024); /* JT + GDS */
> if (adev->gfx.rlc.cp_table_obj == NULL) {
> r = amdgpu_bo_create(adev, adev->gfx.rlc.cp_table_size, PAGE_SIZE, true,
> AMDGPU_GEM_DOMAIN_VRAM,
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-06-13 6:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-10 14:13 [PATCH 1/3] drm/amdgpu/gfx8: fix CP jump table size Alex Deucher
2016-06-10 14:13 ` [PATCH 2/3] drm/amdgpu/gfx7: " Alex Deucher
2016-06-10 14:13 ` [PATCH 3/3] drm/radeon/cik: " Alex Deucher
2016-06-13 6:58 ` [PATCH 1/3] drm/amdgpu/gfx8: " Nicolai Hähnle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.