Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1307299rbb; Mon, 26 Feb 2024 05:36:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXNycWWXAzU4bO08H5iYbcEu+5WbSlueFMT23wM0F1gK9Q5ZhSLE//HmlIRjO8f2mB8N7sV6ew1/mKQy1ZhwaiOchZzz9JFas7UGqmuTg== X-Google-Smtp-Source: AGHT+IFEP8x/IhJTiqi3iq52ZPfT2xIX1wsZXCw1SPjkx5pd3WKvkUG+ThyT/TjmUkL18kO+Slp1 X-Received: by 2002:aca:1902:0:b0:3c1:3322:157d with SMTP id l2-20020aca1902000000b003c13322157dmr6372991oii.44.1708954590286; Mon, 26 Feb 2024 05:36:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708954590; cv=pass; d=google.com; s=arc-20160816; b=jmhloCrm9yxBGQikCAgokeou34Uw12NKf7wcCuIpzGGXLUibAJSbq3MXN2p7IHE5+4 QV/yIMbJ20m0njehuKRESXoq4C3kqyZAVaEUQP5/slVP5ct25hCruQGguiCaTStVbT3F 5bUd7Vb5pZDGAnlWDbYfNjeMAOhmTSYowr6tNi5Wf1is0VfTXvx65b6ShoQFYllkbDzP y4WwxOCXxz4lsy+phhEAdrayyUmSjs8x2fg6sMfaqt0oswNBKzs5xOAD0HP+N39FFCNQ tMrYFJ9P9VC/S6KUnzW5BReEZIXwdPi9yHxDMqDv60OVp7EQji2yzIpJ8rla3CzDoDoZ 7gBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:from:to:cc:subject:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=p39XZx/jygzOWSNQQM2/s6rjiVRFrliYhmP8SCLmXWo=; fh=NtpS3NjDXaHcWk/uoTrxmMiq7g3OYQYfPL6+rkEyw9w=; b=jZ7QglfzTePBJzz5eHgPncEhP+41WWA6lVawLHnLqUeBRbcJE8yTfEeiWjfy/ZK8J7 EDfx/JmLa2nNTs2q1gOwqaT/osZ8N/prQ8b9VxRN+VYT1TGLJ7oaxRa3Mowr9idJKzcU e+FDtxyjNvjBT3BBCFfPEsz5i/a+K3dSWUzS2TxZduPlPrqbBkcN/TK8yPv55/wSQTdl kSSOXq5btnPc752Inay7O+UbqF+JjKbXDIWrangfmLQbV9gJqOHXY1LgTMLzE/Jx6UIX PtyfpDJCGLrgJ4YaEa1KYEq+mNDayJmGD4tkHucwSFcQE5AhkAy1iCS1PcV6IpHxAy8I 8qIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=iWPYjw5H; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-81497-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81497-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g16-20020ac85d50000000b0042e897fd376si1386196qtx.766.2024.02.26.05.36.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 05:36:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81497-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=@bootlin.com header.s=gm1 header.b=iWPYjw5H; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-81497-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81497-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0D1761C23627 for ; Mon, 26 Feb 2024 13:36:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AEEE1292C4; Mon, 26 Feb 2024 13:36:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="iWPYjw5H" Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 BB8C61BC43; Mon, 26 Feb 2024 13:36:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708954584; cv=none; b=Nfa5q6amTQCVFyrptmfoRMrCUJRZO8C8frhPABIuvMw42BH/cDttLBBDi/ZpxTLITiOq2lZM3DGbn0DCk/YeHPdUALx19KqBj8EdbtfPQ1BgehNkj7sRTPh7i28RzjKj5Q5IAYe0UmpNmp5o0LblM81oERqIaYuGcbNt06gbafo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708954584; c=relaxed/simple; bh=zD1XerKk6rTbU8z4E7lpvNlFBdKdOZ0vERmxDSdZqZs=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=EUnFOwsG/Gmgow3wvWWXyU/zfUR3Q+FfINkQXnhhrtet+YbWZFVSpcHpZJmHs4W892JtGPJdMWfbSUPgc0/3aokSDT4svL8vZg+v5C4daa0gglsjAB7EEw23c6jpiaqlZzUdLuqE6ee45k3Vkc7RQPpsqc9Qii2Y0n3EUKX8Z1s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=iWPYjw5H; arc=none smtp.client-ip=217.70.183.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 638AD1C0004; Mon, 26 Feb 2024 13:36:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708954579; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p39XZx/jygzOWSNQQM2/s6rjiVRFrliYhmP8SCLmXWo=; b=iWPYjw5HBqFtjDgaWmtEyyFGcMAvqe0vltRGG6LtdKDXsCrHbeKxrzYrEwvtEpJdrebvw3 0iWjlgjkAW4NduknAZwUKflXoAPBl6ymXFTzyvRybSWqXuhf4WVT4B7vcmIhLpt2EJY3vo WhJ27Xs4ilGPGuztcMX+7QBNJgn4NLkP5ODKu8UNYcvjKTcmFxMyD9PLrLtT5YGl1AxTi9 4WhB6Oe+C/V2+VybJvb/P3E1kdLyeHi+1D0e/+atwy05KyBQKwTXxW1sh43wUXBox1NlLY EaJot7043PxRJtvlKdiI10mFguyjngNUWNmm5B2dV6O4+EN+3qYn7ckqpPVuNw== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 26 Feb 2024 14:36:17 +0100 Message-Id: Subject: Re: [PATCH v4 0/4] spi: cadence-qspi: Fix runtime PM and system-wide suspend Cc: "Apurva Nandan" , , , "Gregory CLEMENT" , "Vladimir Kondratiev" , "Thomas Petazzoni" , "Tawfik Bayouk" , "Nishanth" , "Vignesh" To: "Dhruva Gole" , "Mark Brown" From: =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: aerc 0.15.2 References: <20240222-cdns-qspi-pm-fix-v4-0-6b6af8bcbf59@bootlin.com> <170862920925.104158.14642580909914879148.b4-ty@kernel.org> <20240226121803.5a7r5wkpbbowcxgx@dhruva> In-Reply-To: <20240226121803.5a7r5wkpbbowcxgx@dhruva> X-GND-Sasl: theo.lebrun@bootlin.com 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=C3=A9o 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. > > >=20 > > > This series has been tested on both Mobileye EyeQ5 hardware and the T= I > > > J7200 EVM board, under s2idle. > > >=20 > > > [...] > >=20 > > Applied to > >=20 > > https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-= next > >=20 > > Thanks! > >=20 > > [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 r= untime 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. =E2=9F=A9 # next-20240220 =E2=9F=A9 git log --oneline --author theo.lebrun 2d5c7b7eb345 \ drivers/spi/spi-cadence-quadspi.c =E2=9F=A9 # next-20240222 =E2=9F=A9 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 =E2=9F=A9 # 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? Regards, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com