Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1042253rdb; Mon, 19 Feb 2024 02:15:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUMXQgk1ylOU5/rOxr73hFtDxWRhrN69K3p7RAHg6Rz5+2FjRXEEZ9zrkiI5LEEAnUOQoZ71Awa81uh1NsaikgT/N5Bb56fTtAhPBmzyg== X-Google-Smtp-Source: AGHT+IE6GRmy7KQ9PW7APWhLHi2F0SXRsknl7b9wDRZfz65WAdsAH5Om3z3NA1SObo47c3Uc5YWM X-Received: by 2002:aa7:8212:0:b0:6e1:e4c:7978 with SMTP id k18-20020aa78212000000b006e10e4c7978mr9717855pfi.31.1708337733192; Mon, 19 Feb 2024 02:15:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708337733; cv=pass; d=google.com; s=arc-20160816; b=xQfuFFFF90hjGffexsk4fX0S5CvEqt8KWkwYwPnssygltQqoa1+y+HossXrtZNtIBz V0Bbndchrku2p2CcCsKsceAfrBftcBz77yjN89cGo5wOirf+XYV1W2to/hyqzZhoTEtP LUNBpcOQSSW1/rlIAtSmNdxZC6pM22iUU6a82+P6b9X5b6cuyJYrBI69BXhTfOol7Fkt ETYAOGxirIjmrH4WL3ZRGBcAYhqMLy3xYrJTLHvg3KTp/YUWPELXv8VNLoxlB7gN+kPF q/jAEGeHaHD7vg8WLDwownOv7Nz8CnryIyd+dDxAKUwVDAWFNsjDbuSVI2P5URhOhGLc 9sFg== 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=+VfvyMz4J9zOLt2R+IkpEvDhJZO2XVen/W32wenUqb0=; fh=zwSGrnjdzymNQEugkz5bdO9FmkkEhyIiD/Dmy6HwrAE=; b=chlu6gTqfgHo2So1vZRUIwQEXrXIXjtndEPvF4dT5KXsRxAlR/1LjP2bU1TOy8/FXl uiSZLHP1rIZcS3roCQ73LVHj4j7ylx4DlxrDpVkp1wYylIFO8saI29t+VYQymPaUPZxi Kh4HLTtANnSia+p/bRMkz2X2mZUrUFVyhyBm2bxswuwCqYau6sWM6u7W8bZXcRk7gU6u wRxuovBDFoimiobgmDNANVFiOlp4OBQ05k1PSAjmwe3jt7biPQeO6johv0HftMHRcpVu MEXvDGcs1YzqTyNdfOjAvrmLB+AzZx1zywo8tmEzB0TA/qeQ53FHkty6hyGbjZiHXKNk w8cg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tzsdwsSQ; 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-71108-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71108-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y18-20020aa79e12000000b006e04426c8d5si4269520pfq.336.2024.02.19.02.15.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 02:15:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71108-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tzsdwsSQ; 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-71108-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71108-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C5EDE28174C for ; Mon, 19 Feb 2024 10:14:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C77425611; Mon, 19 Feb 2024 10:14:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tzsdwsSQ" Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 A06BF25601 for ; Mon, 19 Feb 2024 10:14:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708337687; cv=none; b=uGnzdIrXzt1sfck31ECAT7CRl0RIuRT4uQG7HFUvQ2EUD8fW5E4Q8Dfc4YU9hMHeSVrOctyQ1KFtlNEPRkq+z/1kX2HXCIsJjokdNG7fLcajcJpGSBcY9SRPFDFaB/cLzTXty99CNCmar0MF7OACAiM6wwnD9lDr1XU5brnebc4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708337687; c=relaxed/simple; bh=/r+Sw8hg1vButQTUTMbULSa/k6wzvq6pq3Hs/SxGJjk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=XIfeXZuQ4lYVe3Kon/Ck270SWsCuTQmdVBjhD44Tnffqubs1jKNI88VeXC4Jpa1OoALFcTonGVwiyqlQtKhHOjG/7xpGgxG0gvrT1ySLKnLfpvz2L9yaNBXOl8DEoVyhSfw+ExpZBTaU7jBkAcwWa2mkmwtSSTOdAwgfve+RunU= 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=tzsdwsSQ; arc=none smtp.client-ip=209.85.218.54 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-f54.google.com with SMTP id a640c23a62f3a-a3e4765c86eso160486966b.0 for ; Mon, 19 Feb 2024 02:14:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708337684; x=1708942484; 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=+VfvyMz4J9zOLt2R+IkpEvDhJZO2XVen/W32wenUqb0=; b=tzsdwsSQQbOtfSEmK3gWnzUto6z/CAvnGyV4pYLpEyFfsB71j/H7acfZuuCYo/bvoz F4s/sIZCjyq+PMT70/7E2uGMjnle6KaZVVay3F3OPNbYKeJHfgd+yRmCiC+T0xg8F53D K3Q8cCMxA1pHMFmKa/Cr7Gw8WukO0lywWjSkiECwaQB3iF/iTx6vxzMgH9gpNX54uerW deaXoJNJjskwVJitYS0SBQiKcbK6inrF6dDH3Txyf5ZO1MqmUv8W8dFhS3pisPP8fHsH /mNdPvukth2vYU0krmBEJ1qogOz7OHaSVjJE8DC/T3x4Yd5QcU3OOG1WegVszh+CjZKL n4VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708337684; x=1708942484; 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=+VfvyMz4J9zOLt2R+IkpEvDhJZO2XVen/W32wenUqb0=; b=vinVU+d+0Nvr2XJhFPylnnVhlRCdSmF9V8wJKmSHx8b7zeb8B6oSPOmcKDjWKLOPJN r/GENWybUkm2vkid28pxu8cj5pIRp976z/PHUGPl+0qyxq1lKbzkqrnzK/O9qBlKUb9r fpuKbPTNubIupFsnalTt6xSn8/o4fKLKAVcEoe8M0Ju4JaOEGu16A+dn7S+Io/3re57Y qtEMMxa1cZYlxYmJJtpYA0x1Rq3OEp8o1tGaUyQwAgL1sCdSdWeTLyAj96fS/8yQZX21 9CoAC4tGgxbARY645sZmKtoUr5Wxi+ko8AgxKM5Uz2DAPfh9KU+s0Q8kV6OfeCZlsiyz 0wGQ== X-Forwarded-Encrypted: i=1; AJvYcCV+W+NQ/Qd8m8dbu03Ea74LOPkGIvuQIXbbqoTQxwT8HV1cbcU3w0tKwS6gd4faQ0POn57G/t6phv7KsL3fLhtatVqq+YtkhChtnTim X-Gm-Message-State: AOJu0YycbsMp3G3k+It996PVg8Z43MOVs1IzbscJL0ZbTimdbEZY6f2k hkzFETdt529DGkhu9QcAhm4jdUJ18a+OrGu5vRd3bi5SIMCiaPIWNg7ROt+Ua4I= X-Received: by 2002:a17:907:11c2:b0:a3e:88fb:3e23 with SMTP id va2-20020a17090711c200b00a3e88fb3e23mr1886026ejb.7.1708337683999; Mon, 19 Feb 2024 02:14:43 -0800 (PST) Received: from [192.168.192.135] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id x19-20020a1709065ad300b00a3e786d8729sm1284360ejs.168.2024.02.19.02.14.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Feb 2024 02:14:43 -0800 (PST) Message-ID: Date: Mon, 19 Feb 2024 11:14:41 +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 2/2] interconnect: qcom: Add SM7150 driver support Content-Language: en-US To: Danila Tikhonov , andersson@kernel.org, djakov@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240218183239.85319-1-danila@jiaxyga.com> <20240218183239.85319-3-danila@jiaxyga.com> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIEq+wH/toH kpPDhTeMkvt4KfE5m5ercid9+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ilEDLe0jKJY0RJErbdRHsalwQCrtq/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: <20240218183239.85319-3-danila@jiaxyga.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 18.02.2024 19:32, Danila Tikhonov wrote: > Add a driver that handles the different NoCs found on SM7150, based on the > downstream dtb. > > Signed-off-by: Danila Tikhonov > --- Looks rather good, just 3 minor things: > + > +static const struct of_device_id qnoc_of_match[] = { > + { .compatible = "qcom,sm7150-aggre1-noc", > + .data = &sm7150_aggre1_noc}, Please unwrap these and add a space before the closing curly bracket > + { .compatible = "qcom,sm7150-aggre2-noc", > + .data = &sm7150_aggre2_noc}, > + { .compatible = "qcom,sm7150-camnoc-virt", > + .data = &sm7150_camnoc_virt}, > + { .compatible = "qcom,sm7150-compute-noc", > + .data = &sm7150_compute_noc}, > + { .compatible = "qcom,sm7150-config-noc", > + .data = &sm7150_config_noc}, > + { .compatible = "qcom,sm7150-dc-noc", > + .data = &sm7150_dc_noc}, > + { .compatible = "qcom,sm7150-gem-noc", > + .data = &sm7150_gem_noc}, > + { .compatible = "qcom,sm7150-mc-virt", > + .data = &sm7150_mc_virt}, > + { .compatible = "qcom,sm7150-mmss-noc", > + .data = &sm7150_mmss_noc}, > + { .compatible = "qcom,sm7150-system-noc", > + .data = &sm7150_system_noc}, > + { } > +}; > +MODULE_DEVICE_TABLE(of, qnoc_of_match); > + > +static struct platform_driver qnoc_driver = { > + .probe = qcom_icc_rpmh_probe, > + .remove_new = qcom_icc_rpmh_remove, > + .driver = { > + .name = "qnoc-sm7150", > + .of_match_table = qnoc_of_match, > + .sync_state = icc_sync_state, > + }, > +}; > +module_platform_driver(qnoc_driver); This is most certainly a bad choice, but at the same time it doesn't matter for now.. It's going to be badly delayed anyway, I have some fixes in the pipeline. Please change it to core_initcall (which may make your boot slower as of torvalds/master, counter-intuitively.. but I will surely forget to update this otherwise) [...] > + > +MODULE_DESCRIPTION("Qualcomm SM7150 NoC driver"); > +MODULE_LICENSE("GPL"); > diff --git a/drivers/interconnect/qcom/sm7150.h b/drivers/interconnect/qcom/sm7150.h > new file mode 100644 > index 000000000000..e00a9b0c1279 > --- /dev/null > +++ b/drivers/interconnect/qcom/sm7150.h > @@ -0,0 +1,140 @@ > +/* SPDX-License-Identifier: GPL-2.0-only */ GPL2+BSD3? Konrad