From patchwork Mon Feb 5 14:56:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Odelu Kukatla X-Patchwork-Id: 19939 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp926881dyb; Mon, 5 Feb 2024 06:58:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHiba22qeYOf2fnwj00Smljyc0+P3k1EwWHLS/6RWgRZfWRVy6BNK1fBfilgUqVgFJBEjEB X-Received: by 2002:a05:6a20:94c5:b0:19e:8ad2:c934 with SMTP id ht5-20020a056a2094c500b0019e8ad2c934mr5172730pzb.14.1707145084813; Mon, 05 Feb 2024 06:58:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707145084; cv=pass; d=google.com; s=arc-20160816; b=XrP4Lp78xH3mzwsVUQ8PkPxEwScpykZWCUVTsG60AWPLKp5gyFgeORrffNP3CjsNDc Q+FHXfVWaliPcxI/xLs3Oa2xm8xriKhU7TE+iinT1z1tA7gQeel0aE8rGLJPLQkHMEB4 tK0oqYrE63sbfeZKkD4BVIPIETdTmItI/sJAC8kjNXbMxchnBKuvnKJTQV7slb9YOKIj ySqQ/JxFfziEn4Zo9eHNlXu+jSxJQGt+NjZRGYGNpxjoWn0ceyY83YjPZcf9LvYP6gZW zHLSs+O8z04Du21yJJpHofRkI+Cd5HjuV5Sd6zMIBX1YXGgkYEHbhLX6i69ABilvjeXM 9vAg== 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=+qiW1FvrZibrd0hus1IX9TpWC6Ia1DUINhu0PW690CE=; fh=CdCq7x6iA8+VBsnxhhLLRUR0UKN//GiBHmH1SPj/A+Y=; b=nO18lHn8249ENQct0iVnKg0WA95u3H4vZ72y29DbhAoAixDrKjYW5NEVhWChrHyLCw 1VeG9jXIvLLzoC78xWwmmykSgqK4LjPJhf4xGTDBD5RhAzLh7rTSm2D3ruLp9FA8LPDF i0550aqPAXzm0yX8TcyA8a5ZMyKJMmRHNa/1hBWQhtgxuE9DOV5Ldq+OBj+Sr0QSUvYL B3A2nqu9ajm3EH9dGwOBTJzdCGY7Ltjokt9R/WY+CGuvf+/yCvYLfbp/Faj5SGRmuZDa K5bYNGw0jFGmlBAznjALlwmCmraAnv1PqqqW7MHhpYTJ8KJeWuHxLZduq4/8WhNpHhrZ +9ZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Z5FvtXFN; 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-52856-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52856-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=1; AJvYcCWtnvvotu/Mne425YDPBUatH96jRZJPgxgmBokY8ARXZ5izikacrTKKBzhXyY5cLXmBwNL2WynW9FQhfA2G7ELuixNPdw== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c37-20020a631c65000000b005cdab7a395asi6151471pgm.349.2024.02.05.06.58.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 06:58:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52856-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Z5FvtXFN; 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-52856-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52856-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 948E1281F0A for ; Mon, 5 Feb 2024 14:58:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08A472D046; Mon, 5 Feb 2024 14:57:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Z5FvtXFN" 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 BD4D92C688; Mon, 5 Feb 2024 14:57:33 +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=1707145055; cv=none; b=Hcl4nTGAXpkB9+vVh+xvfiR8rCpoVzJMYb/Ngj/6KMkSwvgmcBtQzWlLShO3MmMGu/hPee7kDkphybFQu7t51wTOVVJHPDriHJsYsX06m8hLIbHSbNvowH+u1C1f25nxfP8MkpCWtfnUxmAbSy5apmRm+I4Ud+C6UUvCuMQpzcI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707145055; c=relaxed/simple; bh=RxXvJ6Oxzk/Mk4W4ObVkYG3nVDUACQ3QyEybGeMseN4=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=KK26Urnkc4lXdHeZyLZ83t+eLGPuwOj26fTEC9bcKxp1JrAb7Z+QqXoeuGxOwcNxeT4VM9YG8EJDC+C9L4GrjZNCnP3zizKlRJ3Etaeer0K3/LxpJmo//glkivm6neYiEmcD+BOudDEkUXiyiyHaIT7xIz4UmDC+84IbG9r/EzU= 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=Z5FvtXFN; 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.17.1.24/8.17.1.24) with ESMTP id 415ApZD2001614; Mon, 5 Feb 2024 14:57:24 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=+qiW1FvrZibrd0hus1IX9TpWC6Ia1DUINhu0PW690CE=; b=Z5 FvtXFNGHuRr3YvaSvEiFSGdxkQ+5Ptq1cDKoRgaTfl47Jg1730z4BU0kuSTJDLN7 O6h3h6TpXIWEy2G1qassDQDcnHNCt2vmDz3o3hPVgpNL/Q59A29M5dWUn0c6U0/I 7WKeFgJ4MTBAjL7h0T5VWHMJHaAL/KJvfSX/utqNQgMkjH9EfK1PcTE9jG+7wVCj teKjzfJ3c77QzOY1iD6s4cAFb4b7hiHgSEkFLJvyjbMlANs2dNeByyYAyZ6T2ayO 6Mr07q/n6x3PfAuQli5IZjsjQ50Z8+YqtAcOQJ9PInC6200pGPuKuhOScrxVVoSj 6D79ZDrxDeqjj3qcISdw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w2s07s5et-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 05 Feb 2024 14:57:24 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 415EvNIm001748 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 5 Feb 2024 14:57:23 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.1118.40; Mon, 5 Feb 2024 06:57:19 -0800 From: Odelu Kukatla To: CC: , , , , , , , , , , , Subject: [PATCH v2 0/4] Add support for QoS configuration Date: Mon, 5 Feb 2024 20:26:02 +0530 Message-ID: <20240205145606.16936-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 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-ORIG-GUID: 8CuRHnaaUPPMOjkjr2nz6EityrsQmTPz X-Proofpoint-GUID: 8CuRHnaaUPPMOjkjr2nz6EityrsQmTPz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-05_09,2024-01-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 clxscore=1011 phishscore=0 spamscore=0 mlxscore=0 bulkscore=0 adultscore=0 mlxlogscore=740 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402050113 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790071364153001286 X-GMAIL-MSGID: 1790071364153001286 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 v2: - Updated regmap_update to make use GENMASK and FIELD_PREP. - Removed the regmap structure from qcom_icc_node. - Made qcom_icc_rpmh_configure_qos() static - Removed qcom_icc_rpmh_map() API, inlined the code in probe function. - Updated declarations to reverse christmas tree fashion. Odelu Kukatla (4): interconnect: qcom: icc-rpmh: Add QoS configuration support interconnect: qcom: sc7280: enable QoS configuration dt-bindings: interconnect: add clock property to configure QoS on SC7280 arm64: dts: qcom: sc7280: Add clocks for QoS configuration .../interconnect/qcom,sc7280-rpmh.yaml | 49 +++ arch/arm64/boot/dts/qcom/sc7280.dtsi | 3 + drivers/interconnect/qcom/icc-rpmh.c | 161 ++++++++- drivers/interconnect/qcom/icc-rpmh.h | 32 ++ drivers/interconnect/qcom/sc7280.c | 332 ++++++++++++++++++ 5 files changed, 573 insertions(+), 4 deletions(-)