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 0A9D640BCD3 for ; Tue, 9 Jun 2026 12:23:36 +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=1781007818; cv=none; b=NX54RjXFd/JGcgABScNcFblbl21HFVEVPjIRP22hOKaPMqsMnx5k0xHlmoDqOWr3njvWWlpNO3gr81GLTdDioBPQtE/0qUOb5f4Jp+E4nUDfyppUadOURutuZClIOOJ6enE6/E7FHOc/NbCJPJEOXEox7QossP4XVXxPBUuBT54= 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.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="PcBkvwXy"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="aXWcxvv0" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 659BnTow2120116 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 4epg3wgpk2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 09 Jun 2026 12:23:36 +0000 (GMT) Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-5178a632a12so15068241cf.3 for ; Tue, 09 Jun 2026 05:23:36 -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=okRuVBFGiOkvldAKXwoH+fDrS5gpso46z+jRKd2zvJeAnZIgD98EJ26rlVLY1qg7Du 7Sq9dxPCsRNpv03CeVFhV20zV7XYHqwi0X4+4zow23MXGiSyDXHbYQFyMmR756AU3wLq LkImnFGGLY/k2A2GMtsIM3EJ7BR+ro1FmPSmYe3Mg7JwW43eL9e/YWfrcRdD0n9suSS3 Y2Jt0BXRCbF9Gwy+0ryQCsAnZZAktcP6k43HthVC8Q26RFvE9p4sanVC1of6G7xKmCqQ rtpN6mxiQ1+nutL69DVL8XoUYIfbo6oi/qI/DeJfe/dN2r0h3vSVdKcah/EYl8InxBn4 AmWA== X-Forwarded-Encrypted: i=1; AFNElJ9HVg11COKDQkU0dmzq/kSXE6h5ZP/IGHroGsQxTao7c/lubBv1Y+D4+wB2TIV6jwS+FSy4H/EQoGhS@vger.kernel.org X-Gm-Message-State: AOJu0Yw6XyhH7oNbKOQZoxFylhzaSYbHYYAoMDGvBVrAaXyY9TCJrNUW DX7wX1tiQ315ltPg5jV2oeLwUvqyUNXtnxOLgj7x7qbdkWC1j+QkPabht6mCUachp23U6H+708p uJwvhhw1QfRH/uJNE1o31cA/epJXZ3tZZ0YbpuO3gQJYNjgUKnQeBCLHloExudaNM X-Gm-Gg: Acq92OFfUPPFfTwS+a6sSh2QmGpD+L7MEwKfJ+opYkUOjp/IvNlU0558dhwBbsFN+Bv jmyeM6USUbLkxHNYqKBorURsiA8A9t8E4ooQL1TaLS0xDZvZ5MhWB6UUpwDyMP15WFNZYTc86ii MJJioCPNRpOBYhGnkMoKfvaE+9gU9xFOHR7MO9EM2onsHeAUmkAIdyn5BakoQhjg0fCe/+Yy7hV CbuvStHmrAc7m4SqZruvjOYcW/X14VDjKM6TKbuxONiA5fgAH+J2oBzBB/oLB4u4Gz0Cs7AiIXj K7DCDK6FsPhUnzgCugsIO6UhFR+FyAx4PYyN4zdNJnA/LjZfMT6b+3hJ7DvFSfogIQ1Ye0zvLwu 44ko6nDGzxxDhq1IVTpbOKfR5IB1hgwBaSMSCleEu01fQzrN2W2HGMY3d X-Received: by 2002:ac8:5a52:0:b0:50d:ec32:b84f with SMTP id d75a77b69052e-517ca3faecemr24114711cf.3.1781007815173; 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: 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> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjA5MDExNiBTYWx0ZWRfXwQVLGJipeXxl gyQ2uIkyyilBO7EOSF0tt0H0VXAPqCWmcjq2Dyu7kVMgjFSgnLNSRpPeFHnXt8LTtA23M+LnmRa Ey36ZFTPTWuONibqEPgdja1zTe2D9kzBO3DM5WQ9n02+j5GnpkMeZjzLCrfCFfLxyy/WpEYpe4K XzxgmVZIkWMEFjmeCUMr0tSDhkZE+vhwfiL92MOqn9g11HgutmOzEJxWVvjXYgMgHGa6dIDGCIB jzQGjuCGBGM2cEAUKUdEdfdqiUPl60jtF/XaP96kAw6rlefs2k1ETIvbbDv/Lxa6jj4vCBR0ljT HBwMfG2vJaHZqE6FUgMgNttZr7urxLRhSglxAYZzYUA3AVWs4Biv9xY4aiwJbNETxGp+S69X1Xs GyoJ1HHYBrIBkD0ng3X8pLQGd3JmKeRvAP8IHn5lAF8kPvc2U5jY4Jk7VV5O/f0xpKMZjDFCzh7 uhz7UuAYyHA/aEr8P6A== X-Authority-Analysis: v=2.4 cv=csWrVV4i c=1 sm=1 tr=0 ts=6a2805c8 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=yOCtJkima9RkubShWh1s:22 a=fGO4tVQLAAAA:8 a=DGYD9H-L74iTx1fb_rQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=kacYvNCVWA4VmyqE58fU:22 X-Proofpoint-GUID: b7We3vrt-tMWc8vq6xgJsnCZA1sCaIOd X-Proofpoint-ORIG-GUID: b7We3vrt-tMWc8vq6xgJsnCZA1sCaIOd 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 priorityscore=1501 clxscore=1015 spamscore=0 adultscore=0 lowpriorityscore=0 malwarescore=0 impostorscore=0 phishscore=0 suspectscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605210000 definitions=main-2606090116 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