mirror of
https://github.com/torvalds/linux.git
synced 2026-04-28 11:32:28 -04:00
The Local Memory Translation Table (LMTT) provides additional abstraction for Virtual Functions (VF) accessing device VRAM. This code is based on prior work of Michal Winiarski. In this patch we focus only on LMTT initialization. Remaining LMTT functions will be used once we add a VF provisioning to the PF. Bspec: 44117, 52404, 59314 Reviewed-by: Michał Winiarski <michal.winiarski@intel.com> Link: https://lore.kernel.org/r/20231128151507.1015-4-michal.wajdeczko@intel.com Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
18 lines
360 B
C
18 lines
360 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _REGS_XE_SRIOV_REGS_H_
|
|
#define _REGS_XE_SRIOV_REGS_H_
|
|
|
|
#include "regs/xe_reg_defs.h"
|
|
|
|
#define XE2_LMEM_CFG XE_REG(0x48b0)
|
|
|
|
#define LMEM_CFG XE_REG(0xcf58)
|
|
#define LMEM_EN REG_BIT(31)
|
|
#define LMTT_DIR_PTR REG_GENMASK(30, 0) /* in multiples of 64KB */
|
|
|
|
#endif
|