diff options
author | 2020-01-15 06:34:22 +1000 | |
---|---|---|
committer | 2020-01-15 10:50:28 +1000 | |
commit | 8e90a98dfb804f4a86a9bc40706e9f00e870a2ba (patch) | |
tree | cbb643f2fd9c71fc8ff677387a3cddf06e7c5fc1 /drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0148cdec.c | |
parent | drm/nouveau/flcn/qmgr: allow arbtrary priv + return code for callbacks (diff) | |
download | linux-dev-8e90a98dfb804f4a86a9bc40706e9f00e870a2ba.tar.xz linux-dev-8e90a98dfb804f4a86a9bc40706e9f00e870a2ba.zip |
drm/nouveau/flcn/qmgr: support syncronous command submission from common code
Functions implementing FW commands had to implement this themselves, let's
move that to common code and plumb the return code from callbacks through.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0148cdec.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0148cdec.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0148cdec.c b/drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0148cdec.c index 92b8351e9e35..28917969293e 100644 --- a/drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0148cdec.c +++ b/drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0148cdec.c @@ -204,13 +204,8 @@ acr_boot_falcon(struct nvkm_msgqueue *priv, enum nvkm_secboot_falcon falcon) cmd.cmd_type = ACR_CMD_BOOTSTRAP_FALCON; cmd.flags = ACR_CMD_BOOTSTRAP_FALCON_FLAGS_RESET_YES; cmd.falcon_id = falcon; - nvkm_msgqueue_post(priv, MSGQUEUE_MSG_PRIORITY_HIGH, &cmd.hdr, - acr_boot_falcon_callback, &completed, true); - - if (!wait_for_completion_timeout(&completed, msecs_to_jiffies(1000))) - return -ETIMEDOUT; - - return 0; + return nvkm_msgqueue_post(priv, MSGQUEUE_MSG_PRIORITY_HIGH, &cmd.hdr, + acr_boot_falcon_callback, &completed, true); } const struct nvkm_msgqueue_acr_func |