diff options
| author | Oded Gabbay <[email protected]> | 2023-09-28 13:12:30 +0000 |
|---|---|---|
| committer | Oded Gabbay <[email protected]> | 2023-10-09 09:37:24 +0000 |
| commit | 4db74c0fdeb8138f6438d42a015c5dcdb2e6874c (patch) | |
| tree | 1693c7b99677349c5083089e474fa75c48cfa185 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | accel/habanalabs/gaudi2: perform hard-reset upon PCIe AXI drain event (diff) | |
| download | kernel-4db74c0fdeb8138f6438d42a015c5dcdb2e6874c.tar.gz kernel-4db74c0fdeb8138f6438d42a015c5dcdb2e6874c.zip | |
accel/habanalabs/gaudi2: fix spmu mask creation
event_types_num received from the user can be 0. In that case, the
event_mask should be 0.
In addition, to create a correct mask we need to match the number
of event types to the bit location such that bit 0 represents a single
event type, bit 1 represents 2 types and so on.
Signed-off-by: Oded Gabbay <[email protected]>
Reviewed-by: Ofir Bitton <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
