From mboxrd@z Thu Jan 1 00:00:00 1970 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 C07E448789 for ; Fri, 1 Dec 2023 15:26:37 +0000 (UTC) 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="JptvBWSp" Received: by mail.gandi.net (Postfix) with ESMTPSA id 7418D1C000C; Fri, 1 Dec 2023 15:26:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701444389; 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=0OqJCJBqZM2rydliN3oe3qwJoihri9qJCPDRkEfP5wA=; b=JptvBWSpz20wwgm8UIw1JHUPyOBMriaHoqc4EiaseI2gkPxZk2EON0TeBSWGJe1fyyhElK yv9rdC6fYL2jS1lULOCeKgJNAZHb2cEM5Of9U1Lwh6Qf/U7QFOPE6cBfYnC7kX/VrPRh38 ENjHY9hHx1LFHx/CnN1b4bRRPpFAfXsjX1QVmUn+d0rTf7tK2deNMGQRM0PMUbScLBBeux FTKC1QKs9tiagWirmMzO1fZz8tYFkv1SdgBKqgjPm6JDhH9hL08r9HihE+bM08LTdYiPb9 +kAdGj26PfcWaTtHJ9BSt50h3hVEVvu8CWf1NHF0TyFm3CN/ODHehASCEbFA+A== Date: Fri, 1 Dec 2023 16:26:28 +0100 From: Luca Ceresoli To: Florian Fainelli Cc: linux-wireless@vger.kernel.org, imx@lists.linux.dev Subject: Re: Linux v6.6 sporadic reboot failures with ath9k on i.MX6Q Message-ID: <20231201162628.715983d6@booty> In-Reply-To: <016b48b0-2021-434f-88c7-deb1bf08d14a@gmail.com> References: <20231129102240.183f94ba@booty> <016b48b0-2021-434f-88c7-deb1bf08d14a@gmail.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-GND-Sasl: luca.ceresoli@bootlin.com Hello Florian, On Wed, 29 Nov 2023 21:10:44 -0800 Florian Fainelli wrote: > Do you have a reboot log with "initcall_debug debug" set on the kernel > command line and if so, does it always point to the PCI bus shutting > down the device drivers, pcie ports and ultimately the root complex? > > We have seen something similar before with ath10k_pci and our > pcie-brcmstb driver which eventually was a result of having made > incorrect assumptions while implementing the platform_driver::shutdown > routine. There was a hard hang in ath10k_remove(), I do not recall the > details, but we were definitively doing something improper there. > > imx6_pcie_shutdown() seems to much simpler, but my first guess would be > there. I had attempted using initcall_debug but the hang was happening on a different line across tests, so it did not reliably point to a specific place. Perhaps the serial port just stopped working before being able to flush the last few lines. I will have the shutdown code, even though it did not seems to the problematic. Thank you for your hints. Best regards, Luca -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com