Skip to content

Commit 09cb5b7

Browse files
committed
Merge tag 'drm-vc4-fixes-2016-09-14' of https://github.com/anholt/linux into drm-fixes
This pull request brings in a fix for crashes in X on VC4. * tag 'drm-vc4-fixes-2016-09-14' of https://github.com/anholt/linux: drm/vc4: mark vc4_bo_cache_purge() static drm/vc4: Allow some more signals to be packed with uniform resets.
2 parents 9929c09 + ea90383 commit 09cb5b7

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

drivers/gpu/drm/vc4/vc4_bo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ static struct list_head *vc4_get_cache_list_for_size(struct drm_device *dev,
144144
return &vc4->bo_cache.size_list[page_index];
145145
}
146146

147-
void vc4_bo_cache_purge(struct drm_device *dev)
147+
static void vc4_bo_cache_purge(struct drm_device *dev)
148148
{
149149
struct vc4_dev *vc4 = to_vc4_dev(dev);
150150

drivers/gpu/drm/vc4/vc4_validate_shaders.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,14 @@ validate_uniform_address_write(struct vc4_validated_shader_info *validated_shade
309309
* of uniforms on each side. However, this scheme is easy to
310310
* validate so it's all we allow for now.
311311
*/
312-
313-
if (QPU_GET_FIELD(inst, QPU_SIG) != QPU_SIG_NONE) {
312+
switch (QPU_GET_FIELD(inst, QPU_SIG)) {
313+
case QPU_SIG_NONE:
314+
case QPU_SIG_SCOREBOARD_UNLOCK:
315+
case QPU_SIG_COLOR_LOAD:
316+
case QPU_SIG_LOAD_TMU0:
317+
case QPU_SIG_LOAD_TMU1:
318+
break;
319+
default:
314320
DRM_ERROR("uniforms address change must be "
315321
"normal math\n");
316322
return false;

0 commit comments

Comments
 (0)