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 4CBD9381AF1 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=YoLT4eOVtBCeiZxIqXFjBic9S5GZIOBp7Mr/2FUQWJ59/d7PQ3lmpmDTLNE+U/FEHQlg4/UNWl03XQYvSWHwsMgN24vEFB0akin76RMNEvA5H0akH43C27evi5vzS3kNiSt9imjMCt9EZqjYZmPfpXy6zZTTyLhkf78JImf01j0= 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=iaUpb0jZ; 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="iaUpb0jZ" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65I8DgiS692877 for ; Thu, 18 Jun 2026 09:04:37 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-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4eux2cbsyk-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-f197.google.com with SMTP id af79cd13be357-9157263095fso19233685a.0 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=1781773476; x=1782378276; 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=iaUpb0jZ3hg+qUko3c76zB/SIf5EvnNyULATDc7aiqCWfKbVtxV8FbgkDiYBAF07wt Ydd9yLzoZPjn7q1f61P/ra1ZAKn7vx69hfVskmJmQwPEfvFhbOa57QB2JRqyI2Y7bPM7 /TOotMJ/cPXzYJKJHBbk3w17OZnyH6i2z3kLBhxCjPjphQyuR6D9v5Rc7touz+QTU8PW dXhIyrnlc9hl65VperGkeHH1WItT4M2Hw9iz6LzKOKB3WOs1eDip8Aq33onyM/13hE1p rYBrCQEw/OX67AhDOkmsyJydOr4ivdODRMfqeYLikqfySv0fq0/5OQ3AA2Q6Dn3uLK+b kLJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781773476; x=1782378276; 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=b6MTKF/ibJ6SRUSE+Q35l6d89OmDPA3HW3y2ZbqPtm2nHARQdnxQtin1cmX20FE4TD aVgdPMdOGaZpQ9o5SVYRNiJLcn+DLmxxPU3KpMbNazBo+rCSkUep4uCKG24AZu0tmECC eVIvVTHjCeuVFxCGEeJQ6D+SbSUofNvBf5wfv48ywt48Tq6T1R1jM/SQXwDSwWx+h4T8 QUuPHmpo5TtXSwoXubEGATBQBtB1dzlo6FY3z8Zft7SqzK2LoCqJTFRx9rdq5kbcwBkP IGzi+Vdm+p6nGSaA1nbIQQWoSjMSxRZwz368/0FQpZmubaoklpfiDpXUd5kOvWRYk4Fd iUQw== X-Forwarded-Encrypted: i=1; AFNElJ9O5WFykgW+9imjHI0wnm8FUK8cKgV5tIsljKqZcajmD20IL/CA8OVkBaxdGCpP8FoAcjvmYXoKjtMZ@vger.kernel.org X-Gm-Message-State: AOJu0Yzpskx2TpCSjkSxmz64REHp0Z6N2DaiTpjXfM5kjsVEoSfhAK0V EX32oBonVrb2mhRMgLnonq7CRxncvfnOPHBYg2j8HDiPjzZQLUWWZqtlMSWv9hRMJIM0oWZAZuo aSF2vT4Y4WiR6HScsJShR48ya2dOe8jgqxnk73vIDD6WcZ2u+jmFO3uswO89j24Th X-Gm-Gg: Acq92OFaZbp6n3R5Q8VUhgDmkgeyR0oUuK0G6mbYsamqEwdgbaMdwY+JaEJL+OGA9F9 QbrL5eVpMyrGLyzuSh6Jw34IFgWTQoa3hUeqeLkem40w1PaTYMsGTKq5HgUuurPgMrmNhCiNSzy 5JR+m9X5otVklIvriBbmfy5Lx5zItxwFKSKXbadCKw4MRenBpmb89rwE3aOg8qzERav7ZtOFdLV roapFzlJjgjs8wVQAHobV8NPNFYEtkyzkn0uEiBBdONaOavxG96GO70fqrYQ72NMfZuhmwG0plK 6thncEHy/my1rMN/qbfpsNgGh27lem8VfWXLOJW/EP7VqxOFp8RVNoxr3+R3D0q0qqq3HxM9FBE AomMoXRMD+63I4d90lMyPboS5tDkmGljL2N4= X-Received: by 2002:a05:620a:444f:b0:915:8197:4490 with SMTP id af79cd13be357-91f2a9c3693mr258567785a.4.1781773476417; 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: devicetree@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: AW1haW4tMjYwNjE4MDA4MyBTYWx0ZWRfXzX+J0pu+nSXk qZ/2evNVbe95/j0J1bJVcnR/Pi5obfceXNByHqUf69sVBkm2tiLhWHScjGUYtUS8Qb/gposZNna 9al7vK3UHJEr5UEyXReS5NF3BmUKPlqnNRLcx2fpTJdlBx+Ew1l11RCY+xz8Soeb4zDtanVgd+1 9vp9ioGUBJAPAK4smBG22VHd70hbK3J+1jmeUM6q2dbfWVLvCMXzLFRaPLUH9C0dnbWlZK14tBM Sfa/W+dod0U5T1kvqwMhFunMOYQ1AdWrRAizCd9V9ebTE/mg5sw7AY+2OsXifX6x6o5dFQWbglq 53Zz7d5ZreiLpYLRT9aCSXcLohremavaQuD2y8ypnyPcL4HMDMA0a5AefTk0n7c3Gg3+V9WS35W RHG1YgV48TB2hb4XkALI5Ks4POHjgvA4rpfth1hNulzwYDoK3FoC+8dpjub6z2fG0WKYmRE3SJ1 mC3qLIYL1Q0rUchAAjA== X-Proofpoint-Spam-Info: AW1haW4tMjYwNjE4MDA4MyBTYWx0ZWRfX8mx/RNpAnpvU htxYEcg3OcRT0Gph09WbH9IziC4sBOirtVr0EZ9vlHesb3zHcJLZLVyFjA8Sb1k8Azvgkk8BKKC uVlp4HKy2LSy+5Kti6jIdbMsNS2lTv4= X-Proofpoint-GUID: JifrqqeWxOy8aggNHPVocqeNBZyE_FIb X-Proofpoint-ORIG-GUID: JifrqqeWxOy8aggNHPVocqeNBZyE_FIb X-Authority-Analysis: v=2.4 cv=WN1PmHsR c=1 sm=1 tr=0 ts=6a33b4a5 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=fGO4tVQLAAAA:8 a=ZjbuNi-wRcj-E7w4fbIA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 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 bulkscore=0 malwarescore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 spamscore=0 priorityscore=1501 adultscore=0 clxscore=1015 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2606180083 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