From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 9CDBF31280C for ; Mon, 2 Mar 2026 11:20:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772450422; cv=none; b=jLFWBx0fIKUzBD6z/hcm1YfKaQ5jZsDI9O6XB2wBKOuU9InoWeaQCIEy4PANc+SAjQPZ6rWF2/ZDprIW5ToTpZsAtnHr9cG8CLuw5C4hFTkqNIo7BcNoervgjPG2vih6J9bsBZB4HKMUIUSnDeTeQeEPXwJXR/ry0LuLpli0mqk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772450422; c=relaxed/simple; bh=sQig8sH4E6BScJY+xOzj6lYCScaNQLVNeofLc7c6QnU=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=g+KcTL5RrVrlPkV3WofreR6NC0MVSdA9x+pzPV28huKUdnQ5gG8GAvx36b8XK4R2t6c05jUqMQRapFHLVAcZXHaya9MqKGwyOB8Y4UQVDYqfB996rZ1bFIT5eDt7xAqqjsGhpXaNBPa218CCY/yYaqJFFRfN5bFvW1Ps/XwpLd4= 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=CUIuDoxJ; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=V7AKa54E; arc=none smtp.client-ip=205.220.168.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="CUIuDoxJ"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="V7AKa54E" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62285X2p662204 for ; Mon, 2 Mar 2026 11:20:21 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= VtWv5X/swnOarr0QHEdJJKrMDmkoZEjG1RFAlj66QzY=; b=CUIuDoxJgTKFN28l as+0772ZLXjFDIViMYasli4sLWH/UiZ3/rFnVj0NLqodk51k1y0iWN58BsdcBgiJ M+A3yXhOmZyFx5m1Bdpi+7100AY/TXwAuv7up9jAXrc0asPzVK0Yvaixt1qnm35O kOfEAA0bLk3ihM68HPS1EmQZHhiqEGziCiH27aFDiv2M+MNlH/Xj97LH53EMgDAw h+BJ+m8ne3N/pPk7lOYZ7atJWp8JL3GOEFo5X8aIjEOZEwvqxTpPm3mmQ1fy4RUR 8IgivJ24tqKXFgcrsXrT7YEAWxD/sna0ySghZaD5ZUdaZJdyZNl6CPXjxA5U+RLM ojZbyg== Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4cn6r2rrtd-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 02 Mar 2026 11:20:20 +0000 (GMT) Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-899b4b45befso43065976d6.2 for ; Mon, 02 Mar 2026 03:20:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1772450420; x=1773055220; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=VtWv5X/swnOarr0QHEdJJKrMDmkoZEjG1RFAlj66QzY=; b=V7AKa54EKUKCvfFXf3/lF9p8BDPPLgf/2Q9j6eFfkC50CtSJSVRTzi/CHuhmFqDgJZ Ahk0lSTEM7N/00Fs4QbOi5cOAT116wmYZLdPexQTE2kWcr0Dm2urDbxihBW0uv/R2JQv JAzbroOEbYmId+jeY4yWdpUIrrTdiLCLTyF2RDVM5mFyoXfkXK3I/8TRwSKubCClnb5R DCQWLIMI8OkmjR3xcRsKEpFhLHBQ5c/njpoAsAVxgKagOm4iLY3MqipZUc84K0b4O8du o0GilsfVUJrr8Bx4Hk2AB6oKeYqPqWrd0MpJpbMD816DozPqHQuRybYWgRxJp8wE58m7 P8bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772450420; x=1773055220; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VtWv5X/swnOarr0QHEdJJKrMDmkoZEjG1RFAlj66QzY=; b=lD1IMcB+Awk4EgfnO2BdOUQ79HVCf3wlFKgqAGJo4sMM6ysa1N9O0Ur3iy7zZa3lpn BLkOFwt0wCLVu0iCsYQ7t6BNUrD6VQlIwSetNzhXXz9ghdyIvHkB/2oLASkzFaZRn1+G w3fAuhxToDxXpRCKs2DRqvEUWGx0ytRgM0bUlCBwLZT5Sppn9LsmjrycnvYDWd3Q13yK F3/+3zWsi46pT6YLdQbwE5TBW9MYeQr/ST1mmbAm65qOorJFZmy0XLrBngluBHjF8C8k hsNaKf1UGusKXK5sOeL1RVHqitmaTvMMK6amFw4ZLy6GDaHxRWer4Gb5c+yurGpRiwx5 92Ig== X-Gm-Message-State: AOJu0Yw0MS0kps4CugY6n8JrmvWpnf6TMfo2MkrnKCzJqIso/5JJqQ7h nO8+x/QME6Xyiwup508zn3V+4rU9Pv0Id8xOnLeDcE0RZ+UToZJNMXvwskVVIr73tT+mNtVGS89 rRP5L2iW3hTwbpOIxYjn8DcZLLiZJFv1lrfSJDvEQXFf+0pMdc2cMoY3/PdyVuCvHS0iaBw== X-Gm-Gg: ATEYQzyPFGsfPDAz/A8oxzUZSNSorYEPjh9zEe7HEBySw1fz1zSPnD6f4zKKMlx+jZ8 mSor6IwCVxLrqOvRYHES42473G50+jYbVXQromj5xZqTUB4gZ2u6R/Sd8B0XfboQHjwzyZtO14y HvoN7iQOG9FH8wXzu1QGUbLkC4V30c4Ng6FSsONz0HfXm41FX21TXHg5tH4b5EHuY7MtIMV+puw ErlC0m4fBN2OGRoinchuC7goVZ21SUe9tOJyiYqotTJtVRWQuLMjAJR4moGjADdwD57IcjfmhWc 912jltAeaYrufAE3ROKHwbGHKqkmmxhln6Mcb+I5d3d+GgQTlYZjo6lhcqzZ8AXqUhEKm+XfcxP hFnOnKA9glMFVosxg3AbAe8HAyKgjRCZV/ee25u9DFVeAk3UTVaDYAuJqFj9+5B6qbMyQNv4JwN 1F0e0= X-Received: by 2002:a05:6214:5c82:b0:899:bbd1:da65 with SMTP id 6a1803df08f44-899d1e5b4c6mr116037716d6.4.1772450420037; Mon, 02 Mar 2026 03:20:20 -0800 (PST) X-Received: by 2002:a05:6214:5c82:b0:899:bbd1:da65 with SMTP id 6a1803df08f44-899d1e5b4c6mr116037436d6.4.1772450419559; Mon, 02 Mar 2026 03:20:19 -0800 (PST) Received: from [192.168.119.254] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b935aead96bsm463768466b.51.2026.03.02.03.20.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Mar 2026 03:20:19 -0800 (PST) Message-ID: Date: Mon, 2 Mar 2026 12:20:17 +0100 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: CMA allocation fails with default 128M on X1E80100 (Lenovo 21N1CT01WW) for ath12k From: Konrad Dybcio To: =?UTF-8?B?UmVuw6kgTcOpcm91?= , "linux-arm-msm@vger.kernel.org" Cc: "linux-wireless@vger.kernel.org" , Krzysztof Kozlowski , Dmitry Baryshkov , Bjorn Andersson References: <7pJkV7xouk-7S77gIvCwPj5EAAVe0JWdkD5Dc4Q7Y77_gPr5m7jMA2om7AyEN6RKBmEyFbIDJceHFstXFuzPJWPNhqafLXOu2O0uCDZEFcY=@pm.me> <05ff4122-1a8b-4728-81ac-33a7ca542461@oss.qualcomm.com> Content-Language: en-US In-Reply-To: <05ff4122-1a8b-4728-81ac-33a7ca542461@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: d5nEEKEq9heD1NkWrLKIAIiUn7P4_pi5 X-Proofpoint-ORIG-GUID: d5nEEKEq9heD1NkWrLKIAIiUn7P4_pi5 X-Authority-Analysis: v=2.4 cv=Hpp72kTS c=1 sm=1 tr=0 ts=69a57274 cx=c_pps a=7E5Bxpl4vBhpaufnMqZlrw==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=O8M4a_fLt_X7kILUOtkA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=pJ04lnu7RYOZP9TFuWaZ:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzAyMDA5NCBTYWx0ZWRfXy4iYJ2wGMI6o mAAKxNudtvz4P15KjS5s+41rYmCC83EZlY/9Rb4EapyteUWVtmHe767uJUN/DxMm+3cuISl665f L3v4mgQJCxciy+ZZZsQcHD5x6RZfsMe97KyVjkmQgrPQTuffKHWTItBr7GDNUy8QEij3fTzE8dm iKqFxxfblcncVRMuBo0wnEpq0HKuN+Jpbmf/1zDe8pdPUpxDK1J5SN4Ufxo5ouwCTpFxuc0kg6B QqLIVeEJSmVgRo/tCEyQmoDM0uzAh/e5ftwcE21ckIydkeuO2bskVCnnzUEH46bwQeVzdhOJfUf 0cj0Z2zw/MgZPxYxFJAnfoYWvh+4cy2hExdVuTaZnERvi5BdCiAw97xDceQx5J2gGDI2icHCN/J QrBTQDTH4MVggMis523tATk31bYqH3chcaw0b/ADzVgH/WNfKNng3hoLBc85+UUU4vzKplW6UX4 7ExaVmdpVQZJ8FHMrAA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-02_03,2026-02-27_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=0 impostorscore=0 phishscore=0 priorityscore=1501 adultscore=0 bulkscore=0 malwarescore=0 clxscore=1015 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2602130000 definitions=main-2603020094 On 3/2/26 12:19 PM, Konrad Dybcio wrote: > On 2/28/26 10:29 AM, René Mérou wrote: >> Hi, >> I'm experiencing CMA allocation failures with the ath12k WiFi driver on my new Lenovo 21N1CT01WW (Snapdragon X1E80100). >> >> Error in dmesg >> cma: __cma_alloc: reserved: alloc failed, req-size: 257 pages, ret: -16 >> cma: => 1042 free of 32768 total pages >> >> System details >>     Kernel: 6.17.0-8-qcom-x1e (Ubuntu) >>     Default CMA size: 128M (set by the distribution for this hardware) >>     WiFi chip: ath12k_pci (Qualcomm WCN685x) >> >> What I found >>     With the default 128M CMA, the allocation of 257 pages (~1MB) fails >>     After increasing CMA to 256M (by adding cma=256M to the kernel command line), the error disappears and WiFi works correctly >> >> My questions >>     Is 128M expected to be sufficient for ath12k on this platform? >>     Could the driver be optimized to need less contiguous memory? >>     Should the default CMA size be increased to 256M for X1E80100 devices? > > The default value in the arm64 defconfig is CONFIG_CMA_SIZE_MBYTES=32, > although most laptop DTs individually add a 128M zone under /reserved-memory > > We should probably enlarge this value in either of those places, although I > don't know whether changing the defconfig is going to be welcomed.. +CC FYI Konrad