Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2068191rdb; Thu, 7 Dec 2023 18:11:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJmVXTT7bZeNjxm6XVkdrvOMaLjcf87J/IGtzxGXMdhavAmgThbqjo1tyDITQ6FiratAVs X-Received: by 2002:a05:620a:668f:b0:77d:74a4:ea20 with SMTP id qh15-20020a05620a668f00b0077d74a4ea20mr2259605qkn.8.1702001475408; Thu, 07 Dec 2023 18:11:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702001475; cv=none; d=google.com; s=arc-20160816; b=GrZNmzMExfR5/Bu9nis7RlymFjkdLZAO/9MJiwM14iiN3L0RxvYlAY5JKGJzF25C5r 72cLgux2dh6M4Ns9hrueqj2n0j33Bu2OZL3H6kA/wl+b9j8L2zQC8iiaGw9vb5V3wRHP b5Aol0vMTmk47sZLsvnF8mp7mImV2wxp3rbu21jCSTFl/aq6zFKTw1TcJnM6ImaLKMTZ se4byE39mJYxRrFnjchkT6y+SnznELiJuoanhPt1xoFlRzgmFUX56whKj/8X0bMX94/i MLjqOyUV1FMsOkUkxOttuBgID8JvgljSN0SRU3+tTAjIBz8TVR6PVYzIpg+f9E81aKU7 jd0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=NrS1+gj4SQqrLBMUECtVXORlr6dGcnhoysWJjVqwxW0=; fh=0rtzPuWSLhFpzSLprm5R6eBoZefxeLMiqP6so8p4AVw=; b=e7fptR5D6/JPYEpud6/E8fRDum5SgibVbGGqN7Z5Mrjs6yq+N32Ts0EjrujFA+rpi5 qBfsszr6pgVUz2Pot3JCEErfT7ZUZE7Zj9f9N+Ao9rASky2252EIyFqxfkVQAiAL2Mb7 pUbmWWF5hftYBZeBVY879mkJtWuC8TE6wrE359dYxohkajUekIA8m6ZjeL8u10dWO5tO MkXtY8Eq3f76WZruhpaUN/AV2UoLLDop0wT1w6sJSKIxyKFXUi0cYbB6ckuAyvkvrG2W tk22n2OsoKz0RhqNxpA6A0sBmfk3nz1chLeg9C/y/uw6Czbhmj130UQCd4imDkK8iMJe c6wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BvxLr56n; spf=pass (google.com: domain of linux-wireless+bounces-569-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-569-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 u22-20020a05620a455600b0077dcdf5d41dsi1296820qkp.293.2023.12.07.18.11.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 18:11:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-569-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=@linaro.org header.s=google header.b=BvxLr56n; spf=pass (google.com: domain of linux-wireless+bounces-569-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-569-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 29D9F1C2095D for ; Fri, 8 Dec 2023 02:11:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA4BB1878; Fri, 8 Dec 2023 02:11:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="BvxLr56n" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BD311719 for ; Thu, 7 Dec 2023 18:11:05 -0800 (PST) Received: by mail-yb1-xb32.google.com with SMTP id 3f1490d57ef6-daf26d84100so1752741276.3 for ; Thu, 07 Dec 2023 18:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702001464; x=1702606264; 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=NrS1+gj4SQqrLBMUECtVXORlr6dGcnhoysWJjVqwxW0=; b=BvxLr56noAj0MwngcFDn9sBX4EkG4BqwIc4Ak82p+YDnmjrGZciQPj2XKeG9dXgxtM CGnKbQYASOFJbdM+AHJd83wDVE7rgJOgN0bIoUQWzSfWmF/exmxNVSrfATL5tz87AZRe 0VRXEwfL6Gu7O1lDn/lKAqCcZlraQ6i2HBfKHN4RMhGY38o7V+iZsl1zrybPPOowbOtk FTesiy4M6Gkr7vvNz68zXWA6JLaUZRmOgJD55lMRL1TomYVVCtIdenNjqNxlcdhIh9Ah d6JNZZScjjbxp8YbRa37wGMXjsVAparQZYvs56jrRTqWnQkC6451RKKNi1gs/cjHGrey WZ4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702001464; x=1702606264; 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=NrS1+gj4SQqrLBMUECtVXORlr6dGcnhoysWJjVqwxW0=; b=NPWUCdAIQfWMHoTizcp9083FokPnJTVr+haDPTzhaMHxfjx1X4AkNuhiEFovcHqtA+ BdfFXnkCwT1dAsuZ41ac2SYOjBjW4xtRrEWOxPDN3qvrFZYdCpK6SrUbx/mdt2MOCngv FCXRdZ+/km1NooSh8vOSd570s+Nrdmb4pLQlIzfDpPZdLwK6NaBdSGCfdbZVcNRbb67a wyALY/XCMJL5p6ScvsQyOQBQsqpVzrmS2UXQ16+PfZavxcJ8G7Ze85XBIa7i4iDFIBG9 Z3Keo6yZk5wR4rzT526SEcm/U7mMVP11iuA7CVSVcpQoBeviYOVWOcX4cbhGBQYTH6hU D82A== X-Gm-Message-State: AOJu0YyhIpcPi90aOFTxzzt0El6GHRVesGQt+fezRqLRY2VLGJed+nxA WHyeMTvqE1O9hMa1TZFLuAZ+fe22Mcfm2ndr8bdetg== X-Received: by 2002:a25:d415:0:b0:db7:dacf:59f1 with SMTP id m21-20020a25d415000000b00db7dacf59f1mr3933594ybf.101.1702001464147; Thu, 07 Dec 2023 18:11:04 -0800 (PST) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20230630151842.1.If764ede23c4e09a43a842771c2ddf99608f25f8e@changeid> <87wmtqnk3y.fsf@kernel.org> In-Reply-To: From: Yongqin Liu Date: Fri, 8 Dec 2023 10:10:52 +0800 Message-ID: Subject: Re: [PATCH] ath10k: Don't touch the CE interrupt registers after power up To: Doug Anderson Cc: Kalle Valo , ath10k@lists.infradead.org, Abhishek Kumar , Youghandhar Chintala , linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, Manivannan Sadhasivam , Sumit Semwal , John Stultz , Viktor Martensson , Amit Pundir Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 8 Dec 2023 at 00:49, Doug Anderson wrote: > > Hi, > > On Thu, Dec 7, 2023 at 6:49=E2=80=AFAM Kalle Valo wrot= e: > > > > > Recently during our Android build test on the Dragonboard 845c board, > > > with the Android Common Kernel android11-5.4-lts and android12-5.4-lt= s branches, > > > > > > we found there are some ufshcd related changes printed, > > > and the serial console gets stuck, no response for input, > > > and the Android boot is stuck at the animation window. > > > > > > The problem is reported here > > > https://issuetracker.google.com/issues/314366682 > > > You could check there for more log details. > > > > > > And with some bisection, I found it's related to this commit, > > > when I revert this commit, the problem is gone. > > > > > > So replied here, not sure if you have any idea about it, > > > or any suggestions on what we should do next to resolve the problem? > > > > FWIW we don't support Android kernels, only kernel.org releases. > > Right. If the problem also reproduces on mainline Linux then that > would be interesting to know. I think db845c is at least somewhat well > supported by mainline so it should be possible to test it there. I checked with the ACK android-mainline branch, which is based on the mainline Linux, this commit is there, but the problem is not seen. > If I had to guess, I'd think that probably the CE interrupts are > firing nonstop for you and not getting handled. Then those constant > interrupts are (presumably) causing the UFS controller to timeout. If > this is true, the question is: why? Maybe you could use ftrace to > confirm this by adding some traces to > ath10k_snoc_per_engine_handler()? There's a way to get ftrace buffers > dumped on panic (or, if you use kdb, it has a command for it). Thanks for the suggestions, I will check internally on how to debug that. > If this reproduces on mainline and it's not obvious how to fix this, I > don't object to a revert. As per the description of the original > patch, the problem being fixed was fairly rare and I didn't have a way > to reproduce it. The fix seemed safe to me and we've been using it on > Chromebooks based on sc7180, but if it had to get reverted it wouldn't > be the end of the world. > > -Doug --=20 Best Regards, Yongqin Liu --------------------------------------------------------------- #mailing list linaro-android@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-android