drm/nouveau/graph: pad firmware code at load time
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 2 May 2014 09:32:40 +0000 (18:32 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 10 Jun 2014 06:05:50 +0000 (16:05 +1000)
commit370eec76b67430f6055ebda07c820f02288d93b8
tree39bf0bdebd8c947a5ec71b40cb68cdadc1dbe1cc
parentb7c852a646b12051e61c4dde4ddaa6c14af9c80b
drm/nouveau/graph: pad firmware code at load time

Pad the microcode to a multiple of 0x40 words, otherwise firmware will
fail to run from non-prepadded firmware files.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c