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 AD3053FB07B; Wed, 29 Apr 2026 12:52:19 +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=1777467142; cv=none; b=mo59sPqPfnr6L+JfpI3K0plrIfORTxTUSh1y9fP4FFHrWMab7V18DIej5LSnGnA6gY8Ur7hVp7icDzK68F/wsYKgc95pfLLLptBr8SeeeZAmIprI+0mq9L64i24iT2yru2hYl4agQn8a0OdFuS0wrrOYTXfjguuI2xrxd/Rg5Z8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777467142; c=relaxed/simple; bh=U5ju1Gh3lPfc7WDGNnYJUudgoWAuzqPxC1/XTQOR13U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NlWS2xJgqNvIr0eyl/LVBQqcr7aduds27nAjQ1SX4OepMdG04++vCSjVNG17xq8ToB+2dLNY2EVdYj+wwhTKpmknLU011AsZI4DknbOwTqbv3lkWeMuzbLQ2yrDcUX8MQwyUaxmsu9LeMvYIfLjI7DYpvnrqTdzlVyJNUtfH18s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=Uc/MI9Pg; 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=qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="Uc/MI9Pg" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63T8q4Va1729372; Wed, 29 Apr 2026 12:51:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=xi4/W3hIi3j 9BAohPxZCWvwdrGoIZDzS60/Qr+azm90=; b=Uc/MI9PgtGh773HlhoPIQk7jaLl WaxHKyoG7PsFVi1pX/ICDokP/XFFqedlyR7qwehqqn4DOxDiIS1GByLs9F7FrQpP RPEmjA1kD+06/TM2pjp7ZygLPTmbQ3eOgk6Oiq3WzA7gKUzSTnTGPLoGc9N+DCep vVkLMtpaqntwERzlJThTzuto627pKj5texauscRRuHNK3IoKXWBlThe9CNoswdrb 8tHEK3sUjwZ2g5yth0pJfZ/P2RhtThr/qxZ6b8OZy+6VdIxlzQ7jRddro/XrzkJN KflGZwAz+kIoOAWu7k0Fb62Dpc4e9/eNl9bSFmedKp/q9zlSizNJWoCnzVg== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4due5ks2kn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Apr 2026 12:51:42 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.18.1.7/8.18.1.7) with ESMTP id 63TCpb4T010776; Wed, 29 Apr 2026 12:51:39 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 4ds65fvr1x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Apr 2026 12:51:39 +0000 (GMT) Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.18.1.12/8.18.1.12) with ESMTP id 63TCpc5G010813; Wed, 29 Apr 2026 12:51:38 GMT Received: from hu-devc-blr-u24-a.qualcomm.com (hu-anuppate-blr.qualcomm.com [10.131.36.165]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 63TCpc9l010806 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Apr 2026 12:51:38 +0000 (GMT) Received: by hu-devc-blr-u24-a.qualcomm.com (Postfix, from userid 486687) id CB5B8222EA; Wed, 29 Apr 2026 18:21:36 +0530 (+0530) From: Anup Patel To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Greg KH , Alexander Shishkin , Ian Rogers Cc: Alexandre Ghiti , Peter Zijlstra , Ingo Molnar , Namhyung Kim , Mark Rutland , Jiri Olsa , Adrian Hunter , Mayuresh Chitale , Anup Patel , Atish Patra , Andrew Jones , Sunil V L , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Anup Patel Subject: [PATCH v4 08/12] riscv: Enable DMA_RESTRICTED_POOL in defconfig Date: Wed, 29 Apr 2026 18:21:31 +0530 Message-ID: <20260429125135.1983498-9-anup.patel@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260429125135.1983498-1-anup.patel@oss.qualcomm.com> References: <20260429125135.1983498-1-anup.patel@oss.qualcomm.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDI5MDEzMCBTYWx0ZWRfX3HmcdyJj6BVz R4lvylPa5Hy+pbbFqUVPOBD0WXkjOgrfgTex8cjUW31zpSXYidUaYp+hKxOkiFA1qNa3i3J2fx3 QivX7G0b/3EK31e4fNQGa7Jc6dVmtXqwMf9/qLA6lBw/5e6SO0KzThHU72J2mf2vC/Su93Stgnr H23RQydZEYP74nfgA3mE/9Ph+i5IhEgrts/EiOvW11UVkL3Az+OpsJUFO8q7rgje4GSUOyH1A++ RZ1XNibt1jJW7xA8RTj4eZSltnSEBennKJFS/psmTq6m5Wxpb+M4iwPohSaqdlZ584CZAYEwPU6 2GnxBb2y4jg6Lvn+uyNB1xczjUdTkL8fnMGs5vM0jk710LB+Uhfuwl+lsZGbTxKa+FJWkoHLXEt rNqiwIGQSRpJidX5cMrs2eGKvi8aw+IHosTlBm4MpsDlloc/Wj9NTuS6SlFzlWuljom+P6AGz13 aLyNTkDaLo6Euk+D5Kg== X-Proofpoint-GUID: kQlEqspK7FwR22HqmrEn_6QpGFxlAjp0 X-Proofpoint-ORIG-GUID: kQlEqspK7FwR22HqmrEn_6QpGFxlAjp0 X-Authority-Analysis: v=2.4 cv=CL4amxrD c=1 sm=1 tr=0 ts=69f1fede cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=bXOGUNLACKbNXswU7uMA:9 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-04-28_05,2026-04-28_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 adultscore=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 spamscore=0 clxscore=1015 malwarescore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2604290130 The RISC-V ramsink trace component may have implementation specific restrictions such that the component can only write trace data in particular parts of DRAM. Enable DMA_RESTRICTED_POOL in the defconfig so that dma_alloc_*() and dma_free_*() APIs work for devices with DMA address restrictions. Signed-off-by: Anup Patel --- arch/riscv/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index 6f5343db1f8a..6a98d6dc28b1 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -306,6 +306,7 @@ CONFIG_SECURITY_APPARMOR=y CONFIG_DEFAULT_SECURITY_DAC=y CONFIG_CRYPTO_USER_API_HASH=y CONFIG_CRYPTO_DEV_VIRTIO=y +CONFIG_DMA_RESTRICTED_POOL=y CONFIG_PRINTK_TIME=y CONFIG_DEBUG_KERNEL=y CONFIG_DEBUG_FS=y -- 2.43.0