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 956EC3603EE for ; Thu, 18 Jun 2026 09:04:38 +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=1781773479; cv=none; b=QednnBbXguV7H/HmRy1OMwuNRRPa+70Cd2vMccq9Z9w4Q4my4CrKKAt+fsLCAtiraHIbOyATreycXnV22x7UdpVQbsWh0goIFAsxWlfzMUu/+gu9QfDnDxu3ruglYTe5JwGlZyF23qbguQlFMzkv5P4D+ubEUhuA+eK5OCqSLzw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781773479; c=relaxed/simple; bh=KTJtCRBahX3fXBvE/Go499ozEyEznlJ/MraKxFUabxQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=e/A2kudIFrX4u8s8IHalmS6GsfM37fhjEizS4SegSxZAEhxLj7y8XzGiS2DgRxHb36Zl7vuUlFb55qAPAsbc27egKTitQa/juOS3db/GXNkPoqEn+E9R3RgUneP29JXP2cO1/8pzW08Sv0uJlKQmVXF2MciffK9LiyJppnbmEl0= 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=cgmVfjPG; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=F5KlqaOw; 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="cgmVfjPG"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="F5KlqaOw" 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 65I8xCSp723320 for ; Thu, 18 Jun 2026 09:04:38 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= 5Bi/S6Rwsqd9YnOHV+H5Xke+fS5rIcjPFcQVzd5Civo=; b=cgmVfjPGbEBHwpgo GXr65WE5MkAGSVHZ55UoBYpXvGMSqV3fWZpaZWFAQmfNpdnI6AXbZzlzB1fyajeQ uVVZVgkqpdDstuKPc8IyctMG1wI+3Ky/6lgDmR1LnBy0s2YgcNMSKCsPDOz6KZ0Y Vc8oUrxcbRvwoQU0fCkKCexvm79Pt1gx2FsxJhQ2KkXOKwEWZmD3m4jFNnExi6b+ 8PAKkB503IgqPRG/woljU1QoU6d98M71fg1aBUt0rP08Mo36QGH8yEF8JVnASxOn 45HosI0KBvsxoZLsbDm3KO2MbFUt7r7igUzXWiKS8Qc/btKH+wAbEvWT1CtaE5NF OzTn7g== Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4evdn400s7-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 18 Jun 2026 09:04:37 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-915a4ca0a4aso22760285a.1 for ; Thu, 18 Jun 2026 02:04:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781773477; x=1782378277; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=5Bi/S6Rwsqd9YnOHV+H5Xke+fS5rIcjPFcQVzd5Civo=; b=F5KlqaOwk1d9rexUFvUZPUHZAaVrDnHCipUy3xfJwYTMTCsrWuHzv3k5ReXB9Zl13W o34j3y2NE/P71JJ2TDaPSR4xDpuQRkApGYbbse5H+iw54bqPZUVDVxuREnNOHcQwbKl8 ToTp+iH38bDNVzAJ7raoi7IbOUmvMplXfziIwXGls9/1gOc54QC3xotvB4D0RcJNiHVS /wQlwXIRXfkcE8s+iJ/A+GN9VMqc/k7GrYbX7KOeCJf3L4LmWBrhPzlWrMdTpouK2yxX +UcRxV0yzel5GEm5tUh+wyOuXcwhtj3G+JQ0t7x33HfLNGmYDSjOdR7NYjXMqK1BtOYQ XI2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781773477; x=1782378277; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to: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=5Bi/S6Rwsqd9YnOHV+H5Xke+fS5rIcjPFcQVzd5Civo=; b=tRFAoC1AaKOJdkUyNC+vupFRBxbHRpN8VIZD7a7k7IzZ/hw5kR14Ojy9yGTJKhPC08 JBNH9lMHm9RelHD8hHG+k7q2OE7ACAvnhqJ1LKwdBuranw5wV+7xwg5d9m82BXQPiOVW mGBvFHTxRogmU9o4LCNO/A0V09eMMtdD0Zp0fG4Nbak7HIp+qVdnYnJ4uj2OEaZY9neX y4gRwFhWe4ZVHmY+QS/wt0bNllaT7ooe5JiE7UK+FZyujBP41p87gcs2KYTSCkp0SPL5 xjF6huCaYZUFIa6BKgQaSg2knM0AsNBogWrj2Cw/D1yRf5atQMFU19KInwlbsnNzLqs3 /bsg== X-Forwarded-Encrypted: i=1; AFNElJ99AfKcOazkLMWVY5alAqC6qLD5t139rOfoxVB6IoIeIN1IwvBi96Fth9wjj1sXgqc/QuueiHrN8/ILCVI=@vger.kernel.org X-Gm-Message-State: AOJu0Yw8dqwFsOsa9wB7j30IG2IXFiQIGACrZLeWJCQxfLzamJBwvfVU ARODTo+YsBpsMFZTuEGX0R7Pec9NbvCjpNQp5oiVkgaQzHfpVTu9hDtgKJPwqwWI5A2yMxMWpnM pikbcGijdsQKz55XwChV/eiuXYiwIi1+Q0S2UbaGn1TnlV42T3cxrFyVOemW0ScY2uds= X-Gm-Gg: Acq92OGBoBEiIx0ggM74gywxYCD9QTZSTdA/IsTKOM+FhsDVq7wibZ7fM45zOXO4pq3 dLiAOkv3sLx9+836qMg9W/EF4XRy4K3gvyYFlhY6E5tdOsoRKacn9IUX2wDTQX33d08x7iBEs9Q /+YapI2Ih1STlN0kwnicumK5vaVl9wvUlZGC9ZHa9ZLAtjEnzpnyUvnT7mO4iuFXkydnQacKFzq 9kkjapFKQlJSqg9Pp+e4EgM68pTfL/t78IlhlH8VwLeLPU6qwejli8gMv8YCnmS/SkCmoa8otfn 26CqJLLNzgDqLvV/k+fc49fIlu9dxYzE89YZ3EplzrqFeMNHJgh7Jj9F0pCFzjvp5DTfhZs2eu9 mFxQkYaQtvhy4ra1nerJlRFECbTWg6nfMqK8= X-Received: by 2002:a05:620a:444f:b0:915:8197:4490 with SMTP id af79cd13be357-91f2a9c3693mr258567185a.4.1781773476412; Thu, 18 Jun 2026 02:04:36 -0700 (PDT) X-Received: by 2002:a05:620a:444f:b0:915:8197:4490 with SMTP id af79cd13be357-91f2a9c3693mr258564685a.4.1781773475902; Thu, 18 Jun 2026 02:04:35 -0700 (PDT) Received: from [192.168.120.170] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c0765b69d6esm80087266b.18.2026.06.18.02.04.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Jun 2026 02:04:34 -0700 (PDT) Message-ID: <7ac67f89-c6b4-4e0c-8eec-1e5c757777ce@oss.qualcomm.com> Date: Thu, 18 Jun 2026 11:04:32 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/6] arm64: dts: qcom: sc8280xp: set GPI DMA channels according to DSDT To: Icenowy Zheng , Pengyu Luo Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260602081451.3808833-1-zhengxingda@iscas.ac.cn> <178040480680.1778078.1165164069560552075.b4-review@b4> <178073773007.397244.9871455646149843167.b4-reply@b4> <7ecda3d0f91b0d96bcec44ddf485ed5146788220.camel@iscas.ac.cn> <178073918523.417326.15121723011916371966.b4-reply@b4> <1c33b1dd7d187b17b21b17339a4f1990e59d2f77.camel@iscas.ac.cn> <12a8cc4f-3c45-471b-8a0c-f7473cefa190@oss.qualcomm.com> <926a0fe9224d73e0f5e3f58f3769c6247b1cabd4.camel@iscas.ac.cn> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <926a0fe9224d73e0f5e3f58f3769c6247b1cabd4.camel@iscas.ac.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjE4MDA4MiBTYWx0ZWRfX3Y26bLYaeuD+ RFiOCKoJi+foEFy6Tcmq+iqgzkQUjJ9tN7grcLctW6y0MYGD+6ZhrFtGIgf/mVnWdwAs6wmaR39 FoUb9hV8YpEPKTK5HbrwzDbanyGfEy+rN4eYMArbpKvOUcg/eKaAAMv+R0a6Y7WCqPD8eK5SMRP nQZyTwmLmefpPjwOJKFilnsbH5LYk/r4hcVZXZMEFntFAUsk2Ye2aEBvkRa4WgJbR+PVgfTNUKq Pb+eYFkHD5WAQluS3AK5ItVXAF0kM7sg8/Nqbt3E7JRmxr1HrUvaTxPdWCXlUfvbfeTuapAbxeO 5xz3qKamq03hK8pKO5nyA2iYPTqWRXLRjFRUFlNGkHm3+7wIBmUtMlBKlIRq6Ln9UPB3Who9XiN IzsLdC/cobqG1CqY390/P6BWLmOxK4gRdHJ6CZddHh0k1fshEmeT/6rEZijjHR/4DmlctLT96wK LoaT5pUlI6T1iXroMWQ== X-Proofpoint-ORIG-GUID: EKWUknsHqp6KUWi9M1SN5vF9jnv6Fm9g X-Authority-Analysis: v=2.4 cv=FN4rAeos c=1 sm=1 tr=0 ts=6a33b4a5 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=fGO4tVQLAAAA:8 a=ZjbuNi-wRcj-E7w4fbIA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-GUID: EKWUknsHqp6KUWi9M1SN5vF9jnv6Fm9g X-Proofpoint-Spam-Info: AW1haW4tMjYwNjE4MDA4MiBTYWx0ZWRfX9ZyU9uiAfO70 RqabluwcTILPDTxTokJomkdI9g/8qE4pFzOBRHOhDti2fGOkq2VJK41JR35aElf+AaCClWS6oMO XduPfjp+l8orFr0QWnvyTlgVIQl10rk= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-18_01,2026-06-17_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 adultscore=0 phishscore=0 suspectscore=0 clxscore=1015 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2606180082 On 6/9/26 5:54 PM, Icenowy Zheng wrote: > 在 2026-06-09二的 14:23 +0200,Konrad Dybcio写道: >> On 6/7/26 10:49 AM, Icenowy Zheng wrote: >>> 在 2026-06-06六的 21:51 +0800,Pengyu Luo写道: >>>> On Sat, Jun 6, 2026 at 9:21 PM Icenowy Zheng >>>> wrote: >>>>> >>>>> 在 2026-06-06六的 17:46 +0800,Pengyu Luo写道: >>>>>> On 2026-06-06 17:28:35+08:00, Icenowy Zheng wrote: >>>>>>> 在 2026-06-06六的 17:22 +0800,Pengyu Luo写道: >>>>>>> >>>>>>>> On 2026-06-02 21:21:27+08:00, Icenowy Zheng wrote: >>>>>>>> >>>>>>>> The magnetic keyboard (USB HID) can't be connected >>>>>>>> somehow, >>>>>>>> others >>>>>>>> are >>>>>>>> fine, such as the spi touchscreen (not upstream yet), >>>>>>>> which >>>>>>>> utilizes >>>>>>>> DMA definitely. My config is here >>>>>>>> https://pastebin.com/SdjuyJYk >>>>>>> >>>>>>> Is this a defconfig? >>>>>>> >>>>>> >>>>>> Yes. >>>>>> >>>>>>> BTW it seems that CONFIG_ASYNC_TX_DMA needs to be selected >>>>>>> too >>>>>>> for >>>>>>> exhibiting the problem (because there should be "public" >>>>>>> GPI >>>>>>> DMA >>>>>>> consumers to trigger the stuck/reset). >>>>>>> >>>>>> >>>>>> Is this still necessary? I checked the fedora discussion and >>>>>> your >>>>>> GPI >>>>>> DMA fix. And GPI DMA is only for the QUP-supported >>>>>> peripherals as >>>>>> the >>>>>> binding mentioned, devicetree/bindings/dma/qcom,gpi.yaml >>>>> >>>>> The devicetree without this fix seems to be still incorrect, >>>>> because >>>>> with the device tree fix even if the GPI DMA driver misbehaves >>>>> the >>>>> system won't be stuck (although it will iterate all GPI >>>>> channels >>>>> and >>>>> then fail to function at all). >>>>> >>>> >>>> Back to the start. You said some GPI interfaces aren't available >>>> to >>>> HLOS, your mask is 0xb(0b1011), so I use 0x4(0b100) did a quick >>>> test, >>>> and spi6 consumed it, no stuck or reset. Could you give me a >>>> unavailable channel? >>> >>> I think channel 0b10000 of gpi_dma2 could be an example? >>> >>> It seems that 4 channels are tried on gpi_dma2 before hang on my >>> gaokun3, but as gaokun3 has no known serial access, it's possible >>> that >>> 0b100000 or 0b1000 is problematic. >>> >>> (The reason gpi_dma2 is checked first is because it's the GPI DMA >>> controller with the smallest address) >>> >>> BTW I just took the values from Windows DSDT, which is quite >>> conservative. >> >> So, with DMA_PRIVATE set, is this series made redundant? > > I assume technically the trustzone is still protecting some channels, > although the system stuck issue is fixed. > > This series should still be relevant, although not so emergent. So now we're down to the case of the TZ reserving some of the GPI channels (presumably for locked down/TZ-driven QUPs) crashing the device on access, is that right? Konrad