Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp927266lqs; Wed, 6 Mar 2024 00:32:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXVxRV1/1Lv/M5Ewa6gusYztH0XCX3aD6pPXCEBw2I4yzNj0PMI+aX1TQuEFAXJsKNBb3665fYV2a+mCRcyJAv9U4Pj6vvsLgLfv0uLlA== X-Google-Smtp-Source: AGHT+IEPpA4SF8OXR6pcks59R0IuG6YvbmrLv8Yi4MpxV7kjSdzyGdhaFma/id2wVcPcm/WMQou0 X-Received: by 2002:a05:622a:199c:b0:42e:f863:a407 with SMTP id u28-20020a05622a199c00b0042ef863a407mr4123397qtc.51.1709713933290; Wed, 06 Mar 2024 00:32:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709713933; cv=pass; d=google.com; s=arc-20160816; b=H1K+aZrzglMGlFO7sfX3rlh1CVonxZQImChbBi0vOd9iikAOamwF+/GqhROUFSLJFW 76cLT6idwnOjCy5YmV4MUI1TcgN9WaKW/Hkj3zxHXWFwN7+GWauVI/6fVuLITXYcb+YA 3frnC4alZB7DNEs7UtqtExqZSv5PP2FtXsLL1ic36kfUOV2znme7u3NnB/j3l2TvyMF/ uT/pvScnIVhHWfz7n0hsPBsAtG2R2MWZ5t1eLD1U0H13DJ52YsKtY69ceG6H552PJqnJ 7Ph8YjL7Czy4jjYqc6o8+70tqCKD1tb25BYdWVSU8B9mWt3RHBVdPZ7weB6KRKPBhe7T N5QA== 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:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=wBclJ2321GquWpSv8u+UQ+5whGNSTBzwaiCmOO6tGzk=; fh=3gmsTbJO34kfjZmtS4/XqmGrPbFP8U421wt+WsCpLm4=; b=K/0oFV4rkiN71jfMoJvKSGOOuwY1FGx+LbB57pl2iTzBfCRmR2Q/D2j3Ah7yc9G6g7 N1YlAD5JpU6sKjTLO0ri62nAJxvgizqIlK8dnUc90Yg9PvlPgIjh88Kg1wM3f2NdSHt9 mZkAlpk3fbvObd4X8t0dDahIIwLOnUyE1ohHXpCbcuM3kB77JKehaBL0F3JZhrLzhdG6 X9u59DglLjsN2mjOOu/8lRqnL+z74iwsYXIkun7eizyhPoCgvJ21kRNtg3MjMN4BRbiq f8Y1oJl8cmYOvH9TxiVWwf7HkyVgTArrzKDz2I1qPe2s9EI/FaWgs0Xqsy8HEvjuZNX/ Z2mQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i+GrPBUi; 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-93503-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93503-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 18-20020ac85952000000b0042ef861718asi5196602qtz.765.2024.03.06.00.32.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 00:32:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93503-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=i+GrPBUi; 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-93503-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93503-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 8A89F1C2439C for ; Wed, 6 Mar 2024 08:31:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36F942EB06; Wed, 6 Mar 2024 08:31:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="i+GrPBUi" Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 494615D8FB for ; Wed, 6 Mar 2024 08:31:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709713887; cv=none; b=aZ5Q2uvuEHbNvTSNTKdXZZIGWp/QnAc2BzbWC3vFkGusg6OIpEHwGNCul/uO1M8wGQO+ZLgS09nwRCzcQCklSXze3fXv/o9x9tWqNfPi8UKc6oyqjSbMIcww/mf1HxplRGyBxuQXjhRXjxXo5RJ4t5a/9ReK1YC6WG7sPjyYVYs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709713887; c=relaxed/simple; bh=KXp1t8lcI6Rolpam/MVl5z5Wbhly/pEhcZdfFhwVXFc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=OXgnwLwUi31AnGwVd5loV3iAmxzjqqvSgcq23kYeH8dctUonBOe0YGkCovTfDhWJE0VTNsRwi8EG0K4Zs0XDtms0CJd/9v+ceHpy2QD3cnek+zsYz2yssvBL+GGT31xP28D/6zjfp3tiKr07rH1vd8I7HosG+p0z9qIPnhYJWEw= 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=i+GrPBUi; arc=none smtp.client-ip=209.85.208.48 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-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-55a179f5fa1so9568277a12.0 for ; Wed, 06 Mar 2024 00:31:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709713883; x=1710318683; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wBclJ2321GquWpSv8u+UQ+5whGNSTBzwaiCmOO6tGzk=; b=i+GrPBUijLYBoaF9sEtBAFdM8iNzVXlF21Eg5f4zJLa8T/uaid8p+mLsTMljW81M/5 ORDxjlu15wfF7iTAO+Z087PenxnfWljbm9qXwZ185HnH5CyauxZq8bLnZhsXkiJ+o+kT iEqSboipOZqne4oKF+/3mNSgGCWulKj622/lIMgNx2BqReAssQPcPOnvw7bLos10eY6A AQeqWDu0aMWd4cSlF08vhpzrA1mEEkuPucMhkky+9pUdS7UUX+GXi0yAW7+EWUfCEYTx +uWJJE6KsTFW7A6fyaJudTH2eVQIfKcfC9QYoOIOV0okhGJFzCteyKlUkru4kV7UgPCM Ml/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709713883; x=1710318683; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wBclJ2321GquWpSv8u+UQ+5whGNSTBzwaiCmOO6tGzk=; b=SEgVnu5LjnDOsZoj9DAjsf3sM9LIgbLu1Jk59jwn1SJWregCGyK6Gw93PKrtsXlJYA tnZ/xcS2TFeZRHznoj9k7ZYJBjeKcZUAI3i2bE3H9ec5J6mmTUbrfsFt0ul4RuIhKGoj ZyZBEGcy/EPGLmGcUsMf3L0S2U5PFhn+3VWvLbO0A86kQxl6q4unWL8U/RAoXaAtYabl 07WcL99VaizkcsA4563A+pBJZknkbH6JwZ7mp3mNoEO1CxrU4KeaY4M8Bnj4qyjPa9Yc wA2rrSKcYUF9tUq+IyrIct6gmXUeIWsD47MqulnlJaw70+KDPsIrJpGywyRGZkhHhs03 +kUg== X-Forwarded-Encrypted: i=1; AJvYcCWGuJQtBfqWAn6Q1T6QY9n+wPIFx5ZnVm+bQpF34VOOpGaDwbHb2R3USmRC2jIA9mwP/IfJU0DPcZAjvkyk7jKuiNm8Uy9KrgkjVTfY X-Gm-Message-State: AOJu0YysfDIazYhzkxh9HoqIvnUHqMrHVhdAzsLTlCPczsiXUn8517S/ WyyaVnCiH3yQH6ugiG4AkOQTm78WFpzM4M72bTesrK0wk9uXnNgCUWDJY1iptAM= X-Received: by 2002:a05:6402:5c2:b0:567:6a66:d103 with SMTP id n2-20020a05640205c200b005676a66d103mr4903117edx.0.1709713883631; Wed, 06 Mar 2024 00:31:23 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id q12-20020a056402518c00b00563ec73bbafsm6640290edd.46.2024.03.06.00.31.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Mar 2024 00:31:23 -0800 (PST) Message-ID: Date: Wed, 6 Mar 2024 09:31:21 +0100 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 v3 1/4] interconnect: qcom: icc-rpmh: Add QoS configuration support Content-Language: en-US To: Odelu Kukatla , Bjorn Andersson , Konrad Dybcio , 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: <20240306073016.2163-1-quic_okukatla@quicinc.com> <20240306073016.2163-2-quic_okukatla@quicinc.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sA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2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240306073016.2163-2-quic_okukatla@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 06/03/2024 08:30, 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 > --- > drivers/interconnect/qcom/icc-rpmh.c | 105 +++++++++++++++++++++++++++ > drivers/interconnect/qcom/icc-rpmh.h | 32 ++++++++ > 2 files changed, 137 insertions(+) > > + if (desc->config) { > + struct resource *res; > + void __iomem *base; > + > + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > + if (!res) { > + dev_warn(dev, "Skipping QoS, failed to get resource\n"); Why is this a warning? If the MMIO is not required, your driver should not spawn warnings. > + goto skip_qos_config; > + } > + > + base = devm_ioremap(dev, res->start, resource_size(res)); Combine these two (there's a helper for that). > + if (IS_ERR(base)) { > + dev_warn(dev, "Skipping QoS, ioremap failed: %ld\n", PTR_ERR(base)); > + goto skip_qos_config; > + }; > + > + qp->regmap = devm_regmap_init_mmio(dev, base, desc->config); > + Drop blank line. > + if (IS_ERR(qp->regmap)) { > + dev_warn(dev, "Skipping QoS, regmap failed; %ld\n", PTR_ERR(qp->regmap)); > + goto skip_qos_config; > + } > + > + qp->num_clks = devm_clk_bulk_get_all(qp->dev, &qp->clks); > + if (qp->num_clks < 0) { > + dev_warn(dev, "Skipping QoS, failed to get clk: %d\n", qp->num_clks); dev_info(), because current binding sais clocks are not required and you are not allowed to affect ABI. While ABI here does not look broken, spawning new warnings to proper users is not welcomed. Best regards, Krzysztof