From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751842AbeCMRP4 (ORCPT ); Tue, 13 Mar 2018 13:15:56 -0400 Received: from mga02.intel.com ([134.134.136.20]:28635 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751529AbeCMRPz (ORCPT ); Tue, 13 Mar 2018 13:15:55 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,465,1515484800"; d="scan'208";a="24876530" Subject: Re: [PATCH 1/1] x86/platform/x86: Fix count of CHas on multi-pci-segment arches To: Andy Shevchenko Cc: "Kroening, Gary" , "mingo@redhat.com" , "hpa@zytor.com" , "tglx@linutronix.de" , "peterz@infradead.org" , "Travis, Mike" , "Banman, Andrew" , "Sivanich, Dimitri" , "Anderson, Russ" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" References: <9efcdfa1-9da3-f4de-749f-0950d20a5758@linux.intel.com> From: "Liang, Kan" Message-ID: <23d70b0d-ec19-32c8-e636-4cc36f1eec47@linux.intel.com> Date: Tue, 13 Mar 2018 13:15:52 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/13/2018 12:00 PM, Andy Shevchenko wrote: > On Tue, Mar 13, 2018 at 5:58 PM, Andy Shevchenko > wrote: >> On Tue, Mar 13, 2018 at 3:42 AM, Liang, Kan wrote: >> >>> +#define SKX_CAPID6 0x9c > >>> + pci_read_config_dword(dev, SKX_CAPID6, &val); > > Moreover, this is too non-flexible. Can't you find a capability based > on CAP ID + offset? > It looks it doesn't use capability. 16:1e.3 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 04) 00: 86 80 83 20 00 00 00 00 04 00 80 08 00 00 80 00 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20: 00 00 00 00 00 00 00 00 00 00 00 00 86 80 00 00 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Thanks, Kan