Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3374878pxb; Mon, 1 Nov 2021 12:38:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeUlVh25njYHpdvlJjs8ID49NvEBlJkig4IWG6HhLqzSg3iviThHDCYAYM3Wa46T8B5/kp X-Received: by 2002:a5e:8815:: with SMTP id l21mr21963506ioj.154.1635795516427; Mon, 01 Nov 2021 12:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635795516; cv=none; d=google.com; s=arc-20160816; b=TNGmzHL+ouSzv/P0nDG4HpJMDadku2okByA04cRu2aUUXWxDEkd+2jIKac/WK0RPdK iXWm5wRbb+OekeFMM7U9aunjtmQIX2VprbyfeceSoDYwTFvTqynGbp2vb2ObcN1VjNwR 022jKxj4igs5irnIoR6HewG2PogTI5sukvCVluDBW19uVpPgJDV9RyNhoiqIwWcxiNOu 1wuzo9j5J7tqSrM3dgpYV8KjVrBoVlIZkVdf5JWAtILbav42Ln/ovkjslQgmclE3RH1a 94JKtDb5VSGKbU84obGzO2N8Tc5rtaPZu/XdQfmKrD7OAOvvzZ2lx8jEq5dANeImArzZ TwlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=gYVc4POqZfF5TbM90YazkSQGeF3ku1Bphuae181IkQA=; b=Y5oLOMpaLrHQZA+l0CT8dnZ3P83+Zo/fxZrOpqkv+mJFZxbyjaGmf+fPqS7wP90c7I AMV9EJTf+YpDUnJZ1n+o0oi009/mGW1pXDuyaHraf74rG7D5PtxNup6DRLsmee1llrNI gdm8D1GQgoozhQ6ziYZnGV4Mver5LPRXIQo9o/6OSKbXj158B16Qkq6fctX4XCVV+zg2 Ww14nGbaBp4XNWTyQjMAPJXr6t8ITn3WeTKv07QhzK8hPUboFqHdZYShuM03I14yBL2F FyJAAIsq/vgslVTjPm2+7GLfdqbaikh8uZoMVkC4B4ldadDd6I3DLlMnRyozCb3pWpzp 0vDA== 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 x13si20774183jas.123.2021.11.01.12.38.25; Mon, 01 Nov 2021 12:38:36 -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 S229931AbhKATkG (ORCPT + 99 others); Mon, 1 Nov 2021 15:40:06 -0400 Received: from mga04.intel.com ([192.55.52.120]:12247 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229636AbhKATkE (ORCPT ); Mon, 1 Nov 2021 15:40:04 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10155"; a="229818506" X-IronPort-AV: E=Sophos;i="5.87,200,1631602800"; d="scan'208";a="229818506" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2021 12:00:42 -0700 X-IronPort-AV: E=Sophos;i="5.87,200,1631602800"; d="scan'208";a="467403485" Received: from smile.fi.intel.com ([10.237.72.184]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2021 12:00:40 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1mhcXf-002mmB-VU; Mon, 01 Nov 2021 21:00:23 +0200 Date: Mon, 1 Nov 2021 21:00:23 +0200 From: Andy Shevchenko To: Aditya Garg Cc: Lee Jones , "linux-kernel@vger.kernel.org" , Orlando Chamberlain Subject: Re: [PATCH v1 1/1] mfd: intel-lpss: Fix too early PM enablement in the ACPI ->probe() Message-ID: References: <20211101151036.33598-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 01, 2021 at 06:21:51PM +0000, Aditya Garg wrote: > > On 01-Nov-2021, at 8:40 PM, Andy Shevchenko wrote: > > > > The runtime PM callback may be called as soon as the runtime PM facility > > is enabled and activated. It means that ->suspend() may be called before > > we finish probing the device in the ACPI case. Hence, NULL pointer > > dereference: > > > > intel-lpss INT34BA:00: IRQ index 0 not found > > BUG: kernel NULL pointer dereference, address: 0000000000000030 > > ... > > Workqueue: pm pm_runtime_work > > RIP: 0010:intel_lpss_suspend+0xb/0x40 [intel_lpss] > > > > To fix this, first try to register the device and only after that enable > > runtime PM facility. > Following patch fixed the issue for me. > Tested-by: Aditya Garg Thanks for testing! -- With Best Regards, Andy Shevchenko