Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3856735rwo; Mon, 24 Jul 2023 18:39:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlFTDem1ON1plu3H3IsuJw6+l+qpJ5UEyJx3XA+9yacR2ryKvJkRFVCOyQVjSaZ4NF7DMbzN X-Received: by 2002:a05:6a20:541:b0:135:4527:efe4 with SMTP id 1-20020a056a20054100b001354527efe4mr11889291pzq.10.1690249146047; Mon, 24 Jul 2023 18:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690249146; cv=none; d=google.com; s=arc-20160816; b=chKPuWYmNA76mXUVYdEJdqQrwsFfK8r9iqyelub8VSDb7PQ7vwNMMP3suaEl18PSLf 9Ry5lZjRWPI1jRuIJ1oVF0y3Ff2GFq57qr4+qPcJniIgQDYHeLD95vkbxEktAAXAlhNy KTSNEbcyy5zxxBhYu8Q+6d8Owd5cAF7SyC1g9Xpbm8R+7ZBz2SiOIZCC2AD38i6riBYP p5EqcWszjk9gUM2+2orY01H8dUgFbLK0XJv68utd8ZJxOlNjKwauwvgSVWPdVXfo0dq0 vP7sh7S6aR4/0bpiefNsVYAskL+aVrsZM4io+vTdt6kd0Pv7vj/g5DjnqTyLS2TAvnBG UHAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=ztbvg3qh8DW7iS5BTHKyWdT0sUVJKcxg7qK55pHzNm0=; fh=YVw07fCkdVVZOyzQsRcehTUmG4UHPQLuRl1vQV/AWQc=; b=ADPGzsq05iMdP+EAvdQ2iJpa5wFYsVhLvNEJRSca8K9Y2cX3kTRnqhH2kVh3S4USvs NyHnXjHjP2Kbs7n7YUkFagwDkI3nn9M1GBFKm32hgTZK2rTPhZIN32E6Bq0Dw9EwAHao ZuuZA0R4i0Pb+itz/eMUpe2gUPmZyLm8J/AI/UF0rsIHthwDGNkNeZxBnctGtKHch7vh cbhMlCbgYI7r0leSORrMqcdk2BXohPXTAPOQbSfU3Z3WI7VZl0DxZmWoZj+vfN876Xup nxKR8h3IA+4ypHp/l5LZjiV6EE6Z07DZAYRrFCjeDqQOGIxGwmv4R1gtSTHKsnH9zeHf gqcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HQufatnW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n10-20020a170902d2ca00b001b8c824e826si11093015plc.533.2023.07.24.18.38.54; Mon, 24 Jul 2023 18:39:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HQufatnW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229907AbjGYBaE (ORCPT + 99 others); Mon, 24 Jul 2023 21:30:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229789AbjGYBaC (ORCPT ); Mon, 24 Jul 2023 21:30:02 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0861171E; Mon, 24 Jul 2023 18:30:00 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36P0SEvQ015570; Tue, 25 Jul 2023 01:29:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=ztbvg3qh8DW7iS5BTHKyWdT0sUVJKcxg7qK55pHzNm0=; b=HQufatnWrMRfRA7YhSGNA8VZATgI8hMrqBkJ7VQ2J2l+P/u3PkLazPJfACCALEwDMs4p LIPYr9gGtfYOnPyu+25KcjOWAStKtNFCCvTHHSvcuC1PCnXJHYGQhhBuxMy7IeHpR7OS DT//nrzLe0Ji1SMqKzofYxhfRVbhP8H967M167xDv+GvtCkDRxIwY5NTe2bkmBUXbYFS Pn3YNGs8NGnFc+QtOoSomXPvlcq8eia9PmfzVg1Osz/xqyAT3ZJLgy9gl0xh+Rb00T5S PcwOQ8UpdNeiUU7UyZNGdtONBQO197NlLFD3QiN6S/08yLrcC9FSfunrrgF/73foXT15 CQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s1vh8h1m5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jul 2023 01:29:55 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36P1TsTX002637 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jul 2023 01:29:54 GMT Received: from hu-mdtipton-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Mon, 24 Jul 2023 18:29:54 -0700 From: Mike Tipton To: , , CC: , , , , Mike Tipton Subject: [PATCH 0/3] Add interconnect debugfs client Date: Mon, 24 Jul 2023 18:28:56 -0700 Message-ID: <20230725012859.18474-1-quic_mdtipton@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: oCkJ4Uc-i-7VghjLGoJaBL_izLaf0LoZ X-Proofpoint-GUID: oCkJ4Uc-i-7VghjLGoJaBL_izLaf0LoZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-24_18,2023-07-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 bulkscore=0 impostorscore=0 mlxscore=0 spamscore=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=665 priorityscore=1501 adultscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307250010 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series introduces interconnect debugfs files that support voting for any path the framework supports. We've historically relied on an out-of-tree module for this, which used the old icc_get() that was recently removed in [0]. The old icc_get() took integer endpoint IDs, which made identifying paths in our old implementation non-intuitive. The logical node names typically don't change much chip-to-chip, but the raw integer IDs do. Take this opportunity to introduce an icc_get() that uses string names instead, which allows for a more intuitive and generic debugfs interface. We rely on this support for debug, test, and verification. Hopefully it'll be useful for other vendors as well. [0] commit 7dcdad6f32c9 ("interconnect: drop unused icc_get() interface") Mike Tipton (3): debugfs: Add write support to debugfs_create_str() interconnect: Reintroduce icc_get() interconnect: Add debugfs test client drivers/interconnect/Makefile | 2 +- drivers/interconnect/core.c | 67 +++++++++++ drivers/interconnect/debugfs-client.c | 156 ++++++++++++++++++++++++++ drivers/interconnect/internal.h | 2 + fs/debugfs/file.c | 48 +++++++- include/linux/interconnect.h | 6 + 6 files changed, 278 insertions(+), 3 deletions(-) create mode 100644 drivers/interconnect/debugfs-client.c -- 2.17.1