Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1867566rbb; Tue, 27 Feb 2024 04:01:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX6hzQoSlS82gGro3lEtz/RRXfArOq3IpkwxCkE2n/T63o4Q3chYXFTPbsFbMplsDa+WM2CyZVNnVPVftnc9E5Yj3VWzn+koW6gBjuoJQ== X-Google-Smtp-Source: AGHT+IEQpUZmOmYWa33KH6ZmruFX0Ry/iYPiF+tFfwfKaRpTcGNaN8g6Swg5Gt5yQc+ItSrB7rNi X-Received: by 2002:a05:6a20:d90f:b0:19c:93c2:7ef3 with SMTP id jd15-20020a056a20d90f00b0019c93c27ef3mr2137563pzb.46.1709035304902; Tue, 27 Feb 2024 04:01:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709035304; cv=pass; d=google.com; s=arc-20160816; b=YQZrQBp37KdPg6cxqcmgnV0hFZiBwLaUiJ/SqDkxDzfUFY/SmFSFujwgmrrvltnc8/ 8gLw5pdr/bwcdWCorHxE940bw2bxr6FG7ZSNaq3z1Uv+0gd2CodhiARip3wCp+IKw9Fm Ybrnt6pKyRxWjIqK88IJPVtvTLJDQrITNC0++yuhfgAKF6scR3YaCKopAHB5n2xYLdJl CuAA7OKcOAx3ImQyA2gQUBa9Xz/x/UgdKcZ+VAGVhceonJUODmyqt92STI4OdOJ0cyZd oXIlS+76KJLH6PlK+iOXWrNkHLMqV4hfaJIr2pQYBVMBNYy/e8z0qKj4tSloxHFJBzWd V9Sg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=t2FUyV8TLdZWr/wvgxXZeazI21EEdXnm1V1u8CFX4ww=; fh=R2yaHN5R6Xxm2e/2WYJFCLwYEoNDuqLuP7egsg9TBlM=; b=PlvBHC76QIXri+8avxzy8asd15cYju0m5p7SyT12OBF1RNS5wc2c64Z8+5vheqC9r6 aTLWJFex3e3he1g+zcvHsybMnKopLQA3BH4tBaFcrd3c7dutzR2RfhAHHVNrM1BnOWzl lkNIQ81wO6ZSb5O14JgbxEPs3TeSGmE3PIPRakh0zMEgj8KMOWOfCI4pq4EcuVVab82d fl4Ug2bt0Sv7NqgyxHZP8pmJPRwYpQyu2sm40hPkVIsKtrLZw6R9uxp3XON0BBcMcoDH wnvJVUKB9cIzjP79w8KsnO82f/2VFnrM1YTE5VE/ZhFt/RFhcysYEUVGs2OwUmiAyXzs Z5AA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=X0no55qn; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-83154-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i11-20020a63540b000000b005dc556a8765si5355312pgb.466.2024.02.27.04.01.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 04:01:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83154-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=@ti.com header.s=ti-com-17Q1 header.b=X0no55qn; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-83154-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com 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 754F62821B0 for ; Tue, 27 Feb 2024 12:00:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31E7013A258; Tue, 27 Feb 2024 12:00:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="X0no55qn" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 6EE0E13A248; Tue, 27 Feb 2024 12:00:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709035216; cv=none; b=UOHDhOh7fSN3bEuojbMqXnPxNKb6xL/4ka1fr7cWLvlUwcDg3unBkkaydSxgFMalcYM6SeeSWsmyuzdjq67rJkbw9HqWWffkLWdWCXJCNCygvTbpRWStsFEA7UwvSoevlgifZEiToHRAioJ7eLO0LvV+xoZ9QugyXmqzoIGB+0Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709035216; c=relaxed/simple; bh=pOszhTKQNEu35qb/7owM5gJ7ykZzlWstTGz0UrU/dnA=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AnZzVOICfVt/mGr5Tk8XBHS5t1oF8pRWRUa3fBbODbHEAWx3KIKDJMZRCkSrUKPJaLpSoGvboHz8d+zaHrlbJJpdZh11hK6IdoJDu/Gq78WB/LmEAeT07NHDxRUlynlbeaYqsu+jjORs0CiUW0y8h3XomdWgoVBZ77Lww7kfe8c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=X0no55qn; arc=none smtp.client-ip=198.47.19.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 41RC05ae078257; Tue, 27 Feb 2024 06:00:05 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1709035205; bh=t2FUyV8TLdZWr/wvgxXZeazI21EEdXnm1V1u8CFX4ww=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=X0no55qn0A2dlHsqdoUMVaFW65/7jjULcAe2CdFVPCP/WMJjUWVnAkiYttpL6Mnt8 smRmXhwHVHhylUavvhJMXxaz3UJ5bIKs8HNePbXbIB6ZMTPIbBpYwYJFErSIhkmY5o 0EdL2wmsinQB4GhTHP9//FkFt6EAQE4TWrAt23vI= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41RC03f6028611 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 27 Feb 2024 06:00:04 -0600 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 27 Feb 2024 06:00:04 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 27 Feb 2024 06:00:04 -0600 Received: from localhost (dhruva.dhcp.ti.com [172.24.227.68]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 41RC03Om050421; Tue, 27 Feb 2024 06:00:03 -0600 Date: Tue, 27 Feb 2024 17:30:01 +0530 From: Dhruva Gole To: =?utf-8?B?VGjDqW8=?= Lebrun CC: Mark Brown , Apurva Nandan , , , Gregory CLEMENT , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk , Nishanth , Vignesh Subject: Re: [PATCH v4 0/4] spi: cadence-qspi: Fix runtime PM and system-wide suspend Message-ID: <20240227120001.rozlhxfyf6edwvzc@dhruva> References: <20240222-cdns-qspi-pm-fix-v4-0-6b6af8bcbf59@bootlin.com> <170862920925.104158.14642580909914879148.b4-ty@kernel.org> <20240226121803.5a7r5wkpbbowcxgx@dhruva> 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="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Hi, On Feb 26, 2024 at 14:36:17 +0100, Théo Lebrun wrote: > Hello Dhruva, > > On Mon Feb 26, 2024 at 1:18 PM CET, Dhruva Gole wrote: > > Hi Mark, Theo, > > > > + Nishanth, Vignesh (maintainers of TI K3) > > > > On Feb 22, 2024 at 19:13:29 +0000, Mark Brown wrote: > > > On Thu, 22 Feb 2024 11:12:28 +0100, Théo Lebrun wrote: > > > > This fixes runtime PM and system-wide suspend for the cadence-qspi > > > > driver. Seeing how runtime PM and autosuspend are enabled by default, I > > > > believe this affects all users of the driver. > > > > > > > > This series has been tested on both Mobileye EyeQ5 hardware and the TI > > > > J7200 EVM board, under s2idle. > > > > > > > > [...] > > > > > > Applied to > > > > > > https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next > > > > > > Thanks! > > > > > > [1/4] spi: cadence-qspi: fix pointer reference in runtime PM hooks > > > commit: 32ce3bb57b6b402de2aec1012511e7ac4e7449dc > > > [2/4] spi: cadence-qspi: remove system-wide suspend helper calls from runtime PM hooks > > > commit: 959043afe53ae80633e810416cee6076da6e91c6 > > > [3/4] spi: cadence-qspi: put runtime in runtime PM hooks names > > > commit: 4efa1250b59ebf47ce64a7b6b7c3e2e0a2a9d35a > > > [4/4] spi: cadence-qspi: add system-wide suspend and resume callbacks > > > commit: 078d62de433b4f4556bb676e5dd670f0d4103376 > > > > It seems like between 6.8.0-rc5-next-20240220 and > > 6.8.0-rc5-next-20240222 some of TI K3 platform boot have been broken. > > > > It particularly seemed related to these patches because we can see > > cqspi_probe in the call trace and also cqspi_suspend toward the top. > > > > See logs for kernel crash in [0] and working in [1] > > I'm guessing we are talking about tags next-20240220 and next-20240222 > on: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/ > > Neither of those tags include the patches about fixing PM hooks. > > ⟩ # next-20240220 > ⟩ git log --oneline --author theo.lebrun 2d5c7b7eb345 \ > drivers/spi/spi-cadence-quadspi.c > > ⟩ # next-20240222 > ⟩ git log --oneline --author theo.lebrun e31185ce00a9 \ > drivers/spi/spi-cadence-quadspi.c > 0f3841a5e115 spi: cadence-qspi: report correct number of chip-select > 7cc3522aedb5 spi: cadence-qspi: set maximum chip-select to 4 > 0d62c64a8e48 spi: cadence-qspi: assert each subnode flash CS is valid > ⟩ # Those are unrelated patches. > > Also it shows from the calltrace: this series renames the runtime > suspend/resume hooks to cqspi_runtime_* while the callstack you gave > talks about cqspi_suspend. It only gets called at system-wide suspend > following this series. > > My guess is that this series will rather fix the issue that you are now > facing. :-) Could you try applying them and checking if that fixes your > error? Indeed, it seems like kernelci generated 22Feb and no future builds in our case hence we were not testing the -next with your patches applied. Please pardon the confusion. The boot logs are here with local linux build from 27 Feb -next: https://gist.github.com/DhruvaG2000/78ef6f2953b0940ef8ea38797f2ec6cb It does seem like these patches help us fix the previous regressions. Thanks for the fixes. -- Best regards, Dhruva Gole