]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/qaic: Allocate an exact number of MSIs
authorYoussef Samir <quic_yabdulra@quicinc.com>
Fri, 17 Jan 2025 17:09:39 +0000 (10:09 -0700)
committerJeffrey Hugo <quic_jhugo@quicinc.com>
Fri, 31 Jan 2025 17:06:52 +0000 (10:06 -0700)
commitab73d80836734bb76088be0da4d2dbf0f7914c2d
treeeb6a3a303cb9c81f91fd5192746fef204c96047c
parentf88f1d0998ea2e5779a44013dde2a3503322c98e
accel/qaic: Allocate an exact number of MSIs

Devices use 1 MSI vector for the MHI controller and as many vectors as
the DMA bridge channels on the device. During the probing of the
device, the driver allocates 32 MSI vectors, which is usually more
than what is needed for AIC100 devices, which is wasting resources.

Allocate only the needed number of MSI vectors per device.

Signed-off-by: Youssef Samir <quic_yabdulra@quicinc.com>
Reviewed-by: Troy Hanson <quic_thanson@quicinc.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Reviewed-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250117170943.2643280-4-quic_jhugo@quicinc.com
drivers/accel/qaic/qaic_drv.c