Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2063721imw; Tue, 5 Jul 2022 22:22:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v+RrsqwjcfNw8AgbmDHaoMqTMXWuawn16LuicnCdwC1R5W21iDYJkddn/JxIAOk7ZP7/Du X-Received: by 2002:a17:902:d2c1:b0:16b:f145:c5b3 with SMTP id n1-20020a170902d2c100b0016bf145c5b3mr7511954plc.4.1657084953871; Tue, 05 Jul 2022 22:22:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657084953; cv=none; d=google.com; s=arc-20160816; b=RTSeMxhvu1UlP9xkB7DrutfrPYaVgmLJRMknkv8vVQw3km8she0eYpB/A/SfNxoXld RDe13kXaycLbHxR89To3KnlS0ijlb4BXE85Ex/5Zubvyr8yYEkp/DW0EfCUF556sAhw0 akjj4uJtnu6isWDnqAIXSWLyBEtMH4DQC6J5/04Rzd244qLAwuYsbkVjgmgTM0xPoBVM 9wD4XIO0AdFTosKyVQwdGiQqUGUaInfd3TD0eWkm7hFuZvvDEmZnLZ6kd21JX9PNBE2L PdkB+GnYjvkgM4TTu8PQs6UFJneAuOKhdS3Ncu1hgTt9rcpARsqYO19y/2bW5oVSluNF v1YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7gBgreyjez8rrT8qqEHVXLshe9INwZiBCWVeEu+G14s=; b=nqI8aNKnirzLEQZ4ADGUwcBY8JCQYVMDKZJeOaQY7/TFUXdAC6gc+lzDr+VB58opXU eEEVscGfkGAiCyuzZcy0NNRzRKVbhIhlROnZi/b3/WtzLzUGjKdkHNWjopoVY4UcGJ1u CZnFOm9gLetWZnhaueOrJbvr/qQlsWGEgtyyO0vBxFo3FpduBd/TNq0oLUmdunm0GIgu dllxActaoIOdSzjYcYJjS/b4T/iVSlyScjjYX1xL2jTFrGBOSUDlRBk7+XZb94eUESFI XtoIzFBNYbaajSmKjL6CteCPopLxkzpxyPHUbCIWTMp5Zs5xoZo+kbkUIU1809GInk+e rj0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qZQb4R5D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m17-20020a170902e41100b0016be96cf31bsi7024392ple.273.2022.07.05.22.22.21; Tue, 05 Jul 2022 22:22:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qZQb4R5D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230040AbiGFFTo (ORCPT + 99 others); Wed, 6 Jul 2022 01:19:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbiGFFTo (ORCPT ); Wed, 6 Jul 2022 01:19:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DE281FCE9; Tue, 5 Jul 2022 22:19:43 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 2B99D61C44; Wed, 6 Jul 2022 05:19:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2934C341C0; Wed, 6 Jul 2022 05:19:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657084782; bh=svUMohRId2WoIxN83gAvNcAjKwXZlCNNsgeNDNGEIeE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qZQb4R5DxUUBKTsyOqbJkmXNshqX5eNv3PVxNU8XCPL/x5n9c42eiB53KUJFn0lwR yJZliSAFtltdOpv6AFuRLUSUUt7vD8lVex9JbHqoRKZbM8iclPr7fwEAesQJt8MaSj OjyYpDVsDP6RKDfEw8frYK6OkXDzTyqGpqqGk/VYyKgCFO8nN/lHfkYpHCsIdCnU/x tzZGnKP4pFMMNHSN+GeXBFZwQm/kXQsDRR1tMFhNmVAk75Vcxo43SYZMYJrPknUCGr v/AJY4M42i+Emrr0FHPmcxNvgENIYhvVFby4JLUpTJXNH6/x7Mg4fwM/V1an3IHm4C 9ClQerMQdkbyQ== Date: Wed, 6 Jul 2022 10:49:38 +0530 From: Vinod Koul To: Dmitry Osipenko Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] dmaengine: pl330: Fix lockdep warning about non-static key Message-ID: References: <20220520181432.149904-1-dmitry.osipenko@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220520181432.149904-1-dmitry.osipenko@collabora.com> X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20-05-22, 21:14, Dmitry Osipenko wrote: > The DEFINE_SPINLOCK() macro shouldn't be used for dynamically allocated > spinlocks. The lockdep warns about this and disables locking validator. > Fix the warning by making lock static. > > INFO: trying to register non-static key. > The code is fine but needs lockdep annotation, or maybe > you didn't initialize this object before use? > turning off the locking correctness validator. > Hardware name: Radxa ROCK Pi 4C (DT) > Call trace: > dump_backtrace.part.0+0xcc/0xe0 > show_stack+0x18/0x6c > dump_stack_lvl+0x8c/0xb8 > dump_stack+0x18/0x34 > register_lock_class+0x4a8/0x4cc > __lock_acquire+0x78/0x20cc > lock_acquire.part.0+0xe0/0x230 > lock_acquire+0x68/0x84 > _raw_spin_lock_irqsave+0x84/0xc4 > add_desc+0x44/0xc0 > pl330_get_desc+0x15c/0x1d0 > pl330_prep_dma_cyclic+0x100/0x270 > snd_dmaengine_pcm_trigger+0xec/0x1c0 > dmaengine_pcm_trigger+0x18/0x24 > ... Applied, thanks -- ~Vinod