drm/amdgpu: add new ATIF ACPI method
Subsystems (2)
PATCH 1/2 drm/amdgpu: add new ATIF ACPI method
Used for fetching external GPU information.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/include/amd_acpi.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)
drivers/gpu/drm/amd/include/amd_acpi.h +12 -0
@@ -146,6 +146,7 @@ struct atcs_pref_req_output {# define ATIF_SET_PANEL_EXPANSION_MODE_IN_CMOS_SUPPORTED (1 << 7)# define ATIF_TEMPERATURE_CHANGE_NOTIFICATION_SUPPORTED (1 << 12)# define ATIF_GET_GRAPHICS_DEVICE_TYPES_SUPPORTED (1 << 14) +# define ATIF_GET_EXTERNAL_GPU_INFORMATION_SUPPORTED (1 << 20)#define ATIF_FUNCTION_GET_SYSTEM_PARAMETERS 0x1/* ARG0: ATIF_FUNCTION_GET_SYSTEM_PARAMETERS * ARG1: none
@@ -300,6 +301,17 @@ struct atcs_pref_req_output {# define ATIF_XGP_PORT (1 << 1)# define ATIF_VGA_ENABLED_GRAPHICS_DEVICE (1 << 2)# define ATIF_XGP_PORT_IN_DOCK (1 << 3) +#define ATIF_FUNCTION_GET_EXTERNAL_GPU_INFORMATION 0x15 +/* ARG0: ATIF_FUNCTION_GET_EXTERNAL_GPU_INFORMATION +* ARG1: none +* OUTPUT: +* WORD - number of reported external gfx devices +* WORD - device structure size in bytes (excludes device size field) +* WORD - flags \ +* WORD - bus number / repeated structure +*/ +/* flags */ +# define ATIF_EXTERNAL_GRAPHICS_PORT (1 << 0)/* ATPX */ #define ATPX_FUNCTION_VERIFY_INTERFACE 0x0
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1489180044-4599-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org
PATCH 2/2 drm/radeon: add new ATIF ACPI method
Used for fetching external GPU information.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/radeon/radeon_acpi.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)
drivers/gpu/drm/radeon/radeon_acpi.h +12 -0
@@ -97,6 +97,7 @@ int radeon_atif_handler(struct radeon_device *rdev,# define ATIF_SET_PANEL_EXPANSION_MODE_IN_CMOS_SUPPORTED (1 << 7)# define ATIF_TEMPERATURE_CHANGE_NOTIFICATION_SUPPORTED (1 << 12)# define ATIF_GET_GRAPHICS_DEVICE_TYPES_SUPPORTED (1 << 14) +# define ATIF_GET_EXTERNAL_GPU_INFORMATION_SUPPORTED (1 << 20)#define ATIF_FUNCTION_GET_SYSTEM_PARAMETERS 0x1/* ARG0: ATIF_FUNCTION_GET_SYSTEM_PARAMETERS * ARG1: none
@@ -251,6 +252,17 @@ int radeon_atif_handler(struct radeon_device *rdev,# define ATIF_XGP_PORT (1 << 1)# define ATIF_VGA_ENABLED_GRAPHICS_DEVICE (1 << 2)# define ATIF_XGP_PORT_IN_DOCK (1 << 3) +#define ATIF_FUNCTION_GET_EXTERNAL_GPU_INFORMATION 0x15 +/* ARG0: ATIF_FUNCTION_GET_EXTERNAL_GPU_INFORMATION +* ARG1: none +* OUTPUT: +* WORD - number of reported external gfx devices +* WORD - device structure size in bytes (excludes device size field) +* WORD - flags \ +* WORD - bus number / repeated structure +*/ +/* flags */ +# define ATIF_EXTERNAL_GRAPHICS_PORT (1 << 0)/* ATPX */ #define ATPX_FUNCTION_VERIFY_INTERFACE 0x0
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx