Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp408404lqb; Sat, 16 Mar 2024 09:01:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPM9Fsmh9E99vEvmabnBaZbfVLV/gEcilvjPP1MLtYHyHdFFDAAavr/gymp31j7aodoya70WXqruZYF3deLI+f+EBMR/q6Odt0hWQmRQ== X-Google-Smtp-Source: AGHT+IGR1qxEpzt+kbo+s78sPNhvNEF4H15oWDaR1fSdxyEY5JeOuUWVZS1/U8GMPuQjo/vz7vBb X-Received: by 2002:a05:6122:98c:b0:4c0:9ed8:57b3 with SMTP id g12-20020a056122098c00b004c09ed857b3mr5980285vkd.1.1710604898359; Sat, 16 Mar 2024 09:01:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710604898; cv=pass; d=google.com; s=arc-20160816; b=c+A3FjNhPJ9JZMNtL1a2sKsTOiB+cM82efPTlOhl+3J4p1j7QjgQrH/DNiRtr8BK+s ilz/3efU0p4iwq9dUJnsEfjaJ2md4j9EQ/SmvdAtM664iUitJvGVTaf7BO/8ZQiNwQlN JOsrteQCk4vvTKFOckf2/c3DTDazAFT65J/OcIeTndS6AmhTJD+E0wVUdDvbo+tajpsb 5Jwcw/vEyymRRpoFlXA6h9WtQDCArdu8C2/Ntq2uVrKj5jQAUx5u6dE5hy/vCJzTYP5K jYbXsA7C7GQy5oglY/VBX+L6SBzucdaCI1LXUvwF6dd4PnU9eN++o2Tc0Fn5G0K9QuII 7FZw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iSJqVctLCEETMaMHyfqG7RzCXqI47+VOzg8c0bKE3U0=; fh=TrLm+o3+kr98qg4S7lluPa+K+GfzS9fnq63igyQ93qU=; b=jsPJvAfXt1B/yg3/XrS02HXLSqOvh/g/++SNw9jGsTBhCEpJelKviTK2U7Wcs1jQVT hF7hElLkWeYsSd6lNDIcnyE/wzdY7JQdpmmlCNzrLTUhthPc84TfQEbvN0X46JWIdDBs hCX5YWyBm0xVWLeu7vazPAXMrzRkzdV3F5f7Uqqg9/ZfQ3ZXKP8Wmw3wEHh8Ca7sJp+h cgSi5JdyuX90LsgzMbjOyyqfo4q7Zu/uNUKCKEkUhlNAYJFmHDwmg7bEnEwnQjLsOelc ed9Gjatg5CXoh8wcjpxwzanlY+sEtmVUc+/z62HP7QCC9L1a4fBXwB86Al97ZR910Ro0 6JLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AxHeZiVm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-105217-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105217-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 32-20020a056122072000b004d3c93cb2f1si861204vki.18.2024.03.16.09.01.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Mar 2024 09:01:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105217-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AxHeZiVm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-105217-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105217-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 141D11C21445 for ; Sat, 16 Mar 2024 16:01:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1BAD1BC3C; Sat, 16 Mar 2024 16:01:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AxHeZiVm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EE3151B299; Sat, 16 Mar 2024 16:01:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710604889; cv=none; b=mzbIAJXVDN9WTx2ZBrWrsT4KRDOz/KzgU6HJqbyBtsV0RYwNc/ezEHiwH+oKeOMi41Bv2K2gFBL3oR+CYdt/QsrgibhEMS3MgWg30qgzG2FmfXYvD0FiGqBK9RhHeanzq/G2Z3r2Bs6d03vH78iUkONS9+ZJHPtCNmV/CQo/6UI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710604889; c=relaxed/simple; bh=E8gpcSQ4g+qjnbdy6/BOeXM1PQg+hZZkOsNPJV1YA+Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AepKFr1nKXoopRKzVOlLYA6pHYsS9kYjxdfBpaXkxziLdepqvCMwkOiEDEfBOYin5vR1LsKOtIYps+rxDGoNBAoOJHhyqpfwSRNFq+TxLpBdzZU6yH+piDTtyNkAzkUEkao+c+McPRii5fvn5Q7+zRPsH77k4O6ygNOJvLOmqf8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AxHeZiVm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C8A9C433C7; Sat, 16 Mar 2024 16:01:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710604888; bh=E8gpcSQ4g+qjnbdy6/BOeXM1PQg+hZZkOsNPJV1YA+Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AxHeZiVmueWwHy/Tvld9s1FsYsofbgvjQqJ2wBze7H2Ldfmdu8z7WJLEENRkvB5yl +V+3+DpToZpyT4Udw0s11ZnxK5g8V64EfNBOR3yqSf93PzbuxpC0okzC9hLGbXXp9m +GbxG2BGQaXUPbqQMcvOt7/yfxuqZ5KDIQWKTQLUpPknoYGH5nK7HHlbXWqmBHk5EN +xNSK0vBWcRoaeVX7/s4/sN4NoZkg9qLcQeKmNBETBHt+UoLCulQ4SGT09pi2F6MGC wWXuQUfkk8uIFBv32otHrlN4K+L6xTWfO1aYXwMzSzq793luTaZ6+j+20V/3yj8x5H rQhSiewwWp4GQ== Date: Sat, 16 Mar 2024 11:01:25 -0500 From: Bjorn Andersson To: Neil Armstrong Cc: Luca Weiss , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abhinav Kumar , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFT 0/7] arm64: qcom: allow up to 4 lanes for the Type-C DisplayPort Altmode Message-ID: References: <20240229-topic-sm8x50-upstream-phy-combo-typec-mux-v1-0-07e24a231840@linaro.org> <7a7aa05f-9ae6-4ca0-a423-224fc78fbd0c@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7a7aa05f-9ae6-4ca0-a423-224fc78fbd0c@linaro.org> On Fri, Mar 15, 2024 at 06:35:15PM +0100, Neil Armstrong wrote: > On 15/03/2024 18:19, Luca Weiss wrote: > > On Thu Feb 29, 2024 at 2:07 PM CET, Neil Armstrong wrote: > > > Register a typec mux in order to change the PHY mode on the Type-C > > > mux events depending on the mode and the svid when in Altmode setup. > > > > > > The DisplayPort phy should be left enabled if is still powered on > > > by the DRM DisplayPort controller, so bail out until the DisplayPort > > > PHY is not powered off. > > > > > > The Type-C Mode/SVID only changes on plug/unplug, and USB SAFE states > > > will be set in between of USB-Only, Combo and DisplayPort Only so > > > this will leave enough time to the DRM DisplayPort controller to > > > turn of the DisplayPort PHY. > > > > > > The patchset also includes bindings changes and DT changes. > > > > > > This has been successfully tested on an SM8550 board, but the > > > Thinkpad X13s deserved testing between non-PD USB, non-PD DisplayPort, > > > PD USB Hubs and PD Altmode Dongles to make sure the switch works > > > as expected. > > > > > > The DisplayPort 4 lanes setup can be check with: > > > $ cat /sys/kernel/debug/dri/ae01000.display-controller/DP-1/dp_debug > > > name = msm_dp > > > drm_dp_link > > > rate = 540000 > > > num_lanes = 4 > > > > Hi Neil, > > > > I tried this on QCM6490/SC7280 which should also support 4-lane DP but I > > haven't had any success so far. > > [..] > > [ 1775.563969] [drm:dp_ctrl_link_train] *ERROR* max v_level reached > > [ 1775.564031] [drm:dp_ctrl_link_train] *ERROR* link training #1 failed. ret=-11 > > Interesting #1 means the 4 lanes are not physically connected to the other side, > perhaps QCM6490/SC7280 requires a specific way to enable the 4 lanes in the PHY, > or some fixups in the init tables. > I tested the same on rb3gen2 (qcs6490) a couple of weeks ago, with the same outcome. Looking at the AUX reads, after switching to 4-lane the link training is failing on all 4 lanes, in contrast to succeeding only on the first 2 if you e.g. forget to mux the other two. As such, my expectation is that there's something wrong in the QMP PHY (or possibly redriver) for this platform. Regards, Bjorn