Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2338470rdb; Wed, 21 Feb 2024 04:52:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWLL/oaGU/a/5ex/49J0WGpZTGgP52sh6bINaEClxpEykvBTqeUDwaUG5mqjNucxsEIoIt3mVSQWvNvOwkTZtSSLIc7um7+oyy3zh4uKg== X-Google-Smtp-Source: AGHT+IHKuYy/c7ArfLVhmSc4uZ/4k2A0AAZVwkJfeD0S8woVDxiAgPEqJ9eF+IApcnyJni8+GIEX X-Received: by 2002:a05:6a20:43a7:b0:19e:a36c:36ef with SMTP id i39-20020a056a2043a700b0019ea36c36efmr22445220pzl.48.1708519976412; Wed, 21 Feb 2024 04:52:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708519976; cv=pass; d=google.com; s=arc-20160816; b=ytCHFUvSWIJqGmTjQU+uR+t/MxTK/kZwrgJnncNevrhDe3zSUBqv3OeAnR2aNo+x1x zWj0gjI2hfkCNaJRD8w4j/4d9EYoQCS4E1zNOhcsvwhHtHg3xjPP35DuM0/NGSDrOLJ1 s7MK+yVs0bnEsGc2ZNo2x9MCH2BjycPaP1JTFiYV+E/49jpVB4hQoHuADWo4bQcnZNDp p+CsYFOgsdF+sXMNYajQ2UlRs5MEzLp+zKcPqoEskNzhk+JBXwmk0xsCsJodEWasittn w5nFrENIFPUYE63785bdstyc01zY97IsiLUqmHWxoa8L8lLOJIKBu49W+gzAYVzNo0PH U/ow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=FUqvIBVamMldJ8EFrGScLylunQb47vA3f0Xl+APiwIw=; fh=5a1dSbVROBW8OUD79oPMw/O9Zb4A3o/xIA+y7RPPZqc=; b=j9cgZLXVEGDXUbX+pT7T6M/MMXHB7C6at6/7mWafELakMZBlpWpdolSKZh0gqPzVcj DIF3QMQYYd4/ShvIlzYCnOBQvFNZ6Exq+uyqSBGksCqqqeKCfY7lFAYuaNAe3Q4UG4Ui QWdRG81L9yh3S7gnS4RPUCvqTc6tb5rROl6XcUiNwpRWDeBY93uYb4k51mKugZ0tMjRG Ld05Dw0bVi+74mKrTVRZFLwQW71E0pw6FPW7QSUFFaludmCP3av4FMECvRJoMuR3GbUO KU431XpBx81C9IBMI86Wfe446E7GaYz/J/2DXw6No0+KQ77cYt5z44Bom9Za0mIPW92h BgVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gUarKIc5; 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-74727-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74727-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id k190-20020a633dc7000000b005c66a3f3f5bsi8013913pga.745.2024.02.21.04.52.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 04:52:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74727-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gUarKIc5; 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-74727-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74727-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3EE09B2236C for ; Wed, 21 Feb 2024 12:52:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08A346995F; Wed, 21 Feb 2024 12:52:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gUarKIc5" Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 6A88C69945 for ; Wed, 21 Feb 2024 12:52:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708519937; cv=none; b=RP/NmU5YUimd8q8xq9V0cxrKidmhdbbcAgYfv1BIU40u+S2eJqigPOaTZlPakXehCMzE/+w0EX4HjYUmiOEMywqxiLCKiLfLxS7VV0PlG4z0uEWoO4E48wEkeJBwpMAwKsUXgDULoWH8Ah1kMxT56TYATp2vH94QYGgwuE4g3uM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708519937; c=relaxed/simple; bh=VqjZ5zeQGNnxEH9jifmtI1lbx+BDCZmrirnr29wFjNk=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=on5VDg2sQhnrMQ/Z+fiWwy+5299QUoYPNi3SelGF1rzq2xOzYsIeaSSj+IZUR/2ILN4U4jqeOIf19Fhd6TSLZr0LbX9LGo9QdCXPGreMBzG+DZllnJ1924VW12XTD5aXYcCfZ4UZTdNu6sGbd40qurqJVx7IPp0Ye6szfr2u4sk= 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=gUarKIc5; arc=none smtp.client-ip=209.85.128.41 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-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4126f486429so12943585e9.0 for ; Wed, 21 Feb 2024 04:52:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708519934; x=1709124734; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=FUqvIBVamMldJ8EFrGScLylunQb47vA3f0Xl+APiwIw=; b=gUarKIc5Cc1Cupsjau1vRgRuZgpGVZ84lQU3EH+WxzGXsvVzVNknzcQT+MTTLmq95O HP22cLsSFaviRPk7byW1ntlXJ/ac1SsbmwcyVUOVXRyulX4BQeqobzgtnWEHWV3Y+JjR kF8d2lc6uN5g/AZj3Q4ZS1dqaE3fSeQXIlT1X/zs7/38qiAs/wdtL2jUW4GlMt9I/Qz3 E4cBmMhTFTZXlMPIXaoZ8l3T8kSuBLsJFIhXG4uFtsNj1AuM1VRgqfkAYnS0c2MSskwV YhsBCEhgHmp+0VmITaQN6X2Eoi0YcDY6keMS3ZTh1TFFC2bHtKqhjjW79cRVpVOecK5a A3yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708519934; x=1709124734; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=FUqvIBVamMldJ8EFrGScLylunQb47vA3f0Xl+APiwIw=; b=hAIyYFMr+gTl4LI7a0kuPMuYSBdticubjrRZJnLW05HU25UsRfi2uDIaSKajOD7EXd C2rmwS+TAcl7aPSNK8VrqBVfFk8sAQESiwstI56j4XLULPb2xaZcnA467z/LNsWo7Bx2 TvBArbfku85oTLmsUbgBBsW0mZA8FdeZaavhzXgQadegtX/9DPgt3Xs8E3ASqsr867RG havxpn/m7K0RP1h5RJ6bAmvh1RMlbQQuTKGpmXZ+d4mNebkpRsYq5FT2QjFqdrRZ11/P hD+4WYjhnoP/Ru9r/qe1Vb4RbRin/lvtkW2hWev9VnpZOT1XaMmOeMcl6tM2FSVcQa/f 9UNA== X-Forwarded-Encrypted: i=1; AJvYcCVCzL3Np7RLz607CcEeva6SXtgbf9CAdN+wUYWaV572/Tpz4qKgS9xFauaxLBwc4Q2xEaS/DN6EwSQR/dbeusbdSBz2hgKyPrUjgbVu X-Gm-Message-State: AOJu0YwHF/kjBE1FDRf9KMnSgJIzNj90fFvkphJIRZtBSR8KhDR3RS07 eOabYzc6OnmZ1ohsVTknGn4FkYzu+k13lOiiasCf3mdoemPgi7MFaaDgrqv/T0A4tZdOWakpK8x WWnMuhA== X-Received: by 2002:a05:600c:3507:b0:412:5df4:914e with SMTP id h7-20020a05600c350700b004125df4914emr8639602wmq.0.1708519933729; Wed, 21 Feb 2024 04:52:13 -0800 (PST) Received: from ?IPV6:2a01:e0a:982:cbb0:83fc:439c:6f36:ce5c? ([2a01:e0a:982:cbb0:83fc:439c:6f36:ce5c]) by smtp.gmail.com with ESMTPSA id s7-20020a7bc387000000b004107dfa6aebsm2401296wmj.28.2024.02.21.04.52.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Feb 2024 04:52:13 -0800 (PST) Message-ID: <2585d866-8451-492e-9f8b-95210ac52a81@linaro.org> Date: Wed, 21 Feb 2024 13:52:12 +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 From: neil.armstrong@linaro.org Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH] arm64: dts: qcom: sm8[56]50: Fix SPMI channels size Content-Language: en-US, fr To: Abel Vesa , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240220-dts-qcom-sm8550-fix-spmi-chnls-size-v1-1-24e22107a6ac@linaro.org> Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0UPIoSBaat7Gkz/iuBQJk Q5wSAhkBAAoJEBaat7Gkz/iuy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u7uZFAcmp6h8g Organization: Linaro Developer Services In-Reply-To: <20240220-dts-qcom-sm8550-fix-spmi-chnls-size-v1-1-24e22107a6ac@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, On 20/02/2024 18:04, Abel Vesa wrote: > The actual size of the channels registers region is 4MB, according to the > documentation. This issue was not caught until now because the driver was > supposed to allow same regions being mapped multiple times for supporting > multiple buses. Thie driver is using platform_get_resource_byname() and > devm_ioremap() towards that purpose, which intentionally avoids > devm_request_mem_region() altogether. > > Signed-off-by: Abel Vesa > --- > arch/arm64/boot/dts/qcom/sm8550.dtsi | 2 +- > arch/arm64/boot/dts/qcom/sm8650.dtsi | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi > index 7474cddf7ad3..3904348075f6 100644 > --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi > @@ -3318,7 +3318,7 @@ sram@c3f0000 { > spmi_bus: spmi@c400000 { > compatible = "qcom,spmi-pmic-arb"; > reg = <0 0x0c400000 0 0x3000>, > - <0 0x0c500000 0 0x4000000>, > + <0 0x0c500000 0 0x400000>, > <0 0x0c440000 0 0x80000>, > <0 0x0c4c0000 0 0x20000>, > <0 0x0c42d000 0 0x4000>; > diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi > index d488b3b3265e..260eda81b743 100644 > --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi > @@ -3747,7 +3747,7 @@ sram@c3f0000 { > spmi_bus: spmi@c400000 { > compatible = "qcom,spmi-pmic-arb"; > reg = <0 0x0c400000 0 0x3000>, > - <0 0x0c500000 0 0x4000000>, > + <0 0x0c500000 0 0x400000>, > <0 0x0c440000 0 0x80000>, > <0 0x0c4c0000 0 0x20000>, > <0 0x0c42d000 0 0x4000>; > > --- > base-commit: 2d5c7b7eb345249cb34d42cbc2b97b4c57ea944e > change-id: 20240220-dts-qcom-sm8550-fix-spmi-chnls-size-b8e6323fecc0 > > Best regards, I confirm the value, but I think you should split it in 2 and add Fixes tags Take my: Reviewed-by: Neil Armstrong if you re-spin. Neil