diff options
author | Dave Airlie <airlied@redhat.com> | 2017-11-07 14:22:49 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-11-07 14:22:49 -0500 |
commit | d65d31388a23b14df9494135ad6c6549a59a3caa (patch) | |
tree | 8b0f65597ab7b04af4d215df3a5e770a347c98f2 /drivers/gpu | |
parent | 8a6fb5b5823d863b07f670dc9e791d4622d5b7e9 (diff) | |
parent | e073db5c5d7ad311efa8f4192a2047b006bbc5f3 (diff) |
Merge tag 'drm-misc-next-fixes-2017-11-07' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
Fixes for 4.15 merge window:
Just the cherry-picked vc4 fix plus a GFP_NOFAIL annotation (there's
apparently some new options in-flight to change/audit
too-small-to-fail kmalloc semantics or something like that).
* tag 'drm-misc-next-fixes-2017-11-07' of git://anongit.freedesktop.org/drm/drm-misc:
drm/vc4: Fix wrong printk format in vc4_bo_stats_debugfs()
drm: Require __GFP_NOFAIL for the legacy drm_modeset_lock_all
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/drm_modeset_lock.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_bo.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_modeset_lock.c b/drivers/gpu/drm/drm_modeset_lock.c index e123497da0ca..963e23db0fe7 100644 --- a/drivers/gpu/drm/drm_modeset_lock.c +++ b/drivers/gpu/drm/drm_modeset_lock.c | |||
@@ -93,7 +93,7 @@ void drm_modeset_lock_all(struct drm_device *dev) | |||
93 | struct drm_modeset_acquire_ctx *ctx; | 93 | struct drm_modeset_acquire_ctx *ctx; |
94 | int ret; | 94 | int ret; |
95 | 95 | ||
96 | ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); | 96 | ctx = kzalloc(sizeof(*ctx), GFP_KERNEL | __GFP_NOFAIL); |
97 | if (WARN_ON(!ctx)) | 97 | if (WARN_ON(!ctx)) |
98 | return; | 98 | return; |
99 | 99 | ||
diff --git a/drivers/gpu/drm/vc4/vc4_bo.c b/drivers/gpu/drm/vc4/vc4_bo.c index 01a53ba304f8..98a6cb9f44fc 100644 --- a/drivers/gpu/drm/vc4/vc4_bo.c +++ b/drivers/gpu/drm/vc4/vc4_bo.c | |||
@@ -88,11 +88,11 @@ int vc4_bo_stats_debugfs(struct seq_file *m, void *unused) | |||
88 | 88 | ||
89 | mutex_lock(&vc4->purgeable.lock); | 89 | mutex_lock(&vc4->purgeable.lock); |
90 | if (vc4->purgeable.num) | 90 | if (vc4->purgeable.num) |
91 | seq_printf(m, "%30s: %6dkb BOs (%d)\n", "userspace BO cache", | 91 | seq_printf(m, "%30s: %6zdkb BOs (%d)\n", "userspace BO cache", |
92 | vc4->purgeable.size / 1024, vc4->purgeable.num); | 92 | vc4->purgeable.size / 1024, vc4->purgeable.num); |
93 | 93 | ||
94 | if (vc4->purgeable.purged_num) | 94 | if (vc4->purgeable.purged_num) |
95 | seq_printf(m, "%30s: %6dkb BOs (%d)\n", "total purged BO", | 95 | seq_printf(m, "%30s: %6zdkb BOs (%d)\n", "total purged BO", |
96 | vc4->purgeable.purged_size / 1024, | 96 | vc4->purgeable.purged_size / 1024, |
97 | vc4->purgeable.purged_num); | 97 | vc4->purgeable.purged_num); |
98 | mutex_unlock(&vc4->purgeable.lock); | 98 | mutex_unlock(&vc4->purgeable.lock); |