Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp861571pxb; Fri, 3 Sep 2021 15:41:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7cdQ87aPBx+I879TpHMqUxo9ZGAdRLJOMiHE2TI9UjmUnBUmNwBLqighBhxolXHpccfxp X-Received: by 2002:a17:907:1b06:: with SMTP id mp6mr1184744ejc.188.1630708885104; Fri, 03 Sep 2021 15:41:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630708885; cv=none; d=google.com; s=arc-20160816; b=Tt5zwYiQY+b5OGo00Enpw3tNcfAEle9h2X7zMH1xkBzEtdsMcN/+INNMDdmFqCegoK GnQQB4dte+0VU9O6r+G5QGKa0pdkAv8zjZBcVFyqYsZNT6dx1LTt0tlAkeprlTBXhsV5 ljdCQe4/VlgcplJy341UQnl/c9r6AV65UIp+yWG0jBhNshwtguiWCpC6NatmEVc/c5Zd ljjTFjNDFAhTib654N4eAq4WvelYpWIY+KhJnoY/DUP2xpGc1IwAHbsEqm7vnJHgjA4Y /WRaMBzCg8vFMY95868EY9sFg/4FlcdVtGKXaJiGm3JBb/kavZBlD12wpSo8CFQoenbP OSrw== 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:date:to:from:subject:message-id; bh=JcUemuzep0wOnYOTFHTfbPrO0vbV9/Ybn6k1XoD6FTs=; b=0DG7nSk48tvHQbVuLBcERoQTYBHP/og0LFG7negAublE7YUrCTAAxJ9zyZtVj3ahw5 j5zOzoG835/9TOF6PuQ86vuRSAZrwZ4Iwh5tA4rh/joYNW+t5N4F8Cf1cavkZiJcs2ow 2W4kJa0zp7FJwv41V1bPIMt6WsdAoZNqsXY1Lod4FIdcojHmMfzJFDy0rSO9pzjEZoFo HXAjcOQKZyDoUTuVBtl0B3vmsIkJI5NBkfLvjRezHH+qs/H9nYpd94Lu/do0BelDI3hQ 6xL5a+bVR+SKh4yHP989VsK2aDi6yHshzmaum3KMgR0L51X3/BkQNNmrQw8vgB71fX0c njtA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qk32si387050ejc.468.2021.09.03.15.41.00; Fri, 03 Sep 2021 15:41:25 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347582AbhICWjU (ORCPT + 99 others); Fri, 3 Sep 2021 18:39:20 -0400 Received: from mga07.intel.com ([134.134.136.100]:24318 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236815AbhICWjU (ORCPT ); Fri, 3 Sep 2021 18:39:20 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10096"; a="283238780" X-IronPort-AV: E=Sophos;i="5.85,266,1624345200"; d="scan'208";a="283238780" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Sep 2021 15:38:19 -0700 X-IronPort-AV: E=Sophos;i="5.85,266,1624345200"; d="scan'208";a="429832665" Received: from vanchatg-mobl1.gar.corp.intel.com ([10.213.116.178]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Sep 2021 15:38:17 -0700 Message-ID: Subject: Re: Bug: d0e936adbd22 crashes at boot From: Srinivas Pandruvada To: Jens Axboe , LKML , "Rafael J. Wysocki" , Len Brown , linux-pm@vger.kernel.org Date: Fri, 03 Sep 2021 15:38:13 -0700 In-Reply-To: References: <942f4041-e4e7-1b08-3301-008ab37ff5b8@kernel.dk> <3ac87893-55ba-f2d4-bb1e-382868f12d4c@kernel.dk> <7f115f0476618d34b24ddec772acbbd7c0c4a572.camel@linux.intel.com> <767fe00f-bf31-1eb0-09cc-1be91c633bb4@kernel.dk> <903f2e71-983f-39b8-dd0b-d697616ab63e@kernel.dk> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.0-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2021-09-03 at 14:57 -0600, Jens Axboe wrote: > On 9/3/21 2:41 PM, Jens Axboe wrote: > > On 9/3/21 12:00 PM, Srinivas Pandruvada wrote: > > > Hi Axobe, > > > > > > On Fri, 2021-09-03 at 09:00 -0600, Jens Axboe wrote: > > > > On 9/3/21 8:38 AM, Srinivas Pandruvada wrote: > > > > > On Fri, 2021-09-03 at 08:15 -0600, Jens Axboe wrote: > > > > > > On 9/3/21 8:13 AM, Srinivas Pandruvada wrote: > > > > > > > Hi Axboe, > > > > > > > > > > > > > > Thanks for reporting. > > > > > > > On Fri, 2021-09-03 at 07:36 -0600, Jens Axboe wrote: > > > > > > > > Hi, > > > > > > > > > > > > > > > > Booting Linus's tree causes a crash on my laptop, an x1 > > > > > > > > gen9. > > > > > > > > This > > > > > > > > was > > > > > > > > a bit > > > > > > > > difficult to pin down as it crashes before the display > > > > > > > > is up, > > > > > > > > but I > > > > > > > > managed > > > > > > > > to narrow it down to: > > > > > > > > > > > > > > > > commit d0e936adbd2250cb03f2e840c6651d18edc22ace > > > > > > > > Author: Srinivas Pandruvada < > > > > > > > > srinivas.pandruvada@linux.intel.com> > > > > > > > > Date:   Thu Aug 19 19:40:06 2021 -0700 > > > > > > > > > > > > > > > >     cpufreq: intel_pstate: Process HWP Guaranteed > > > > > > > > change > > > > > > > > notification > > > > > > > > > > > > > > > > which crashes with a NULL pointer deref in > > > > > > > > notify_hwp_interrupt() - > > > > > > > > > > > > > > > > > queue_delayed_work_on(). > > > > > > > > > > > > > > > > Reverting this change makes the laptop boot fine again. > > > > > > > > > > > > > > > Does this change fixes your issue? > > > > > > > > > > > > I would assume so, as it's crashing on cpudata == NULL :-) > > > > > > > > > > > > But why is it NULL? Happy to test patches, but the below > > > > > > doesn't > > > > > > look > > > > > > like > > > > > > a real fix and more of a work-around. > > > > > > > > > > > Please try the attached. > > > > I'll give it a test spin right now. Please do add a Reported-by > > tag, > > though. That's always prudent. > > And you can add Tested-by as well, it works for me. Thanks. I will add both. -Srinivas >