Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3784994imm; Wed, 5 Sep 2018 06:05:16 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbD6Ji7Rk7NaShZKhj3Fc07Cm2i7lBsmhf5xW8RBzJ3eXW0r2zKIQS3pW0EZiPkINLkUedZ X-Received: by 2002:a65:5b48:: with SMTP id y8-v6mr36868309pgr.125.1536152716155; Wed, 05 Sep 2018 06:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536152716; cv=none; d=google.com; s=arc-20160816; b=RVM3BGiZSkIZ8Hr8FzliRBpGemM4YOYH+K6HuxxZ1bTU8R59orEXT9Tpdl5kOjpmhk 24SVsuv4MyDBgav0RUr5F0Kyqww3YuFIlcx+kREWNC6SxHZSYqz/petkTjKNeZJ4bcvD idPu7O7L0zgihPMJpeNWgoQc+PutwPxn9EJjnwbZghHwjwdHr0EgE9jRmWOgEbbTKGFa pWngc/LID1qdzi4N69TwPaxbeDhPjhQEDR+Ca7+/ry4dlmLtZtD63vK4AM8L5rnr1Kd3 GM5ZYHZC9EMkq2phyES1OpmWCZugkgBYJBXrK+eBtfW4jGoCCQaIHNjXXjy7joViX/ey UxBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from; bh=Fa0ph5On3CYT6wsbAxJrv9DrCvL6KIrA21bnofncw4Q=; b=SztV73ZqCrm/6aqYcidihWL1ZgROjGEQk4cFO8HdCI5V3y43wohaOUMVR6ne34uWa5 Ab3J1ANsK7rP4fZLzI4LdElUhhTbSg+sYBgSD71rgKFGl7um1qowU8fndmj8CPyaehO4 5FvxHZOr+0UqSI6qG7+O2GKLUmcDEJRKPhlTKB6WkEvQgcoKywU2uvTLajaJ/SYADxA2 HJyfHYCCbUxPoegEa7nKfBSdZC6Dhg3DESVDEYJrrcVFrfBsXxMwPAnSQrDD4OCpSinR mEwGs1qlrQjB6bmVivU0kYaOURJwFXnnbpN8AN2gJyoFocwN2kCVVainexFLojwl0/zg Uxzw== 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 24-v6si1924091pft.235.2018.09.05.06.05.00; Wed, 05 Sep 2018 06:05:16 -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 S1727627AbeIERdj (ORCPT + 99 others); Wed, 5 Sep 2018 13:33:39 -0400 Received: from smtp20.cstnet.cn ([159.226.251.20]:55044 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725868AbeIERdi (ORCPT ); Wed, 5 Sep 2018 13:33:38 -0400 Received: from [172.20.20.131] (unknown [182.150.46.145]) by APP-10 (Coremail) with SMTP id tACowAC3vWER1I9bYpn9Bw--.6234S2; Wed, 05 Sep 2018 21:03:14 +0800 (CST) From: Pu Wen Subject: Re: [PATCH v5 15/16] driver/edac: enable Hygon support to AMD64 EDAC driver To: Borislav Petkov Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, thomas.lendacky@amd.com, pbonzini@redhat.com, mchehab@kernel.org, mikhail.jin@gmail.com, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-edac@vger.kernel.org References: <47e08d8bab1cef667be3955941e7eedc23187ae1.1535459013.git.puwen@hygon.cn> <20180905104405.GG2237@zn.tnic> Message-ID: <03835d0f-225a-f7b9-dedb-5d474193181a@hygon.cn> Date: Wed, 5 Sep 2018 21:03:12 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180905104405.GG2237@zn.tnic> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CM-TRANSID: tACowAC3vWER1I9bYpn9Bw--.6234S2 X-Coremail-Antispam: 1UD129KBjvdXoWrKrWkGrWfWw4rKF4UuryxGrg_yoWxtFX_Jr 1UZ34fWw4jqF1Iyws8J34rXa47Wa1jvr1xtF98GF9rZFn8tan3WFs5Cw1UurWkXwnxKr1f ur1jgFy0y3srXjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbVxYjsxI4VWkCwAYFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4j6F4UM28EF7xvwVC2z2 80aVCY1x0267AKxVW8JVW8Jr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IE w4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JrI_JrylYx0Ex4A2jsIE14v26F4j6r4UJw Am72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lFIxGxcIEc7CjxVA2Y2ka0xkIwI1l c7I2V7IY0VAS07AlzVAYIcxG8wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJV W8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF 1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6x IIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6Fyj6rWUJwCI42IY 6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa 73UjIFyTuYvjxUF9NVUUUUU X-Originating-IP: [182.150.46.145] X-CM-SenderInfo: psxzv046klw03qof0z/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/9/5 18:44, Borislav Petkov wrote: > Subject should be: > > EDAC, amd64: Add Hygon Dhyana support Thanks for the correction. >> + case 0x18: >> + fam_type = &family_types[HYGON_F18_CPUS]; >> + pvt->ops = &family_types[HYGON_F18_CPUS].ops; >> + break; >> + > > You can use the F17_CPUS array element here and overwrite the ->ctl_name > string only. No need to define [HYGON_F18_CPUS] above... yet. All right, the way reusing F17_CPUS will also minimize the code modification. >> +#define PCI_DEVICE_ID_HYGON_18H_DF_F0 0x1460 >> +#define PCI_DEVICE_ID_HYGON_18H_DF_F6 0x1466 > > As in the previous patch - use the AMD defines. Will remove them in next version of patches. -- Regards, Pu Wen