Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1715463rbb; Mon, 26 Feb 2024 21:03:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVwWZ5fZPQOtFFWvG6341vg6CerF+u8h7Flzo9LNv7CPbHvj4QAb6gr4I9Rv1nQiG7r51LLWIFgIi8yUaZOesXu1bB+S2qYCO83tLxqGg== X-Google-Smtp-Source: AGHT+IFycdrgdhcYa+xcUrdbOesugS3I7fYONXKSICfljBM91o1tRKQ7r3guMXEwVc7dB8+X9k0F X-Received: by 2002:a17:90a:108:b0:299:560e:d981 with SMTP id b8-20020a17090a010800b00299560ed981mr8117990pjb.26.1709010212572; Mon, 26 Feb 2024 21:03:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709010212; cv=pass; d=google.com; s=arc-20160816; b=WIMCqftSiIr+NSMS55cfyq1sSrWy+veyQvMcHVYn0MWeJG1+Fpnq10ZXBobGfrx9AV ZyHyVDwQwjQJDuhZFTNsxzq0a935Xh3yBjgpXzCuPmgseZU4TgOAqIoLEprWVRBC5RlI GFSBZ2Z0Zr8Mx6Os3cLXUvBTnHWaO3usflFczA4bpTLyZ0FcqUb8OAeDzCqataEfz5bi DQ37uGqsu8PRs/pOaFbtGehgFgwkOomXzhub/OlrlluWTmsj3k3y1gkpOo8uvA9UNEKo AdBUSbwxl6qlC68OZyejTHIs6glxawO6t62/hHz9yXE3634FCGIzFas+wkprKNs4ODBD VOqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qVKe4exgb9ItG/EjAGjjBRmDC+GWBLdlO5at6pUwauw=; fh=Jusy95WOzxGra6aZiYm2uMQWgX2FMy0xNYXw3eTYXxs=; b=jH9Lb+I8phtqE+JlSx9dJRrrbLVq+bQjAmJy2LLGw8tUUSUCJM/5QJJbR4KS3k1K6w +sAhx01i+mwBkMKSG1kucl/qnWuvp5z5n/7VJ1LxSBEAjTvNFHYQmlR5wN3sDfp5sArM SX318khJzPxvWeXFhF+U/aU405aG8gzRdv7QeWd+k5Lk/r/EjuUfviC/7iCX0/s5x3Gq 1E4Nsv05OFvdiO66hqlBs2O/l5EmlLixlhSAh/YAxmZPt4AQdPsxmv9to/nyBPMYTeu5 eR4MIz8XNOjMY1qpTV2lzTfoXOBM+s15D89VS+1nkFOJareRN8x061IkSIZ5acThEWNa zJSw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Jckyg9de; 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-82711-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82711-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m21-20020a17090ab79500b002990da768c0si6497824pjr.174.2024.02.26.21.03.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 21:03:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82711-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Jckyg9de; 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-82711-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82711-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 48F0528349B for ; Tue, 27 Feb 2024 05:03:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AEFC752F73; Tue, 27 Feb 2024 05:03:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="Jckyg9de" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 518E66FC6; Tue, 27 Feb 2024 05:03:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709010205; cv=none; b=UyKCWL7zevOK6gZFCbSJ3J+9IMTQdJ6rAAtgPPUiq+SrMjY/uh5bZJm/y6yCQ4aQi/ZAsqAojNpK09P/nB7H3TTHbeiB53uteg5jrGpLMZaQcG9G/9eobMZfCs7t4Q/q90cC9SXWTW53nEXh+sTUJgs5z/hXV+TZSXfR2G4bvY0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709010205; c=relaxed/simple; bh=zn+LZ68INYGtLFzMzpG5jHrDf2H85SB8RON2Z4Njto4=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UGzEY2JrUz/mEdYKb1dYvg9igMz0VvXcQeGlXB4mzYtm3vMS/ophsSwrfUuCCaGXihwe2H5+mE0fJ9K3PISVEWHTrD5DGAP6MiuAcnRVbMjPvzch5jg3NYr21n+SczYe6+gk/o3WK7ONX/uUrK0Ys9OAw243o2m3pN/jhMPZ9nA= 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=Jckyg9de; arc=none smtp.client-ip=198.47.19.142 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 fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 41R5394p060557; Mon, 26 Feb 2024 23:03:09 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1709010189; bh=qVKe4exgb9ItG/EjAGjjBRmDC+GWBLdlO5at6pUwauw=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=Jckyg9de/NCsnknpzJ90E1XnCxF/cR1dYi35jtXcuwAvPwarWXNb2fTsulGAf8gkI LacO6TryTuEv5bZDvpFahAknR8r2kuK7OBajkcxUi9HHRXQhf/dvML8dmVz4VhWZgy /drqzxBCRWiqjETKKW+VSqp1cJt0zx90I5Z+KfAI= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41R539Tx116288 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 26 Feb 2024 23:03:09 -0600 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 26 Feb 2024 23:03:09 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE100.ent.ti.com (10.64.6.21) 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; Mon, 26 Feb 2024 23:03:09 -0600 Received: from localhost (dhruva.dhcp.ti.com [172.24.227.68]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 41R538eW026596; Mon, 26 Feb 2024 23:03:09 -0600 Date: Tue, 27 Feb 2024 10:33:08 +0530 From: Dhruva Gole To: Mark Brown CC: Apurva Nandan , =?utf-8?B?VGjDqW8=?= Lebrun , , , 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: <20240227050308.js4stf4men446efh@dhruva> References: <20240222-cdns-qspi-pm-fix-v4-0-6b6af8bcbf59@bootlin.com> <170862920925.104158.14642580909914879148.b4-ty@kernel.org> <20240226121803.5a7r5wkpbbowcxgx@dhruva> <69f3dcd7-b79f-4b4f-aecb-dc559d74e6e4@sirena.org.uk> 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="us-ascii" Content-Disposition: inline In-Reply-To: X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Hi, On Feb 26, 2024 at 13:40:00 +0000, Mark Brown wrote: > On Mon, Feb 26, 2024 at 01:27:57PM +0000, Mark Brown wrote: > > On Mon, Feb 26, 2024 at 05:48:03PM +0530, Dhruva Gole wrote: > > > On Feb 22, 2024 at 19:13:29 +0000, Mark Brown wrote: > > > [ 1.709414] Call trace: > > [ 1.711852] __mutex_lock.constprop.0+0x84/0x540 > > [ 1.716460] __mutex_lock_slowpath+0x14/0x20 > > [ 1.720719] mutex_lock+0x48/0x54 > > [ 1.724026] spi_controller_suspend+0x30/0x7c > > [ 1.728377] cqspi_suspend+0x1c/0x6c > > [ 1.731944] pm_generic_runtime_suspend+0x2c/0x44 > > [ 1.736640] genpd_runtime_suspend+0xa8/0x254 > > > (it's generally helpful to provide the most relevant section directly.) > > > The issue here appears to be that we've registered for runtime suspend > > prior to registering the controller... > > Actually, no - after this series cqspi_suspend() is the system not > runtime PM operation and should not be called from runtime suspend. How > is that happening? I tried dropping this entire series, it doesn't really solve the kernel boot issues. Also this particular stack dump isn't easily reproducible either. Perhaps this series may not be the rootcause, I will need some more time to see what's breaking boot for us. But for now this series seems to be in the clear. Will keep you posted if I find anything funny here. FYI- We're just using the arm64 defconfig and respective device DTs -- Best regards, Dhruva Gole