Received: by 2002:ab2:f03:0:b0:1ef:ffd0:ce49 with SMTP id i3csp28466lqf; Tue, 26 Mar 2024 13:13:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJAuvA+RHIwOtkoPJdbi+ELUcK/WTAyqAXNxo/fweY199R5mARu0Iyn91PIWkvPx1+CkF/QbxzvRoQBlQt4nRvvtfIOhyfSSTOl0M2oA== X-Google-Smtp-Source: AGHT+IFXslzrNIvM+KQPTnVThYRr9Ha3SyxnQ9c+fQKFeShn/TqJOwbaWHNzjQkoDgUVQbTtsIKU X-Received: by 2002:a05:6214:518b:b0:696:98c6:bffc with SMTP id kl11-20020a056214518b00b0069698c6bffcmr3339941qvb.36.1711484014650; Tue, 26 Mar 2024 13:13:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711484014; cv=pass; d=google.com; s=arc-20160816; b=dtR6G0jXXSEj07wmtgQWopaVC3RDE80h+cHC3iqojtlHq/4JOieU9EuEQZIrzlgiB8 vfnMVTg4DMGk306M6htH4wiqVC75Vywg1ykFwlbEiU7EIyBaehjrSewDANoiO2Eofz62 dfPNJYucSLvVaAkFNrKqme5O/PTRcDSyDiWzrVisqYXOZ5Bi/+Nhcx1HXUEfWp121mnK UUoxPfUMVkjlmg8oGRrFzpqO04+xy/urvrNp6tl7KkWj1oNXKOpJcCFn/CuKKoAyIp/H 6CSfV75VF6A/4SacAZT43HFQXwj8JN0BaRx48VVtQCwU3ZWWiPPCRaNPkRfqshQM/Zbh yBUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=UbYSMMZKtzawfJDJE4cir49VqhmCQiE1LJhdXx2FwYw=; fh=1mAhYIdAPEK22uQl8c6dknbSt7mBppmCWbNE5nXLecc=; b=TrCKZvtdy53A2drgxtwFGgbrUSNWl5DpivLswWV/b5CR8jJOFBUr81kp93Fig8tmqt UDoGV2a4w9s9vGdU25g1eHoR6eJuMlZYNgop83ec5cKb6V2eUK6i+tjnHfVo+XrPem3Z 8+Mb+a6WuUF1fqb98cJVoRJnuVbHnpgkAF/bqf7ZPfhdPxm0wdcT72M0qNhJ2XJaYLgt 98xLolLnD3IfZFulDy4LJbQU4z5QhMWee7D5NmPgXaQXun6SdXYZpiu4DOd89GMLUHd+ wvu/Crl6FxVolSmZrZSrRQekNz6MpcBG/1FzfNk6tn9gPr607ajRDHawk1zZ8uS8Hh1E UvXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YxSVHsDT; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-119874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119874-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jo30-20020a056214501e00b006967312060asi9033390qvb.321.2024.03.26.13.13.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 13:13:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YxSVHsDT; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-119874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119874-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 61DDA1C66941 for ; Tue, 26 Mar 2024 20:13:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E39F13D504; Tue, 26 Mar 2024 20:13:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YxSVHsDT" Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE32013D250 for ; Tue, 26 Mar 2024 20:13:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711484001; cv=none; b=eQcUqG/t2O3QgIghnI3s0imWANHDv4ertipe6wmuQSiy6aPpQv2zOdMHkc80vp+i6Nty3GC4tktQXseH8oQpEjWxscrcSxeyMMVWtJUvJKQH8XCWWDZyFc01ml/kSGbKW4QEmk/+H0zSZYzlFEOIJXu/RbfE4hkuq96GIpU3+I0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711484001; c=relaxed/simple; bh=btunXKwgkufCO7HD+m8VJEh9e4JqDOX4/d3qyOulTA8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ovvUo4qX2DRKvhiwWzBeT3FmZxvoT5Wbk6p9wIM1gYusKS+bjf5E0bt4vDvJ1iLGOBnBYCCc328+E3jKcpigtlHcNxVNCK92ZUUXox23y0OaEN8xK9+k4Db600OcHE92WswqoN3fO93TpoROdmCy+hTU/JkEhZpWijjvg0r57ac= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=YxSVHsDT; arc=none smtp.client-ip=209.85.219.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f176.google.com with SMTP id 3f1490d57ef6-dd161eb03afso5397130276.0 for ; Tue, 26 Mar 2024 13:13:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711483999; x=1712088799; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=UbYSMMZKtzawfJDJE4cir49VqhmCQiE1LJhdXx2FwYw=; b=YxSVHsDTPGIouqPy5YnQfc4NLv2Xe7U54N3RH+K8OaERQL6XR1h6YWhMOR2y4jM0Hj 4/e24S25rukMeHVEGZqJoC6Sn8I/fxSYRCXRvdpRZozRfRk2DdW1oQBd+R5dcAIkZI1d hvNGH2q4A5Y02FzS/bb/ui8Rbbi5NWPknBqc4tFKzHQeM12ou1NSXTLT0MqhI/1FHq6d kakkthDG3QcO8a4CwZWGnjPGIXWO5NPy8Y1H3HQvYnFkAq8h/THE+Yqehmfg47KLAZ+s 2UatPvhX5rUQPzvtc4EA57f9CkykU7YyKjBWguXlHImDRpicAQgFdXSk8v92G3ZZ1PMf 5Nqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711483999; x=1712088799; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UbYSMMZKtzawfJDJE4cir49VqhmCQiE1LJhdXx2FwYw=; b=ip/sYEJGOs+OyCgxVyO9kt2Ese2xwZBWbEXoPeMWpAShX5waGZsCXuJjAhyfzZhTGK O9SXFlvrwOZtO4fACNZ+7rVS6Fqe5lS9aEPt19sMAvBEsoL0ndY5Grppyd4bPU0KPFhO gGtN8IV9LAtU+WTJY5gtxVC57M2SMSjauyY/0lP1hucbp0VZmr7X7BCsxAG7jPh9r7+s Vzv2HcHxoJBGUYekEtCFO8FyCPHXUZPMjk20ZB/JlFPl+359xceQs478bv3GQHQfkIbJ nhVaHxEZst4x7s0fs6eaLbZLD6kNbgOSZX3S7Gpo2ZrKSlCKbnfXO313plvCtYu9ha0S SQxw== X-Forwarded-Encrypted: i=1; AJvYcCUPXnDFwzMbHB2+60v+sgdJY5EIlolkP5qo0yzIdiwm7oXwNtHIZuNmipIhlWstVqregk4qLP4u5rJ5F7iRIl0LzgupZdUDIrhem1PW X-Gm-Message-State: AOJu0Ywh7psrC0zNTHXgryC1VIwGRja154Q5uCxTA7rybWRcxiJBQJWD 4uGqZZMWHwOQn2n+/rVkz3hfKfnz9up69iVRCpc+T6S1lyi9udwEA/JrFB7t1hrDjQB4jg0p0sa P9iO7Gt7LuFYecyZAXLIN7CLCpDjwQgoH+vA4xQ== X-Received: by 2002:a25:c7ca:0:b0:dcc:623d:e475 with SMTP id w193-20020a25c7ca000000b00dcc623de475mr3650511ybe.30.1711483998811; Tue, 26 Mar 2024 13:13:18 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240326-topic-rpm_icc_qos_cleanup-v1-0-357e736792be@linaro.org> <20240326-topic-rpm_icc_qos_cleanup-v1-1-357e736792be@linaro.org> In-Reply-To: <20240326-topic-rpm_icc_qos_cleanup-v1-1-357e736792be@linaro.org> From: Dmitry Baryshkov Date: Tue, 26 Mar 2024 22:13:07 +0200 Message-ID: Subject: Re: [PATCH 1/4] interconnect: qcom: sm6115: Unspaghettify SNoC QoS port numbering To: Konrad Dybcio Cc: Bjorn Andersson , Georgi Djakov , Shawn Guo , Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Stephan Gerhold Content-Type: text/plain; charset="UTF-8" On Tue, 26 Mar 2024 at 21:43, Konrad Dybcio wrote: > > When I was creating this driver, my bright mind overlooked the existence > of desc->qos_offset and decided to make up for the difference it made by > adding 21 (0x15) to the port index on SNoC and its downstream buses. > > Undo this mistake to make the indices actually mean something. So, what is the meaning of qos_port? Reviewed-by: Dmitry Baryshkov > > Signed-off-by: Konrad Dybcio > --- > drivers/interconnect/qcom/sm6115.c | 33 ++++++++++++++++++--------------- > 1 file changed, 18 insertions(+), 15 deletions(-) > > diff --git a/drivers/interconnect/qcom/sm6115.c b/drivers/interconnect/qcom/sm6115.c > index 7e15ddf0a80a..271b07c74862 100644 > --- a/drivers/interconnect/qcom/sm6115.c > +++ b/drivers/interconnect/qcom/sm6115.c > @@ -242,7 +242,7 @@ static struct qcom_icc_node crypto_c0 = { > .id = SM6115_MASTER_CRYPTO_CORE0, > .channels = 1, > .buswidth = 8, > - .qos.qos_port = 43, > + .qos.qos_port = 22, > .qos.qos_mode = NOC_QOS_MODE_FIXED, > .qos.areq_prio = 2, > .mas_rpm_id = 23, > -- With best wishes Dmitry