Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp645283lqp; Sat, 13 Apr 2024 12:32:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUTCdhbuSyjoVLAvwL0q6n+6BYxLb8obX9WUdcMQcakof0Cdjh7KCXwvL33yTN8+1CU0CL8pwQdsuig6+60rwLfJbItDW+xGzI+tI9NYA== X-Google-Smtp-Source: AGHT+IHAmz6FbBH5326nSjtGmcpOWy2o/gg8kyKVl4ZxMa4ozg6LdFNOAakK8PXpTohGFkYYbHax X-Received: by 2002:a17:906:af15:b0:a52:1964:a36 with SMTP id lx21-20020a170906af1500b00a5219640a36mr3388595ejb.24.1713036727801; Sat, 13 Apr 2024 12:32:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713036727; cv=pass; d=google.com; s=arc-20160816; b=e3QqJT4VIw/kkQgjvv/PtQ9LFk98Khwnp8tUI9YumduFjQTK9FbZWStvNXl4HEBwed msFkOCAZUO7BGL0IbOh304Qz8bD0A96LsBAoJXTTqaNSSf3HcX6UIqoVSiai0lJ8RXSE fzpoCfT9aq/AkGeje5zSR30G+wASQKfKIvNUXq42sDRjHP5Bkl+otWxL63UitTWc1qKu 7w+DUMSpHaOl10ef5DJpgksxN+QLIFO94m0jRobbl/VyLfPWeZpyYW+pJsVOxbvo+y97 hF19XQzgx5roGObvicSY/c64zEmWfg+aQJ/TAk8AADyDKbVe72VAPJYp+ZmxpdM0Xspp xALQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=hoM0XAEUpRVPIeinoPGbPpP3Hh4hNSukUOnMJ2HLsSE=; fh=o9qjm10PwhLemW16yy/pnDoMK5m9V3MeMkKNlFci5sk=; b=PJd06XjcqylSaIXYSeXspZQN/lxKF2Vyt5BhkmDFvSOgVWvKmyXB/NIpd8W8fDQtFZ 7TEHdTudub9aRxC0kMcwDfDNt2ONv23o1GKuqpASdzDBLNBeKgwNs8/XrJ1QIX5HfUTQ lFuY0VaiNKfN0P+HOudM/oy/mzon1iAqxEDSE2igofFGuGiGgRUM8rDYvyaczdu8q2HW JcJryCsk7PGjdASTEGhJIEJbuz7WH3cMJvRCX7T+16AZnTzM3URc10RD4FMPTXr0cKIU Tp1PHft3WTrUNNqRCxMU5BGCBsOVlGt41uZOGixxGv5Sy/XyQzpBwg+q4V0l4V8yk6z3 c1bg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OmD4fAKY; 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-143854-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143854-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ck25-20020a170906c45900b00a51af7d464csi2855636ejb.96.2024.04.13.12.32.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 12:32:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143854-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OmD4fAKY; 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-143854-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143854-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 617E81F2156D for ; Sat, 13 Apr 2024 19:32:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85E76548F0; Sat, 13 Apr 2024 19:31:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OmD4fAKY" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 814C82901 for ; Sat, 13 Apr 2024 19:31:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713036716; cv=none; b=BT6osThZhGsLHFUocxnQdxbNhqGC7JvJ+5Il3Qlkuenycypg6gEm8s2S5MjbphYr+/3XwplUWNhxh775Zvk+QQYHOmAkasNqA73I9o/h4zqJNpmb/CPvy87gBn5sgTyyWQdjsOUtLcu//NzJXJfqVDffAPoBB8U8EAnAmWvY7ss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713036716; c=relaxed/simple; bh=YJ6jDS8SjWnTuVP9uJ1ghT1sfqZX9ES30YU+dQqnSYY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dhyQUV7HEOTSNEXs9+aKHdrwlb0OorPz3TCPpjW+UkvfbBQA3L3tvW4r75pWfypo1ETpa7PNAqC7RuaGHr0rW6FrM9J9q0PQ8vIlKNHOjUIZgbT5Sy0ethjcLiMhzz8N3Mn74OXKP4Wie45blRiYCTr9yMzdTfH8IoSy/FgHWeo= 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=OmD4fAKY; arc=none smtp.client-ip=209.85.218.45 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-ej1-f45.google.com with SMTP id a640c23a62f3a-a450bedffdfso244003466b.3 for ; Sat, 13 Apr 2024 12:31:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713036712; x=1713641512; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=hoM0XAEUpRVPIeinoPGbPpP3Hh4hNSukUOnMJ2HLsSE=; b=OmD4fAKYGHCGIqNRpTYDFLuil6ZKAfwxtzKkm8uPW44ZA8iUPtu6wfi5VaDFis3c0P wA0rZdvUxoG6aC3W1T1z8crx20hZ0ecZo1U2f7BtBf4mwHF63veKU/Q8tNe5LMA7cMnO VU8nw2C+VWqmkApVK2d6vdjGcqQnGKYlNd0+OQh3aZhvPadjLZ5f9DRvjCnGmq0Uo5Wm fjwGAWsPC22ELrzLVSdeFIfl4ZWMS4c9s2I3JpgZFsFA9+kn1Evgm8CdYgT08Fsd5qfV ctFSgkDPayLPP+Z5epQa1YRmkemdm9xvwLNbV13lswtHIMmVQgdzQBn5VgFkAExPQzjQ 4xmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713036712; x=1713641512; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hoM0XAEUpRVPIeinoPGbPpP3Hh4hNSukUOnMJ2HLsSE=; b=mRJebeDPxMtH7qx4CcMxGVrtp1ui1/M1NwWFMAKWZP8KJZk1On6mHqJjInWi871PdU sdFBfpZ/OHD1qKcUn+91efA64XRrd5LJgFK2eHHF2kYcNAfWHXShwrSdiC00ZyPAAREk RbVs8cKtQaSHevg5M+9GLL2zHKFX5qLdtuSYZ9XIZOJgyoIhiOOIAmzcJxVJCdcF6zUK xI8xkNIrNfizQ99hlU3ZSAY3ViWDRBQ4RZMqyJsz1TGyK3OqzLyxK13VtgsKOjWTfz+H hWFIx4Ak7zGRfW7up/j6WTeAldQdQgJiWvMySEC6HPoFow5sO6/6PXv9I0tzMG5IJveY WNOA== X-Forwarded-Encrypted: i=1; AJvYcCWamyy021k038dLzwtpeVrBcz9Hw/yEOqE3Wzhi99YoLKJr689LqlA3e399izCj22Ke/X2GJSUx5mszPAcuq6bn+Rd2/ZNdo/cTHYMm X-Gm-Message-State: AOJu0Yz4Ye5d4oP/zIdUPV+x6CiBx/wR2IAT51osuki052XDXsjoCMp9 WPHIlVwEYZMfydb5JPMUpd+B+PhVjl/VFAMogZx+//0bfu3jrSg6iIn4jhxlKyU= X-Received: by 2002:a17:907:94c1:b0:a51:e5c7:55b7 with SMTP id dn1-20020a17090794c100b00a51e5c755b7mr4208196ejc.47.1713036711430; Sat, 13 Apr 2024 12:31:51 -0700 (PDT) Received: from [192.168.45.55] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id oz16-20020a170906cd1000b00a51bf5932aesm3319727ejb.28.2024.04.13.12.31.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Apr 2024 12:31:50 -0700 (PDT) Message-ID: <0a58e05a-7bf5-459a-b202-66d88c095b45@linaro.org> Date: Sat, 13 Apr 2024 21:31:47 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/4] interconnect: qcom: icc-rpmh: Add QoS configuration support To: Odelu Kukatla , Bjorn Andersson , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Kees Cook , cros-qcom-dts-watchers@chromium.org, "Gustavo A . R . Silva" , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, quic_rlaggysh@quicinc.com, quic_mdtipton@quicinc.com References: <20240325181628.9407-1-quic_okukatla@quicinc.com> <20240325181628.9407-2-quic_okukatla@quicinc.com> <91f59477-1799-4db6-bcc2-3f0c5225d1c8@quicinc.com> Content-Language: en-US From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+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mUx xrbSCx2ksDxz7rFFGX1KmTkdRtcgC6F3NfuNYkYDAQgHwsF2BBgBCAAgFiEEU24if9oCL2zd AAQVR4cBcg5dfFgFAmQ5bvICGwwACgkQR4cBcg5dfFju1Q//Xta1ShwL0MLSC1KL1lXGXeRM 8arzfyiB5wJ9tb9U/nZvhhdfilEDLe0jKJY0RJErbdRHsalwQCrtq/1ewQpMpsRxXzAjgfRN jc4tgxRWmI+aVTzSRpywNahzZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <91f59477-1799-4db6-bcc2-3f0c5225d1c8@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 3.04.2024 10:45 AM, Odelu Kukatla wrote: > > > On 3/27/2024 2:26 AM, Konrad Dybcio wrote: >> On 25.03.2024 7:16 PM, Odelu Kukatla wrote: >>> It adds QoS support for QNOC device and includes support for >>> configuring priority, priority forward disable, urgency forwarding. >>> This helps in priortizing the traffic originating from different >>> interconnect masters at NoC(Network On Chip). >>> >>> Signed-off-by: Odelu Kukatla >>> --- [...] >>> @@ -70,6 +102,7 @@ struct qcom_icc_node { >>> u64 max_peak[QCOM_ICC_NUM_BUCKETS]; >>> struct qcom_icc_bcm *bcms[MAX_BCM_PER_NODE]; >>> size_t num_bcms; >>> + const struct qcom_icc_qosbox *qosbox; >> >> I believe I came up with a better approach for storing this.. see [1] >> >> Konrad >> >> [1] https://lore.kernel.org/linux-arm-msm/20240326-topic-rpm_icc_qos_cleanup-v1-4-357e736792be@linaro.org/ >> > > I see in this series, QoS parameters are moved into struct qcom_icc_desc. > Even though we program QoS at Provider/Bus level, it is property of the node/master connected to a Bus/NoC. I don't see how it could be the case, we're obviously telling the controller which endpoints have priority over others, not telling nodes whether the data they transfer can omit the queue. > It will be easier later to know which master's QoS we are programming if we add in node data. > Readability point of view, it might be good to keep QoS parameters in node data. I don't agree here either, with the current approach we've made countless mistakes when converting the downstream data (I have already submitted some fixes with more in flight), as there's tons of jumping around the code to find what goes where. Konrad