drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c- Extension
.c- Size
- 24359 bytes
- Lines
- 731
- 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_v2_0.hmmhub/mmhub_2_0_0_offset.hmmhub/mmhub_2_0_0_sh_mask.hmmhub/mmhub_2_0_0_default.hnavi10_enum.hgc/gc_10_1_0_offset.hsoc15_common.h
Detected Declarations
function mmhub_v2_0_get_invalidate_reqfunction mmhub_v2_0_print_l2_protection_fault_statusfunction mmhub_v2_0_setup_vm_pt_regsfunction mmhub_v2_0_init_gart_aperture_regsfunction mmhub_v2_0_init_system_aperture_regsfunction mmhub_v2_0_init_tlb_regsfunction mmhub_v2_0_init_cache_regsfunction mmhub_v2_0_enable_system_domainfunction mmhub_v2_0_disable_identity_aperturefunction mmhub_v2_0_setup_vmid_configfunction mmhub_v2_0_program_invalidationfunction mmhub_v2_0_gart_enablefunction mmhub_v2_0_gart_disablefunction mmhub_v2_0_set_fault_enable_defaultfunction mmhub_v2_0_init_client_infofunction mmhub_v2_0_initfunction mmhub_v2_0_update_medium_grain_clock_gatingfunction mmhub_v2_0_update_medium_grain_light_sleepfunction mmhub_v2_0_set_clockgatingfunction mmhub_v2_0_get_clockgating
Annotated Snippet
#include "amdgpu.h"
#include "mmhub_v2_0.h"
#include "mmhub/mmhub_2_0_0_offset.h"
#include "mmhub/mmhub_2_0_0_sh_mask.h"
#include "mmhub/mmhub_2_0_0_default.h"
#include "navi10_enum.h"
#include "gc/gc_10_1_0_offset.h"
#include "soc15_common.h"
#define mmDAGB0_CNTL_MISC2_Sienna_Cichlid 0x0070
#define mmDAGB0_CNTL_MISC2_Sienna_Cichlid_BASE_IDX 0
static const char *mmhub_client_ids_navi1x[][2] = {
[3][0] = "DCEDMC",
[4][0] = "DCEVGA",
[5][0] = "MP0",
[6][0] = "MP1",
[13][0] = "VMC",
[14][0] = "HDP",
[15][0] = "OSS",
[16][0] = "VCNU",
[17][0] = "JPEG",
[18][0] = "VCN",
[3][1] = "DCEDMC",
[4][1] = "DCEXFC",
[5][1] = "DCEVGA",
[6][1] = "DCEDWB",
[7][1] = "MP0",
[8][1] = "MP1",
[9][1] = "DBGU1",
[10][1] = "DBGU0",
[11][1] = "XDP",
[14][1] = "HDP",
[15][1] = "OSS",
[16][1] = "VCNU",
[17][1] = "JPEG",
[18][1] = "VCN",
};
static const char *mmhub_client_ids_sienna_cichlid[][2] = {
[3][0] = "DCEDMC",
[4][0] = "DCEVGA",
[5][0] = "MP0",
[6][0] = "MP1",
[8][0] = "VMC",
[9][0] = "VCNU0",
[10][0] = "JPEG",
[12][0] = "VCNU1",
[13][0] = "VCN1",
[14][0] = "HDP",
[15][0] = "OSS",
[32+11][0] = "VCN0",
[0][1] = "DBGU0",
[1][1] = "DBGU1",
[2][1] = "DCEDWB",
[3][1] = "DCEDMC",
[4][1] = "DCEVGA",
[5][1] = "MP0",
[6][1] = "MP1",
[7][1] = "XDP",
[9][1] = "VCNU0",
[10][1] = "JPEG",
[11][1] = "VCN0",
[12][1] = "VCNU1",
[13][1] = "VCN1",
[14][1] = "HDP",
[15][1] = "OSS",
};
static const char *mmhub_client_ids_beige_goby[][2] = {
[3][0] = "DCEDMC",
[4][0] = "DCEVGA",
[5][0] = "MP0",
[6][0] = "MP1",
[8][0] = "VMC",
[9][0] = "VCNU0",
[11][0] = "VCN0",
[14][0] = "HDP",
[15][0] = "OSS",
[0][1] = "DBGU0",
[1][1] = "DBGU1",
[2][1] = "DCEDWB",
[3][1] = "DCEDMC",
[4][1] = "DCEVGA",
[5][1] = "MP0",
[6][1] = "MP1",
[7][1] = "XDP",
[9][1] = "VCNU0",
Annotation
- Immediate include surface: `amdgpu.h`, `mmhub_v2_0.h`, `mmhub/mmhub_2_0_0_offset.h`, `mmhub/mmhub_2_0_0_sh_mask.h`, `mmhub/mmhub_2_0_0_default.h`, `navi10_enum.h`, `gc/gc_10_1_0_offset.h`, `soc15_common.h`.
- Detected declarations: `function mmhub_v2_0_get_invalidate_req`, `function mmhub_v2_0_print_l2_protection_fault_status`, `function mmhub_v2_0_setup_vm_pt_regs`, `function mmhub_v2_0_init_gart_aperture_regs`, `function mmhub_v2_0_init_system_aperture_regs`, `function mmhub_v2_0_init_tlb_regs`, `function mmhub_v2_0_init_cache_regs`, `function mmhub_v2_0_enable_system_domain`, `function mmhub_v2_0_disable_identity_aperture`, `function mmhub_v2_0_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.