Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: parse UMA size-getting/setting bits in ATCS mask

The capabilities of getting and setting VRAM carveout size are exposed
in the ATCS mask. Parse and store these capabilities for future use.

Co-developed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Yo-Jung Leo Lin (AMD) <Leo.Lin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Yo-Jung Leo Lin (AMD) and committed by
Alex Deucher
6f3b631e 155a748f

+7 -1
+4
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
··· 116 116 bool pcie_perf_req; 117 117 bool pcie_dev_rdy; 118 118 bool pcie_bus_width; 119 + bool get_uma_size; 119 120 bool power_shift_control; 121 + bool set_uma_allocation_size; 120 122 }; 121 123 122 124 struct amdgpu_atcs { ··· 592 590 f->pcie_perf_req = mask & ATCS_PCIE_PERFORMANCE_REQUEST_SUPPORTED; 593 591 f->pcie_dev_rdy = mask & ATCS_PCIE_DEVICE_READY_NOTIFICATION_SUPPORTED; 594 592 f->pcie_bus_width = mask & ATCS_SET_PCIE_BUS_WIDTH_SUPPORTED; 593 + f->get_uma_size = mask & ACPI_ATCS_GET_UMA_SIZE_SUPPORTED; 595 594 f->power_shift_control = mask & ATCS_SET_POWER_SHIFT_CONTROL_SUPPORTED; 595 + f->set_uma_allocation_size = mask & ACPI_ATCS_SET_UMA_ALLOCATION_SIZE_SUPPORTED; 596 596 } 597 597 598 598 /**
+3 -1
drivers/gpu/drm/amd/include/amd_acpi.h
··· 427 427 # define ATCS_PCIE_PERFORMANCE_REQUEST_SUPPORTED (1 << 1) 428 428 # define ATCS_PCIE_DEVICE_READY_NOTIFICATION_SUPPORTED (1 << 2) 429 429 # define ATCS_SET_PCIE_BUS_WIDTH_SUPPORTED (1 << 3) 430 - # define ATCS_SET_POWER_SHIFT_CONTROL_SUPPORTED (1 << 7) 430 + # define ACPI_ATCS_GET_UMA_SIZE_SUPPORTED (1 << 5) 431 + # define ATCS_SET_POWER_SHIFT_CONTROL_SUPPORTED (1 << 7) 432 + # define ACPI_ATCS_SET_UMA_ALLOCATION_SIZE_SUPPORTED (1 << 9) 431 433 #define ATCS_FUNCTION_GET_EXTERNAL_STATE 0x1 432 434 /* ARG0: ATCS_FUNCTION_GET_EXTERNAL_STATE 433 435 * ARG1: none