drm/amd/doc: Add XGMI sysfs documentation
Subsystems (4)
PATCH 1/2 drm/amd/doc: Add XGMI sysfs documentation
--- Documentation/gpu/amdgpu.rst | 9 ++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 28 ++++++++++++++++++++++++ 2 files changed, 37 insertions(+)
Documentation/gpu/amdgpu.rst +9 -0
@@ -70,6 +70,15 @@ Interrupt Handling .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c :internal: +AMDGPU XGMI Support +=================== + +.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c + :doc: AMDGPU XGMI Support + +.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c + :internal: + GPU Power/Thermal Controls and Monitoring =========================================
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +28 -0
@@ -40,6 +40,34 @@ void *amdgpu_xgmi_hive_try_lock(struct amdgpu_hive_info *hive)return &hive->device_list; } +/** +* DOC: AMDGPU XGMI Support +* +* XGMI is a high speed interconnect that joins multiple GPU cards +* into a homogeneous memory space that is organized by a collective +* hive ID and individual node IDs, both of which are 64-bit numbers. +* +* The file xgmi_device_id contains the unique per GPU device ID and +* is stored in the /sys/class/drm/card${cardno}/device/ directory. +* +* Inside the device directory a sub-directory 'xgmi_hive_info' is +* created which contains the hive ID and the list of nodes. +* +* The hive ID is stored in: +* /sys/class/drm/card${cardno}/device/xgmi_hive_info/xgmi_hive_id +* +* The node information is stored in numbered directories: +* /sys/class/drm/card${cardno}/device/xgmi_hive_info/node${nodeno}/xgmi_device_id +* +* Each device has their own xgmi_hive_info direction with a mirror +* set of node sub-directories. +* +* The XGMI memory space is built by contiguously adding the power of +* two padded VRAM space from each node to each other. +* +*/ + +static ssize_t amdgpu_xgmi_show_hive_id (struct device *dev,struct device_attribute *attr,char *buf) {
Signature · 6 lines
2.21.0 _______________________________________________ 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): [email protected]
PATCH 2/2 drm/amd/doc: Add RAS documentation to guide
--- Documentation/gpu/amdgpu.rst | 11 +++++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-)
Documentation/gpu/amdgpu.rst +11 -0
@@ -79,6 +79,17 @@ AMDGPU XGMI Support .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c :internal: +AMDGPU RAS debugfs control interface +==================================== + +.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c + :doc: AMDGPU RAS debugfs control interface + + +.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c + :internal: + + GPU Power/Thermal Controls and Monitoring =========================================
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +2 -2
@@ -244,8 +244,8 @@ static int amdgpu_ras_debugfs_ctrl_parse_data(struct file *f,return 0 ; } -/* -* DOC: ras debugfs control interface +/** +* DOC: AMDGPU RAS debugfs control interface * * It accepts struct ras_debug_if who has two members. *
Signature · 6 lines
2.21.0 _______________________________________________ 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): [email protected]
Abramov, Slava
Acked-byRe: [PATCH 2/2] drm/amd/doc: Add RAS documentation to guide
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of StDenis, Tom <[email protected]>
Sent: Friday, May 24, 2019 9:23:50 AM
To: [email protected]
Cc: StDenis, Tom
Subject: [PATCH 2/2] drm/amd/doc: Add RAS documentation to guide
[CAUTION: External Email]
--- Documentation/gpu/amdgpu.rst | 11 +++++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-)
Documentation/gpu/amdgpu.rst +11 -0
@@ -79,6 +79,17 @@ AMDGPU XGMI Support .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c :internal: +AMDGPU RAS debugfs control interface +==================================== + +.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c + :doc: AMDGPU RAS debugfs control interface + + +.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c + :internal: + + GPU Power/Thermal Controls and Monitoring =========================================
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +2 -2
@@ -244,8 +244,8 @@ static int amdgpu_ras_debugfs_ctrl_parse_data(struct file *f,return 0 ; } -/* -* DOC: ras debugfs control interface +/** +* DOC: AMDGPU RAS debugfs control interface * * It accepts struct ras_debug_if who has two members. *
--
2.21.0
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Abramov, Slava
Acked-by________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of StDenis, Tom <[email protected]>
Sent: Friday, May 24, 2019 9:23:49 AM
To: [email protected]
Cc: StDenis, Tom
Subject: [PATCH 1/2] drm/amd/doc: Add XGMI sysfs documentation
[CAUTION: External Email]
--- Documentation/gpu/amdgpu.rst | 9 ++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 28 ++++++++++++++++++++++++ 2 files changed, 37 insertions(+)
Documentation/gpu/amdgpu.rst +9 -0
@@ -70,6 +70,15 @@ Interrupt Handling .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c :internal: +AMDGPU XGMI Support +=================== + +.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c + :doc: AMDGPU XGMI Support + +.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c + :internal: + GPU Power/Thermal Controls and Monitoring =========================================
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +28 -0
@@ -40,6 +40,34 @@ void *amdgpu_xgmi_hive_try_lock(struct amdgpu_hive_info *hive)return &hive->device_list; } +/** +* DOC: AMDGPU XGMI Support +* +* XGMI is a high speed interconnect that joins multiple GPU cards +* into a homogeneous memory space that is organized by a collective +* hive ID and individual node IDs, both of which are 64-bit numbers. +* +* The file xgmi_device_id contains the unique per GPU device ID and +* is stored in the /sys/class/drm/card${cardno}/device/ directory. +* +* Inside the device directory a sub-directory 'xgmi_hive_info' is +* created which contains the hive ID and the list of nodes. +* +* The hive ID is stored in: +* /sys/class/drm/card${cardno}/device/xgmi_hive_info/xgmi_hive_id +* +* The node information is stored in numbered directories: +* /sys/class/drm/card${cardno}/device/xgmi_hive_info/node${nodeno}/xgmi_device_id +* +* Each device has their own xgmi_hive_info direction with a mirror +* set of node sub-directories. +* +* The XGMI memory space is built by contiguously adding the power of +* two padded VRAM space from each node to each other. +* +*/ + +static ssize_t amdgpu_xgmi_show_hive_id (struct device *dev,struct device_attribute *attr,char *buf) {
--
2.21.0
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
Reviewed-byQuoted 2 lines · Tom
Signed-off-by Tom St Denis <[email protected]>
Series is:
Quoted 67 lines
--- Documentation/gpu/amdgpu.rst | 9 ++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 28 ++++++++++++++++++++++++ 2 files changed, 37 insertions(+)Documentation/gpu/amdgpu.rst +9
-0@@ -70,6 +70,15 @@ Interrupt Handling .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c :internal: +AMDGPU XGMI Support +=================== + +.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c + :doc: AMDGPU XGMI Support + +.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c + :internal: + GPU Power/Thermal Controls and Monitoring =========================================drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +28
-1@@ -40,6 +40,34 @@ void *amdgpu_xgmi_hive_try_lock(struct amdgpu_hive_info *hive)return &hive->device_list; } +/** +* DOC: AMDGPU XGMI Support +* +* XGMI is a high speed interconnect that joins multiple GPU cards +* into a homogeneous memory space that is organized by a collective +* hive ID and individual node IDs, both of which are 64-bit numbers. +* +* The file xgmi_device_id contains the unique per GPU device ID and +* is stored in the /sys/class/drm/card${cardno}/device/ directory. +* +* Inside the device directory a sub-directory 'xgmi_hive_info' is +* created which contains the hive ID and the list of nodes. +* +* The hive ID is stored in: +* /sys/class/drm/card${cardno}/device/xgmi_hive_info/xgmi_hive_id +* +* The node information is stored in numbered directories: +* /sys/class/drm/card${cardno}/device/xgmi_hive_info/node${nodeno}/xgmi_device_id +* +* Each device has their own xgmi_hive_info direction with a mirror +* set of node sub-directories. +* +* The XGMI memory space is built by contiguously adding the power of +* two padded VRAM space from each node to each other. +* +*/ + +static ssize_t amdgpu_xgmi_show_hive_id (struct device *dev,struct device_attribute *attr,char *buf) { --2.21.0
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx