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 X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD04CC4361B for ; Fri, 11 Dec 2020 15:59:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7C56C23E24 for ; Fri, 11 Dec 2020 15:59:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437737AbgLKPOu (ORCPT ); Fri, 11 Dec 2020 10:14:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:39904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406549AbgLKPO1 (ORCPT ); Fri, 11 Dec 2020 10:14:27 -0500 Date: Fri, 11 Dec 2020 19:48:41 +0530 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607696329; bh=AaWAHxLcS4HDS5ZqYcRul/fH6LvUc3a2LNed66cZd5I=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=al9AwndRpsjir4HzS7G5z8/froC/N0nBPqiDCd0gqHQq/W4OiLEKWj7wIbGlBHvib DjeIDWs1Nv04gROQFTR0XOY2dpn6P2AacCA7Ad4UKUdp/0CNyM6PPxncf6+lCDGPgN T4sj7PcnEKMB7GKXMMudgSx378l6AZT/vSx8EkFQhQt/MK4p3lvp7m5hySv/rTU31k roLRk6FIbzUxso8sga0NsBz7Gd2X+HG4hpobTK80FyQgWA1G3RMiHPppSBrAkECAnP 4SyXSArKU/g7ie1IAbnzg70eADoI/vbR/qrXkoRvOiRUyF0c+tTkdef5usoHLg5aBr +cWEXtJlwqZqA== From: Vinod Koul To: Parth Y Shah Cc: agross@kernel.org, bjorn.andersson@linaro.org, dan.j.williams@intel.com, linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: bam_dma: fix return of bam_dma_irq() Message-ID: <20201211141841.GX8403@vkoul-mobl> References: <1607322820-7450-1-git-send-email-sparth1292@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1607322820-7450-1-git-send-email-sparth1292@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07-12-20, 12:03, Parth Y Shah wrote: > While performing suspend/resume, we were getting below kernel crash. > > [ 54.541672] [FTS][Info]gesture suspend... > [ 54.605256] [FTS][Error][GESTURE]Enter into gesture(suspend) failed! > [ 54.605256] > [ 58.345850] irq event 10: bogus return value fffffff3 > ...... > > [ 58.345966] [] el1_irq+0xb0/0x124 > [ 58.345971] [] arch_cpu_idle+0x10/0x18 > [ 58.345975] [] do_idle+0x1ac/0x1e0 > [ 58.345979] [] cpu_startup_entry+0x20/0x28 > [ 58.345983] [] rest_init+0xd0/0xdc > [ 58.345988] [] start_kernel+0x390/0x3a4 > [ 58.345990] handlers: > [ 58.345994] [] bam_dma_irq > > The reason for the crash we found is, bam_dma_irq() was returning > negative value when the device resumes in some conditions. > > In addition, the irq handler should have one of the below return values. > > IRQ_NONE interrupt was not from this device or was not handled > IRQ_HANDLED interrupt was handled by this device > IRQ_WAKE_THREAD handler requests to wake the handler thread > > Therefore, to resolve this crash, we have changed the return value to > IRQ_NONE. Applied, thanks -- ~Vinod