Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2286565ybv; Mon, 24 Feb 2020 02:37:51 -0800 (PST) X-Google-Smtp-Source: APXvYqx/w21+vyny75RZjZcUvi09V+YW2YNgZjXe99oKpeN6RTT0TTHPYG8f2pJigPSnLfL8QCFN X-Received: by 2002:a05:6830:1d93:: with SMTP id y19mr39997151oti.350.1582540671419; Mon, 24 Feb 2020 02:37:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582540671; cv=none; d=google.com; s=arc-20160816; b=rpzT2gxboHsi1KsLesAu7jZaBb8DflU7Y1IM+Z1m0rKF32eX2eXVkl1gK+QcSn7t2i Sz3vC7WEp5lj8qlWzvNePVADW1AscIBxsvw0FzyE1DBHaGoVnj382H7lPqycYewYZqwt jG8QmAqy7+nQrDEFF4A6mByNXMn5AWfZ3Vir9SW5N0dy1tZU0hfpAZ3jkYxM5Zbw4kBy FRa9ioEhgqdNhfZRGkdWFovcGo+46bSUkyz3TEKLlpxt7Aok3UhqgW/z4UQmNCJkLnBs n49C7nQixmZXSePXFuQn68f4D2UirTNiGAwxEdQTZULiNp6CY2ID91MHcND517AnXH6a JN/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=/h3fp47SPAM5zw4HJm0476bV/ZH5w2woKj91dDL0Lc4=; b=I7z+evzAPzkHqAQQ4HwpBFfALCtA/SznRB4tIjUBA6Q5fZ7Jl9a6kH5p2L6mQvpweO CVDrebkpb091JSZBlghDP9OQUvyCyq6Qd4n3FBdz2B+dTXjdc8QhmJ7hsub+oiEsmplf JXwAx/aYliLNilWQh7B+CR/RHmXaNy8ny5n4Hy+BmMm4RysgIF2oLnF6wJfp980+QRMF +XpniJ41WkiyWoyvb+MkijH4+Ah4GUK0JbZMmRvr8lMKSwrmAI7A3BVyScHIA0QhZWwt jrWFD/vSRHBLqEHcDXVPkE5cTXoPxhrEnp45q7pjJ5UX2jmu82dvL38BA6kLPeGZD3FL gvaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id l5si6303008otn.35.2020.02.24.02.37.38; Mon, 24 Feb 2020 02:37:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727314AbgBXKhd (ORCPT + 99 others); Mon, 24 Feb 2020 05:37:33 -0500 Received: from mga18.intel.com ([134.134.136.126]:33499 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbgBXKhd (ORCPT ); Mon, 24 Feb 2020 05:37:33 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Feb 2020 02:37:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,479,1574150400"; d="scan'208";a="231091385" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga008.fm.intel.com with ESMTP; 24 Feb 2020 02:37:29 -0800 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1j6B7D-004McT-Se; Mon, 24 Feb 2020 12:37:31 +0200 Date: Mon, 24 Feb 2020 12:37:31 +0200 From: Andy Shevchenko To: Mika Westerberg Cc: Guenter Roeck , Martin Volf , Jean Delvare , Wolfram Sang , linux-i2c@vger.kernel.org, linux-hwmon@vger.kernel.org, Linux Kernel Mailing List , Jarkko Nikula Subject: Re: [regression] nct6775 does not load in 5.4 and 5.5, bisected to b84398d6d7f90080 Message-ID: <20200224103731.GA10400@smile.fi.intel.com> References: <1bdbac08-86f8-2a57-2b0d-8cd2beb2a1c0@roeck-us.net> <85356d1a-f90d-e94d-16eb-1071d4e94753@roeck-us.net> <20200224101800.GJ2667@lahna.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200224101800.GJ2667@lahna.fi.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 24, 2020 at 12:18:00PM +0200, Mika Westerberg wrote: > On Sat, Feb 22, 2020 at 01:26:48PM -0800, Guenter Roeck wrote: > > On 2/22/20 12:49 PM, Martin Volf wrote: > > > On Sat, Feb 22, 2020 at 8:05 PM Guenter Roeck wrote: ... > > > devfn = PCI_DEVFN(PCI_SLOT(pci_dev->devfn), 2); I'm wondering if pci_dev_is_present(...); returns false here. > > > pci_bus_read_config_dword(pci_dev->bus, devfn, ACPIBASE, &base_addr); > > > > > > res = &tco_res[ICH_RES_IO_SMI]; > > > res->start = (base_addr & ~1) + ACPIBASE_SMI_OFF; > > > res->end = res->start + 3; > > > res->flags = IORESOURCE_IO; > > > > > > base_addr is 0xffffffff after pci_bus_read_config_dword() call. > > > ACPIBASE_SMI_OFF is 0x030, therefore res->start is 0x2e. > > > Not that I understand even a bit of this... > > > > > > > Outch. This means that the code is broken. ACPIBASE is not configured, > > or disabled, or the code reads from the wrong PCI configuration register. > > What I don't understand is why this works with v5.3 kernels; the code > > looks just as bad there for me. I must be missing something. Either case, > > the only thing you can really do at this point is to blacklist the > > iTCO_wdt driver. > > Indeed it looks like the code reads from a register that is not there > anymore in this generation hardware, or something like that. It tries to > read the PMC (1f.2) register add address 0x40 which is supposed to be > base of ACPI PM registers but that does not seem to exist any more in > newer chipset. > > We'll look into this more and return back. -- With Best Regards, Andy Shevchenko