From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.48 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796513117; b=ljxyFO+vd1r2bQOULoNXDZB5qEpkOoRgnYAGs/C/RiSlF07Jw4URStXrhQR8T1nZuXQa LCznrKwMT/DtnzfZrU2kFc3EQthsR+HCffXXyFagtDXJoqzH3sobusZDQhd0gvfljFQc0 a6yRY5hNTtT0YfMBtWV75N5feJ0V4YxYkJbSy9MzWZSqZYym9/gJTPf25IoGZQggnNgK0 K+HdKWvETELrz3iNPtibCMef09cESNKykCxPJmGmj+ln/ZXwV4YZoXO3JiQg/WFd/G1Aw rN1MlLL4qRSw/Dr+zNqRvp8n6/hJl03v2fC2R89rULfEOJxxdn2k+7ECuy5jxjchEDA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796513117; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:User-Agent; bh=h1GGWBKiRK8k/8yS8I/Ebmgiy0mLTgZ25avWy3Tmj30=; b=1A98NXQz5BmFlTUOguj666W2XDsPlhmHww29lpYdvXUQqIi+4X9fa5cUNGb3AUiJgMiM 7mFI7kRgFUgxuEeD9w1ro6iX+v/skGPWES27US3nDeOSW0gDvUbXvzqYU5vqLotghCmD5 J6mflwRkQuIHOsKLssT9t0DKn4Xz3l/++YkIZ8/+h4TfO2gRN9DKoFPft4uwlpMNmxAxS o7JRc6+CZjO1MdaRYOyvdNmaNS2bxHhkLRUT2zW2OwIG5G1KhGUCa7Cpexpi+d63lXGEu M2Y5NZarSgMXnz7l/e7dELRoUVumX1cA3u1LYisrlQqLLn0nPBhAH/c5hcL2GTXxA1A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=uAZZX67W; arc=none smtp.remote-ip=209.85.216.48 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60F52606A31F for ; Sat, 5 Dec 2026 23:25:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 60F52606A31F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=uAZZX67W Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-3ae691283ecso1170755a91.0 for ; Sat, 05 Dec 2026 15:25:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796513117; x=1797117917; darn=vger.kernel.org; h=user-agent:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=h1GGWBKiRK8k/8yS8I/Ebmgiy0mLTgZ25avWy3Tmj30=; b=uAZZX67W0D7ZfR3JSO11nyY6MgWlgKzYbuKQ9YHXfRpGTTdFAhwlqn3f/1Lfd0xyJH E7sUAGOlQb0O3PjeeTQ6g0T3rD+T2Y+CdRjeBczlyAVE2Dex9YM3ImX2QCxcuBbtLruv IesMaPNiwwNJ3JvjFs/JLTmgPMXQW+7ydgx9FFvd1NGjG27TAwOljveqNf50czHKTWjM l1oox5/ZQt/yTWIoFDVYYxUMf80cGnpXtpuZtPisk5L4fgFOpCSgBKr2dH4oJEK72Vlz memdvmbXc/OHQOh40Bu/9mLUuKmZexX7/85mGzrNB2MEzrXzlmFgCAiPlu63P45pndwt MQGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796513117; x=1797117917; h=user-agent:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=h1GGWBKiRK8k/8yS8I/Ebmgiy0mLTgZ25avWy3Tmj30=; b=VQgIVXi5Kh3XrT/kWH28fnH/ar1+1H2xxi4goczCCe3udfasrcl0STOTDIALl3Bjy5 aGfDb4qqrZuXahBVWxkT1EeH2NAs7zUpz6+2nd/rRTjdSLW248IiX+WhBITOP9WIwpiO Sfy0UHT6ToZ07v10rKkeUR5GjOpNe3oGzcuQww66/2QS4T2WClkdzs+6CbMkX7YAwFLN qfzIhgN4RtfIMBpQRA7TOy0YBuJU786YL/oXaOdK5TjlzvUbhI6iqDRyOynNCUHwhpNa tyXJ17hbkGU6r3gWZD8s46mQRTtYmNQuPn7heo5XTE1a0iD1sUCpq2uC3u9oB/jnOgVC 0DOQ== X-Forwarded-Encrypted: i=1; AL+hErHgVKjx/G//WkJ2vp9nUzFs8frM+whx0rILPKuW31Y6PHAjZKdvgjC5x56K8gc4GPeH57jNlJWqDT5SAMY=@vger.kernel.org X-Gm-Message-State: AB4q+uH3tgZ8uYSawltkudduAqFogPN9N6bo0hPWHQPJAo4bvLIb9HqY PMS/37TWWtanvEIHgEPw3OlPZKStgZecCAeYzf1DWeduGIyKnBzfAY3g X-Gm-Gg: AZFdTZeY8CkuVD6M0wXvIrle6qoujJ57iJdRwH88aMvA5EOow2ASY1q4blmvH/Use1a +2e/sd8PDroRNFZqC/aLOWlKQXXPMiNFWgP+vSys3waXqiGGro08wmefoXsKT42l3tg6YCDXWoG FfLJTGwxGKkVnWFiaOxpLcBVflVKV8RGuaMhzRdM2u8es0G6p3XS3OSYsvPNxi0lHr4FGIUxcVC G8RcdkyJ7tB0JpmE1XtgMTKe3QAP9p/ta7yqowC9ev8Kg3PswU21bYjS7C/mMMPX29Oi9qoa04T FBSMZ8uUtGwbhsRfoGGGU9gLnyJXiGniEg/1KLqpfux9ejQvkPMionFk5mEUM1FHp8wUwoS6prL pekWIYd0KCudIW+fpjHQaFaGj7C9YRMIYazjXzkphwbBcBYlVfivKg9J/awaejbEubA1j6/+AqD bdtzo9hrRfhaMZlw4ouwI+SiNoTZ4R8LlGkVGllY34nlJcpDGqPyci2R+zI4SRNSrgWmdBWTYkt 9tZ7+jsWNZ3MxdpHxVMGUnSpekJa/4q8/Obo2BabqCQNckIKsPcd0XuiHNNmPSgcNCWzrD8Hk+k DTAiGVEwui+Zf8+igJlJXk7RGa2izblqxEPpONV40MqUziA8JFzE/+hjm27/DcmSJpHlcyuneYG UK7O3SsVs7aRbZomIIA== X-Received: by 2002:a17:90b:5306:b0:3a4:7195:ecba with SMTP id 98e67ed59e1d1-3b5e063169cmr3678152a91.20.1796513116615; Sat, 05 Dec 2026 15:25:16 -0800 (PST) Received: from asus-ux3405ca ([2400:9800:1b2:7178:4a34:8170:1f5d:d8ac]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5ddc732b1sm10181768a91.16.2026.12.05.15.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 15:25:15 -0800 (PST) Date: Sun, 06 Dec 2026 06:25:10 +0700 From: Muhammad Huda Nugroho To: stevemeek82@gmail.com Cc: manivannan.sadhasivam@oss.qualcomm.com, jeff.hugo@oss.qualcomm.com, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] bus: mhi: host: pci_generic: Disable doorbell burst mode for Quectel RM500Q-AE Message-ID: <20261205232510.MxJpT%mhudan21@gmail.com> User-Agent: mail v14.9.25 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Hi Steve, A datapoint from another IPQ5018 board with a different Quectel modem, because the signature you describe is the one I spent a while chasing. The board is a whitelabel IPQ5018 CPE (QDM530) with a Quectel RG520N-EB (SDX6x) on PCIe/MHI. It enumerates as the plain 17cb:0308, so it falls through to the generic modem_qcom_v1 table rather than em1xx, and it runs mhi_net + rmnet/QMAP on 6.18.60 (OpenWrt/ImmortalWrt), two Cortex-A53 at 1 GHz doing NAT, routing and Wi-Fi at the same time. The failure reads the same as yours: under sustained downlink the rmnet rx counter freezes mid-transfer while tx keeps rising, the link and the registration stay up, the MHI state stays M0, nothing appears in the log, and only a modem reset or a reboot brings the downlink back. It wedged after 30-43k rmnet packets, a few tens of MB. Where my evidence differs from yours is the doorbell. At the stall, debugfs showed that the host's doorbell had been rung and did cover the queued buffers: on IP_HW0(101) the write pointer was ~56 elements ahead of the read pointer with db >= wp, while the dedicated DL event ring had its read pointer caught up to its write pointer and the MSI for it had gone silent. That does not match a cleared db_mode the device never asked to leave - unless the doorbell I was looking at was written after the device had already stopped. It is a single sample taken after the fact, so I cannot time the two against each other, and I would not claim it rules your mechanism out. What fixed it here was ring depth: IP_HW0 UL/DL 128 -> 512 in modem_qcom_v1, which Mani applied as cc3a63ee69b3. With doorbell burst mode left enabled, that alone carried 648 MB of sustained downlink, 450,768 rmnet packets at ~2.0k packets/s, with rx_err, rx_drop and rx_fifo all zero, where the unpatched driver wedged an order of magnitude earlier. I also ran your knob, since I had suspected the same thing you found: burst mode disabled on the two hardware channels, on top of the 512-entry ring, same load script. 648 MB and zero freeze as well - indistinguishable from the ring change on its own. With the deeper ring I was never able to reproduce the wedge with burst mode either on or off, so this board cannot separate the two mechanisms. It only says the deeper ring was sufficient at the rate I can reach. That rate is the caveat. This cell gives me 25-35 Mbps, with QMAP aggregating ~13 rmnet packets per MHI transfer. Your 16-stream, 135 Mbps regime is well past anything I have measured, so if the lost handshake is driven by how fast the ring drains, my runs would not have seen it. If it would help decide whether the generic modem_qcom_v1 table wants burst mode off as well, I am happy to run whatever you would like on this board: burst on/off against a 128 or 512 ring in any combination, plus the debugfs snapshot at the stall. The combination I never tried is the interesting one - 128-entry ring with burst mode disabled - because that is what would show whether turning burst mode off is enough on its own, or whether the two are the same window seen from different sides. Thanks, Muhammad Huda Nugroho