Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1114962rdb; Fri, 1 Dec 2023 07:26:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IHBpOi1ra49p+kB3dnUyhMZ4eW1uuagNZFTnUBf/IhPW/y5junjkJzSadVN02Y4eyeG52jO X-Received: by 2002:a1f:4982:0:b0:4b2:9c4c:80b1 with SMTP id w124-20020a1f4982000000b004b29c4c80b1mr5392061vka.9.1701444397648; Fri, 01 Dec 2023 07:26:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701444397; cv=none; d=google.com; s=arc-20160816; b=0Sm9R2pSlrE3sOlKpuCCzNQR/eC48X1rW1UC2u2tL3jO5Wq8dckJAmVMQzF4UoXryB S7F8Tin1u/L6PF8PU8Y1dV6tswrRVZSzKnbRooRtd+2K9dcVGuVeGbFJ/nui1tPxRNmf W2OiZZb6aLZU7+F4SltMiX5h/AR4WJr5QiAWo7gZQSPdLPAJfgrK4TnKalYQiRyuQsAI gAhUc4+MTvdtso//NhJE7ScIfvO9sIG706FqV698MRzRF3CTK0wna7LdBtFI+jUBww/c AMbqvNzS5AdZW7JACbsq4e2djGI7/YodokJ9lggO36vkpnnYfV29CSiM3rVPeZfxXMBR vMmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=0OqJCJBqZM2rydliN3oe3qwJoihri9qJCPDRkEfP5wA=; fh=xMXky3/Sh3/w1W5J+tPZAD75Ta2wfF1myPIxUiu8/xw=; b=wjDIL76jwWVacq7TOoawEVRnNMiFWwQfWzR1V4mILV0ruYEN01VfLztTE9a26NWgTk h/agmGL5RVQVfncCrKJPSaR6tUYqCxSbrG2Z6moXLj90PlRYd1FlK0++FY1Y2Ra0I5Rg AyP7iqqxYZ7PqWMCEw5i/ccnPqmmY1GOrIaDxVnPihGfd2HlcfoSqLYJO2k2muhEEZe/ 4yC9GNlyOzpPQ/bFeKnH00vaw8v21DBc4Nsz2ldu3tFwQ2LdjqC7a8HeFJtGA1MXb4ZD WuKhxJHC5p0BogEAaEYbqP9gSB5M+Qxgn4cGPt2ZHtwQuocszeZLxC5FE1mmxqRlZcOI Y7vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=JptvBWSp; spf=pass (google.com: domain of linux-wireless+bounces-300-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-300-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o15-20020a1f7f0f000000b0049d7ab57ed3si752670vki.175.2023.12.01.07.26.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 07:26:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-300-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=JptvBWSp; spf=pass (google.com: domain of linux-wireless+bounces-300-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-300-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 63BC41C208D2 for ; Fri, 1 Dec 2023 15:26:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5DEB248791; Fri, 1 Dec 2023 15:26:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="JptvBWSp" X-Original-To: linux-wireless@vger.kernel.org Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::225]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E318B6 for ; Fri, 1 Dec 2023 07:26:30 -0800 (PST) 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: linux-wireless@vger.kernel.org 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