> -----Original Message-----
> From: Michal Swiatkowski <[email protected]>
> Sent: Friday, September 11, 2026 5:49 AM
> To: [email protected]
> Cc: [email protected]; Michal Swiatkowski
> <[email protected]>; Loktionov, Aleksandr
> <[email protected]>
> Subject: [PATCH iwl-next v2 01/10] idpf: store HW vectors information
> 
> Currently hardware vectors information (registers address and HW indexes) is
> stored in virtchnl command. When this information is needed they are parsed
> and returned. There is a need for alloc/free array for this information each 
> time
> it is called.
> 
> Information about indexes and registers are parsed in two similar functions.
> Create one parse function for both and store it in irq_info structure to use
> whenever it is needed.
> 
> Stored virtchnl command still has to exist, because it is used when sending
> dealloc message.
> 
> Make intr_reg_init() functions (for VF and PF) return void to simplify code.
> With stored irq information there is no need to alloc an array for it, so 
> these
> functions can't fail.
> 
> Previously mailbox vector wasn't filled in idpf_intr_reg_init() function. 
> Store
> the mailbox information in irq_info.vectors to have everything in one place.
> Because of that tweak index in few places by adding IDPF_MBX_Q_VEC (when
> allocatig or iterrating) or not substracting IDPF_MBX_Q_VEC from
> q_vector_idxs, because it is no needed now.
> 
> Reviewed-by: Aleksandr Loktionov <[email protected]>
> Signed-off-by: Michal Swiatkowski <[email protected]>
> ---

Tested-by: Samuel Salin <[email protected]>

Reply via email to