From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 166C023EA84 for ; Thu, 21 May 2026 01:10:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779325806; cv=none; b=aN4jaSR4nuAzY57nN6TC0Oe2crrCZY1QDdVlWY2NJ53W+8y/xP6SfTIhIjPNaB42mBb8E8Cah2e9jOmlfe0/LrReqwQH7NSGe7MZaedyfWT62gWKQulLzUHkBekb3UpxkV/p9QOYxsuNp2WFdrjaI0Icj/mROQ/YH+T2ln7UySg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779325806; c=relaxed/simple; bh=fmNJ3KT/7b+xTlpyQgi+5oa7xWoQzjNFF8X5QjQDuXM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=p22/kR7Zw1NCqPnQtLX3Hw4vZk7djQXZq0M/Hn5tu7P2hd+cgc/0ry26fFGTLUP2Yqd7q66jPl7dT58D+jJuqNPJbEmNQGFMJWh1GdEbzpfAW/20WDm6yGWXKUiIu2aLRFdiFodvQP4Vf/p9Tjngk+zeTlCR2JhGVXHE2oWn8aQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=JfS5aHGz; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=j08gEuBy; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="JfS5aHGz"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="j08gEuBy" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 64KFUe7Z4115208 for ; Thu, 21 May 2026 01:10:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= +hhG8da4DumoUI+vB6A92v5ZtZlBaXWB9NrZWaYMTPc=; b=JfS5aHGz4pyIXxHX /A9TPu5pRAWtc692FLEgyrlNO8H4/b/FptWcud+TaT3DPIEYWxg8GKcGTcWIuxQn +WhT7NvDDhZK3YgjAY9m6BYMLZzBgI/kvC48cXV3j4wvmKnu7wN9vb8QIuu1I9mJ j9x99HG7c3YaK5smLqCI4hIRUfqb3VkA6aSt9ntxGO8m+cIn2VkDPhfwuwGPIA/n 8pxDL4gpetoQqB4SBDS9w72gg8EEtZZx1QZe8NAkXlqd5FsxF3BOc3nlw3CiO6pz 0v0JQ79Pt26OPsGD/6ZIRpJNExPpHbARv4zXlUB1UfepvzllLtTBD+itqB2v/Wzn luOaSg== Received: from mail-yw1-f199.google.com (mail-yw1-f199.google.com [209.85.128.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e99w0kgfq-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 21 May 2026 01:10:04 +0000 (GMT) Received: by mail-yw1-f199.google.com with SMTP id 00721157ae682-7cb345d0b29so122331227b3.2 for ; Wed, 20 May 2026 18:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1779325804; x=1779930604; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+hhG8da4DumoUI+vB6A92v5ZtZlBaXWB9NrZWaYMTPc=; b=j08gEuByy+pcKAISFvIyNXmnc86h9XaaGAFBNoZ0Xsx5Sl3jx5rUhid8YxVYQVnmdJ zKXWf559bm/QNCks8Z6YFA8dqjK7uj6iU/op7etHRbUdG11A+MFtJ8pjqgcR3KABnTSs ZFcoRi61IhuOSMDUlKSOV+znZDqi2aT1SHWhqMnYXk7fkXEQlAxGPyw2TQ8ir7HCamNF 3GfRczMfpSLRjprdJxERhqVoqYii8dmgrn1JYykztfEQzZnHGHwrNesrBerHeBLXKFxr W+EWndq/tKaAm6LdSKZJL6h/4yTn4eMluQ/Ipnc7asMOZJcUrH8JyX7bz9xgwkACftJo SfJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779325804; x=1779930604; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=+hhG8da4DumoUI+vB6A92v5ZtZlBaXWB9NrZWaYMTPc=; b=sU6uVsiAmatI975Qx+bmwni5LV6MBYa/+mFjWaK8RV6W3lDTtJl9+BrJZhPhUDENt1 yk+OoVT6bKVi4bPf3EfliTUfu+CZC5h5RMLeQCaug61I9i++/YUAUZHl2RjLMOwU48Kt J/HlHnfjohVS6sAD8YPjrtWvKwQkb51YSPSL8egEaAcAyf/BmogLEwuvL2/3oc3stYdy DLWxpckw1sSdfE2Z6zKkHyBFekRs5HLhLnLfSjRg8Ngqy7sq1ABey42pCLHEI99cJlAM 1xOWR7htIyjHZnnfz4ESnDdA4KchajbaWTVW+YeQVAH1hlYBW08NLf0aBr66GGZovbVk Iutw== X-Forwarded-Encrypted: i=1; AFNElJ+JFpUYZ5iubVZ9cYSWTbfEfU4Y2uWjAvGiTdQvgGGEVm0ozUey+HgPtNnw1+sNEhAhsemKNRYXHZHLs+E=@vger.kernel.org X-Gm-Message-State: AOJu0YxPHbpWOIhgloeLecnyb6x8sqcVVhy0qoZ/4QmhpMkP8yhMaRwr gDIthT2FVB/xWR1CVDO5h7D0Em8/zSWGjcx/YQkejMv+IFMGAESfovUoefp1YRwbqrk6z5uwiMS yehA9tkjJrQPl9apcJeYLi1j1sUGatBxlfcQ1P/GqIRxLZidt3HIH7frhzHCUa1KiHAo= X-Gm-Gg: Acq92OFz4OPFRaMaadbLLNmnwp2X83hlp4hRdfR374XGxug3/Wt7LepkLDxPNrgCWPg U6b1xL65L06UIJtIqIE/Sk8xuk+wuNIlIvXketTabAbMda6/BVVd5vcqHo/keq4SFVePrYHqepi RbM9cwGBGKsOx1BlDZ79u9X8Onh0EDk9VdFp9JerHezygzyeCpy2OiHh1WpjNpZ8UW0JLhagmoQ F7s55rkFD1lP6S6RVQ4Ly7Cy/DY9jgMjik4jnMsDE8yVFV9NTz3ARx6jFJ3xe1Mm9H35Z4rozH8 mVL7260Ux5/EnRjMPUYhhVN5hEmjBll/Z9AGdi6bD0zjQqxLUNxMlX+YUGXFZOngSYd038NP5Ki wzKSvYV9y99YMWN3TKKJ1m9LBPD2JEhZwFsk+cPl2YpDdDoVQk+YRkLsph/Qh+z+IyLbUONlEv+ cER0m1r6x+AJjzmLg= X-Received: by 2002:a05:690c:25c9:b0:7b4:3d82:bf6 with SMTP id 00721157ae682-7d20ab9e281mr9263567b3.11.1779325803491; Wed, 20 May 2026 18:10:03 -0700 (PDT) X-Received: by 2002:a05:690c:25c9:b0:7b4:3d82:bf6 with SMTP id 00721157ae682-7d20ab9e281mr9263337b3.11.1779325803021; Wed, 20 May 2026 18:10:03 -0700 (PDT) Received: from scottml-Latitude-7455 (107-198-5-8.lightspeed.irvnca.sbcglobal.net. [107.198.5.8]) by smtp.gmail.com with ESMTPSA id 00721157ae682-7cc991c98d9sm60851307b3.10.2026.05.20.18.10.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2026 18:10:02 -0700 (PDT) From: Michael Scott To: linux-arm-msm@vger.kernel.org Cc: vkoul@kernel.org, neil.armstrong@linaro.org, dmitry.baryshkov@oss.qualcomm.com, wesley.cheng@oss.qualcomm.com, abelvesa@kernel.org, faisal.hassan@oss.qualcomm.com, linux-phy@lists.infradead.org, andersson@kernel.org, konradybcio@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, val@packett.cool, bryan.odonoghue@linaro.org, laurentiu.tudor1@dell.com, alex.vinarskis@gmail.com, linux-kernel@vger.kernel.org, Michael Scott Subject: [PATCH v2 4/4] arm64: dts: qcom: x1-dell-thena: bump linux,cma to 256 MiB Date: Wed, 20 May 2026 18:09:35 -0700 Message-ID: <20260521010935.1333494-5-mike.scott@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260521010935.1333494-1-mike.scott@oss.qualcomm.com> References: <20260521010935.1333494-1-mike.scott@oss.qualcomm.com> 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: 8bit X-Proofpoint-ORIG-GUID: gu6CK0qM6QV7ngvvl7e_WjRIOKsUK2yB X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTIxMDAwOCBTYWx0ZWRfX2Qpqnd68FYTX NqwLTcy6ks91EiCblUw5m08L79QM/UbJutiCIhWloFxpRFIzjVTUO2M+QGoveDJTVjlLfd9CoRi FTabbXjq+mXyUBMQOmyRGvps8YYMTjMlU0ZGTzYx2lcNEJOyQ8zr2n2T9k1nX8H8ijjn3wudenG yQS8E9VASE40m7G6hcPbbYApLIW3A0V+wEIjUTTVZn17bO1/XiYLMJqVky2SpLed0Un18j3HJqB YmIJ4JblerXJ84PmHvX1MAsiklnTFcCz10TeoEdY3Xb0J/r7kmO1F4lY1PM7786dY0bsYzEuXwl cUoM0/Kd+RCZLPkYIQ7bpRYhydILrmnL1/Q35B6j00mjRyZoNhJjBMVOQPH6YZ8BXfO98iMBXfV p2nbBAZlefJUMlmPM1WIFSLkQrPHMyQWC/7L3U0OsuXHc2L/frFtpf95hExojppj94qVkc9xzj0 w9ctdkc7xRdJWUkNx9Q== X-Authority-Analysis: v=2.4 cv=RZigzVtv c=1 sm=1 tr=0 ts=6a0e5b6c cx=c_pps a=72HoHk1woDtn7btP4rdmlg==:117 a=cdagev08qavQYXHyx3V8vg==:17 a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=GRacV1d55YfRzDIv3pQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=kA6IBgd4cpdPkAWqgNAz:22 X-Proofpoint-GUID: gu6CK0qM6QV7ngvvl7e_WjRIOKsUK2yB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-05-20_03,2026-05-18_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 suspectscore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 impostorscore=0 bulkscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605130000 definitions=main-2605210008 The 128 MiB linux,cma reserved-memory pool on dell-thena is too small to support the camera pipeline in parallel with the normal Linux desktop. On a freshly-booted system with GNOME running, the typical runtime consumers — msm DRM framebuffers (Wayland triple buffering on the eDP panel), qcom_iris video codec buffers, qcom_camss VFE pre-allocated buffers — already occupy ~100 MiB of the pool, leaving only ~25 MiB free. The libcamera "simple" pipeline handler used by /dev/media0 on dell-thena allocates four ABGR8888 frames at 1920×1088 = 32 MiB total. That request fails on the fourth frame: ERROR DmaBufAllocator: dma-heap allocation failure for frame-3 ERROR Allocator: Stream is not part of /base/.../camera@10 active configuration Can't allocate buffers Failed to start camera session resulting in gnome-snapshot's "Could not play camera stream" and any other libcamera-mediated app being unable to actually stream. Bumping linux,cma to 256 MiB (a 0.9% reservation on these laptops' typical 27 GiB RAM) leaves ~150 MiB free at runtime — sufficient for the libcamera buffer set plus headroom for video playback or other CMA-hungry workloads in parallel. Tested on Dell Latitude 7455: with the 256 MiB pool, CmaFree at GNOME-desktop idle is ~150 MiB, gnome-snapshot streams the OV02E10 camera cleanly, and `cam -c 1 --capture=2` succeeds. The companion board files dell-inspiron-14-plus-7441 and the upstream .dts variants inherit from x1-dell-thena.dtsi, so this changes the pool size for every dell-thena-based laptop in one place. Signed-off-by: Michael Scott --- arch/arm64/boot/dts/qcom/x1-dell-thena.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/x1-dell-thena.dtsi b/arch/arm64/boot/dts/qcom/x1-dell-thena.dtsi index d6de4da02dcd..714988a81384 100644 --- a/arch/arm64/boot/dts/qcom/x1-dell-thena.dtsi +++ b/arch/arm64/boot/dts/qcom/x1-dell-thena.dtsi @@ -167,7 +167,7 @@ led-camera-indicator { reserved-memory { linux,cma { compatible = "shared-dma-pool"; - size = <0x0 0x8000000>; + size = <0x0 0x10000000>; reusable; linux,cma-default; }; -- 2.53.0