Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp498422lqh; Fri, 31 May 2024 07:47:25 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUqpCF6uCWtxqwYkPaOUMN2Y7W7yQJ8oPmNZzOmkkiONM1LlLug9zFg96pn2ZEvrUPjlLfHgR9ZhQOrXNN6hv17hzvVjOste4Q6w+Uxww== X-Google-Smtp-Source: AGHT+IFJOVmAyAp4yZJRpsfc8EnlNiIL1opSXwNm052zvApCnQbxcrKrQ9twc9xgCn9FsN9dwQYq X-Received: by 2002:a05:6a21:6d8a:b0:1af:d07a:37c8 with SMTP id adf61e73a8af0-1b26f22b0e3mr2707524637.37.1717166844694; Fri, 31 May 2024 07:47:24 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1c282b74bsi1665387a91.94.2024.05.31.07.47.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 07:47:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196964-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@chromium.org header.s=google header.b="bwTlxMu/"; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-196964-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196964-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C8C89B279DF for ; Fri, 31 May 2024 14:18:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EB4518C22; Fri, 31 May 2024 14:18:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="bwTlxMu/" Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 70B15C8E9 for ; Fri, 31 May 2024 14:18:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717165096; cv=none; b=qrhBan92jVsDyAP+mbHhHDAQlfzww01B+Ma96vWqQPxo1vNkMdIJgVzwkfVndLrvDuT0ECwg/V383L4wOdLw4mgelnv548WXquCpsOdInDWc6H/rPfRY/GAK6/+56qXoyvWyO8QE6+vH2CbD1Lo6Fm/l9/oHE/OsGmoOXAYdlog= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717165096; c=relaxed/simple; bh=1AbmZJJmSN77rtAE02BmHA4N/qXy1QsUr6jrIfOx+yU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=FO4wVHUCKVo0lvdG6wOwMHu4gDz4X6SLJKjhrHctErVGM4k5bDdR7UFdGmGAWNZXofRT65qJhAPrl+sN9nqeD2aJB8rfNQsCoQrW32QAYpwbU2uMXZjKidiwY+1/3fEx7vQ/RLSxFF6uw8UHPC2X1Y9RKzwMbA7wk3P9JPOkIlA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=bwTlxMu/; arc=none smtp.client-ip=209.85.218.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a59a352bbd9so338792166b.1 for ; Fri, 31 May 2024 07:18:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1717165092; x=1717769892; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VrOr8lCmG5hi8Hyg8YEcbjrnGL2py1NkA3gWzmJrOa0=; b=bwTlxMu/tRaCQqlJh/M4vzyT31egrazq+ykv76cWkGn6lOayf+ZWIxxQv6k7Do/VKn tda9edTlyTgnYgpu92yjPbxPcJsgsXswVGC4orVkyp+y/T2TyxVP1akJdJLaBvep4AOT 0H/qtai6pKL3GlSHeujIuLo+Ta6aS8iyKUcmU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717165092; x=1717769892; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VrOr8lCmG5hi8Hyg8YEcbjrnGL2py1NkA3gWzmJrOa0=; b=JAZ9xJx2eOOQ/WBdEf/0R45HVVGidryH9OUGtvPItoO+ja+haubX1qsZLXYXkMPj1F WvRrhT8fwJCZaw4QGmVhRy67Joy42Tyou1SkfeChPySuIAoOpMjYSvtXkdbaacGIuo+H OEYvntE6GrRvj7Rdb5PMaWalJRi5URNATso2sjMcVMh6cjWBfMIbdK9cqmCU24tiSbS7 YkkZ/XN5PGufDnc9V/bJR4mfuc4qmae8kUcWlu0cLo3K6U55h94lSdaCPS4eCVbZDfde 1CCBlfUmz+eumPJb3pSv6e0CMTmXaS/hx9tjAXB836Q0/PYvyzS5QOj9bhV6KN3u+mSe rPVw== X-Forwarded-Encrypted: i=1; AJvYcCVhCOGwnysTqTeWkxv3oubk7kf1jvGZl6Z2kiC2dKJzF0DbWvGIRxXCFVHsAHrq75AwRkz5ieQKuBEsFYJeZe/HHCmOE4DeUjHeFniF X-Gm-Message-State: AOJu0Yw8136shbFkYUGYQrdSxwRO4nAejVdYYRw0yclQ6b7LYhAI7WMO CTimmL4rfSNIPHQb90e7/a8HTDG+WDjSct4oxLVu/KmSlwC6qC29zo2G+TwFHPRW54EvlHr7g4R A+YWM X-Received: by 2002:a17:906:2592:b0:a68:92a8:e86b with SMTP id a640c23a62f3a-a6892a8e960mr52086366b.15.1717165091908; Fri, 31 May 2024 07:18:11 -0700 (PDT) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com. [209.85.128.46]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a67e6f0bfdcsm91405766b.32.2024.05.31.07.18.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 31 May 2024 07:18:10 -0700 (PDT) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-420107286ecso82715e9.0 for ; Fri, 31 May 2024 07:18:10 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUq1X+GL2QTUJkdSqk6zIgnD5+PLBJa5//DlzzKaAf9uavPJFMRiovWHdIWvrBy4h5EV4gQvOqk6UXhpIxtC0syUcvOgiMHO6MhVNG8 X-Received: by 2002:a05:600c:ac5:b0:41b:e55c:8dca with SMTP id 5b1f17b1804b1-4212e0d6c60mr1426815e9.7.1717165090095; Fri, 31 May 2024 07:18:10 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240530082556.2960148-1-quic_kriskura@quicinc.com> In-Reply-To: From: Doug Anderson Date: Fri, 31 May 2024 07:17:52 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/2] Disable SS instances in park mode for SC7180/ SC7280 To: Konrad Dybcio 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Fri, May 31, 2024 at 5:33=E2=80=AFAM Konrad Dybcio wrote: > > On 30.05.2024 3:34 PM, Doug Anderson wrote: > > Hi, > > > > On Thu, May 30, 2024 at 1:26=E2=80=AFAM 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 SC71= 80. > >> > >> 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=3D/dev/sdb of=3D/dev/n= ull > > bs=3D4M; 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=3D/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 mea= n > 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? It would be interesting if someone with a SDM845 dragonboard could try replicating since that seems highly likely to reproduce, at least. -Doug