[PATCH] accel/habanalabs/gaudi2: fix spmu mask creation

2023-09-28 Thread Oded Gabbay
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 G

Re: [PATCH] accel/habanalabs/gaudi2: fix spmu mask creation

2023-10-01 Thread Ofir Bitton
On 28/09/2023 16:25, Oded Gabbay wrote: > 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