Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp934963rdb; Thu, 15 Feb 2024 23:12:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUlUXojNPIxcalJGxMX7ESB8rAMflhPmuqvLtiOwAt6nylcizYdUMe9doPbYWyFuiJ3zQZ4grFw76LEV4LgZ/9g9V306GUVWjdJvZGQOw== X-Google-Smtp-Source: AGHT+IHHOxRwQLUmcQYpGbJDSJBzVt5OMuLgTfoycvtZ8w+0S5JwrcUAcT66ltQkiBIWEVlzP8b/ X-Received: by 2002:ac8:5d44:0:b0:42a:a6ff:c889 with SMTP id g4-20020ac85d44000000b0042aa6ffc889mr5002216qtx.39.1708067553829; Thu, 15 Feb 2024 23:12:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708067553; cv=pass; d=google.com; s=arc-20160816; b=UzwEaEUXRUJb8BKGEzmj4GIONNoZ380/DZl6i5jmafNS22QC8oquP1lLz3mNKnAoro KuilB6rWTVAEe55omGaLs8YjBQnf55o9wcRfJ9zhcMEOJ8DefdjMhpMSem5SV8IIRdme 3/FYG6RMW1xEQo7LU9CYYgnodMquJGk7b6TvaLVRd56ciGMowCNaLtX/uGmQZj4nws/R ZHUf79ejDQiQSXen6Oem2RrLpFmc9HKOKB2PkY//APS9P8ER9unhcrZKFlqiQpWo5qbK DUT1GGQPbPhgpP6fhnd2RKxjOfy2dCf0PMUZ2vPt7oQ1nW+UEBBUfBgAoIjoKmrUd/2O 4Cbg== 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=HEmrd5z6aeXHuMI1vgix5qcdU9BHP2J5DhKez2E58e8=; fh=AaFZPM+2yYp4rqys15jDFt6sZ5uor/yj9Yogm8H23vk=; b=plv/Qo9FkEhS3JRQBa3QZDmyS8yQFu8a7LMkwdz0ZnKYhDlTeMPDIf+PLiSu/+x9MN FjwPCUaftmq9XBJy6odLxwfg84ExV6rvUbDlDD4l4iilWrLiJm5qrbswcZYsMvhboSpN VLf/ZGXDRbEPze5KY54CDuoP8peZFud7YmCysz1l0C2e/iFQJrrKjC3TAhbTwv4vSFnR QmvfKRpsqRGX4eZlaYqnUbzlj6ezQUzVX9S5FD+K2g5YkfBw2U0dfT6DeX5WVWNUrxyb JwEtLwD+kLlPRG64T3QecXnsRO4rYOb8lmfS4u7zXDZEo/xJoLqR5SCZbCbLcpA1/TIe Cahg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=alHXaPCN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68159-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68159-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. [147.75.199.223]) by mx.google.com with ESMTPS id c9-20020a05620a200900b00783d5831645si3344209qka.666.2024.02.15.23.12.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 23:12:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68159-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=alHXaPCN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68159-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68159-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 88B5C1C22F11 for ; Fri, 16 Feb 2024 07:12:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59EBC156C2; Fri, 16 Feb 2024 07:12:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="alHXaPCN" 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 7596114A8D; Fri, 16 Feb 2024 07:12:23 +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=1708067543; cv=none; b=A9n51kLEy5N8PvcfjSl7ngi3iLJbyVZoCAIrVTLJ/5FX1mf9dx31lha/xU+O2YhtBtD3q4pweFbkgLj6ZLtzk5Rz/kldoT5QCQQgBhJZTCevLkju29qqGzt/b4KuxJszn4jHkekO46AMybk+doxuAeB+IQVyj7akx5wj8tLr2ws= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708067543; c=relaxed/simple; bh=HtwgK76BJgzohi2w2UJNqP9aZjmgBVag21pZ2hU95YM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fPDjDk/y5MKvY7R3ZhrJwbz6gKzZR3Q6k8bvUeqj9QAcQn54dVe5IBfaHdQgHOmgt+fSCvmfXUSH5LkhXRer2aBXV6ugL6nnyKrQ9gMYoP7qikmdswwv6WhSdRBsJZxx7WpRhFGZdnq2PdSdPHJXc6Wx0hmvatS+PNjOLOZVndg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=alHXaPCN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDBA7C433C7; Fri, 16 Feb 2024 07:12:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708067543; bh=HtwgK76BJgzohi2w2UJNqP9aZjmgBVag21pZ2hU95YM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=alHXaPCNsxUoOuKXujDeBdvf8UA1rowS1obpBU3eG71FeQ1/d7OWohJI7PEonR4Gt oZSo4iq5D+yZiN/OMjirm7jHf2cnD8H+8BJOaISbD0fuCowvqUQENGWTXagnkXaV/O r+Q5Tk1gCj6w4mFUQ1vBccpeA6m065snRq+inzFHS0rA26F6Dkzx7mOIGGp9/4mbJZ 9bF5nOUGMcApbbx6Oe0YbvcsvSvKYUvBctd5Zzfo+XfIE342vn5o/6x9n7creP0oXj +8KqwLrAfpHlZXmN6R47xj87svi84n6NHqby8FscoHfpXVGf/XqOQjL5oNI9cg1dUK igyMgPYzFiQ7Q== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rasOs-000000004Ug-1LYi; Fri, 16 Feb 2024 08:12:47 +0100 Date: Fri, 16 Feb 2024 08:12:46 +0100 From: Johan Hovold To: Konrad Dybcio Cc: Johan Hovold , Bjorn Andersson , Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 04/10] arm64: dts: qcom: sc8280xp-crd: limit pcie4 link speed Message-ID: References: <20240212165043.26961-1-johan+linaro@kernel.org> <20240212165043.26961-5-johan+linaro@kernel.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: On Thu, Feb 15, 2024 at 09:47:01PM +0100, Konrad Dybcio wrote: > On 12.02.2024 17:50, Johan Hovold wrote: > > Limit the WiFi PCIe link speed to Gen2 speed (500 GB/s), which is the > > MB/s Indeed, thanks for spotting that. > > speed that Windows uses. > > > > Signed-off-by: Johan Hovold > > --- > > Hm.. I'dve assumed it ships with a WLAN card that supports moving > more bandwidth.. Is it always at gen2? I don't know how the Windows driver works, but the UEFI firmware has brought the link up at Gen2 and that's also what Windows reported when I checked. But I was not actually using the wifi when I did so. But yes, it seems we may be limiting the theoretical maximum data rate for the wifi this way. As this appears to fix wifi startup issue reported by one user, and allows us to enable ITS and AER reporting, perhaps that's acceptable until the Linux driver can manage to scale the link speed (or we figure out a more elaborate way of restarting the link at boot). The PCIe link errors could also indicate that the wifi can not be run any faster than this on these machines even if my guess is something is wrong with ASPM implementation. Hopefully Qualcomm will be able to shed some light on that. Johan