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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95978C004D4 for ; Thu, 19 Jan 2023 13:30:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231134AbjASNal (ORCPT ); Thu, 19 Jan 2023 08:30:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231208AbjASNab (ORCPT ); Thu, 19 Jan 2023 08:30:31 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBBB57A505 for ; Thu, 19 Jan 2023 05:30:17 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id DBC0FCE22A9 for ; Thu, 19 Jan 2023 13:30:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E595C4339B; Thu, 19 Jan 2023 13:30:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674135013; bh=d0NKl7S8MmzqwjLJ+ovbAHwdUMqPPSop8DR07/FXtxc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=t+DzvCm3j97MifW706MLjApGVrObDMFEVvxIucGvSWmCK4ivXqcZTLAivrcPTF5af KK0E/xQZdxm1v5KYE5AwVdV4kZmXPRlUhnnwiqtnnNBYK5vtP2F7845xlhsOCbm2gj hCIUR4O+2dO3YyCn2eWlI3CckhDOCd4RSuxUI6VnG4ftbfss2Kgi0HUZU4zzpn1YqH zFjj8BsbluM6Q8+KCfZ2dWfRZHFfCYrOQJJKKjVq7vOK3I/Usf2hp+aISxCOZwBODb wjAO8XvHH32hnN32onOD0lXxkncBak3jKxNpnZLwY8Jy3q4YbM1dDvWiOqCK33KBix 7YnDfcNW8tlwg== Date: Thu, 19 Jan 2023 19:00:09 +0530 From: Vinod Koul To: Eric Pilmore Cc: sanju.mehta@amd.com, dmaengine@vger.kernel.org Subject: Re: [PATCH] ptdma: pt_core_execute_cmd() should use spinlock Message-ID: References: <20230119033907.35071-1-epilmore@gigaio.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230119033907.35071-1-epilmore@gigaio.com> Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org On 18-01-23, 19:39, Eric Pilmore wrote: > From: Eric Pilmore > > The interrupt handler (pt_core_irq_handler()) of the ptdma > driver can be called from interrupt context. The code flow > in this function can lead down to pt_core_execute_cmd() which > will attempt to grab a mutex, which is not appropriate in > interrupt context and ultimately leads to a kernel panic. > The fix here changes this mutex to a spinlock, which has > been verified to resolve the issue. Applied, thanks -- ~Vinod