Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796139315; b=XjiuwBNcKZZE9QbjT1HHbYMKrM7/G6h13LTLdWvCSgljwxMWx8ZqaUn9RhWIGA+JaDPu /WLAU45PK7V8Uzw4eP+RMO3Mv/t2Gjm//7vnjPyBR7ctvsSta17niCZwPHfd9Us3fEdjG HMW7Ocz0b2+XXTBDW27nl7KMf06igckQj+/uOOg5h6oyTPHqfwRl0JQVNYPYqP+nmgbGR GnvVxVzv+5bxQMQaTRzHDEyo8wLglGCsKVZvTxcwiwpxR/CONNnYGP/1KmsbI1SZmftc2 SMqp8CZ3HAmd86/5dte6LxWccfvPzv8zRxOBcBUyF7fiAHq3EMYD8ZOcdxXx5ue86tA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796139315; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID:X-Proofpoint-Spam-Info: X-Authority-Analysis:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=AzCX8RH1H4U7bMOWQO9HIQuWekyAM01tdNvWDmtE4yw=; b=4oPpzb55Goj6GHTv6G9D6JgZ/8vuBAnYT3ggQX9A2KwgcPQIMJ2uTgx5QfTvwYWzKWvD 4dh+w944ynVnFIgW8itDKTUEa1xvoccEWBgOdUNnnIgjX2ms1HwRg4ZsyQkxG4jU/o69s 734K5yM1gEubmorZNBVN69g8vl2T3Kho+3aaCY6g65s1LpUarkXeIfw142PdQECOcXuFt kpdQUUC4ROsQHxkkmwlk1VS1yax0JnpcOtu0H402GzCxZ7hwmI3bqqmO3OeIPpEpe01c8 LCOoP0hzjDpF97haKMVrHk0ao19J/pSriL1F2l7MygFwNNQlFrbO9Y2yubcXdrgNyvA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b="XqI437j/"; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=jrU3vq7m; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B15B606A325 for ; Tue, 1 Dec 2026 15:35:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9B15B606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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.a=rsa-sha256 header.s=qcppdkim1 header.b=XqI437j/; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=jrU3vq7m 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 6B1F6iF2085338 for ; Tue, 1 Dec 2026 15:35:13 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= AzCX8RH1H4U7bMOWQO9HIQuWekyAM01tdNvWDmtE4yw=; b=XqI437j/wGzsbV4b xuaH1B6jt9Ct0D9oh8X0EHXrBNdXMKixABOUUWhtKwSL3GS9C9IHM66N3MicCkSE uQCK62RLnYSBGrHuoi2A9f4Is/XtbIdVHX314531Kfi+na2U+F4wCDATqdLFXNCy dE5dwJ3ZYbVULZjt58CzO81A2E1r63f7FSniZv39REaa/B9qn/POxBxXhsw3GPp6 iEzq4RXZuO2Jns9926POHEpF/+XTa5wTE9vKtQpKiHgvWLCTruq1g6VKtd+vnteJ otVACBA5SEeX/h9l+YMH6TvKBIuHVUewtJGOOeMvxaNOunzqJOPs94I4Qop7r7ye vkCLtQ== Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j9vw793n3-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 01 Dec 2026 15:35:13 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-94965dfec53so112135885a.1 for ; Tue, 01 Dec 2026 07:35:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796139313; x=1796744113; darn=vger.kernel.org; h=content-transfer-encoding:content-type: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 :content-type; bh=AzCX8RH1H4U7bMOWQO9HIQuWekyAM01tdNvWDmtE4yw=; b=jrU3vq7mZMzQWrL0elz9TUwMVTH8z7tNwq0VTd44BcbdUsbneOQ83svK482HGHISM1 q9qtishoeQJWfItTYTGiAHO+nbJOxZvyV9Wn+hDFJ6eDE2jNKEwSC3yoD4jr6Q7a0cQK 53vCE7svhMBYldtDzWAcm2zoNFY55SkToz43Rk3oTR72uo+snP0rDNX/5C1n7HU78Wgn kveXJKtwEbyvVM8WOccbQT3wL0zowkVvymJE2lc5GiR2/hVT0cbRPKuAxpNwhFkiKcZC Cuy1uPzSh5ayFYUqt6vKWKwgPNeA5Gb2Wznfmr9TUkjATM47ZMQAV1mOtA+GoBDEKtMp JZGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796139313; x=1796744113; h=content-transfer-encoding:content-type: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:content-type; bh=AzCX8RH1H4U7bMOWQO9HIQuWekyAM01tdNvWDmtE4yw=; b=B/BOGKb+JY1hLBmCCzyVGxXWbNIRkFkl8azmfm5qlZjdm6wa91vbbGq96iPoyAiYZY Ko8ij6Z0kJhw9H6wbaZlYNdiiwzuhwUDDSJ0qAMkPwSkdiEcqdQRmXe+t2idtd77sAaC ogSUOcWXediZcBOeJQ9gnrUBG+E738VHAfU9p+zpa/TEDxTi3kw70ql8VAMXGpFGn+Xf piRiuU9i2TlmCvo/q2XDNoAnLyVUA3sHp76U90/HaZWgQgdpSaYr68dJcL/qTKcoI2L6 MSEafEevUXtVDpRN4N436Tk1pgh1CoM57MVnl7oca/ZIL0s+bhiPArl14x/o8rTxcRv8 /qAA== X-Forwarded-Encrypted: i=1; AL+hErFj3SejAICSLbsqUL608WJo9bm4DPAreXLA+gvy1sgqfOlGG3OhNko7E75enHn7wl7++yp4uweCXSwAX41G@vger.kernel.org X-Gm-Message-State: APuU4Z86Dx/e4Tfu69ins3Nv13qEFfUYavGlWbeXKQJNn0zVuRfTOxc4 9Shx9NhaFnEDxVZII8PNyl7qpY1g6UgJoaNIPhkAgbAAHka2QseORozCKWm1jIb21C/OXXtWsgY q/FGc2V+0u054zk9x+GxViItL4ouXDZyY8FHPoQyD9QqjiFYyzapWrauj9KmQkru0g1Al X-Gm-Gg: AZFdTZfpMtSfc8SUCdIwsZUx03sqBkf/0Hf/pPRg0dsxgbFCK+757cXPcxYpW+lBjXS dOMSba7XUZI4jufCaOmXoNK2geHGNKRUDXa3lsowvBC6pQFQaKg/ufL4hPLgIMl4bv/hfRqArSm l8DkDCTbcZ0KmK1nuVZh7LfqJDEAH5i3txu1tmy6qmtoMVgim6fMd9fti1jt523zlOPbGrtvhKa dMeOMiC4sXBKXntcWHFXTzwAkoWiwYx6a0e0R0fBDdF/gx3khum0MJ+VDpWia0n59JkNJfYJOV1 4r71wEUUUTps6D3iG+rQq6xVw/33F02tVrYhVrImStn5EOyHNszu2w/CsI+f+z/QBAXRRXMe/i/ CEmRF2s84IKKQnneqkMKXxnf7keawbrO928sWdadSOzRrBPTGSl18gC0k71+OGLO+/tZ9nQ== X-Received: by 2002:a05:620a:8cd:b0:949:821d:98 with SMTP id af79cd13be357-949baa042abmr6798316985a.4.1796139312690; Tue, 01 Dec 2026 07:35:12 -0800 (PST) X-Received: by 2002:a05:620a:8cd:b0:949:821d:98 with SMTP id af79cd13be357-949baa042abmr6798310785a.4.1796139311936; Tue, 01 Dec 2026 07:35:11 -0800 (PST) Received: from [192.168.226.72] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513b03723bsm1255190266b.87.2026.12.01.07.35.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Dec 2026 07:35:11 -0800 (PST) Message-ID: <39a8f015-48b0-4841-aea0-94945b8934da@oss.qualcomm.com> Date: Tue, 1 Dec 2026 16:35:09 +0100 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: 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> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20261201062155.1264654-1-felipe.infante.de.castro@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDA2MSBTYWx0ZWRfX+eX5IxFFOln2 5RPab0nsPRQjYpVlZg4BiTcfPar/a4/qdFDkpxc6tQw8q5gxn+DDzaVL86zpqq+1fVKVZJnX0NJ rNFMouyaPr36Vz8ux/9UJdZzWDJ4Cj09S/rV9V0rxrMsnZLffsitbbie5ewt7BCxPZ6FEVjcYkR Iteew4KP8wVbg9ORP/i/Iz6fAe8jI+eF5JYqO5q1Qfi3BcvvimQh7MfeyvriXCJN+MIWRrODejP og+T6az+xHGuIWSRd1XGWcDvNw2mYsHwDYh9LPLyD+H9+fbiWfdpxMOcPjYM1E1OjJCKYCWPjKN 9h0XXPOkGdT/Afervp3PoosypE+Rv+qw1Qq60q9XK7MB4m5KC0wYIXqu6o2tjLWADEmF6vh8AYa l/+qhsoYZN85zkX78IujPprh4+66MLvqscwWBN1bzmxhhXzoXEfvuMxBnocvTWGjRjxcs/OAjxb Tu/t9DTKc5kDRitQXpQ== X-Proofpoint-ORIG-GUID: QD1JxrXVaQ_zy9bIOTCjdLJJYuOaKGPi X-Proofpoint-GUID: QD1JxrXVaQ_zy9bIOTCjdLJJYuOaKGPi X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDA2MSBTYWx0ZWRfX2dmh81s8IZd4 KZhCBjgjDGo1BOA0/5q+J9ltGTyc2iUVJyH4N9+99/NaU+ENi8qLzLzAJ/Igeel7uOx+rxl532E 3DxEC3pBeDY5FEhu1hWb31ut4Vfm63c= X-Authority-Analysis: v=2.4 cv=AItH9idw c=1 sm=1 tr=0 ts=6b0ee931 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=RU27Sf32yozNDqohChkA:9 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-01_03,2026-12-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 lowpriorityscore=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612010061 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. > 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! Konrad