Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2649807imm; Tue, 4 Sep 2018 07:55:11 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYYJdDTcVc4xhbxgSbOaV9V32mAWlY59xPVGbhzXmGsz9ur9USEG+yed2dLo/z5h1YI11Zw X-Received: by 2002:a62:808c:: with SMTP id j134-v6mr35233726pfd.120.1536072911370; Tue, 04 Sep 2018 07:55:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536072911; cv=none; d=google.com; s=arc-20160816; b=zzYPMnuL49pMUxeklfr3eN+wPf4pung4Jzt/FqGXEtiDvnrbqoPz18/5ZLhWV+CtbD tDdOKojt7TH90IsbXePpIfrw/s4v7uzvQs9VsrM0A65SpD1QK0ZUJrs+vkUfi8QL6m/1 VwC10elWohXwIvxSUuBuQizbTtg6A0R4ONnt+54T0n2PBmKnC0YgIFOwXYp5TbKZonUh 78rqWMYyHmowiE1H7Elsvk9Iy+DYvzUvzHrfP20IdS9DAvGKbKteCc6C4hUeX+Sj+rGa O0vVWwVQntM4gdMfVaOiZkML36cDsH4qpUqMl8y7IXt5bt6NBeAq0oSvt/oe3qljemBx 1PWg== 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:arc-authentication-results; bh=fY+mbNExuT9Fd5XhI6TeFDuaQ3AgzsLVKymCSm7Iqic=; b=L1DhbMJYTXMMU2rDY31VIs7tiV9WF6xzn+LPls0SUxAszEs0MloprZsoi2h1BhVHYC 135dhH0ORxlphIcyvZC+B4RAQlMVE1fUaCQmRAUL0vXfZuuWtdhMyUMvhSZvR11xy5WP jWS1crbvg386VmGYqyhKatIKZNZg6TxHdUnKRNeUURGrLvNMk8CMtAmdyvg5cWwUrMU2 DgZLahg+83KIGJRab08ocfDD2KZlG5HOEI9A0hgNluxxHssv4q33UM/Qi4xE7mvtnk2A SkEgj/+rcfmYgm39lZ3hNQz4bzmlU7smbWqoBe+05uY1aChaEHX4gqHvsOu0RNh/IUSB 9eFw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r22-v6si21255433pgm.258.2018.09.04.07.54.55; Tue, 04 Sep 2018 07:55:11 -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; 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 S1727500AbeIDTSk (ORCPT + 99 others); Tue, 4 Sep 2018 15:18:40 -0400 Received: from mail.skyhub.de ([5.9.137.197]:47902 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726004AbeIDTSk (ORCPT ); Tue, 4 Sep 2018 15:18:40 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id lag7W8aBTt8Z; Tue, 4 Sep 2018 16:52:55 +0200 (CEST) Received: from zn.tnic (p200300EC2BC9A500329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2bc9:a500:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 4550E1EC060B; Tue, 4 Sep 2018 16:52:55 +0200 (CEST) Date: Tue, 4 Sep 2018 16:52:55 +0200 From: Borislav Petkov To: Pu Wen Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, thomas.lendacky@amd.com, pbonzini@redhat.com, helgaas@kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v5 07/16] x86/pci: add Hygon PCI vendor and northbridge support Message-ID: <20180904145255.GI32615@zn.tnic> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 29, 2018 at 08:44:18PM +0800, Pu Wen wrote: > As Hygon register its PCI Vendor ID as a new one "0x1d94", so add a new > definition PCI_VENDOR_ID_HYGON in include/linux/pci_ids.h. > > Also Hygon PCI Device ID(0x1450/0x1463/0x1464) for Host bridge is added > to amd_nb.c. And it need to define new arrays for Hygon: > hygon_root_ids[], hygon_nb_misc_ids[], hygon_nb_link_ids[]. > > To enable Hygon north bridge support, add new variable root_ids, and > assign its value based on whether CPU vendor is AMD or Hygon. Modify > the CONFIG_AMD_NB to depends on either AMD or Hygon. > > Add Hygon support in amd_postcore_init(), early_root_info_init(). This whole commit message needs to not say *what* the patch does. > Acked-by: Bjorn Helgaas # pci_ids.h > Signed-off-by: Pu Wen > --- > arch/x86/Kconfig | 2 +- > arch/x86/kernel/amd_nb.c | 51 ++++++++++++++++++++++++++++++++++++++++++------ > arch/x86/pci/amd_bus.c | 6 ++++-- > include/linux/pci_ids.h | 2 ++ > 4 files changed, 52 insertions(+), 9 deletions(-) > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index c5ff296..733f1ec 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -2818,7 +2818,7 @@ endif # X86_32 > > config AMD_NB > def_bool y > - depends on CPU_SUP_AMD && PCI > + depends on (CPU_SUP_AMD || CPU_SUP_HYGON) && PCI > > source "drivers/pcmcia/Kconfig" > > diff --git a/arch/x86/kernel/amd_nb.c b/arch/x86/kernel/amd_nb.c > index b481b95..d9867b2 100644 > --- a/arch/x86/kernel/amd_nb.c > +++ b/arch/x86/kernel/amd_nb.c > @@ -20,6 +20,10 @@ > #define PCI_DEVICE_ID_AMD_17H_M10H_DF_F3 0x15eb > #define PCI_DEVICE_ID_AMD_17H_M10H_DF_F4 0x15ec > > +#define PCI_DEVICE_ID_HYGON_18H_ROOT 0x1450 > +#define PCI_DEVICE_ID_HYGON_18H_DF_F3 0x1463 > +#define PCI_DEVICE_ID_HYGON_18H_DF_F4 0x1464 Why are you adding those if you can use the AMD f17h ones? They're the same. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.