mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 05:47:57 +07:00
habanalabs: update patched_cb_size for Wreg32
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>
This commit is contained in:
parent
ebd8d12251
commit
87eaea1cf8
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user