Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1625812rdd; Thu, 11 Jan 2024 05:02:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzi5cAYl454dL8bFxQApPLTACykMyDu6vZmnyOqlrbas9or7Z5avOlUxQd34dGTDuKX6+W X-Received: by 2002:a17:906:6a15:b0:a27:76cf:103a with SMTP id qw21-20020a1709066a1500b00a2776cf103amr384128ejc.136.1704978123380; Thu, 11 Jan 2024 05:02:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704978123; cv=none; d=google.com; s=arc-20160816; b=M8WbM4Bk5hMTDWGQmd6eulVoAD0BwjBAMjCl4TqN/h6eThFanz/fwR4rG4RLat4A1j 7UFqfKZZHjmayjQArm2aigKrEssxytcCoSfiEeg/q8pP9z64FZDn/U00YHyri/3cefdU vWvqKpwyLFLyRVIYCx+VVQMj7J1hUUC+HPaL749hQQO2Gh+S+OV3n/WMxCDaKNhfCZxW 3ryl+TeL1W5DCBB7V39iBDKh6QWJSR/DhHP0iVI4+uv8neviMMrIONuS8G3SvsF6b66r g7pbu9Yp1ln9trj95KvJ7LXA+nVRkqXaAosE+bNN4lVYik32JPYxE2VeLGwfXP94r1kB k6YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=sn8nuH2cSvzytqJLKHIgNn6yCf0p0HZ88mhmcwCtOKs=; fh=dAu7EKwuEqFIJSL9QCvdb9j4h71bDGXpnviM7SAIeWg=; b=dbRdqsciAjLI5jGe7Xau7OXgq5KDh5zc6VSeklBuxmu9lcEejr1z1bNgZCICVWBSMz 4yukIjzUlpcuJbDK/AZcazn2y0jhTGo1B7jaedDxds/aA5hDOG7SH+LK5dEq1u8uioHt 89M26J38NzNRnNSChKTMcxG8iyHmHfcu42ObKcUzUrwS5s/Exn9NekhhAn2N0DRw66B7 7ouaMOL+V085QqvbJ6IWYTVGrb5F7QKYQynrgPKkYXxxeOgHSyYbqxtJTSFNWJfV1cqM PSMbXz9I+FgaIckOlhCr7kI4bL8SPz+ZEGdYxQAnOK6nIN5/upu0qEfB0hpNeGmZfuUG daVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CFEz4Mim; spf=pass (google.com: domain of linux-kernel+bounces-23610-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23610-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z10-20020a1709063aca00b00a2b0df14962si496450ejd.512.2024.01.11.05.02.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 05:02:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23610-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CFEz4Mim; spf=pass (google.com: domain of linux-kernel+bounces-23610-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23610-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 255E21F22317 for ; Thu, 11 Jan 2024 13:02:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DB6215E99; Thu, 11 Jan 2024 13:01:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="CFEz4Mim" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6364E15E88; Thu, 11 Jan 2024 13:01:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704978113; x=1736514113; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=oCzQBcRIeW5uBmcYUKzKBeMO8BTEAhWkUMNU32e2x1E=; b=CFEz4MimHtdWl5nzujYyPB/UoIkNLBQuqld89fADvFifx6jzG0S3v1B7 Q4Vd/VIl4YsYW6HPWweGGucxQoGF9rnQWmpbh4fm3Cm8WQEt6AGzm3PjM ujqgRotS4kSakuAkRlKCYaTg/3iUtDpfZ53c+xDNxUh+jE5qD3CMhwZHP 4TWsXd/KMw0K/tnZ+GDueoBHkl+hrBNbKeAXhPt1jzTR8D21qU2TENNFe AP+3QQHILcI0lHsiEFDUOhw5shuBOnQHEtmYGPaUy2CM7Yq+TLtF1rlvn wU4tM3HuruyJ6FirpKoMGB4G6UyBiFR01XNBJupbiZ8FqfwArEpp4Hzxh w==; X-IronPort-AV: E=McAfee;i="6600,9927,10949"; a="395982155" X-IronPort-AV: E=Sophos;i="6.04,186,1695711600"; d="scan'208";a="395982155" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2024 05:01:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10949"; a="758758981" X-IronPort-AV: E=Sophos;i="6.04,186,1695711600"; d="scan'208";a="758758981" Received: from marquiz-s-2.fi.intel.com (HELO [10.237.72.58]) ([10.237.72.58]) by orsmga006.jf.intel.com with ESMTP; 11 Jan 2024 05:01:49 -0800 Message-ID: Date: Thu, 11 Jan 2024 15:01:48 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: i2c-designware: NULL ptr at RIP: 0010:regmap_read+0x12/0x70 To: Kim Phillips , "V, Narasimhan" , Borislav Petkov , "linux-i2c@vger.kernel.org" Cc: lkml , Andy Shevchenko , Mika Westerberg , Jan Dabros , Andi Shyti , "Limonciello, Mario" References: <20231229120820.GCZY62tM7z4v2XmOAZ@fat_crate.local> <8169d773-f9ec-4092-b036-9e4fd59966c3@linux.intel.com> <888da30a-c1ed-4fb0-af81-787fd868ce20@linux.intel.com> <27cf56b5-d21b-4906-823f-a9e567fc26e2@amd.com> Content-Language: en-US From: Jarkko Nikula In-Reply-To: <27cf56b5-d21b-4906-823f-a9e567fc26e2@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi On 1/11/24 00:56, Kim Phillips wrote: > Hi, > > On 1/9/24 4:11 AM, Jarkko Nikula wrote> On 1/9/24 09:56, V, Narasimhan > wrote: >>>   * Looks like the issue is with this below commit: >>>   * i2c: designware: Fix lock probe call order in dw_i2c_plat_probe() >>> >> Hmm... This makes me even more confused since your device AMDI0010 >> should not even use the access semaphore. >> >> So linux-next works if you run a commit before it or revert these >> three patches? (commit 2f571a725434 ("i2c: designware: Fix lock probe >> call order in dw_i2c_plat_probe()") doesn't revert without reverting >> two other related commits after it) >> >> git show f9b51f600217b38f46ea39d6aa445e594bf3eb30 |patch -p1 -R >> git show b8034c7d28a988be82efbf4d65faa847334811f7 |patch -p1 -R >> git show 2f571a72543463ef07dc3ac61e7b703b9ad997f9 |patch -p1 -R > > Narasimhan is right, if I check out, build and boot this commit: > >       2f571a725434 i2c: designware: Fix lock probe call order in > dw_i2c_plat_probe() > > I get the same stacktrace on the serial console. > > If I try the previous commit (174a0c565cea "efi/loongarch: Directly > position the loaded image file"), > the system boots fine. > > The same thing happens with the three reversions above: > next-20240110 gets the stacktrace, but with the three > reversions, it doesn't. > Thanks, I just sent a fix reverting those commits. > Is your parallel post probe runtime suspending time window > theory no longer applicable?  These AMD EPYC systems have a > lot more cores than their client equivalents, and AMD power > management code has had a lot of improvements lately. > It still a mystery to me but I let Andy to figure out it if he wants to during next development cycle :-)