1*1f82d58dSJonathan CameronWhat: /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune 2*1f82d58dSJonathan CameronDate: October 2022 3*1f82d58dSJonathan CameronKernelVersion: 6.1 4*1f82d58dSJonathan CameronContact: Yicong Yang <yangyicong@hisilicon.com> 5*1f82d58dSJonathan CameronDescription: This directory contains files for tuning the PCIe link 6*1f82d58dSJonathan Cameron parameters(events). Each file is named after the event 7*1f82d58dSJonathan Cameron of the PCIe link. 8*1f82d58dSJonathan Cameron 9*1f82d58dSJonathan Cameron See Documentation/trace/hisi-ptt.rst for more information. 10*1f82d58dSJonathan Cameron 11*1f82d58dSJonathan CameronWhat: /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_cpl 12*1f82d58dSJonathan CameronDate: October 2022 13*1f82d58dSJonathan CameronKernelVersion: 6.1 14*1f82d58dSJonathan CameronContact: Yicong Yang <yangyicong@hisilicon.com> 15*1f82d58dSJonathan CameronDescription: (RW) Controls the weight of Tx completion TLPs, which influence 16*1f82d58dSJonathan Cameron the proportion of outbound completion TLPs on the PCIe link. 17*1f82d58dSJonathan Cameron The available tune data is [0, 1, 2]. Writing a negative value 18*1f82d58dSJonathan Cameron will return an error, and out of range values will be converted 19*1f82d58dSJonathan Cameron to 2. The value indicates a probable level of the event. 20*1f82d58dSJonathan Cameron 21*1f82d58dSJonathan CameronWhat: /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_np 22*1f82d58dSJonathan CameronDate: October 2022 23*1f82d58dSJonathan CameronKernelVersion: 6.1 24*1f82d58dSJonathan CameronContact: Yicong Yang <yangyicong@hisilicon.com> 25*1f82d58dSJonathan CameronDescription: (RW) Controls the weight of Tx non-posted TLPs, which influence 26*1f82d58dSJonathan Cameron the proportion of outbound non-posted TLPs on the PCIe link. 27*1f82d58dSJonathan Cameron The available tune data is [0, 1, 2]. Writing a negative value 28*1f82d58dSJonathan Cameron will return an error, and out of range values will be converted 29*1f82d58dSJonathan Cameron to 2. The value indicates a probable level of the event. 30*1f82d58dSJonathan Cameron 31*1f82d58dSJonathan CameronWhat: /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_p 32*1f82d58dSJonathan CameronDate: October 2022 33*1f82d58dSJonathan CameronKernelVersion: 6.1 34*1f82d58dSJonathan CameronContact: Yicong Yang <yangyicong@hisilicon.com> 35*1f82d58dSJonathan CameronDescription: (RW) Controls the weight of Tx posted TLPs, which influence the 36*1f82d58dSJonathan Cameron proportion of outbound posted TLPs on the PCIe link. 37*1f82d58dSJonathan Cameron The available tune data is [0, 1, 2]. Writing a negative value 38*1f82d58dSJonathan Cameron will return an error, and out of range values will be converted 39*1f82d58dSJonathan Cameron to 2. The value indicates a probable level of the event. 40*1f82d58dSJonathan Cameron 41*1f82d58dSJonathan CameronWhat: /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune/rx_alloc_buf_level 42*1f82d58dSJonathan CameronDate: October 2022 43*1f82d58dSJonathan CameronKernelVersion: 6.1 44*1f82d58dSJonathan CameronContact: Yicong Yang <yangyicong@hisilicon.com> 45*1f82d58dSJonathan CameronDescription: (RW) Control the allocated buffer watermark for inbound packets. 46*1f82d58dSJonathan Cameron The packets will be stored in the buffer first and then transmitted 47*1f82d58dSJonathan Cameron either when the watermark reached or when timed out. 48*1f82d58dSJonathan Cameron The available tune data is [0, 1, 2]. Writing a negative value 49*1f82d58dSJonathan Cameron will return an error, and out of range values will be converted 50*1f82d58dSJonathan Cameron to 2. The value indicates a probable level of the event. 51*1f82d58dSJonathan Cameron 52*1f82d58dSJonathan CameronWhat: /sys/bus/event_source/devices/hisi_ptt<sicl_id>_<core_id>/tune/tx_alloc_buf_level 53*1f82d58dSJonathan CameronDate: October 2022 54*1f82d58dSJonathan CameronKernelVersion: 6.1 55*1f82d58dSJonathan CameronContact: Yicong Yang <yangyicong@hisilicon.com> 56*1f82d58dSJonathan CameronDescription: (RW) Control the allocated buffer watermark of outbound packets. 57*1f82d58dSJonathan Cameron The packets will be stored in the buffer first and then transmitted 58*1f82d58dSJonathan Cameron either when the watermark reached or when timed out. 59*1f82d58dSJonathan Cameron The available tune data is [0, 1, 2]. Writing a negative value 60*1f82d58dSJonathan Cameron will return an error, and out of range values will be converted 61*1f82d58dSJonathan Cameron to 2. The value indicates a probable level of the event. 62*1f82d58dSJonathan Cameron 63*1f82d58dSJonathan CameronWhat: /sys/devices/hisi_ptt<sicl_id>_<core_id>/root_port_filters 64*1f82d58dSJonathan CameronDate: May 2023 65*1f82d58dSJonathan CameronKernelVersion: 6.5 66*1f82d58dSJonathan CameronContact: Yicong Yang <yangyicong@hisilicon.com> 67*1f82d58dSJonathan CameronDescription: This directory contains the files providing the PCIe Root Port filters 68*1f82d58dSJonathan Cameron information used for PTT trace. Each file is named after the supported 69*1f82d58dSJonathan Cameron Root Port device name <domain>:<bus>:<device>.<function>. 70*1f82d58dSJonathan Cameron 71*1f82d58dSJonathan Cameron See the description of the "filter" in Documentation/trace/hisi-ptt.rst 72*1f82d58dSJonathan Cameron for more information. 73*1f82d58dSJonathan Cameron 74*1f82d58dSJonathan CameronWhat: /sys/devices/hisi_ptt<sicl_id>_<core_id>/root_port_filters/multiselect 75*1f82d58dSJonathan CameronDate: May 2023 76*1f82d58dSJonathan CameronKernelVersion: 6.5 77*1f82d58dSJonathan CameronContact: Yicong Yang <yangyicong@hisilicon.com> 78*1f82d58dSJonathan CameronDescription: (Read) Indicates if this kind of filter can be selected at the same 79*1f82d58dSJonathan Cameron time as others filters, or must be used on it's own. 1 indicates 80*1f82d58dSJonathan Cameron the former case and 0 indicates the latter. 81*1f82d58dSJonathan Cameron 82*1f82d58dSJonathan CameronWhat: /sys/devices/hisi_ptt<sicl_id>_<core_id>/root_port_filters/<bdf> 83*1f82d58dSJonathan CameronDate: May 2023 84*1f82d58dSJonathan CameronKernelVersion: 6.5 85*1f82d58dSJonathan CameronContact: Yicong Yang <yangyicong@hisilicon.com> 86*1f82d58dSJonathan CameronDescription: (Read) Indicates the filter value of this Root Port filter, which 87*1f82d58dSJonathan Cameron can be used to control the TLP headers to trace by the PTT trace. 88*1f82d58dSJonathan Cameron 89*1f82d58dSJonathan CameronWhat: /sys/devices/hisi_ptt<sicl_id>_<core_id>/requester_filters 90*1f82d58dSJonathan CameronDate: May 2023 91*1f82d58dSJonathan CameronKernelVersion: 6.5 92*1f82d58dSJonathan CameronContact: Yicong Yang <yangyicong@hisilicon.com> 93*1f82d58dSJonathan CameronDescription: This directory contains the files providing the PCIe Requester filters 94*1f82d58dSJonathan Cameron information used for PTT trace. Each file is named after the supported 95*1f82d58dSJonathan Cameron Endpoint device name <domain>:<bus>:<device>.<function>. 96*1f82d58dSJonathan Cameron 97*1f82d58dSJonathan Cameron See the description of the "filter" in Documentation/trace/hisi-ptt.rst 98*1f82d58dSJonathan Cameron for more information. 99*1f82d58dSJonathan Cameron 100*1f82d58dSJonathan CameronWhat: /sys/devices/hisi_ptt<sicl_id>_<core_id>/requester_filters/multiselect 101*1f82d58dSJonathan CameronDate: May 2023 102*1f82d58dSJonathan CameronKernelVersion: 6.5 103*1f82d58dSJonathan CameronContact: Yicong Yang <yangyicong@hisilicon.com> 104*1f82d58dSJonathan CameronDescription: (Read) Indicates if this kind of filter can be selected at the same 105*1f82d58dSJonathan Cameron time as others filters, or must be used on it's own. 1 indicates 106*1f82d58dSJonathan Cameron the former case and 0 indicates the latter. 107*1f82d58dSJonathan Cameron 108*1f82d58dSJonathan CameronWhat: /sys/devices/hisi_ptt<sicl_id>_<core_id>/requester_filters/<bdf> 109*1f82d58dSJonathan CameronDate: May 2023 110*1f82d58dSJonathan CameronKernelVersion: 6.5 111*1f82d58dSJonathan CameronContact: Yicong Yang <yangyicong@hisilicon.com> 112*1f82d58dSJonathan CameronDescription: (Read) Indicates the filter value of this Requester filter, which 113*1f82d58dSJonathan Cameron can be used to control the TLP headers to trace by the PTT trace. 114