Searched hist:"770 c69f0" (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/interconnect/ |
H A D | debugfs-client.c | 770c69f0 Mon Aug 07 09:29:14 CDT 2023 Mike Tipton <quic_mdtipton@quicinc.com> interconnect: Add debugfs test client
It's often useful during test, debug, and development to issue path votes from shell. Add a debugfs client for this purpose.
Example usage: cd /sys/kernel/debug/interconnect/test-client/
# Configure node endpoints for the path from CPU to DDR on # qcom/sm8550. echo chm_apps > src_node echo ebi > dst_node
# Get path between src_node and dst_node. This is only # necessary after updating the node endpoints. echo 1 > get
# Set desired BW to 1GBps avg and 2GBps peak. echo 1000000 > avg_bw echo 2000000 > peak_bw
# Vote for avg_bw and peak_bw on the latest path from "get". # Voting for multiple paths is possible by repeating this # process for different nodes endpoints. echo 1 > commit
Allowing userspace to directly enable and set bus rates can be dangerous So, following in the footsteps of the regmap [0] and clk [1] frameworks, keep these userspace controls compile-time disabled without Kconfig options to enable them. Enabling this will require code changes to define INTERCONNECT_ALLOW_WRITE_DEBUGFS.
[0] commit 09c6ecd39410 ("regmap: Add support for writing to regmap registers via debugfs") [1] commit 37215da5553e ("clk: Add support for setting clk_rate via debugfs")
Signed-off-by: Mike Tipton <quic_mdtipton@quicinc.com> Link: https://lore.kernel.org/r/20230807142914.12480-4-quic_mdtipton@quicinc.com Signed-off-by: Georgi Djakov <djakov@kernel.org>
|
H A D | internal.h | 770c69f0 Mon Aug 07 09:29:14 CDT 2023 Mike Tipton <quic_mdtipton@quicinc.com> interconnect: Add debugfs test client
It's often useful during test, debug, and development to issue path votes from shell. Add a debugfs client for this purpose.
Example usage: cd /sys/kernel/debug/interconnect/test-client/
# Configure node endpoints for the path from CPU to DDR on # qcom/sm8550. echo chm_apps > src_node echo ebi > dst_node
# Get path between src_node and dst_node. This is only # necessary after updating the node endpoints. echo 1 > get
# Set desired BW to 1GBps avg and 2GBps peak. echo 1000000 > avg_bw echo 2000000 > peak_bw
# Vote for avg_bw and peak_bw on the latest path from "get". # Voting for multiple paths is possible by repeating this # process for different nodes endpoints. echo 1 > commit
Allowing userspace to directly enable and set bus rates can be dangerous So, following in the footsteps of the regmap [0] and clk [1] frameworks, keep these userspace controls compile-time disabled without Kconfig options to enable them. Enabling this will require code changes to define INTERCONNECT_ALLOW_WRITE_DEBUGFS.
[0] commit 09c6ecd39410 ("regmap: Add support for writing to regmap registers via debugfs") [1] commit 37215da5553e ("clk: Add support for setting clk_rate via debugfs")
Signed-off-by: Mike Tipton <quic_mdtipton@quicinc.com> Link: https://lore.kernel.org/r/20230807142914.12480-4-quic_mdtipton@quicinc.com Signed-off-by: Georgi Djakov <djakov@kernel.org>
|
H A D | Makefile | 770c69f0 Mon Aug 07 09:29:14 CDT 2023 Mike Tipton <quic_mdtipton@quicinc.com> interconnect: Add debugfs test client
It's often useful during test, debug, and development to issue path votes from shell. Add a debugfs client for this purpose.
Example usage: cd /sys/kernel/debug/interconnect/test-client/
# Configure node endpoints for the path from CPU to DDR on # qcom/sm8550. echo chm_apps > src_node echo ebi > dst_node
# Get path between src_node and dst_node. This is only # necessary after updating the node endpoints. echo 1 > get
# Set desired BW to 1GBps avg and 2GBps peak. echo 1000000 > avg_bw echo 2000000 > peak_bw
# Vote for avg_bw and peak_bw on the latest path from "get". # Voting for multiple paths is possible by repeating this # process for different nodes endpoints. echo 1 > commit
Allowing userspace to directly enable and set bus rates can be dangerous So, following in the footsteps of the regmap [0] and clk [1] frameworks, keep these userspace controls compile-time disabled without Kconfig options to enable them. Enabling this will require code changes to define INTERCONNECT_ALLOW_WRITE_DEBUGFS.
[0] commit 09c6ecd39410 ("regmap: Add support for writing to regmap registers via debugfs") [1] commit 37215da5553e ("clk: Add support for setting clk_rate via debugfs")
Signed-off-by: Mike Tipton <quic_mdtipton@quicinc.com> Link: https://lore.kernel.org/r/20230807142914.12480-4-quic_mdtipton@quicinc.com Signed-off-by: Georgi Djakov <djakov@kernel.org>
|
H A D | core.c | 770c69f0 Mon Aug 07 09:29:14 CDT 2023 Mike Tipton <quic_mdtipton@quicinc.com> interconnect: Add debugfs test client
It's often useful during test, debug, and development to issue path votes from shell. Add a debugfs client for this purpose.
Example usage: cd /sys/kernel/debug/interconnect/test-client/
# Configure node endpoints for the path from CPU to DDR on # qcom/sm8550. echo chm_apps > src_node echo ebi > dst_node
# Get path between src_node and dst_node. This is only # necessary after updating the node endpoints. echo 1 > get
# Set desired BW to 1GBps avg and 2GBps peak. echo 1000000 > avg_bw echo 2000000 > peak_bw
# Vote for avg_bw and peak_bw on the latest path from "get". # Voting for multiple paths is possible by repeating this # process for different nodes endpoints. echo 1 > commit
Allowing userspace to directly enable and set bus rates can be dangerous So, following in the footsteps of the regmap [0] and clk [1] frameworks, keep these userspace controls compile-time disabled without Kconfig options to enable them. Enabling this will require code changes to define INTERCONNECT_ALLOW_WRITE_DEBUGFS.
[0] commit 09c6ecd39410 ("regmap: Add support for writing to regmap registers via debugfs") [1] commit 37215da5553e ("clk: Add support for setting clk_rate via debugfs")
Signed-off-by: Mike Tipton <quic_mdtipton@quicinc.com> Link: https://lore.kernel.org/r/20230807142914.12480-4-quic_mdtipton@quicinc.com Signed-off-by: Georgi Djakov <djakov@kernel.org>
|
/openbmc/linux/Documentation/driver-api/ |
H A D | interconnect.rst | 770c69f0 Mon Aug 07 09:29:14 CDT 2023 Mike Tipton <quic_mdtipton@quicinc.com> interconnect: Add debugfs test client
It's often useful during test, debug, and development to issue path votes from shell. Add a debugfs client for this purpose.
Example usage: cd /sys/kernel/debug/interconnect/test-client/
# Configure node endpoints for the path from CPU to DDR on # qcom/sm8550. echo chm_apps > src_node echo ebi > dst_node
# Get path between src_node and dst_node. This is only # necessary after updating the node endpoints. echo 1 > get
# Set desired BW to 1GBps avg and 2GBps peak. echo 1000000 > avg_bw echo 2000000 > peak_bw
# Vote for avg_bw and peak_bw on the latest path from "get". # Voting for multiple paths is possible by repeating this # process for different nodes endpoints. echo 1 > commit
Allowing userspace to directly enable and set bus rates can be dangerous So, following in the footsteps of the regmap [0] and clk [1] frameworks, keep these userspace controls compile-time disabled without Kconfig options to enable them. Enabling this will require code changes to define INTERCONNECT_ALLOW_WRITE_DEBUGFS.
[0] commit 09c6ecd39410 ("regmap: Add support for writing to regmap registers via debugfs") [1] commit 37215da5553e ("clk: Add support for setting clk_rate via debugfs")
Signed-off-by: Mike Tipton <quic_mdtipton@quicinc.com> Link: https://lore.kernel.org/r/20230807142914.12480-4-quic_mdtipton@quicinc.com Signed-off-by: Georgi Djakov <djakov@kernel.org>
|