Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp280823lqp; Wed, 22 May 2024 04:40:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXiyOvB4z6KcbPzjNaZEgtIxrTPrtv+l/VnMbzLZpJhLfo1F8T3nF3NFY1c9JAscSVSPKfaq8tRbZDOD9rn1q55Ek+xznSxDhqi5RlRLA== X-Google-Smtp-Source: AGHT+IEsPY+kuJqGaFk+G+eMz9syNOm8WN269UQ6+Plut4iObLT/fGi7T2mxPV2+wo3Jmj5gqHXV X-Received: by 2002:a05:6808:150f:b0:3c9:73a2:6862 with SMTP id 5614622812f47-3cdb66af92dmr2058457b6e.31.1716378029156; Wed, 22 May 2024 04:40:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716378029; cv=pass; d=google.com; s=arc-20160816; b=ah7DpkTqYNLjBREZ5K15izINuXHirrKhqIeo2k1buAwcBDZbHmrBoST6DIwCONNdYz 9wT2o2lj7F1HxgSwCTEb9fqKvDuzTKFYf8qSymTgx8DzrKzAloz+GUb6F/Bt8VLiz0vS oOJump7LZCTxC7mAJb3P0MiQC42DvSSBCBu1pcI2Fqm+4HJLUtxIUMv7Ipug98ts82Si RPQALU8nZkpRiG57MC2CSxGoMnEsWkVHamPysm8jyjAaE2HuYomP470QJ2jk01UJeEwG xup6q8iKdxNPdQtrxsnz3Tb+Al/f1XUU9U8sH3sCvloQfXG5QieuGnxceE4OToSUk0Se EI2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=DpJcWUohmNA/0uynYglcpTyZxKlp3RwgmCGzQAvCav8=; fh=NAXRU4Yr8TC5dCdwZ7QPG82WZT6qjl2Feu/UXcg+eWI=; b=E8OPE2ljpYTUdy2rtQ5FFeqnBGXkAXz0MQXEQZOOM2aYSiuDwGmCS4o/PTgE6v1xty C0prZCcutqjR1TlVSo0c84+ZXfTL2DYUsCcMzTsLCrwV3A68L0ODPTwGj6dvNe4NXaYu wyAauU3JnO5GandnGHMNF3qrxJgZVSz29MYfqg1fF5au6OPiH0DNGAwltU2EhB2SOMrH MvUXCdSbIaLGuT+j7ac/SahZnrbO3ni3A3kpideSwy3O3PVlF4qxAO0inDvDEgQdnTMD UvS2+9Jw6wuD+XvqWsxqC9IvLwqaDwtmR4i4FK1V42+qV7wJr4QVpk0/BBI/eeC/aF4P LzZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="IgwY/i88"; 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-186158-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186158-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 af79cd13be357-7930181593bsi1757684485a.416.2024.05.22.04.40.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 04:40:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186158-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="IgwY/i88"; 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-186158-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186158-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 C7C6F1C2248C for ; Wed, 22 May 2024 11:40:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D21EB12D759; Wed, 22 May 2024 11:40:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IgwY/i88" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 EA46F12BF12 for ; Wed, 22 May 2024 11:40:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716378020; cv=none; b=Li9TxWsIciChyuhpfO1ckTWD80A5o1673aHj6vA04ub0q+FuUlSb9ea2iX7LDclUK/ZBUrouKn3okUN3RFT4nNCIdP1zj57oczfwFQHdZZFK0PVw03JSqKFtm+3uWIqCtFW2Ai/45XZ1YX1gCWEYA51XMkxp3i7MHTvd6BF/jhI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716378020; c=relaxed/simple; bh=zukDM/rkHVKYCCkmk3pYVcR9BPVWcup2GMmrpW9m4hU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=BwvOSPCSOwFIshyYBrqOzm70rUJ+ytYMWae4rik82QZqTTki4STHiBYtaESV9O+sQgdVvS7f/MgWXE9aLNIy2zNpvVAXbvRhxP1Jh/Gc3PO6DY5Jyc9U9uC4OGQ2AhRPQ1bM6XmPZpB0T6g8mJiZsCtWQnssUQzYbIFH6zqXTeQ= 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=IgwY/i88; arc=none smtp.client-ip=209.85.218.49 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-f49.google.com with SMTP id a640c23a62f3a-a59b49162aeso955256366b.3 for ; Wed, 22 May 2024 04:40:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716378017; x=1716982817; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=DpJcWUohmNA/0uynYglcpTyZxKlp3RwgmCGzQAvCav8=; b=IgwY/i885C7cY5NsrUkJ8eP7VNhfsiUdhI2Cd/SCOFYtypBowlrpJ4GXsU2xfRKl4A hwLjRlFQwn+BBeeEBqG09WPoLktoymJd8oeu32Q8R3mAt1Ve6cDOdqqCqrBrZkpGG3Lf zgfzI0U8QDBySCD2La1Tw64uiAZgIX6MFAcw2/lJefq8GCpCHZJC/ujkd8ZVZ980Y6LB PWs81adVtxf6TBPNIbNqAoiILBqVWYI4LJU7V2WskLgqiSRgw/nTKAk3+r96qYQSwc52 r433GZN4yLTUqE5s8O1s1JwIuagfcLiBwDMFZaV5ZVnmblJ/Rd6/GZWnyOt+TvbyM/89 yioQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716378017; x=1716982817; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DpJcWUohmNA/0uynYglcpTyZxKlp3RwgmCGzQAvCav8=; b=eapgdfb12FUWbYlciuSaT3zEJ2uEUOxlgbhVjE0ks5yphg2sj6Ib9qmGOor91OMD+7 l9kLWtN/HGjO7aKXqj7i2L8Ozey4NG/Zqut0zHlCaJs8z0JmikJq6jwmdpWqpA7GUKwb PthieVT6XcAYE5BVvtkXT4wi8efxuaL5BKCKNDrdPYz+az2/9kWbeV4D7oaA53F/tIR2 c+Kq5AfuzUKfPdCdad/ngprk5gxCiwY5d4jJpNapau0I1FO+jZvxrw6fBzMcRg+6j4fJ zZSh51TAUO5qy6/S9egzy4K7afLWiNlfuUFSunZmKQYSRjSlb2IghtL4mKrdzMK/KHev 4cVQ== X-Forwarded-Encrypted: i=1; AJvYcCUHl+n3aHYjEOBV0NO4nbDo0gyb8Jv7wehxYFbx5LQJUcpjPwm2Hg6q4IIWo5VzIQxyZTwJWAtDpUC9ydm0WvvQ+9aQZAw740D8SIby X-Gm-Message-State: AOJu0YzB2btqNiapkVceQu3Ss1TjplXTmigKlQtEqvrKxoQNcxnlr4sf g51yb29w6onip8cP4mzzS6d7hhBjauCpOCTp9+2QxyiKS/nIxqmYB/ttRnRy4gU= X-Received: by 2002:a17:906:3e48:b0:a59:a221:e2d4 with SMTP id a640c23a62f3a-a622806b976mr106962766b.8.1716378017350; Wed, 22 May 2024 04:40:17 -0700 (PDT) Received: from [127.0.1.1] ([2a00:f41:c55:53ae:3b6a:7bb9:3183:8e19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5c002103desm1022089466b.161.2024.05.22.04.40.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 04:40:17 -0700 (PDT) From: Konrad Dybcio Date: Wed, 22 May 2024 13:40:09 +0200 Subject: [PATCH] arm64: dts: qcom: x1e80100-*: Allocate some CMA buffers Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240522-topic-x1e_cma-v1-1-b69e3b467452@linaro.org> X-B4-Tracking: v=1; b=H4sIAJjZTWYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDUyMj3ZL8gsxk3QrD1Pjk3ERdIyPDlKQky0TzFAtLJaCegqLUtMwKsHn RsbW1ALKwtLxfAAAA To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rajendra Nayak , Sibi Sankar , Abel Vesa Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev In a fashion identical to commit 5f84c7c35d49 ("arm64: dts: qcom: sc8280xp: Define CMA region for CRD and X13s"), there exists a need for more than the default 32 MiB of CMA, namely for the ath12k_pci device. Reserve a 128MiB chunk to make boot-time failures like: cma: cma_alloc: reserved: alloc failed, req-size: 128 pages, ret: -12 go away. Fixes: af16b00578a7 ("arm64: dts: qcom: Add base X1E80100 dtsi and the QCP dts") Fixes: bd50b1f5b6f3 ("arm64: dts: qcom: x1e80100: Add Compute Reference Device") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/x1e80100-crd.dts | 9 +++++++++ arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts index c5c2895b37c7..cfcedf1d26a0 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts @@ -49,6 +49,15 @@ chosen { stdout-path = "serial0:115200n8"; }; + reserved-memory { + linux,cma { + compatible = "shared-dma-pool"; + size = <0x0 0x8000000>; + reusable; + linux,cma-default; + }; + }; + sound { compatible = "qcom,x1e80100-sndcard"; model = "X1E80100-CRD"; diff --git a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts index 2061fbe7b75a..8f67c393b871 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts @@ -23,6 +23,15 @@ chosen { stdout-path = "serial0:115200n8"; }; + reserved-memory { + linux,cma { + compatible = "shared-dma-pool"; + size = <0x0 0x8000000>; + reusable; + linux,cma-default; + }; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; --- base-commit: 8314289a8d50a4e05d8ece1ae0445a3b57bb4d3b change-id: 20240522-topic-x1e_cma-221dbb9a7d89 Best regards, -- Konrad Dybcio