drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c- Extension
.c- Size
- 25890 bytes
- Lines
- 789
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
amdgpu.hmmhub_v3_3.hmmhub/mmhub_3_3_0_offset.hmmhub/mmhub_3_3_0_sh_mask.hnavi10_enum.hsoc15_common.h
Detected Declarations
function mmhub_v3_3_get_invalidate_reqfunction mmhub_v3_3_print_l2_protection_fault_statusfunction mmhub_v3_3_setup_vm_pt_regsfunction mmhub_v3_3_init_gart_aperture_regsfunction mmhub_v3_3_init_system_aperture_regsfunction mmhub_v3_3_init_tlb_regsfunction mmhub_v3_3_init_cache_regsfunction mmhub_v3_3_enable_system_domainfunction mmhub_v3_3_disable_identity_aperturefunction mmhub_v3_3_setup_vmid_configfunction mmhub_v3_3_program_invalidationfunction mmhub_v3_3_init_saw_regsfunction mmhub_v3_3_enable_tlsfunction mmhub_v3_3_gart_enablefunction mmhub_v3_3_gart_disablefunction mmhub_v3_3_set_fault_enable_defaultfunction mmhub_v3_3_init_client_infofunction mmhub_v3_3_initfunction mmhub_v3_3_get_fb_locationfunction mmhub_v3_3_get_mc_fb_offsetfunction mmhub_v3_3_update_medium_grain_clock_gatingfunction mmhub_v3_3_update_medium_grain_light_sleepfunction mmhub_v3_3_set_clockgatingfunction mmhub_v3_3_get_clockgating
Annotated Snippet
#include "amdgpu.h"
#include "mmhub_v3_3.h"
#include "mmhub/mmhub_3_3_0_offset.h"
#include "mmhub/mmhub_3_3_0_sh_mask.h"
#include "navi10_enum.h"
#include "soc15_common.h"
#define regMMVM_L2_CNTL3_DEFAULT 0x80100007
#define regMMVM_L2_CNTL4_DEFAULT 0x000000c1
#define regMMVM_L2_CNTL5_DEFAULT 0x00003fe0
#define regDAGB0_L1TLB_REG_RW_3_3 0x00a4
#define regDAGB0_L1TLB_REG_RW_3_3_BASE_IDX 1
#define regDAGB1_L1TLB_REG_RW_3_3 0x0163
#define regDAGB1_L1TLB_REG_RW_3_3_BASE_IDX 1
static const char *mmhub_client_ids_v3_3[][2] = {
[0][0] = "VMC",
[1][0] = "ISPXT",
[2][0] = "ISPIXT",
[4][0] = "DCEDMC",
[6][0] = "MP0",
[7][0] = "MP1",
[8][0] = "MPM",
[9][0] = "ISPPDPRD",
[10][0] = "ISPCSTATRD",
[11][0] = "ISPBYRPRD",
[12][0] = "ISPRGBPRD",
[13][0] = "ISPMCFPRD",
[14][0] = "ISPMCFPRD1",
[15][0] = "ISPYUVPRD",
[16][0] = "ISPMCSCRD",
[17][0] = "ISPGDCRD",
[18][0] = "ISPLMERD",
[22][0] = "ISPXT1",
[23][0] = "ISPIXT1",
[24][0] = "HDP",
[25][0] = "LSDMA",
[26][0] = "JPEG",
[27][0] = "VPE",
[28][0] = "VSCH",
[29][0] = "VCNU",
[30][0] = "VCN",
[1][1] = "ISPXT",
[2][1] = "ISPIXT",
[3][1] = "DCEDWB",
[4][1] = "DCEDMC",
[5][1] = "ISPCSISWR",
[6][1] = "MP0",
[7][1] = "MP1",
[8][1] = "MPM",
[9][1] = "ISPPDPWR",
[10][1] = "ISPCSTATWR",
[11][1] = "ISPBYRPWR",
[12][1] = "ISPRGBPWR",
[13][1] = "ISPMCFPWR",
[14][1] = "ISPMWR0",
[15][1] = "ISPYUVPWR",
[16][1] = "ISPMCSCWR",
[17][1] = "ISPGDCWR",
[18][1] = "ISPLMEWR",
[20][1] = "ISPMWR2",
[21][1] = "OSSSYS",
[22][1] = "ISPXT1",
[23][1] = "ISPIXT1",
[24][1] = "HDP",
[25][1] = "LSDMA",
[26][1] = "JPEG",
[27][1] = "VPE",
[28][1] = "VSCH",
[29][1] = "VCNU",
[30][1] = "VCN",
};
static const char *mmhub_client_ids_v3_3_1[][2] = {
[0][0] = "VMC",
[4][0] = "DCEDMC",
[6][0] = "MP0",
[7][0] = "MP1",
[8][0] = "MPM",
[24][0] = "HDP",
[25][0] = "LSDMA",
[26][0] = "JPEG0",
[27][0] = "VPE0",
[28][0] = "VSCH",
[29][0] = "VCNU0",
[30][0] = "VCN0",
[32+1][0] = "ISPXT",
[32+2][0] = "ISPIXT",
Annotation
- Immediate include surface: `amdgpu.h`, `mmhub_v3_3.h`, `mmhub/mmhub_3_3_0_offset.h`, `mmhub/mmhub_3_3_0_sh_mask.h`, `navi10_enum.h`, `soc15_common.h`.
- Detected declarations: `function mmhub_v3_3_get_invalidate_req`, `function mmhub_v3_3_print_l2_protection_fault_status`, `function mmhub_v3_3_setup_vm_pt_regs`, `function mmhub_v3_3_init_gart_aperture_regs`, `function mmhub_v3_3_init_system_aperture_regs`, `function mmhub_v3_3_init_tlb_regs`, `function mmhub_v3_3_init_cache_regs`, `function mmhub_v3_3_enable_system_domain`, `function mmhub_v3_3_disable_identity_aperture`, `function mmhub_v3_3_setup_vmid_config`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.