Received: by 10.192.165.148 with SMTP id m20csp3946387imm; Mon, 30 Apr 2018 09:02:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqt/JoO4qTDs+panbuZFmWAfzeOj8f8UM/+HAyohOvp2ZZLKP7hMdaVv9EStKsu8fRgtnCC X-Received: by 2002:a17:902:8345:: with SMTP id z5-v6mr12631598pln.311.1525104148906; Mon, 30 Apr 2018 09:02:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525104148; cv=none; d=google.com; s=arc-20160816; b=Cm5mN/ikJCJjys8Fo2v9YtdJI8INiZOjpl9at3mPJYpYcPmtblwpr0gbPF8GPsTB0D tVoKiJvRPMFOwdBQoXB1iFR/UUBN3K6Q7tLP+D/ha9WZXoPO+tqpNp40b7w90fxlI+h5 Fi07eaobqkYOojAFkPM1bSQ56aipehpr3mmSp+/W2YhF5mFte1u9rnKGULrQxjDDeott t+BEHzA0yFh7KLMyDEfG0/nTF/hzRJ2LLd+quK+Fr3TzAt22LdD+MYijKu7OKaSLWFwO wXB2afdXAHGo7orQRlbJ6yZ0sD/x1tHRUCTew4gvEmHKJn9CiAlRHgl/MOrUa/04/gnV FGgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=b+MlpqR5jgoVJujw8O0900wxAjmdiDvXBTkYW7Ql58Y=; b=jTDNOkS+31UXodcAWytIyWrX45YVe8Qatk4N8p90dvbTUQGjpUJWxKbtu/seLteSKj S8dAFLHgoDmn5zmls5fHod+O2bpl+wPYpYMuPNnOB5PgbfM8YVmQ+GW2f9lPspOE6J+O cQleWMesfL/U2mVuvFxDHkoVzQqYIdKrZ4XVjlezj0o74W1+mUEPwzOa8seNoz9anKvl hWE7rBz6nNmOAiBd7KtVSu4bS9LFX61bO3HpnP0i3KPmaIMmefE5LuoDjYqT/gfq7Msb /lAu7/Kkl2KIJR2E63MqjajnH2Ya6GsrW6jY+S+dZv2pFiXTdVA8LovODGnfxV4jE7V6 mDEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@roeck-us.net header.s=default header.b=vHIfqeCx; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2si7809037pfh.215.2018.04.30.09.02.14; Mon, 30 Apr 2018 09:02:28 -0700 (PDT) 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; dkim=fail header.i=@roeck-us.net header.s=default header.b=vHIfqeCx; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754731AbeD3QCE (ORCPT + 99 others); Mon, 30 Apr 2018 12:02:04 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:45520 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753334AbeD3QCD (ORCPT ); Mon, 30 Apr 2018 12:02:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=In-Reply-To:Content-Type:MIME-Version:References :Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=b+MlpqR5jgoVJujw8O0900wxAjmdiDvXBTkYW7Ql58Y=; b=vHIfqeCxbIskJIEJYIJX1tj812 UwVoSP9WFmL3/aO0qUQR6oqjI5Ax91wMiUWg7D7XY7CFHdIb3TQrpUIw2DndbAY3+lzWelTJewsY8 vkxixxXgv6WmqzdKk+Xnk5RZNQOCbaLifGMXsAgIQLVSCetXGe5zcAjEtHZzqlqujF9gxI5FtLtd5 viwoXzPT2FT9Mi8uUDD11laTjZ/itCeWmeLXwBojVymrqCn3Kx+KTPWBBWa+AjiH1RllekFcjRnqg FvrKeh0tAhLvRr0aN8R6htLjD9QFj+0ZZOSTb4AAxwyc0oCz9L1BPEHzzoHJYfZoWLQCrpeDBzDY6 Lj+3EMnQ==; Received: from 108-223-40-66.lightspeed.sntcca.sbcglobal.net ([108.223.40.66]:34572 helo=localhost) by bh-25.webhostbox.net with esmtpa (Exim 4.89) (envelope-from ) id 1fDBFY-003fCs-4O; Mon, 30 Apr 2018 16:02:00 +0000 Date: Mon, 30 Apr 2018 09:01:59 -0700 From: Guenter Roeck To: "Ghannam, Yazen" Cc: Borislav Petkov , Thomas Gleixner , Clemens Ladisch , "x86@kernel.org" , Jean Delvare , "linux-kernel@vger.kernel.org" , "linux-hwmon@vger.kernel.org" , "Woods, Brian" Subject: Re: [PATCH 1/2] x86/amd_nb: Add support for Raven Ridge CPUs Message-ID: <20180430160159.GB19372@roeck-us.net> References: <1524966879-9424-1-git-send-email-linux@roeck-us.net> <20180429175305.GB19814@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 30, 2018 at 03:38:59PM +0000, Ghannam, Yazen wrote: > > -----Original Message----- > > From: Guenter Roeck On Behalf Of Guenter Roeck > > Sent: Sunday, April 29, 2018 2:24 PM > > To: Borislav Petkov ; Ghannam, Yazen > > > > Cc: Thomas Gleixner ; Clemens Ladisch > > ; x86@kernel.org; Jean Delvare ; > > linux-kernel@vger.kernel.org; linux-hwmon@vger.kernel.org; Woods, Brian > > > > Subject: Re: [PATCH 1/2] x86/amd_nb: Add support for Raven Ridge CPUs > > > > On 04/29/2018 10:53 AM, Borislav Petkov wrote: > > > On Sat, Apr 28, 2018 at 06:54:38PM -0700, Guenter Roeck wrote: > > >> Add Raven Ridge root bridge and data fabric PCI IDs. > > >> This is required for amd_pci_dev_to_node_id() and amd_smn_read(). > > >> > > >> Signed-off-by: Guenter Roeck > > >> --- > > >> This patch is a prerequisite for the second patch in the series. > > >> I'll be happy to apply both patches through hwmon if that is acceptable > > >> (and Cc: stable for 4.16+). If not, I'll be happy to wait for this patch > > >> to be available upstream. > > >> > > >> Since that there is no public documentation available for Raven Ridge, > > >> PCI IDs are derived from output of lspci. > > >> > > >> arch/x86/kernel/amd_nb.c | 6 ++++++ > > >> 1 file changed, 6 insertions(+) > > >> > > >> diff --git a/arch/x86/kernel/amd_nb.c b/arch/x86/kernel/amd_nb.c > > >> index c88e0b127810..bd33613ecb7c 100644 > > >> --- a/arch/x86/kernel/amd_nb.c > > >> +++ b/arch/x86/kernel/amd_nb.c > > >> @@ -14,8 +14,11 @@ > > >> #include > > >> > > >> #define PCI_DEVICE_ID_AMD_17H_ROOT 0x1450 > > >> +#define PCI_DEVICE_ID_AMD_17H_RR_ROOT 0x15d0 > > > > > > I think the nomenclature we decided upon at the time was > > > > > > ...AMD_H_MH... > > > > > > PCI_DEVICE_ID_AMD_15H_M10H_F3, for example. > > > > > > And in this case, it should be > > > > > > PCI_DEVICE_ID_AMD_17H_MH_F > number> > > > > > > > Makes sense. > > > > > Yazen, which is the first model of Raven Ridge? > > > > > > > 2400G is model 17 (0x11). I was unable to find information if there are > > other chips/models using the same set of PCI IDs. > > > > I'll wait for additional feedback before resending. > > There are other models using the same set of IDs, but the first is 10h. > Ok, I'll make it PCI_DEVICE_ID_AMD_17H_M10H_ROOT and PCI_DEVICE_ID_AMD_17H_M10H_DF_F{3,4}. > Also, the F3 IDs for Fam17h and Fam17hMod10h are used in both amd_nb.c > and k10temp.c. Can you please delete the F3 IDs from these files and add > them to "include/linux/pci_ids.h"? > I'll be happy to do that. However, my preference would be to do that in a separate patch. I would like to see this patch and patch 2/2 applied to 4.16+ since together they fix a potential race condition as well as temperature reporting problems with multi-die Zen chips (Threadripper and EPYC). The pci_id.h changes are not bug fixes and would be more appropriate for v4.18. Thanks, Guenter > Thanks! > > -Yazen