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 66C7E346E51 for ; Thu, 18 Jun 2026 09:06:05 +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=1781773566; cv=none; b=MhnIK+/fb0hYzpieOGG3UmVeOXPLzC2V+z9ZQ9C16MZT0ueT4tg4bu8ST6PL6qeg5WUkie8LXpwn9GOmZ5elqylzNcr6iUXLe9Bhy1V8W9Ngwyg0AA0j/nzhwOsJfOIkVqA5ae55Cu/6jk6jtHaBO5RzflZkmmD8bvy8SP/Cj9c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781773566; c=relaxed/simple; bh=ipBwd1OaHjRf9KgZ0XZZ3TUbh2YaENN1SmkJ1hxii3o=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qjSjCaZWgKsU4N8OnthC0bVNlA+Qst9OLLrW+Ia4zTBjIm4Cz6i3ZwvgkT8v4XP/anC6WrF51YZ+fVlNYvDuwTy26fRVb3lfSROQp9pXimoRChKpU5QnbGtzLcvWlvKY407RA6ESvodpyku2CHbbWTxbWVGxjZGBVGOB4tQaCrs= 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=mNk9O9QM; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=aSnCmlk1; 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="mNk9O9QM"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="aSnCmlk1" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65I8Dk9d667667 for ; Thu, 18 Jun 2026 09:06: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= ZYnqEyIyY1rhAFPbk17ZE4kEfuWuI3hjE7hU9UGJs5E=; b=mNk9O9QM1tAUy1zc yp87MXc+IctIuJdL/hN9MfZI6nXdqBek75xzn6l7nHjZSpqf++EjdeWn5B9cw13m zQMdC9r4ViyEIZ64s622c4YTLlye58U2Y2x7dRGspWiI3LdGoCDELBGnff+9CcQ9 0h5LaX4IpZeCWjSMUVN63j1FlAlKtk+bnsCeI1Bt662XATHXVXWfOu/kXvygpBc2 xVfzo0Et+MZga6eUXie4r+Y1PBPhUB8mXYbj6Kjmv6TT89eIFqZNHT5/s4xK/beq 6Y6TCT2VFAiFLTl3ZzFT2iNuxAshI+MLA837KFg1vJzONv4tyHSJu+vgvkk3k9a0 TfAEmA== 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 4ev0vm2qbs-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 18 Jun 2026 09:06:04 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-9156dc90fdaso21052985a.0 for ; Thu, 18 Jun 2026 02:06:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781773563; x=1782378363; 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=ZYnqEyIyY1rhAFPbk17ZE4kEfuWuI3hjE7hU9UGJs5E=; b=aSnCmlk15wpOx0SYkktbolavdHclvn83iecL5jbJ+H3i8X3uqsl5VxsyBCeOQpAaFt bP3jxB+XgiUnYNljmtzknuiFVkThVSpQ4+Uy/gneHEFY3js9y3j6ZSZd2H4upJ+/+JkZ YX8Mtl5N+l5BNF0Cjmyar7eAGfoF2mVpk5GbF6w/J7/YQV1o/XF0Hb/mewq6NkR1zibr iUcY5k5U4ivo2H1k+t1O+eu8JNEwENjQQuqNaUtm53WW1jw4ejtuBXLwyYz8jaOS7FH7 r83PWUmrqDuwCLliPV4ZJObIOIEt5CR7Lv37Gbk+uUymdei8cKYdJ8u8qvzyUrtl28Bt 1BKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781773563; x=1782378363; 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=ZYnqEyIyY1rhAFPbk17ZE4kEfuWuI3hjE7hU9UGJs5E=; b=MagMncujG9ZnZ3Q6UHT9VY4yyykpyAXJsv73k/pPQFOSIRF4D3zGjWCIoveOJT47uf aA8F9YaJNcan4jXvDjVfRQC8FoJxUu/kGrs0ANbzKmhd8dnnHfbRpOFX802Demp0re1D dASeiS+q/Irt41W2wth0bwFX6xY6Y0RawbKvSKrCRXas9QGlndHLhxtl/lpTyq9W0Bms GRqm7hyIGoAygsd3sYaq+u0zkPpw/CuUBNsDT14w0n73l1fcKoklFSLG3LV3CKpmAtIg jd3dOMcQwcph+3tF7YUVai9sDCcfU9W3ZyuJta4Lardbk8DimspqTky5dOf6UW/fPGrt 1ayA== X-Forwarded-Encrypted: i=1; AFNElJ+KLJH1CxbqL3mLFia5iy1KiAnCm7IvCVazRx+IxIXKmRRyYsLx4Br3wWuUftOfn1m3qhscCDxFJ5UUi3E=@vger.kernel.org X-Gm-Message-State: AOJu0YxfLSGV6IxklizkM6LZzDUhN9v6Q+WwKhWPxAmvfy60+jOoXVVQ rW9LGV8vl6B2esrHb31A7wN1H++Zvnshyj81KCrjTu2J2d0zPtYZYubqQAAb3zmlRVGCA4cDqLO Xp7203WwtCZbgpGTXUMUJP6Yq354esu5Bu3JrJwV8y6yUn9u6PHaCOAL/IQU2rutSnqU= X-Gm-Gg: Acq92OEMEFGA4BCLVeqndIse/Mhssww4vtHl6HYEXgbtv3wc+voE/P5gZKopog5qZee 2z/NzmqGcjEhThiYtze3zOxPN8//3cBPRn/9+dtrx3jSl55+xddrNzryR353Phh83ulinQPjBci YZsO0KeUIQf5abgcDgID2XsxBH67tqOcYEtb5oftXHs/XzpRA9Dcii3nQXd4rWjJQsEvCFoyyu/ nmjOxrPuBbt9sMRTj34AyVQJdtOShpH/jXHNe4OPSaNW7oDYhJ8VlIoG45Zoukk4+E0Yae2hZh5 jDAoaa3JJ+jjxuqUpfyeAUitRiL4Ae1FYpMzM/rXdstsq2uVj5OWaxxD1EQ4s3Y6xCBwiz5Tgru y7b/5kUYo0VDNYtVRgm6SG/b02u1YfcrIGiA= X-Received: by 2002:a05:620a:17ab:b0:8d7:ed38:8189 with SMTP id af79cd13be357-91f24ff5a51mr269591885a.0.1781773563592; Thu, 18 Jun 2026 02:06:03 -0700 (PDT) X-Received: by 2002:a05:620a:17ab:b0:8d7:ed38:8189 with SMTP id af79cd13be357-91f24ff5a51mr269587885a.0.1781773563058; Thu, 18 Jun 2026 02:06:03 -0700 (PDT) Received: from [192.168.120.170] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6937919b458sm7800528a12.5.2026.06.18.02.06.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Jun 2026 02:06:02 -0700 (PDT) Message-ID: Date: Thu, 18 Jun 2026 11:05:59 +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> <7ac67f89-c6b4-4e0c-8eec-1e5c757777ce@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <7ac67f89-c6b4-4e0c-8eec-1e5c757777ce@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjE4MDA4MyBTYWx0ZWRfX6K2RCOVBCMAY T6Dt6FxcfOYdBSZigs5A7zPnMfYKEvf56QlF6TK08ym+AQjCUeWLVASykatgyMcXnaNP5HE468R SFyrbt78a10zxZAt9sJDrjzzPnWOjO4h4yTCpTnCj8yqJlyHDdrPezgwsi7ddClrVuIy6BJT0Ju GMTx1XbLH7FMkVDHF9HIMNoqsjPAu5Kl0qicfFk9KLjKATxUtDROiB3zZCaOJ1KrxKsl2kCKOwz Zsg660Z2ZwIbKeDSKlY+nWFeNrduBowmu667gsEJ3oEQGy+1OidiqFLnkCyOVlkmDfcoY0p6Yso tz1M213c20arM24wrUXrdDAjz43LAa8zq48xP+6IiU7QqASGiuaDiVWJ4h3f+JvPUB/q2J4Wfxq oCDmfW3ERIjRUGaU4f+tEiKdsi4NA5b0uoi7JWYy0+2mzlkNqP5eDajgq35lyYjjrs/QGOdQ/TZ PDoNtXhIiY2k92WJzYQ== X-Proofpoint-ORIG-GUID: LDelYmTbPCr6HrJRgGQzDPkT7y2hnLHF X-Authority-Analysis: v=2.4 cv=UrRT8ewB c=1 sm=1 tr=0 ts=6a33b4fc 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=YMgV9FUhrdKAYTUUvYB2:22 a=fGO4tVQLAAAA:8 a=33-RWtsPU-0aYSPvonEA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-GUID: LDelYmTbPCr6HrJRgGQzDPkT7y2hnLHF X-Proofpoint-Spam-Info: AW1haW4tMjYwNjE4MDA4MyBTYWx0ZWRfX87skxi68WuLe PoTk3b7vyKmoqHeo94waLn9NGYD/f1WMSlzCuG0s/Gan2D80yMsAlSwoDoakyJSh6bPReZHpuQQ FZ32tEDUoz9JdrDwSb3SmVynR7H98vA= 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 impostorscore=0 lowpriorityscore=0 priorityscore=1501 phishscore=0 bulkscore=0 spamscore=0 suspectscore=0 adultscore=0 malwarescore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2606180083 On 6/18/26 11:04 AM, Konrad Dybcio wrote: > 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? i.e. now, is requesting these channels through (wrongfully) enabling the devices in DT the only remaining concern? Konrad