Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1311701rbb; Mon, 26 Feb 2024 05:45:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXvCki+DxL2ow/1krHYKY8ISLN501tQUi/3OQBS3f7uxAEYKRgH0OONWJmVuK4C9Y2za2QqunoxPNE966foSr7lbldWiGTq6f+P8xUAjA== X-Google-Smtp-Source: AGHT+IHEIdrc4Bp5gw9ihk63WwRZ+/e7HcXTPEN0yxaj7noTH8soYgpkRLtVXp5Eciea3feeL68S X-Received: by 2002:a05:6a00:4406:b0:6e5:bb8:dc19 with SMTP id br6-20020a056a00440600b006e50bb8dc19mr5234286pfb.15.1708955104859; Mon, 26 Feb 2024 05:45:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708955104; cv=pass; d=google.com; s=arc-20160816; b=njaCFW5FANHPd68WYHqp8B+xV9ggm8b6YXC86zQZLwOkUByA7e1s/VdseMPEPcscPf VnK3hCoHGQ2WhZ8na9wxPoE4WIBuiNu97cjtwEmJirz5wiwYZugSe7dMAty6idioTPbj dO7yB56YDMUgJ9eEXQnYiuGwJLHrsK3zoSuy76D6fU3v/6MLCN/wnnym45z2aJ8K2VQJ 1zwiu4r6Yiz/jUVt2qdAFDeWo0uZsm/D/kyART9nokXRl+ED09J3MXg2FLHyII1NJIZH 5Vff4Ave3UokE21ELN/dyQgl3gweR9KbxxXC75pYO/s28hlvF7PuTMsZv/LoNRXWmfNR s5Zg== 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=CrQwf9AQ9lXa4eXve8akUOhL4qA2ZjwBBbaXoYVsv3Y=; fh=wLLaDNYbCAwqQLz9JX3RQIt765o5sMVivKhDv2ErU2w=; b=w+qZfkntBlwA24HsTYYc6HGDgp2UpUNRdUzta9+tCzd05EE4bHB9lWeiS5la2SJD9V PrxHLJz1ys8p5m0y5iqXm/LK2y7bEty0a3F7/Hm4GPdkVhXhmUO6fGEgy/C+nhqVxhry 1L0aOUvC+W2FlEZnhlB+6vFWG2CO+WGWPDeiMvuRShkFx9Hnmx059ik+EDD9gWzHNlH6 GAH7AXp3h3prBQHgarPqVpNKtugWGNX/7N7fxIDvzy/y170upXOxWXzfI/+UhHw0fm1R YDbEFI4kcnf4aFOEs2bnhbr0sK+xyyfb2J9qZZOsuBijeVh0G0i8eZlpp89ZUbUKba7z Y25A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=XyEWeffA; 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-81518-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81518-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 j2-20020a056a00234200b006e541489cc7si179780pfj.312.2024.02.26.05.45.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 05:45:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81518-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=@bootlin.com header.s=gm1 header.b=XyEWeffA; 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-81518-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81518-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8FA7628FA03 for ; Mon, 26 Feb 2024 13:45:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5592312B169; Mon, 26 Feb 2024 13:42:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="XyEWeffA" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (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 7A72B1292F9; Mon, 26 Feb 2024 13:42:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708954976; cv=none; b=tqYwgc6GsK3INSysc5BKwboqNzHiXeWIYMLSGzrxAHAT5MCmN6jTyg2IYBWlPM7nh3dgzg7MTPdgDh4N0gMQ8rusUtYF+jPAgHjEu6cpWfMB90P3/A1D6lBSXPgqs3vgvKwubV22Q/r1h3IbI44TyVg1BqXnJphDHiHYxgVQMBU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708954976; c=relaxed/simple; bh=EQMo0345E/yvDBL3eEu2xm8w6mlhza2lljKyKmEWoMg=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=cmp+w2wE7w9qoR4uHiGbpCMSMr5KM0voDIOPh+U4Ix9443akBz/14uxGBE782h8oFw5cEB4OssolVOMZuHqcn7w/vKT3TIW98CrWO30hHuht8YMimtAkhonrPAxbsHFHB7Jcvaj+6MgxuQIKZaIA/PMBiX/p3/1o1htLWgRigDY= 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=XyEWeffA; arc=none smtp.client-ip=217.70.183.201 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 3C90A1BF203; Mon, 26 Feb 2024 13:42:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708954972; 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=CrQwf9AQ9lXa4eXve8akUOhL4qA2ZjwBBbaXoYVsv3Y=; b=XyEWeffAnF10g/yvFLnBoOuSMAElUwPVxU/fdvOFPf+5AGdA6XSDILHhbhsOSkIds5593+ RZKgV92DH+lvD5UeLUdqWCpdkaQMXXucyroEhVCCLjYaPJ7kTqolTFx4vo/480F6NnqU7M EplTnYQUzraX2xLagoxRYbH7b2OXlIW9f0pWU5+k7cVoAjLx1LUYc4bLkuqNVkjid8DjGl f4/DyeY7kbZjB3My43yVm2gY86PhaoI7GGCP7wMjHgD+/wLwqXvNMxo+vjcu6uzICHEFU5 Qt21M5U+KjsKnDBZGtV9q/SJAI3kYlZYP0I1gKB8bniV6VNID6OLBasmCFdpEQ== 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:42:51 +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: "Mark Brown" , "Dhruva Gole" 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> <69f3dcd7-b79f-4b4f-aecb-dc559d74e6e4@sirena.org.uk> In-Reply-To: X-GND-Sasl: theo.lebrun@bootlin.com Hello, On Mon Feb 26, 2024 at 2:40 PM CET, 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? You might have seen my answer by now. This series is not in the tags quoted. I believe the memory corruption I fixed with this series is being encountered for the first time on TI hardware. They probably did not encounter it previously by luck. Regards, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ------------------------------------------------------------------------