Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3722675pxb; Mon, 24 Jan 2022 16:20:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyODz/kKMRGlrJ/XIjtnxtqWepXyhVI4zSzCUcEjXvKXdQsq9jEQUF+KrePK73ywKOXN36O X-Received: by 2002:a62:17d6:0:b0:4c7:c1c9:e6d3 with SMTP id 205-20020a6217d6000000b004c7c1c9e6d3mr12666023pfx.31.1643069936721; Mon, 24 Jan 2022 16:18:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643069936; cv=none; d=google.com; s=arc-20160816; b=MOoCjhbJopjWVopMGfml8hh3v7GMc5m8/XMvS7bz/tNpp8ofNOytwGfUz4Qy1mFVUf 0TrzfasXU+DHO7XpBDLQryksu0YWbIK5ONQ6dP5C4DKIP4pzftuaiNO1wsn0fMrL5brd pi31X5z26kF1E/KkcN/CmlrIpsDHPYLn+zTb0/SCRIaQ5UVIAb8SkeC0WpXo40q63Nt9 7qMoot1ZyzsdB6Q28/AycIlMnYq58F9pSuybZpKZjJcCGvziXdXWg1SVYPjZ2E8TmHrj wxywT6/tSQBvyeSMZ4VHz8MRIvhxRoz3vOy2gEvoww1M1CHscsofXCv/krGREIjcxa92 QtvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zRUCwhFEcFYPFqIik+QD03Ymh066irtF47uTE+BayQk=; b=B+cbUmGCqi7V1ixlLQCMwC/okf59xD9M5we6InJdWCaZATaxZY3qHxjuqVsxqLuWKs ktwJ1nr/8Cb/Ov/2ML6a1N+xyOpxzDJYne3/pUbpXADGHZy91mB4j2VnFo4tgZyyB7kl hlzPoPK1HQ5sUzbJNbWkHs6WjqSbc8V78hWCfoHArN/1p/7uWOCPLNyE4OT8uGHKDlYg VI6mMMtM41/rvAcxVOUP3eNOxxmupjJbKeMaYawBrpeD5TIUIskXt47vCCX6UdOZqDI4 fhNEkMo5jg0rqP9iM1eJNmOfQyoXXefMRzarbHXOuQUpoZNrXi+eGaD2HdxI/hNI0H+t f6BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AlzLalvQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si1780129pgi.719.2022.01.24.16.18.44; Mon, 24 Jan 2022 16:18:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AlzLalvQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2372701AbiAYAMQ (ORCPT + 99 others); Mon, 24 Jan 2022 19:12:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1849617AbiAXX0Q (ORCPT ); Mon, 24 Jan 2022 18:26:16 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C473EC01D7E5; Mon, 24 Jan 2022 13:30:19 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 4F9C160C44; Mon, 24 Jan 2022 21:30:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 373D6C340E4; Mon, 24 Jan 2022 21:30:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059818; bh=uC02QHBoKcdv9ttW/OShKG68uyhUyvnpqZMr6byhIJ8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AlzLalvQqRHz7XlCccJVvgo+okXE+vE2qA1qC6xIbQxjWceuwQ84HyoYeJzRaESU3 j6nf54HXmGwf63uEdhbcUwd1LYbEuAK56oEBp8KgVnhDzng1aZNgALt7gI7QAPP4aX Ch6L0YSDVjiaEkYB62zgPH50Nlt29162fRRwlog0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Erhard Furtner , Christophe Leroy , Michael Ellerman , Sasha Levin Subject: [PATCH 5.16 0744/1039] powerpc/powermac: Add missing lockdep_register_key() Date: Mon, 24 Jan 2022 19:42:13 +0100 Message-Id: <20220124184150.342455460@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe Leroy [ Upstream commit df1f679d19edb9eeb67cc2f96b29375f21991945 ] KeyWest i2c @0xf8001003 irq 42 /uni-n@f8000000/i2c@f8001000 BUG: key c2d00cbc has not been registered! ------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(1) WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:4801 lockdep_init_map_type+0x4c0/0xb4c Modules linked in: CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.15.5-gentoo-PowerMacG4 #9 NIP: c01a9428 LR: c01a9428 CTR: 00000000 REGS: e1033cf0 TRAP: 0700 Not tainted (5.15.5-gentoo-PowerMacG4) MSR: 00029032 CR: 24002002 XER: 00000000 GPR00: c01a9428 e1033db0 c2d1cf20 00000016 00000004 00000001 c01c0630 e1033a73 GPR08: 00000000 00000000 00000000 e1033db0 24002004 00000000 f8729377 00000003 GPR16: c1829a9c 00000000 18305357 c1416fc0 c1416f80 c006ac60 c2d00ca8 c1416f00 GPR24: 00000000 c21586f0 c2160000 00000000 c2d00cbc c2170000 c216e1a0 c2160000 NIP [c01a9428] lockdep_init_map_type+0x4c0/0xb4c LR [c01a9428] lockdep_init_map_type+0x4c0/0xb4c Call Trace: [e1033db0] [c01a9428] lockdep_init_map_type+0x4c0/0xb4c (unreliable) [e1033df0] [c1c177b8] kw_i2c_add+0x334/0x424 [e1033e20] [c1c18294] pmac_i2c_init+0x9ec/0xa9c [e1033e80] [c1c1a790] smp_core99_probe+0xbc/0x35c [e1033eb0] [c1c03cb0] kernel_init_freeable+0x190/0x5a4 [e1033f10] [c000946c] kernel_init+0x28/0x154 [e1033f30] [c0035148] ret_from_kernel_thread+0x14/0x1c Add missing lockdep_register_key() Reported-by: Erhard Furtner Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/69e4f55565bb45ebb0843977801b245af0c666fe.1638264741.git.christophe.leroy@csgroup.eu Signed-off-by: Sasha Levin --- arch/powerpc/platforms/powermac/low_i2c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/platforms/powermac/low_i2c.c b/arch/powerpc/platforms/powermac/low_i2c.c index 09bfe4b8f25aa..df89d916236d9 100644 --- a/arch/powerpc/platforms/powermac/low_i2c.c +++ b/arch/powerpc/platforms/powermac/low_i2c.c @@ -582,6 +582,7 @@ static void __init kw_i2c_add(struct pmac_i2c_host_kw *host, bus->close = kw_i2c_close; bus->xfer = kw_i2c_xfer; mutex_init(&bus->mutex); + lockdep_register_key(&bus->lock_key); lockdep_set_class(&bus->mutex, &bus->lock_key); if (controller == busnode) bus->flags = pmac_i2c_multibus; -- 2.34.1