diff options
author | Tadeusz Struk <tadeusz.struk@intel.com> | 2016-09-25 10:44:51 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-10-02 08:42:19 -0400 |
commit | c642cc070b4934cd4718e63aa46e140468bc6a60 (patch) | |
tree | 9b6e29b37f44a69637970325a7a8e4e322f09158 | |
parent | af3674d62d3470c4573709c031e6b17f1f39c96b (diff) |
IB/hfi1: Document new sysfs entries for hfi1 driver
This patch adds description for the sdma engine related sysfs entries
for the HFI1 driver.
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Reviewed-by: Jianxin Xiong <jianxin.xiong@intel.com>
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r-- | Documentation/infiniband/sysfs.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Documentation/infiniband/sysfs.txt b/Documentation/infiniband/sysfs.txt index 45bcafe6ff8a..77570d16b170 100644 --- a/Documentation/infiniband/sysfs.txt +++ b/Documentation/infiniband/sysfs.txt | |||
@@ -89,6 +89,36 @@ HFI1 | |||
89 | nctxts - number of allowed contexts (PSM2) | 89 | nctxts - number of allowed contexts (PSM2) |
90 | chip_reset - diagnostic (root only) | 90 | chip_reset - diagnostic (root only) |
91 | boardversion - board version | 91 | boardversion - board version |
92 | |||
93 | sdma<N>/ - one directory per sdma engine (0 - 15) | ||
94 | sdma<N>/cpu_list - read-write, list of cpus for user-process to sdma | ||
95 | engine assignment. | ||
96 | sdma<N>/vl - read-only, vl the sdma engine maps to. | ||
97 | |||
98 | The new interface will give the user control on the affinity settings | ||
99 | for the hfi1 device. | ||
100 | As an example, to set an sdma engine irq affinity and thread affinity | ||
101 | of a user processes to use the sdma engine, which is "near" in terms | ||
102 | of NUMA configuration, or physical cpu location, the user will do: | ||
103 | |||
104 | echo "3" > /proc/irq/<N>/smp_affinity_list | ||
105 | echo "4-7" > /sys/devices/.../sdma3/cpu_list | ||
106 | cat /sys/devices/.../sdma3/vl | ||
107 | 0 | ||
108 | echo "8" > /proc/irq/<M>/smp_affinity_list | ||
109 | echo "9-12" > /sys/devices/.../sdma4/cpu_list | ||
110 | cat /sys/devices/.../sdma4/vl | ||
111 | 1 | ||
112 | |||
113 | to make sure that when a process runs on cpus 4,5,6, or 7, | ||
114 | and uses vl=0, then sdma engine 3 is selected by the driver, | ||
115 | and also the interrupt of the sdma engine 3 is steered to cpu 3. | ||
116 | Similarly, when a process runs on cpus 9,10,11, or 12 and sets vl=1, | ||
117 | then engine 4 will be selected and the irq of the sdma engine 4 is | ||
118 | steered to cpu 8. | ||
119 | This assumes that in the above N is the irq number of "sdma3", | ||
120 | and M is irq number of "sdma4" in the /proc/interrupts file. | ||
121 | |||
92 | ports/1/ | 122 | ports/1/ |
93 | CCMgtA/ | 123 | CCMgtA/ |
94 | cc_settings_bin - CCA tables used by PSM2 | 124 | cc_settings_bin - CCA tables used by PSM2 |