mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-16 23:45:31 +08:00
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>
This commit is contained in:
parent
b7c852a646
commit
370eec76b6
@ -894,6 +894,10 @@ nvc0_graph_init_fw(struct nvc0_graph_priv *priv, u32 fuc_base,
|
||||
nv_wr32(priv, fuc_base + 0x0188, i >> 6);
|
||||
nv_wr32(priv, fuc_base + 0x0184, code->data[i]);
|
||||
}
|
||||
|
||||
/* code must be padded to 0x40 words */
|
||||
for (; i & 0x3f; i++)
|
||||
nv_wr32(priv, fuc_base + 0x0184, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user