Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp485902lqh; Fri, 31 May 2024 07:27:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSHYE4h+sUsZzwAPSLlJ87yBefsm7FBV7OmkMUSFKQypi9yXumzSietVRmQDjiBCxtmWWZAHO5OvcHwqIjyzQ307xSaFV+DWtoQia1rA== X-Google-Smtp-Source: AGHT+IEwrPSbZJ9JKMYXYr2ssGgrFT5ZFWTot+HloI38P0FBujSX2VUIfG3JpGRgIqgvDMMaWalW X-Received: by 2002:a17:90a:df96:b0:2be:b9:da18 with SMTP id 98e67ed59e1d1-2c1dc560b85mr1868846a91.2.1717165633576; Fri, 31 May 2024 07:27:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717165633; cv=pass; d=google.com; s=arc-20160816; b=nTjfhPLXjJW0gT0Rr5NIeCruET+Hw8DqV1eYHSL+3VNg/9robZfoao0qPBR726XNgW 8JQPH1SNcQijNklGvtUHwcDmg1f5Wy7xR9cAtAfxawi4D4hYWPTSZiu2WaUf4/ZN+KzA c5S0Hm64Fiezxynm9LJR7oJD8M/C8hpOtDXaKYC+X3dIxfb9cqE9eAqf/qZ3xiJFQN9I T3+tn5DEpGJ0egNVxcKHOwGMOiC76+v/1/ugKKDtAqkUccPLUUSJPZXNBjVQoNspC7LZ rQH0aiMGJ7CuIaDnqsPpvCpYlaLVQn3wqHkIWBEC3TtEFsunb3H2HVnPoxPFpe0YStY/ tN+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=TFd7dzhMFZkIzJzGiLdET+zEuG1GiWj/+wfLNFxwkBg=; fh=adw3SkMjKA8pIb32AADg+7roEpRiwlQZlCke0lKrKNQ=; b=EcHBkxJk44CCTTLmJ8VvfrFFgc34J7bbGNgLvLMoyrw8WLeSVrQjDrGdqvLB9HTDvv zCMs/DKguOKy3Laz3zjCXZgRIpO92YH9goBm/kIunmVwKtUvvktK5i3kUtGkV1+mixHY /3w6VLqnIppL+zmZs+qCiYd3XATIY8ShNAQ6MFGcDOFao3U6RWngxukVEpJ0XPu5Ow/H exSmzNJdlCaqkptmplZSfiY1B5WtIs4M7TCjMWbBcGOKiSqfOnHGRN8ZdlUvtOnyGVr3 +qzf0174i12ELjXY6afSujPZHH+TUf049/Q62PsNmLs4luhhDu87QqBgiuqGcbuk89wY nJFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yFhP3Kl2; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-196972-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196972-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1c284e51asi1628044a91.173.2024.05.31.07.27.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 07:27:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196972-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yFhP3Kl2; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-196972-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196972-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AD74E285DC0 for ; Fri, 31 May 2024 14:26:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FE1A1D543; Fri, 31 May 2024 14:26:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yFhP3Kl2" Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6DB31CAA1 for ; Fri, 31 May 2024 14:26:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717165566; cv=none; b=hmaf8zkL9/rFkCvO86el/F540g+RgBgWUv6BBQzbralt6vrxhJtrdCFb7z3jA/Vy2jQgQdfdveg0o5zIGNJ7zgGRbe8kg54EzCMHkVEye3GjRxwe+VTBuTcXV5g4V+KfH/JPHmsgvFlmZvS/gdNLkYVf89oMCHepIiqHcs4pR9k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717165566; c=relaxed/simple; bh=LqRcRR1cFi1+thtnTUt29DnULSfs9Z8g1CGzHs6MSzM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PcHmWlaUXBjVO+qiCU/W26wN8V1Dk6uePmuf7uouU3qpFFEs1s0yzVc0DMb9k4K00vcW+kh2og2Ta8qox0T5csXsDWC6iE38ndTPGqPZEMsT9qOL4kPpVjzrjc++I8GYpqOK1btWAkMqZJ13vcBjL0AqfqQwB/Qm2MvA9taTuio= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=yFhP3Kl2; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-52961b77655so2515872e87.2 for ; Fri, 31 May 2024 07:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717165563; x=1717770363; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=TFd7dzhMFZkIzJzGiLdET+zEuG1GiWj/+wfLNFxwkBg=; b=yFhP3Kl24gu2TI/vB4R3o+qc7gEIlb4beXVBcXn1mGUPYmmYVqtu8BpzyVyEmVB3hj jsQ0/wsW3n6dnlpfw+gGeBMhip+dHxCyn0YbZK0tB+mx9PoqZuO2PSoRgJIEL7/e5idB VNECOq4BSvweoZSf9jSCTnEnCgDTnMcrGYULzRrwJ9tme/i2HFCAx1d10NIkiYn/HA6C +hkXpl+/3+GLg32HV9hnm8pUJe9WYaQY2ZJLcTtLgYLiXxDctSLwNt0/Eq+5ejBrBx1e 41hQWVE/1LQg0xoIed1/T/xwGqLBDverk7OLTJ8cSzdCMZTG0UJ/U48inv9JwVnCrpVS 7mcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717165563; x=1717770363; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=TFd7dzhMFZkIzJzGiLdET+zEuG1GiWj/+wfLNFxwkBg=; b=vel7bUChhM1nw7KWdlDJ3fEwht0jfOxWuxMN4LaDauUeZf8FHW2b6gvvAOwImwQa+I Qk5AsP4VagtL3Bfu9Slm6OnF12ny+X4/Y5ip64cy1zOdyEG/tPYW8tiUna6aHG0nWwA2 jy8aVM2FurlgfBW3uLrUAqHDKKlFA1v+IXq60eW8EGO2+zDsILIBx3S2azqINvLhhmmt qjsBTlYrf2/yrO1H1R0KirtJggHuKExiyGmzlsO78zs0q7nNdZPbnxU+YL0HLjtsKe4W 4UPo75D3B6RvDj0RPz7GG8GFcR5R7yGgTltmxeAEoudzhTCs0b5INADLiLdohNDrJ9xS 5g8A== X-Forwarded-Encrypted: i=1; AJvYcCVySUyE9NDflNjrJ9nHIF2MRGqYaWPJUftES7fpus50Yl5wJEqnwDTsNWZLu7VMjLKWgYsjkW97zbcTSka+If1X4FcDyGoDhj5BiTiT X-Gm-Message-State: AOJu0YwyzH8+5DPLGUclLEP2KRGEPKkhtIJV2GDcAzxSvDUQwX8BZrgr k71DkAMO82fS/LRGwkgT80W13y8wFPqKzUrAJ/w4VUJUZvu9AjaWjUpFW+CjKXw= X-Received: by 2002:a19:4314:0:b0:523:72b8:8002 with SMTP id 2adb3069b0e04-52b896b4832mr1292417e87.30.1717165562633; Fri, 31 May 2024 07:26:02 -0700 (PDT) Received: from [192.168.128.139] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57a31be6525sm1085330a12.56.2024.05.31.07.26.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 31 May 2024 07:26:02 -0700 (PDT) Message-ID: Date: Fri, 31 May 2024 16:26:00 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/2] Disable SS instances in park mode for SC7180/ SC7280 To: Doug Anderson Cc: Krishna Kurapati , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski , Rob Herring , Bjorn Andersson , Conor Dooley , Stephen Boyd , Greg Kroah-Hartman , Matthias Kaehlcke , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, quic_ppratap@quicinc.com, quic_jackp@quicinc.com References: <20240530082556.2960148-1-quic_kriskura@quicinc.com> Content-Language: en-US From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIEq+wH/toH kpPDhT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5wJ9tb9U/nZvhhdfilEDLe0jKJY0RJErbdRHsalwQCrtq/1ewQpMpsRxXzAjgfRN jc4tgxRWmI+aVTzSRpywNahzZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 31.05.2024 4:17 PM, Doug Anderson wrote: > Hi, > > On Fri, May 31, 2024 at 5:33 AM Konrad Dybcio wrote: >> >> On 30.05.2024 3:34 PM, Doug Anderson wrote: >>> Hi, >>> >>> On Thu, May 30, 2024 at 1:26 AM Krishna Kurapati >>> wrote: >>>> >>>> When working in host mode, in certain conditions, when the USB >>>> host controller is stressed, there is a HC died warning that comes up. >>>> Fix this up by disabling SS instances in park mode for SC7280 and SC7180. >>>> >>>> Krishna Kurapati (2): >>>> arm64: dts: qcom: sc7180: Disable SS instances in park mode >>>> arm64: dts: qcom: sc7280: Disable SS instances in park mode >>>> >>>> arch/arm64/boot/dts/qcom/sc7180.dtsi | 1 + >>>> arch/arm64/boot/dts/qcom/sc7280.dtsi | 1 + >>>> 2 files changed, 2 insertions(+) >>> >>> FWIW, the test case I used to reproduce this: >>> >>> 1. Plug in a USB dock w/ Ethernet >>> 2. Plug a USB 3 SD card reader into the dock. >>> 3. Use lsusb -t to confirm both Ethernet and card reader are on USB3. >>> 4. From a shell, run for i in $(seq 5); do dd if=/dev/sdb of=/dev/null >>> bs=4M; done to read from the card reader. >>> 5. At the same time, stress the Internet. If you've got a very fast >>> Internet connection then running Google's "Internet speed test" did >>> it, but I could also reproduce by just running this from a PC >>> connected to the same network as my DUT: ssh ${DUT} "dd of=/dev/null" >>> < /dev/zero >>> >>> I would also note that, though I personally reproduced this on sc7180 >>> and sc7280 boards and thus Krishna posted the patch for those boards, >>> there's no reason to believe that this problem doesn't affect all of >>> Qualcomm's SoCs. It would be nice if someone at Qualcomm could post a >>> followup patch fixing this everywhere. >> >> Right, this sounds like a more widespread issue >> >> That said, I couldn't reproduce it on SC8280XP / X13s (which does NOT mean >> 8280 isn't affected). My setup was: >> >> - USB3 5GB/s hub plugged into one of the side USBs >> - on-hub 1 Gb /s network hub connected straight to my router with a >> 600 / 60 Mbps link, spamming speedtest-cli and dd-over-ssh >> - M.2 SSD connected over a USB adapter, nearing 280 MB/s speeds (the >> adapter isn't particularly speedy) >> >> So it stands to reason that it might not have been enough to trigger it. > > In my case I wasn't using anything nearly as fast as a M.2 SSD. I was > just using a normal USB3 SD card reader. That being said, multiple > people at Qualcomm were able to replicate the issue without lots of > back and forth, so I'd guess that the problem isn't that sensitive to > the exact storage device. I will also note that it's not sensitive to > the exact network device as I replicated it with two Ethernet adapters > with very different chipsets. > > My only guess is that somehow SC8280XP is faster and that changes the > timing of how it handles interrupts. I guess you could try capping > your cpufreq in sysfs and see if that makes a difference in > reproducing. ;-) ...or maybe somehow SC8280XP has a newer version of > the IP where they've fixed this? Well, great minds think alike :P I did cap it to f_min on all cores, but that didn't change the situation. Might have been worth to check out powering off all cores except 0.. I might do that at one point. My guess is that with a process node change, they might have used some newer/better ip revision though. Remains to be seen. Konrad > > It would be interesting if someone with a SDM845 dragonboard could try > replicating since that seems highly likely to reproduce, at least. > > -Doug