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 16A35413623 for ; Tue, 9 Jun 2026 12:23:36 +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=1781007818; cv=none; b=kxwbizD6ZckujBv2c60nPpNEfqf6+ok3g08QzaKZscB34ESwhmVZVeplDNR1gEqnqfJb7WuEFr28q4TacGJzIyHOMdhzMJL9gSdW9JILb+NF2ThH0OrrNubkwDX2rYKWK5PQme24tr4mgGKAp5qXrum+zFyzr61BR6RShU/ua7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781007818; c=relaxed/simple; bh=rLGj/87DE+IWnv6rE89CcLRhrhgUVBrKdFjoNubYr60=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=eFFFjwiVqcoAejsq25L5P5wvqT/WTLZH4bMZUD2IJmq1it9Y/O0ZBfQFx1xE3O7lLQA7rO60FGpmbA4SElyj19ktLrW4YfgmrIabF3To7Fg/zhjg3VJ29FCA5k9UtjZN5N8t8rVqhACJNaLuSRA4HwB8EJTjhHTzJWZ7/2A4VrU= 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=PcBkvwXy; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=aXWcxvv0; 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=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="PcBkvwXy"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="aXWcxvv0" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 659BnH2i2559407 for ; Tue, 9 Jun 2026 12:23:36 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= jjOurlIogpN4Aq/2lhXA06Z1CJvXQFLBIcp9yCrlDjY=; b=PcBkvwXy/lONhkKS uk/ZgPsaaTSESVdXGhRUpbWszu/7whMi+2Ptt6C/h8R0UjZE3fQAJD3w6az0ixMk dLrv5XQZIcxidj7PPvB/rK/yAVEkA+z/97UxuNvX0LgJY+06apkmEDcj42p5Jzyr VQZBMoNZeeAlZJh5wNXN1HitOia1D3Bfp81FevV9SmkOVP7goYawZCNNbSa4N2/t gokYUZIkJNn981cB5h+o+VafdTOD/55d+ThYqGR0inZ44Elvp3ud/zxcV7N7NoUu aW7W+5yyLAQV29sogziaFuvv1KQP/c0bFLjSPeyFbwNt2K2OP/FK8FkqfLedJzqz LWKYMw== Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4epg3v0qhu-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 09 Jun 2026 12:23:35 +0000 (GMT) Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-517741bcc53so15067011cf.1 for ; Tue, 09 Jun 2026 05:23:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781007815; x=1781612615; 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=jjOurlIogpN4Aq/2lhXA06Z1CJvXQFLBIcp9yCrlDjY=; b=aXWcxvv0USnBfv+XVozsuet3JyMgSOg4L61fkNxuPOK6kTwXnwKeIVUfcD/QLbOfqg 6LiG83ykwV5NANfw1GD+VgGMYfnYTPwW9EqlbABsKkX5aEn15IrLqQm18s5e99ms6VtD zL5Zzmk2yssyY70vb5gunYW5iujWjKIo6N7HylNQlqFaCWaMjpoYF7j4KTp0oHaAQwF2 b2vuLPOwHQ52uCbrSuhM4/DnflwSkEdQTaabrCcG7tqj1exusZVbNbGUwDLHb43/1zS/ sZdgLx9PgDqqH9ttlOVOevaUL56PGVAlqpbgciyDXq26A+L9agZVKsEvNEMLCvvoidWH rywQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781007815; x=1781612615; 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=jjOurlIogpN4Aq/2lhXA06Z1CJvXQFLBIcp9yCrlDjY=; b=Po0qthAUCJ9uFGJXXv7ZLwFfUffDgqtQ6D4YCNnubZXcuGL5LSCi881KX3lYteaBG1 7x06qUm5s1c3mXNRYUX4CM9FhM1gzukVb03q/7XryJ1oSGGckbw9BeoX923EG159fvmc 1EMWQStFu0ycQ8EI4qSMkwqoRpsrYZkNU2ZR9I2D9yR7LydX5Ol0vEpGnHAHcNP9xwFT JCbxffVyhPqDXiRd4mWbT1otoIoFZmgas6BoVaaVRVqfGWlFNU8DKtwuxYP62dJ+FVzB dbJZnp3EFJD2n7m1TycQ8qWsj8S2Bn1doDMAJWBEFyk1x2tF7+KA8n4xfYHOoUd0EE8g Pr7Q== X-Forwarded-Encrypted: i=1; AFNElJ/o8SAcOK1zz5qOIROcVNl8fCan+WdHd7DbjsG0ZOQNeuhzAAnOF4bxLRMAi2oTzXQcoCdjY1xXs7AmJIQ=@vger.kernel.org X-Gm-Message-State: AOJu0YzFKO7JsK2g14LmOzO2uHmJgwxuxc1gU0nIdGNxPx4scoNCtH/B HDQ2Z9/+PBF+JWUsrz7U56BRvhyiN1euOE2c4EiPrdYb+GYIWOaFVtmTixhkFxYIt6RLrgQBYfM p4HdkTOeUSTp/uzq4wC78rN1QT6JnpLGLrrnP7iMUOByoK3819G0cLeDxZgBxUfyYNlI= X-Gm-Gg: Acq92OFoLc9cg/ituG4+K+uejl3FrEc8LQEI3ZIP7nO2arj1zOSULCaTmy6EzJ6OvNN y9boUrEmkiIqJTHl0LbuvARIsKRueTzjxFupoTevjyzjbSFEjEshBptL/7kIqCah0AgPWVkUbB9 Rp9M4LoWa1hM3YMaONR3KI66bgzRgWnw2w4zJAcpNhr3jB60N7vxTJHXBsEc/Laf9rk5P6/MarT uLTRvZ5s/H9TaCm8UMzvC7gFUy+Lq79e350xzgKU5MY0vxYc5K1t7jxxx2Lt4MHeOKIBQ0HUO2y WJgXlNXXAN9Kc4JzQ0NULKf00YgXLhqvBJ+T7QkT3PuGp9/4ON8JvdRkbeOoxEFUd5wmjVyyaba 7UsQXQ520YNDGMvc19g0LYH5kVi7xH8vgF8eiCtfISDfPjPFaM8Q/MPp2 X-Received: by 2002:ac8:5a52:0:b0:50d:ec32:b84f with SMTP id d75a77b69052e-517ca3faecemr24114771cf.3.1781007815201; Tue, 09 Jun 2026 05:23:35 -0700 (PDT) X-Received: by 2002:ac8:5a52:0:b0:50d:ec32:b84f with SMTP id d75a77b69052e-517ca3faecemr24114331cf.3.1781007814688; Tue, 09 Jun 2026 05:23:34 -0700 (PDT) Received: from [192.168.120.170] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-bf055307ce3sm1026067166b.43.2026.06.09.05.23.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Jun 2026 05:23:33 -0700 (PDT) Message-ID: <12a8cc4f-3c45-471b-8a0c-f7473cefa190@oss.qualcomm.com> Date: Tue, 9 Jun 2026 14:23:31 +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> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=St6gLvO0 c=1 sm=1 tr=0 ts=6a2805c7 cx=c_pps a=WeENfcodrlLV9YRTxbY/uA==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=fGO4tVQLAAAA:8 a=DGYD9H-L74iTx1fb_rQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=kacYvNCVWA4VmyqE58fU:22 X-Proofpoint-ORIG-GUID: P1uJk2h6P-p3Rmp-W-1UmPMPk7T-P-lZ X-Proofpoint-GUID: P1uJk2h6P-p3Rmp-W-1UmPMPk7T-P-lZ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjA5MDExNyBTYWx0ZWRfXzy5OJ+aAhsKo Q3OxeNU+cSF4nxwLMbA2S51o3KnCHRK2kXJvIJNWSnIxG+WfRGUfWYaPTXY9s/sK9rNPtQuDMgt OFeLcIPaSmAySdBXL2qNaIDkkpkinRIalXGBeCijnwr2c8VPaBiMCidUPEe0yrEwbdrRM7xDe6z 8olnJ4lHXgM7+x9ccU/2EpkIkT5N3SxPDVoe3Ssiqj1cQQyo/zukRWi+Ot6Hj64O77PMKMAPd7W eHg0pUOPCRMMemy3k0YsN3/2ktc8eHOLys3uKOcL2+HkZBKR1YyQtc8XTuZD8eL8fOtjoYyyRTO JAZBPkI4ZHIQpxmgP8fR8NlOVkfFrZ5zCfVH3LQcXKOKzChop+/fWsd5eZAAf91MtIFDOB+fVqx OkOxxU8gasanZSMv4jaRxsgnMFxnlm8Yrpn715iXxNcOPlBzojaB0S5prDLX3x6wRS/clE/SR04 dg69SysRRme+31IG4jA== 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-09_02,2026-06-09_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 bulkscore=0 phishscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605210000 definitions=main-2606090117 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? Konrad