Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1061410rwb; Fri, 13 Jan 2023 07:30:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXvs2eNgo8l2skfVZzcjKTwbmrbb7INVowJFp50YWbqiTZIUIHI1TRynS7R0DP7BHsjYLxfX X-Received: by 2002:aa7:d588:0:b0:461:22bb:1ae4 with SMTP id r8-20020aa7d588000000b0046122bb1ae4mr120880edq.17.1673623803286; Fri, 13 Jan 2023 07:30:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673623803; cv=none; d=google.com; s=arc-20160816; b=nDUUz1mR7WitlTV6hPFvCACHs2CXJs6h1bdKOhWQXKcrMdmI2nvT57q+r31OvdAsUK DcdBluAxKa0WQgA0F1K9YG4RCYZAbcFOw/tk8w4HkwQjTZDq8F9jqptx5YtFjHcbY8Rk +4C6jck7soxDNg/pO+rf/S3nq2cPdpjxj4hKFAksCjcU9qV44qYCdAJ5o9k+s12JfKCd pG87/Mr5W0mtg6U+BHRI7HaS87CuwG0ykB9F3Ypy2r107bMarcMwya0XEI6OnSOsRLch fnEj2WwF1QHE+GZot2fHCYfXL1oTro6gFkf4zrkaw9EmZaXfRgCTnejisKaiUbEx9CvO EqQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=mW+hm2yfQ1E9yRCHGrKno66ZgIqX5+EeWn5glg/xh8s=; b=iEcq2F9A0fWrD3lw5rLbrsPoC90pTeUvj7+kAMRu896YZXbK3hhF8PEXvQborAjaMW eTh3D8l64A/vszO+/zQW5FH0HJZetQuJ+Qci1sqKPO9+2ksiq49hYyhRpjpvVw5iyHNl MAiK9wuaA3v9S9lypTBwXLYUpac80xDWIdBbyQVaUzZ26vGBwvMslttUuv/PzBULL8Ga KY7cqb2VSTBeBF/q20gNK3zJMrbBOOMbG10iUkvnGYpZ+uZe3HdfYEbZBn6JlS1lvokZ RBPLuygJRxb0Hjca/KHBGFqkY83CbXX8F+CDmlsOcY9YjVGzf1Uilbwo1jpJ+JUtA+QT Ik2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rBTMoUVk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ew5-20020a056402538500b00489cfdb858bsi16267826edb.430.2023.01.13.07.29.50; Fri, 13 Jan 2023 07:30:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rBTMoUVk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229705AbjAMO1C (ORCPT + 51 others); Fri, 13 Jan 2023 09:27:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229728AbjAMOZq (ORCPT ); Fri, 13 Jan 2023 09:25:46 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8755192360 for ; Fri, 13 Jan 2023 06:17:13 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id f34so33302430lfv.10 for ; Fri, 13 Jan 2023 06:17:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=mW+hm2yfQ1E9yRCHGrKno66ZgIqX5+EeWn5glg/xh8s=; b=rBTMoUVkMn4+LZcJRFIuCCNSJOf6fz/RBM1vBdTyWLlw0uC2zzS/NnAFI3fPgIyGU4 mj7SIDKCKNT6SxLL+PidMr15dR2XJLsA88GnF3lkhYZjwNOLf8xcnbKwe7DBebwJQdSv 6VEWqrdu/i8J+9J3zJqi9lsLL1CEg+IM8VzH+nNZglMcyrC9isi0CHeBdiPO8/AtuNkd D/8FSHhVp3QRSH/6ZdnExbANXdAcXAIOonnYNsjaFbLT9/b3c2xRQSpDTY4U48wqkTeD 4S8tDwiKdv1POgrfFQpMevw34LNC1y4RGvn+cWLifi6PAkGHgDX0d12NYk1z7optLzyw 3hzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to: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=mW+hm2yfQ1E9yRCHGrKno66ZgIqX5+EeWn5glg/xh8s=; b=pRRNk90eWwDg38cDdBZDknh/Ws9iS1+PAIKXFiyEJ5nXXsBtKU0fTgUIMFeW/7bPb4 V93knQqe0f6Y5z52nIepCG4fJBxE/8kGaWzQMFljI276FC4DnOqXWfcMcACuQOtYvKyP dMGmwFhlKHxFdAcEzTXDHA8m8QO/pmeveqIqF7pxtfHN36jyS18rBlxqZ/er17vIwlwv aPpArqKcR1vnSWv4qd57iIgQf9clCBbFDKbrpcLlV6BLjs9mSV2t4fNtqBVwPUc7vKJs /QuqObvq2jSFdc73joXIRN3VT2x8GMCiS45NYMi4TYcg6K+/mgEVtSQpJaTQl59WuNOA 2SrQ== X-Gm-Message-State: AFqh2kpJyJ71GpJF6sFYzQB9Qs7iI8t1i25do6LZWpQ3NXBo0jqKo5dx pcgKx9NSKt9FtRNlx7bjlSrF8g== X-Received: by 2002:ac2:50c9:0:b0:4cc:7b49:18d2 with SMTP id h9-20020ac250c9000000b004cc7b4918d2mr4695035lfm.54.1673619430197; Fri, 13 Jan 2023 06:17:10 -0800 (PST) Received: from [192.168.1.101] (abym53.neoplus.adsl.tpnet.pl. [83.9.32.53]) by smtp.gmail.com with ESMTPSA id a16-20020a195f50000000b004b564e1a4e0sm3857426lfj.76.2023.01.13.06.17.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Jan 2023 06:17:07 -0800 (PST) Message-ID: Date: Fri, 13 Jan 2023 15:17:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH] arm64: dts: qcom: sc8280xp: Define CMA region for CRD and X13s Content-Language: en-US To: Bjorn Andersson , Andy Gross , Bjorn Andersson Cc: Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold References: <20230113041025.4188910-1-quic_bjorande@quicinc.com> From: Konrad Dybcio In-Reply-To: <20230113041025.4188910-1-quic_bjorande@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_HTTP,RCVD_IN_SORBS_SOCKS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13.01.2023 05:10, Bjorn Andersson wrote: > Booting the CRD needs roughly 64MB CMA, rather than relying on people > adding boot parameters etc define a region for this, to remove the > allocation errors from e.g. NVME. > > While fixing the CRD define the same region for the X13s. > > Signed-off-by: Bjorn Andersson > --- So, to reiterate, the NVMe needs ~64M of contiguous RAM for $reasons and without this patch, it is not guaranteed that it can always find such a block which causes issues and adding a CMA region resolves that, is that correct? Konrad > arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 9 +++++++++ > .../boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 9 +++++++++ > 2 files changed, 18 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts > index b29c02307839..e30a37c73b90 100644 > --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts > +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts > @@ -128,6 +128,15 @@ vreg_wwan: regulator-wwan { > > regulator-boot-on; > }; > + > + reserved-memory { > + linux,cma { > + compatible = "shared-dma-pool"; > + size = <0x0 0x8000000>; > + reusable; > + linux,cma-default; > + }; > + }; > }; > > &apps_rsc { > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > index 78e61a8184c5..5bfd1f0b2a24 100644 > --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > @@ -153,6 +153,15 @@ vreg_wwan: regulator-wwan { > regulator-boot-on; > }; > > + reserved-memory { > + linux,cma { > + compatible = "shared-dma-pool"; > + size = <0x0 0x8000000>; > + reusable; > + linux,cma-default; > + }; > + }; > + > thermal-zones { > skin-temp-thermal { > polling-delay-passive = <250>;