Skip to content

Commit

Permalink
habanalabs: update patched_cb_size for Wreg32
Browse files Browse the repository at this point in the history
The patch_cb_size is not updated for Wreg32 in its validate function, so
updated in goya_validate_cb.

Signed-off-by: Rachel Stahl <rstahl@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
  • Loading branch information
Rachel Stahl authored and Oded Gabbay committed May 19, 2020
1 parent ebd8d12 commit 87eaea1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/misc/habanalabs/goya/goya.c
Original file line number Diff line number Diff line change
Expand Up @@ -3394,6 +3394,7 @@ static int goya_validate_cb(struct hl_device *hdev,
*/
rc = goya_validate_wreg32(hdev,
parser, (struct packet_wreg32 *) user_pkt);
parser->patched_cb_size += pkt_size;
break;

case PACKET_WREG_BULK:
Expand Down

0 comments on commit 87eaea1

Please sign in to comment.