Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1200077lqt; Fri, 7 Jun 2024 10:40:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVtwv3BF++yPuGrMExVFqm1GS3wsA2Ha0EkntBDiGJ4BHDRLj/PFx8f0jUQC1jbaiXolXvcv2DJkfutgBF5KllyKUMl+vh68HMeDenSYA== X-Google-Smtp-Source: AGHT+IHZAwbF44YxvOxlVuziv7rtg2/Yn7bpQgI2WRMsERFKwIlfIe4O/JREEUxEjUSQ86bmhqB3 X-Received: by 2002:a17:906:c9cf:b0:a6c:8c6a:83c4 with SMTP id a640c23a62f3a-a6cb2df95a1mr317462566b.0.1717782029660; Fri, 07 Jun 2024 10:40:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717782029; cv=pass; d=google.com; s=arc-20160816; b=H8gBWslwyM3FS+/ZCVJlRDLL5Obgp93Erqq2XZhE3IskTcZxCDdzNSBIe4jzHqujfD 5jVrGdmvIZ41lnw74ojfPMGvJKy2s9EUY7DI20BG9DYEP44yitib3xx8W+wa1XkTRqLR sGEtFH9Vcye2DhXcwsYLBrr69wKhXO2s6N3nXuJLHd/KqMEbcnXpNwPp3opj+WxNgAzi Z+OPenxkqtnACq2SX3I/F8GWWd8kTuqyBN1TbOVHlJ0i2VrJar920PFG/iJBKj+JZJFR Fc1ricOJ1WQ7IHmXiWAnDO9j1Xtmso8fuYuBGd4FPJSXueBN0Gxdhuz5MCc01K7L6m3b IYtA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from:dkim-signature; bh=5IKUAiqbsySEKKfuRunWhtwKGIhajIoajUUF2vUjRY0=; fh=0V7QfCqmTZkVZOcbLrxCDhUIsjV+i30C31rwuIAiFUw=; b=HbFO67Kc5+NDTwOEJAyYZMoiU+Er1WzvcATvgXD5ZfPS0RsERr3FWziBjvjOwOD103 4leyRIjLCBni/M1Kxr/JlDfNbprAQhINSIr0qiipoSPcPjG0oD7HawVW+n+Sl3i6b9Aa sHgMBUoIwplVJKhVN4FaUfsQO0ktmxrnpNkoVctxX6tvQAz+AMU5NuCBc/ZTJ+RMqPvM ATR1iFIJyKlRTo7S5qxPuaws41nPhhzBI6d1llltuoqg5gttfpMMjm8rzl69Bk4K8Htg OtJQE9Z3zWHu+Xp7dyvRLiGLTAy+PJS7k/zSVJO/ViH+6FMpbYx9odDNbJbj9+1SqN6Q HPPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Q+6EE1we; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-206553-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206553-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c807494acsi189934366b.1001.2024.06.07.10.40.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 10:40:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206553-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Q+6EE1we; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-206553-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206553-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 34CA91F243FA for ; Fri, 7 Jun 2024 17:40:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12B8319B3E1; Fri, 7 Jun 2024 17:40:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Q+6EE1we" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA0681990C7; Fri, 7 Jun 2024 17:40:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717782020; cv=none; b=dk7wLFva+LkdJwxfm3IZxWUXy5VbfG2ZDVFNchc1CydKsb8NBRDhz/4byDJ5h/JMcbr3hFRtdFdIk4t1B22k3zizJfXQUYHVrjJEavEAfB/S1Ila2rSULt8W7UXmKeuTNcaFbJ29SWxPOhgMk0altuW2VKFqkJYF853ajGTTjrU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717782020; c=relaxed/simple; bh=5ehjn2LZqwpSxZUdIEwtBAwcjwj0nCHl2AY28EQYwAY=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=akWCW5kLpvOTdB4EBiUXP9e4vT5HG1saMYYpccy0GhDKEZgdIoTwjRwIgH69KeQ3tkI5AgZ0e21Ja8YVrFfSe5fHn+bjPi4bCOxDkJyQBd6c1pUptV5yC9MsXDM9pMYwG7s7iutvDiv/u22QG7ESsEoyNet+vVB+IAY7ia7slLk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=Q+6EE1we; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 457HZUvr007842; Fri, 7 Jun 2024 17:40:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-type:date:from:message-id:mime-version:subject:to; s= qcppdkim1; bh=5IKUAiqbsySEKKfuRunWhtwKGIhajIoajUUF2vUjRY0=; b=Q+ 6EE1weqSdNrtg4YwThDjWMx0jmFpP8pLA4vD2xyDZT8IFNm8NMieqKHuu+cV+DIC mr5xar3fdxvTgPwByEyRPP1Uwiyjug34oQOD37G3GkaRvSQ2mkCEYTfUSl2w3gFw ngNnJe0tap8Ia2X649/QAsKothL5QkGUZPdj/4/VCVxTj00X90CSp+L/PRJrQ1Kx SgfZPQZz4eiUShwQQCUPZobZ9i7XhAUfsS/n/9GQFTA/mFKOst0ddlrhL7T/uuWm 3tl5dAGTCua7Iop0P+oPtA2Mrxjd+92QUv0+Kdk3ozDVrfRBKBhbl0+jvXSkpZ1+ EDnkiHcXy0ljofywBgaQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yka7pc28y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Jun 2024 17:40:14 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 457HeCF5020059 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 7 Jun 2024 17:40:12 GMT Received: from hu-okukatla-hyd.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 7 Jun 2024 10:40:07 -0700 From: Odelu Kukatla To: Bjorn Andersson , Konrad Dybcio , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Kees Cook , , "Gustavo A . R . Silva" , , , , , , , , Subject: [PATCH v5 0/4] Add support for QoS configuration Date: Fri, 7 Jun 2024 23:09:23 +0530 Message-ID: <20240607173927.26321-1-quic_okukatla@quicinc.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Dx8Ucj6W1Rxdxh1gFd0TL2eZejeybnCd X-Proofpoint-ORIG-GUID: Dx8Ucj6W1Rxdxh1gFd0TL2eZejeybnCd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-07_10,2024-06-06_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 priorityscore=1501 malwarescore=0 adultscore=0 spamscore=0 bulkscore=0 clxscore=1015 phishscore=0 mlxlogscore=875 lowpriorityscore=0 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406070130 This series adds QoS support for QNOC type device which can be found on SC7280 platform. It adds support for programming priority, priority forward disable and urgency forwarding. This helps in priortizing the traffic originating from different interconnect masters at NOC (Network On Chip). Changes in v5: - Replaced platform_get_resource() and devm_ioremap_resource() with devm_platform_ioremap_resource() API. - Initialized the qosbox pointer in ICC node using compound literal. - Added conditional check for clock property in dt-bindings to the providers which need clocks. Odelu Kukatla (4): interconnect: qcom: icc-rpmh: Add QoS configuration support interconnect: qcom: sc7280: enable QoS configuration dt-bindings: interconnect: add clock property to enable QOS on SC7280 arm64: dts: qcom: sc7280: Add clocks for QOS configuration .../interconnect/qcom,sc7280-rpmh.yaml | 53 ++++ arch/arm64/boot/dts/qcom/sc7280.dtsi | 3 + drivers/interconnect/qcom/icc-rpmh.c | 93 ++++++ drivers/interconnect/qcom/icc-rpmh.h | 35 +++ drivers/interconnect/qcom/sc7280.c | 274 ++++++++++++++++++ 5 files changed, 458 insertions(+) -- 2.17.1