diff options
| author | Longfang Liu <liulongfang@huawei.com> | 2025-10-30 04:57:43 +0300 |
|---|---|---|
| committer | Alex Williamson <alex@shazbot.org> | 2025-11-06 00:56:16 +0300 |
| commit | 4868d2d52df6f724b01531843805a3b1322e2dd9 (patch) | |
| tree | 1f72a740f2ebaa995a2eeb86c535a4be45e302b4 /include/linux | |
| parent | abe7d636403b7cbdb8d2d5bab253cfe8087faa7a (diff) | |
| download | linux-4868d2d52df6f724b01531843805a3b1322e2dd9.tar.xz | |
crypto: hisilicon - qm updates BAR configuration
On new platforms greater than QM_HW_V3, the configuration region for the
live migration function of the accelerator device is no longer
placed in the VF, but is instead placed in the PF.
Therefore, the configuration region of the live migration function
needs to be opened when the QM driver is loaded. When the QM driver
is uninstalled, the driver needs to clear this configuration.
Signed-off-by: Longfang Liu <liulongfang@huawei.com>
Reviewed-by: Shameer Kolothum <shameerkolothum@gmail.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Link: https://lore.kernel.org/r/20251030015744.131771-2-liulongfang@huawei.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/hisi_acc_qm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/hisi_acc_qm.h b/include/linux/hisi_acc_qm.h index c4690e365ade..ca1ec437a3ca 100644 --- a/include/linux/hisi_acc_qm.h +++ b/include/linux/hisi_acc_qm.h @@ -99,6 +99,9 @@ #define QM_DEV_ALG_MAX_LEN 256 +#define QM_MIG_REGION_SEL 0x100198 +#define QM_MIG_REGION_EN BIT(0) + /* uacce mode of the driver */ #define UACCE_MODE_NOUACCE 0 /* don't use uacce */ #define UACCE_MODE_SVA 1 /* use uacce sva mode */ |
