HomeFreeBSD

ena: Fix LLQ descriptor reconfiguration

Description

ena: Fix LLQ descriptor reconfiguration

After the device reset, the LLQ configuration descriptor wasn't passed
to the hardware. On a 6-generation AWS instances (like C6gn), it is
required to pass the LLQ descriptor after the device reset, otherwise
the hardware will be missing the LLQ configuration resulting in
performance degradation.

This patch reconfigures the LLQ each time the ena_device_init() is
called. This means that the LLQ descriptor will be passed during the
initial configuration and after a reset.

The ena_map_llq_mem_bar() function call was moved before the
ena_device_init() call, to make sure that the mem bar is available.

Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

(cherry picked from commit 3324e304c14d121dc04338a38c7f3277cbfba58b)

Details

Provenance
mk_semihalf.comAuthored on Jul 5 2022, 10:59 AM
mwCommitted on Jul 26 2022, 7:30 PM
Parents
rG0ed37def561f: ena: Align req_id and qid print order
Branches
Unknown
Tags
Unknown