Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp326791rwb; Thu, 12 Jan 2023 20:49:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXv/sKeonl43irJGGNgM7ITw9Se0TSUOZcUGvsg0Akw6PcFs5rnAmIxmLG9ui9bVLIhpqd1q X-Received: by 2002:a17:902:9a87:b0:193:37c1:9b0d with SMTP id w7-20020a1709029a8700b0019337c19b0dmr14289353plp.55.1673585396269; Thu, 12 Jan 2023 20:49:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673585396; cv=none; d=google.com; s=arc-20160816; b=KXzLkCiqFPq0M4xhx+ADFupNsQ1owjGusu1+GobBgjR/hpOErcH20bcY9XX3++L6bO jCMhta4knqnkYdl1MaGoKHrk4X9QoArbE3OEjZ5cmOVOO3Hpow58QhW7R3lh/2ouBRIF rUFSVDh2i8uqx1I6sAn7Zw8kNVdvyevdNwf+PMFKfLJRzU8oWkOWha+s5GihYEJeyte0 9IB3dl39p9p/bsHufLdlMKRIvLy+vPMWqs1oo3neSc1SvwJ0HeVsbeZwr+CIL9lK6J2d /uPR5BoiKEjSrCm+HnSXTSliTmxdWQlNBKbUQVmnmwA1dsM5ZA84XNKfGCOQEyKKXZAE R2nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=8ZciTXFFLkRoWa1kaSZDjJPCYPAzB7BjOASJWcNwcxM=; b=vj/j5uePEJ2kBqKBJWhYeP+Q+UKbAWAtOkEyzUg5/6p3G8rPZ1O2ZBepDjVd+h2cnA AOk5PTcK6eDPm9dNiLroLD+6h8OmDk3V9LEnjWlGX8dnQGt4PVBaXycftXinznXOB9Ut sQwervjln2oGHwmpm+tiAtKVo6BZzABXA+sG1v1rDdR6SuODz9Jovwoc5D7YFp9cKM26 fYqs7Lpz1FzYZdOo35/rKPJ93IJLGwwX5iCy45BlsqA+6EhQJjmCqrw/V0wwl5idBoSO ifd1YPWTf59TU3TIFWxfKr7u3+jB/TBC9jxJvR8q5CialM84sNvBbNdtKOAD0r735lqL aJVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FhCPWOZt; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c11-20020a170903234b00b00186af8159desi20273569plh.523.2023.01.12.20.49.49; Thu, 12 Jan 2023 20:49:56 -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=@quicinc.com header.s=qcppdkim1 header.b=FhCPWOZt; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230079AbjAMEKn (ORCPT + 50 others); Thu, 12 Jan 2023 23:10:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232088AbjAMEKh (ORCPT ); Thu, 12 Jan 2023 23:10:37 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 813354D4B9; Thu, 12 Jan 2023 20:10:35 -0800 (PST) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30D410vi025096; Fri, 13 Jan 2023 04:10:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=8ZciTXFFLkRoWa1kaSZDjJPCYPAzB7BjOASJWcNwcxM=; b=FhCPWOZt8BA6rM1Ea1dSYnib7DkLTuwjPdmsLdNhZV/T717ZK4OwrySudWtT+UzdyXyH pU7JFioGyG66A/u8JwpNvfLnLc5Fo3QcqnaTfl+uy+9cbJ3WKtncaKVoi4+S/I2FdwdF 8DDUZHcYTn11jr8YPwg2s2f3Pb/uIgXYwtyFszGOhtQRCBg3von4tauxG/4aQjVZHCCT CkqRQGkX44ByyCULD1tttNT09upeT3XylEVHhIcLdMQa25L4gx7J4wKaPo1Fz5tQFDwS vyf0GQ+6ZbPPHHyoEk5oToeXGL5dUcS3OqsnJU+O0XxhHNaxA4ipg+DvYSoo5Me/QLjT HA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n2evhtbq2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 04:10:32 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30D4AVi0000713 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 04:10:31 GMT Received: from hu-bjorande-lv.qualcomm.com (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Thu, 12 Jan 2023 20:10:31 -0800 From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Konrad Dybcio CC: Rob Herring , Krzysztof Kozlowski , , , , Johan Hovold Subject: [PATCH] arm64: dts: qcom: sc8280xp: Define CMA region for CRD and X13s Date: Thu, 12 Jan 2023 20:10:25 -0800 Message-ID: <20230113041025.4188910-1-quic_bjorande@quicinc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: lw_fs6Wqcy-K2PMW0RAY9oijXBFY-LMN X-Proofpoint-ORIG-GUID: lw_fs6Wqcy-K2PMW0RAY9oijXBFY-LMN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-12_14,2023-01-12_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 clxscore=1011 mlxlogscore=999 mlxscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301130026 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 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 --- 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>; -- 2.37.3