Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3576649pxb; Mon, 24 Jan 2022 12:37:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5zELejRkquJ0ZcifYg+47JadUGEeXlJTgw6TamCkbWd12+N2IDKrXGLPb7GpTY5nOMcKf X-Received: by 2002:a17:902:c94c:b0:14a:69c9:2eb5 with SMTP id i12-20020a170902c94c00b0014a69c92eb5mr16294916pla.161.1643056676982; Mon, 24 Jan 2022 12:37:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643056676; cv=none; d=google.com; s=arc-20160816; b=KBPkHomYWafbAJ8VCDqCjdysOm4xFs/pgasV8Rb7C5x1WK369oHNhTY4/f4xkikqh2 YNgeSLTXhmZ6XCqJnnakj19q094c1lVQSg+AF0pXhxNC0IMkMjzf9rnR9B06izBiixOZ bNhX6Yo6Td0ja+oUyX5JT9yYhHEKohId9vUcmb72l1cDFSxi00H+nXbCMQiBVjyTOsrg jYJYwzqusgk/ISU4FtnHbD+NlZBJRqqsy9eeAJbKtjoUW8oC6LIjogcqHulOOZT0z4GX sL3RpP53YGM58Jfrv4RheVBFlRNmaN3nPTF9QCe2RCKRT8XA8/omXB1a528erbwveSVI Q2EA== 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=39j/r2yH4PikUcF8cD7Id71Ep7LOfH9ZC5BdF1nI+Ac=; b=Ue1lKudHdlHROvy+0jtLCufrElfKwuMl2qgrHx1Ll2/8sap1Opo3QjWapemJ8KbgXD DdBQep1BaoW0g4HdmmyrsyZYk3Af7e0jnJHKC7ljj9aXgqp5aG1Jzn0xs+Yq6TE9LDR6 UARwEDGErwbddFnowhoWVhpQuq0uSskqUR3jPXLTchXrJjFKRMv858SefZKz+kHFcgW1 vMUBp5k94L4jEjaYXzthKXT7MWvv2cXqza1pu47jG8dOW2N49GP4aKZXQ438mziMJfiA ZCyrDcHBSkN3RTPKZXGFr8xx/xZOb4MsGwSZCR2IJLycznUror8jgdrmcn70jHAQJj5D D7/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Z84osmP1; 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 g7si3728181pfr.106.2022.01.24.12.37.44; Mon, 24 Jan 2022 12:37: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=Z84osmP1; 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 S1356081AbiAXTpM (ORCPT + 99 others); Mon, 24 Jan 2022 14:45:12 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:58162 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354238AbiAXTgS (ORCPT ); Mon, 24 Jan 2022 14:36:18 -0500 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 ams.source.kernel.org (Postfix) with ESMTPS id 2AD13B8123F; Mon, 24 Jan 2022 19:36:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C1FCC340E5; Mon, 24 Jan 2022 19:36:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052974; bh=Y9TME6GlDVGP6wYbQYgCTOaBbsZDcv5Z3Juog3mJdW4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z84osmP1Hq/rz7cZLGAYfAfeBHbq7mDXgbis3VgbkVwmEThBU1REOnfRltPaxWjm+ hcOd3PxV7uyN9HUdq7ABEDAng9kwrBuIJg7MPsgqGwz6Vy+q6dh7zudNOcPTHGUOiI 7sV+MOUX7Ml2XlS759bD44+n1UO/5bCh/1WzyAhc= 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.4 233/320] powerpc/powermac: Add missing lockdep_register_key() Date: Mon, 24 Jan 2022 19:43:37 +0100 Message-Id: <20220124184001.905370240@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@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 a366233d8ac2d..210435a43bf95 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