From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 33761C4167B for ; Thu, 7 Dec 2023 07:43:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=H8MIx9w3xm9dRByfQd824tBtfGuN/mT1f3OQKSzWupM=; b=Jlf7LOrPonG3PZ /4VcnkTBna25cGOrlDy9QiSjIoTEuElRb3D09kTcRoRZW68M7DvLq62oB4q+mt4MM5KzCWZGq6szr oHIGwyU6PznU9KT+bmbbHF7dnZmu6OPWKAXAhyIEPOc2OBlrBB2G8fD1hp/aIUKgtiVMx+KB8g9i/ 0fyxI6Cehk+bvfc7vmtu/7S8eBpSjSFdKgLyStJuJj7E/UtxY/CJ3u9kqOnKNgsVTUpMWsIk7gDba aX3c73vAsPhXvjd9XUPuN98bmIDMsBR9KNReoL92jdA3DnZILSNLb7Rb9UaTQnpq5NNTbSsEUEJ2a o5pHsfvyKL1K57wiFccA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rB92L-00C6w3-0K; Thu, 07 Dec 2023 07:43:09 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rB92H-00C6uT-1M for linux-arm-kernel@lists.infradead.org; Thu, 07 Dec 2023 07:43:07 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id AFF6361F66; Thu, 7 Dec 2023 07:43:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 634B4C433C8; Thu, 7 Dec 2023 07:43:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701934984; bh=30lIgOBu7d++7DZC1ye4cv89/NsSn5HlsRgMNBse8Aw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=deqaXyy+jcN41IxCjYsashS/h8Lp8ZiH5epFSO41aYVMRswCRhrW2GO5pd3C4xG+m bJCJ/b883QBBheLZd7b0UEOwHzWVC8N7fQkw6LAgTpPW69cCrnfCQqwPSzErmIXlqz l83moJda7/hWut9dfh4PZqRXman5eidgZnaG8QozvE0hGNv6k17uONW/oSQ5K/RVDw bQMApKxj7S0/lW/EQ8j8bZhFMTt5WtYS5bG0wMCQFAGKDrE4/FCwkL/h5DxgBuRrEs gksxW7q+Q5P3o8Vkv11cykjnvPUMrkRNsS/axm1HO3iW67Y4DX/HIKXwVl/2tPIf0K cIaLGHjogVN6A== Received: from ip-185-104-136-29.ptr.icomera.net ([185.104.136.29] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1rB92D-0028Sq-RP; Thu, 07 Dec 2023 07:43:02 +0000 Date: Thu, 07 Dec 2023 07:43:04 +0000 Message-ID: <87edfy8nlj.wl-maz@kernel.org> From: Marc Zyngier To: Mukesh Ojha Cc: , , Subject: Re: [PATCH] irqchip/gic-v3-its: BUG_ON if stall bit is set In-Reply-To: <1701929559-18252-1-git-send-email-quic_mojha@quicinc.com> References: <1701929559-18252-1-git-send-email-quic_mojha@quicinc.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.104.136.29 X-SA-Exim-Rcpt-To: quic_mojha@quicinc.com, tglx@linutronix.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231206_234305_500144_0C7B29DD X-CRM114-Status: GOOD ( 15.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 07 Dec 2023 06:12:39 +0000, Mukesh Ojha wrote: > > There could be various reason that stall bit could > be set due to software errors while processing > commands in command queue is being processed and Such as? > waiting for 1s is not going to help in debugging > as command processing anyways going to be timed > out and system will continue to run and may crash > after some time due to this. > > So, to debug such issues what command caused the > stall bit to set, BUG_ON right away. How on Earth will killing the system allow *anything* to be further debugged? If you need debug information, add the correct debug statements using pr_debug(). Even better, try to gracefully recover from it if the ITS command queue supports restarting. Crashing the system is not an option. M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel