Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2559840imm; Tue, 4 Sep 2018 06:34:48 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbCmUWPVATXzZsoEvK/WLp4xprqODJ73Z40A7khJQwUHBNHhoAF+Zc/dYq6xzKwrOxJzINQ X-Received: by 2002:a63:4c02:: with SMTP id z2-v6mr8029223pga.312.1536068088542; Tue, 04 Sep 2018 06:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536068088; cv=none; d=google.com; s=arc-20160816; b=WUvsQ65V6DdRn88xo9HkWMAf69l0XR5g15UbERrrPFeGvEWK6RTx9c1yYwYt1GgiOg S6bPYMOc3jwM0j1xJ2W+TFqpIK9tM+JywBMHn9vQ3f0m8v+nwmyxcekZklH91pfhQQrg VlAIpLcJ8M6YQ9a9tSgM31XaorRt2iXwPbp41FtpCla+V41yIbV2dm3BmwBKfaSrf9pM MFXc6KpC5yJF6VbSMmEm/ZaKbKx6LmwXCmqfkyaFeT3UC+G8QnML4bttWg3FnLYvvv9V D/subD5I2YjyijZUh7+5wBqLwHnGFQs4/xq1oGSlk4vnVQfmxkzBF2bKNDYZVGUq+2Wn +6ww== 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:arc-authentication-results; bh=kWDfRCKSPZbIrvTTjAbmnfFCTHeswuYZdKBa4geD7qE=; b=t0d9Dz821fMKIQFem2BuxMBmfZsTfOqmd2jAH3tmHJ/W1/+SUGEfYpEYUgwfa/kNe3 ZaWM8HSUsf3x0ddnpK96aQjgCIdks1Ea5nH+XsDukpdjG+Zedm91STkjdQ9B0/zR8NxZ u5ShEaL0rvrsjr2LVVG60P08wcuye0vVPTKNn428dLsOFQZHPkjRYjnTn4z1FaICAN28 KMtCNC3fwTQ6+Kv4Ks6dnA4wR5+91IVHEYEutDy6dkpClYqHQr41RArp1Vbf1pkWAIi0 kR0v8JxNRvqEIlZlFQDSVw+1Jm2rH82Y+Ogr2e6C5yIVnRg7RzW18HYUo4AOXzCzSOR9 tOBQ== 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 y5-v6si16421413plt.438.2018.09.04.06.34.33; Tue, 04 Sep 2018 06:34:48 -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 S1727386AbeIDR6J (ORCPT + 99 others); Tue, 4 Sep 2018 13:58:09 -0400 Received: from smtp20.cstnet.cn ([159.226.251.20]:56687 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726355AbeIDR6J (ORCPT ); Tue, 4 Sep 2018 13:58:09 -0400 Received: from [172.20.20.131] (unknown [182.150.46.145]) by APP-10 (Coremail) with SMTP id tACowAAnLsZ5iY5bBftyBw--.12338S2; Tue, 04 Sep 2018 21:32:42 +0800 (CST) From: Pu Wen Subject: Re: [PATCH v5 05/16] x86/pmu: enable Hygon support to PMU infrastructure To: Borislav Petkov Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, thomas.lendacky@amd.com, pbonzini@redhat.com, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org References: <20180904104812.GF32615@zn.tnic> Message-ID: Date: Tue, 4 Sep 2018 21:32:41 +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: <20180904104812.GF32615@zn.tnic> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CM-TRANSID: tACowAAnLsZ5iY5bBftyBw--.12338S2 X-Coremail-Antispam: 1UD129KBjvdXoW7Gw18ZF4kAry8XFyftr1kXwb_yoWDtrb_uw 4rtFZ0kwsFgr409F4kJF45C39rXr18JryIqas5CasrX39YyanYqr1qkrW8CF4SkFWS9F12 kr13Xa1Iy3W7ZjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbcAYjsxI4VWDJwAYFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVWUJVW8JwA2z4x0Y4vEx4A2jsIE14v26r4j6F4UM28EF7xvwVC2z2 80aVCY1x0267AKxVW8JVW8Jr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IE w4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r4UJVWxJr 1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcVAKI48JMxk0xIA0c2IEe2xFo4CEbIxvr21l 42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJV WUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAK I48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r 4UMIIF0xvE42xK8VAvwI8IcIk0rVWrJr0_WFyUJwCI42IY6I8E87Iv67AKxVWUJVW8JwCI 42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxU7ZqXDUUUU 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/4 18:48, Borislav Petkov wrote: > On Wed, Aug 29, 2018 at 08:43:54PM +0800, Pu Wen wrote: >> Hygon PMU arch is similar to AMD Family 17h. To support Hygon PMU, the >> initialization flow for it just call amd_pmu_init() and change PMU name > > That sentence reads funny. Will rewrite this sentence to make it more understandable. :) > In general, you seem to be explaining *what* your patches do and not > *why*. This is the wrong. Always explain the *why* - the *what* is > visible from the diff. > > You probably need to brush up on > Documentation/process/submitting-patches.rst, section 2. All right, will relearn the document and rework the patch descriptions. >> + case 0x18: >> + if (boot_cpu_data.x86_vendor == X86_VENDOR_HYGON) { >> + pr_cont("Fam18h "); > > Didn't we agree that you'll verify whether family 0x18 is going to be > Hygon only? > > What happened to that checking? ... > Same here. > > What's up? Will remove all the remaining unneeded Hygon vendor checking through the whole patch set to minimize the code modification. Thanks, Pu Wen