Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1774235imm; Thu, 20 Sep 2018 02:40:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYyBxYzCceaHq/b541alvg7C2fAOozHD00odAuh3Rb3q5mc5MrcHf/JTNwGgsy1tUcpZ0Pp X-Received: by 2002:a17:902:585:: with SMTP id f5-v6mr38541381plf.7.1537436415297; Thu, 20 Sep 2018 02:40:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537436415; cv=none; d=google.com; s=arc-20160816; b=D6okwDS74iSmXGIUWC6el4GVzNX3mUeFeO6ms3VBcNFDsSbVXnLdiSiDmlLXfS7tkQ +3sd7YbP7G79iVUkQeuxz9P7tHIt0cnN7TOO5XWhHXs3Nzgtp+gLx2yCVGC2a/5FJXxo USUdCCImtP2h6Yex++TRXTfl0Dp9ZePFdx6Zu+ifYgQEmp8Euo9ObP2X0ePGpG5QZQUl QGMyo5sIgwzLgQiXGSL3cAxNRZ0BwQjwkNLL46Tup6+aMC6lH/khzarHzjvifgWsh28Q Ei2NEWffH8il3bZlJpYexLMl7BrklR76+5AEpMT9EiD3i8MZGI2NljdaCQd9ilJoAdvV rwuw== 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=zj7qpcrHF5hrkP2DQO89RF08jq66sbROPK/HM5O8O5A=; b=UfZs/RBovVa+JsZ6wlEeeO29QNlI7tKP8SIt0MkQ1dfSy4rMF/5kp8HGvv/sO6rh8c pINoReQPQiKNGC8fiaxQWQSKnjkeLVvjvUrlT7GlKQliiUhT4hXnQUbeUfxW3mgnP/8q idZ3mTNhRCaaAO2TuYy5r37+5+drl0CgMX3qrzqHFJGlO8LUYI7szpPMd3OEilP8uiB4 kefvL0AbMaFQkGuj/9VD2oRl51F6UGHj5Fjb+zTxfOdDigbdj6oC82kHeCR9EnfyKuBR d+V5zn3XyqU9jn/jbRZTzRW9YmPygo/VAFzfkBmPwMrDCKs811T+gQ+q3lB0APT0lxZA wJTg== 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 o3-v6si23441792pld.281.2018.09.20.02.39.59; Thu, 20 Sep 2018 02:40:15 -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 S1731969AbeITPWJ (ORCPT + 99 others); Thu, 20 Sep 2018 11:22:09 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:35445 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731343AbeITPWJ (ORCPT ); Thu, 20 Sep 2018 11:22:09 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1g2vQb-00035q-Qv; Thu, 20 Sep 2018 11:39:17 +0200 Date: Thu, 20 Sep 2018 11:39:17 +0200 (CEST) From: Thomas Gleixner To: Pu Wen cc: Rong Chen , bp@alien8.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, thomas.lendacky@amd.com, helgaas@kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, lkp@01.org Subject: Re: [LKP] [x86/pci] 7ffb31888c: PANIC:early_exception In-Reply-To: <7e9e862a-e890-775f-ed92-74c591c7deb6@hygon.cn> Message-ID: References: <20180919031923.GC8820@shao2-debian> <4f5166f8-97b8-a58f-3e5d-19d1751a4601@hygon.cn> <7e9e862a-e890-775f-ed92-74c591c7deb6@hygon.cn> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 20 Sep 2018, Pu Wen wrote: > On 2018/9/20 8:26, Rong Chen wrote: > > On 09/19/2018 09:53 PM, Pu Wen wrote: > > > I cannot reproduce this panic on Hygon Dhyana platform. I tired lkp-tests > > > both in Ubuntu 16.04 (with gcc-5) and Ubuntu 18.04 (with gcc-7). > > > What kind of host do you use to run the qemu? A Intel one or AMD one? > > It's a Intel one, > > > > model: Nehalem-EX > > memory: 224G > > nr_node: 4 > > nr_cpu: 64 > > nr_socket: 4 > > brand: Intel(R) Xeon(R) CPU X7560 @ 2.27GHz > > I reproduced the PANIC by running lkp-tests with a Intel machine. > > The reason is that the function early_is_amd_nb is called even if > running on Intel machine. At this case the misc_ids is NULL so the > PANIC occur. > > I'll rework a patch to solve this problem, either restore the default > value of misc_ids with the original AMD one or not call early_is_amd_nb > on Intel platform. Return when !AMD and !HYGON is the right thing to do. No point in checking device ids which cannot happen in the first place. Thanks, tglx