Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1661671imm; Thu, 20 Sep 2018 00:25:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaFVbFJNgUCQZkmf3ebldSmj+fM4pzgFStyCDR8OQ4NiRVsGGFVPc/12KvD2NqhXrM0sFSR X-Received: by 2002:a17:902:7404:: with SMTP id g4-v6mr1268885pll.311.1537428357714; Thu, 20 Sep 2018 00:25:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537428357; cv=none; d=google.com; s=arc-20160816; b=DtbmcuIP6AKOfj/BcstpB6R2H5wJtYlN7I1U6VxPLJ9BHv2Symet3xIGq99elkoFO9 XeulKkdOltS48oCM3mdzPyMk866jVR1Q4kiND3Ze1eAfVu0rWNII07tXISXhr74u7Mk+ HT71KEHIxaNwAqpFbGieSSMIPAZxQSY9TZ5CtStolbrNGFI1h9bQsKcQUU0CBmAl/N2u HMWejMNuyAhw/Tk0CiL2a/pFUhdVnUykhhHjF+ylywoCQ/TnurPCv+ZUsrpLNRMgOnFj HsyRN33ZEVzKzY/FM1GLIBIAmNY2pIqB6t94Jwg33vdBrfrxSErKnu1IoQxvL23Y+e/u kauw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=ojnslMjET3lSH1f2hq6t0df/YTNBcDbGNYDvZgue0J4=; b=MGFBgnDEzjoV3v+zaxn6WYxMOdYomWfcYlkbZRulPDElMh3H/qLxE6Sj0aMZYVnSue 8qgZsyU/hkUBEo/F9dMCxf+GetI9lg0Rwbfh5HqIrcyhAZLufgqvLWJKM1g7cDkshIDn 0l6ZU9t3wtZWorm7MGBpxiNkhXxhSF/NFMY2TzZg0cSTZF4fN9lE9ZkzuG/zP0EkUSf6 yiNpd2buMkabSEtvxTQp742arpAEbu+QyhVleyB4B9nywOojb2z8udhyG12hjlag07Hy omzLLMPBY2Kv9I0RaMVzgshijAKWez8ODbxh/8FupWjU/iYs2g04d5zbIbtWWafTBJS+ yBZQ== 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 i90-v6si22909134pli.274.2018.09.20.00.25.42; Thu, 20 Sep 2018 00:25:57 -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 S1731626AbeITNHa (ORCPT + 99 others); Thu, 20 Sep 2018 09:07:30 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:34434 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728056AbeITNHa (ORCPT ); Thu, 20 Sep 2018 09:07:30 -0400 Received: from p5492e4c1.dip0.t-ipconnect.de ([84.146.228.193] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1g2tKn-0000Ie-IE; Thu, 20 Sep 2018 09:25:09 +0200 Date: Thu, 20 Sep 2018 09:25:09 +0200 (CEST) From: Thomas Gleixner To: "Lendacky, Thomas" cc: Pu Wen , "mingo@redhat.com" , "hpa@zytor.com" , "x86@kernel.org" , "bp@alien8.de" , "pbonzini@redhat.com" , "helgaas@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arch@vger.kernel.org" , "linux-pci@vger.kernel.org" Subject: Re: [PATCH v6 07/16] x86/pci: Add Hygon Dhyana support to PCI and north bridge In-Reply-To: Message-ID: References: <035e5d0a4f2a0edf68ca0f1019e47b878eaa5da6.1536550550.git.puwen@hygon.cn> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 19 Sep 2018, Lendacky, Thomas wrote: > > To be compatible with "before this patch" you should probably do: > > if (boot_cpu_data.x86_vendor == X86_VENDOR_HYGON) { > root_ids = hygon_root_ids; > misc_ids = hygon_nb_misc_ids; > link_ids = hygon_nb_link_ids; > } else { > root_ids = amd_root_ids; > misc_ids = amd_nb_misc_ids; > link_ids = amd_nb_link_ids; > } > > That way they are always the AMD values if not your chip. And please can we have a comment why this is called on anything which is not AMD or HYGON. It's all but obvious and clearly unexpected. Thanks, tglx