Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.189 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796433475; b=4W/x8eok87XnPGdo+/Qp0SNkHY084IbX5GyAEZGuDQ/ax2jsALh7uRTJ9ntxWh7yqkNH hK24emgGNTtZwW+DWymUJmzTV1xepWolwRFENuEEflIqZ65QxnEnZuYDxMTbhz6n3+esA 2cdv2tKhpz6EKAafd89TTbg6PlK7z4q0E0AEJYRf91ya6/Tu3UaWxyjOqVGZ+X5zJMiaR 1JJfv/5mzLI8NA+YC5vbwce79ff0FJyVOUPvMMHAKLwPOw0er2J/WQAZOyt806P2iMmPw Ificzv6BSMk16AujD+a8v6LoMG+ckjk6mNiSIOtzZAaJHhX9Irg84Y6UCGMPfRdAxOA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796433475; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=oBf3/ZJS2bIWQLo91xr/5zBLMlmh4Oo56KGeUrc7wcI=; b=HhKnBTMxL/oQSdL+tagzp/NAsxuIijxHY5Mm7ryd+j30vlz2nD5Y29y56ALwnmoMXVMe NyQPbd3/BO0Oo7iHc53hDyD4n7Z31isHnk6h4Z0V9J8ZSaDgFEaBYdSwptm0RuQClS3ZS HyxWu7o3SCeblQedVH66Qyb5jestwlGfdlQqX/lPK6NTqUwwl9uY8HJ3aqK2a07GYbU35 0ipi8bQg1k79ORf/k8LfF5acQEoQ2Kdxpamx5DUdELKPFT+OL/QMcC81oCshi9f0zYJ4P vj/o130OB+MY89PyPcWwuaDiu8got16nkZxHwAmmfSomMTduh/hOsLaZIXf3wmCNqeA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=packett.cool; spf=pass smtp.mailfrom=packett.cool; dkim=pass header.d=packett.cool header.i=@packett.cool header.a=rsa-sha256 header.s=key1 header.b=Xqkp76Ik; arc=none smtp.remote-ip=95.215.58.189 Received: from mta1.migadu.com (out-189.mta1.migadu.com [95.215.58.189]) (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 B6B32606A32C for ; Sat, 5 Dec 2026 01:17:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B6B32606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=packett.cool Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=packett.cool header.i=@packett.cool header.a=rsa-sha256 header.s=key1 header.b=Xqkp76Ik X-Envelope-To: linux-arm-msm@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=CFqrh0kF9ju5xN+8pVQM2Bp2h9GZDpbZRqX/Cjrq0LI=; c=simple/simple; d=packett.cool; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796433471; v=1; x=1797038271; b=Xqkp76Ik52qtb/yQSUYvoURLBuvDvFQBd0oVzQNxqLV+eRy0MG4SYZT8Pa0n2EeHqaHLdz9Y g0VnGqAX0shekI76KcKHi/F2wa2p5rWsvIR+YgPuNaqd6aMyjS4n+ccr+woH+huFcgqrUXVFX4D AjIs44s5ilfg5LE3G38m0nzO4W4rhUfqnabacR/Yv+Tc9o8RvXGQL131pokyawfLh0zdy2HPv2S G2WGBslBb3tm6Lu6oO+hxc3yqBIeDWlgehLfzf83UyfD3xUIFYfQjSvYgSGU5sK0ImpX14mIXW7 tlL/gkrqv3rvGFDEs6Nu9pKOtduqdmpBG3GDQCgxiKuZw== X-Envelope-To: linux-arm-msm@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id e16d714feb9e5a35; Sat, 05 Dec 2026 01:17:51 +0000 X-Mizu-Trace-ID: e16d714feb9e5a35 X-Migadu-Flow: FLOW_OUT Message-ID: Date: Fri, 4 Dec 2026 22:17:43 -0300 X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC DNM PATCH 00/15] Qualcomm USB4 host router To: Konrad Dybcio , Felipe Infante de Castro Cc: Birk Skyum , Mika Westerberg , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org References: <20261124-topic-next-20261116-fsm-mvp-v1-0-a9b45c69cd38@oss.qualcomm.com> <20261201062155.1264654-1-felipe.infante.de.castro@gmail.com> <39a8f015-48b0-4841-aea0-94945b8934da@oss.qualcomm.com> Content-Language: en-US From: Val Packett In-Reply-To: <39a8f015-48b0-4841-aea0-94945b8934da@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/1/26 12:35 PM, Konrad Dybcio wrote: > On 12/1/26 7:21 AM, Felipe Infante de Castro wrote: >> On Tue, Nov 24, 2026 at 09:01:29PM +0100, Konrad Dybcio wrote: >>> Said state machine is an attempt to tame the delicate clock setup, >>> which if we don't get perfectly right results in the machine hard- >>> crashing. More on that in the big comment at the top of the driver. >> Hi Konrad, >> >> One data point on that from Hamoa, in case it is useful when the driver >> gets there. >> >> On a Surface Laptop 7 15" (x1e80100-microsoft-romulus15) the SoC resets >> about 50 ms after the host router's USB3 adapter is enabled (2 of 2 >> runs, either port) unless the router's USB pipe clock has a vote: >> GCC_USB4_0_PHY_USB_PIPE_CLK (0x9f0a4) and GCC_USB4_1_PHY_USB_PIPE_CLK >> (0x2b0a4). With dwc3-qcom bound and awake their CLK_OFF bit is already >> clear while the enable bit is still 0, so the status alone looks fine. >> Voting for the clock before the USB3 path is enabled removes the reset >> on both ports. > Some clocks have hardware controls + the status reporting on pipe- > derived clocks is sometimes hit and miss > >> This is on an out-of-tree stack (Jim Martin's Glymur driver extended to >> X1E80100), not on your series, so take it as a hardware observation >> only. USB3 and PCIe tunnels both run on that stack on this laptop. >> >> [..] >>> It requires >>> loadable firmware which will be posted to linux-firmware soon. >> Will that include the Hamoa router firmware, or Glymur only for now? > Both are now merged in linux-firmware. Yay! >> I can test on this laptop (two USB4 ports, PS8830 retimers) whenever a >> version of the series covers Hamoa, and report back. > I have the exact same laptop at hand, but I'll gladly accept your > testing when that's ready! FWIW, I've been testing the unholy combination of this series + my own hamoa dts definitions + temporary PCIe RC driver from the early unofficial slop attempts + my modifications to this series to manage that thing's lifecycle: https://github.com/valpackett/linux-qclaptops/commits/uwu-next/ AMDGPU works great, even hot unplug of it :) I do see a bit of AER correctables but they don't seem to impact performance much at all. Did NOT need to mess with USB3 clocks or anything. I think that's just because of the actual *USB4* part of the slopinated attempts was absolutely horrendous, confusing Glymur/Hamoa differences with cold/hot boot ones, etc. (I needed to unslop the PCIe part a lil bit too, heh.) This RFC series seems to handle everything very well. Thanks, ~val