From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from cstnet.cn (smtp25.cstnet.cn [159.226.251.25]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 08143298CB2; Sun, 7 Jun 2026 08:49:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.226.251.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780822149; cv=none; b=Ks1oFoGXYoxZjOj8z6DsNolBaetOO3I5rKD13TfVRcazbWfctmJLuiNRbjkgu/3oGpv5qwB3Jeba4e04KsZ66iQ9vE3NjG+k/yaziPR7vyfrk/JwJLb13/yYAyMYCD50a+HVLGQIqGW7E1tsfY/qmzUu3r2KN7TVgFM+sbG0U88= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780822149; c=relaxed/simple; bh=JdbJounBmvmgOA9lkexpWmGoP6VlmzWePTPibHEG4Uk=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=rtiywP5GFRN0PnCk90EepofGEPvkz6xkwY2frnbahhafFwh8MUuD2MImhcI/7n7FyXFsvF07RVsHNANM+E5fqEtovZC/SgrjQ2lidM9AMeujPfenkrUCAmJXF+Slr7vETT1Rb9DezWRsD9MF2P4eysZCzWDEG9KEvjDyxKh4SjQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iscas.ac.cn; spf=pass smtp.mailfrom=iscas.ac.cn; arc=none smtp.client-ip=159.226.251.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iscas.ac.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iscas.ac.cn Received: from edelgard.fodlan.icenowy.me (unknown [112.94.101.15]) by APP-05 (Coremail) with SMTP id zQCowABXrdB9MCVq4EWVEg--.29659S2; Sun, 07 Jun 2026 16:49:03 +0800 (CST) Message-ID: Subject: Re: [PATCH 0/6] arm64: dts: qcom: sc8280xp: set GPI DMA channels according to DSDT From: Icenowy Zheng To: 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 Date: Sun, 07 Jun 2026 16:49:01 +0800 In-Reply-To: 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-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-CM-TRANSID:zQCowABXrdB9MCVq4EWVEg--.29659S2 X-Coremail-Antispam: 1UD129KBjvJXoW7tr13KFykKFWrWr4DWFW3KFg_yoW8ur4UpF WDKay5KF4ktF1fCw4xtw4DXr4Sqrs5AryUZrn8WF10qwn0vw1Sqr4xKFZ093ZrXrn3uw4a qF43Cas7XrWkA3DanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUk2b7Iv0xC_KF4lb4IE77IF4wAFF20E14v26r4j6ryUM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I 8E87Iv6xkF7I0E14v26F4UJVW0owAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC 0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr 1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcVAKI48JMxkF7I0En4kS14v26r1q6r43MxAI w28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr 4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxG rwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8Jw CI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2 z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxU2VbyDUUUU X-CM-SenderInfo: x2kh0wp0lqwv3d6l2u1dvotugofq/ =E5=9C=A8 2026-06-06=E5=85=AD=E7=9A=84 21:51 +0800=EF=BC=8CPengyu Luo=E5=86= =99=E9=81=93=EF=BC=9A > On Sat, Jun 6, 2026 at 9:21=E2=80=AFPM Icenowy Zheng > wrote: > >=20 > > =E5=9C=A8 2026-06-06=E5=85=AD=E7=9A=84 17:46 +0800=EF=BC=8CPengyu Luo= =E5=86=99=E9=81=93=EF=BC=9A > > > On 2026-06-06 17:28:35+08:00, Icenowy Zheng wrote: > > > > =E5=9C=A8 2026-06-06=E5=85=AD=E7=9A=84 17:22 +0800=EF=BC=8CPengyu L= uo=E5=86=99=E9=81=93=EF=BC=9A > > > >=20 > > > > > On 2026-06-02 21:21:27+08:00, Icenowy Zheng wrote: > > > > >=20 > > > > > 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 > > > >=20 > > > > Is this a defconfig? > > > >=20 > > >=20 > > > Yes. > > >=20 > > > > 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). > > > >=20 > > >=20 > > > 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 > >=20 > > 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). > >=20 >=20 > 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. Thanks, Icenowy >=20 > Best wishes, > Pengyu