Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1072313rwd; Wed, 31 May 2023 09:07:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5m0urKaBJb9J2rTx4TI0NvOdFWVKCW7MUROszX4Muo+nNxyn2C+XPssbUWE32IU5OzdWiX X-Received: by 2002:a17:90b:814:b0:256:1fd3:b593 with SMTP id bk20-20020a17090b081400b002561fd3b593mr4642150pjb.38.1685549222811; Wed, 31 May 2023 09:07:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685549222; cv=none; d=google.com; s=arc-20160816; b=WvnSnZ9lfFZYyyTqS2qWWgq4s+EKcaYRnOGXVQv+dqv1GT27r9+9gzPpx0Vlp9FkTb 0nYbkHqLYADbYKH0sPnqnIHUxz1CF2R1kmoM1HVlshiyVFOjcZ4QCrj5CiQQTZHdBbbd PEKcoYPYcLN3+70iQKsQaEf5KXY8+Xud388jXeRI1hRTGKM6rgJiNRMqQkLkbzD9FNEU Ol6leHYJIsYCXUT6V/4c49pviRmJSBgY/Lqa7WcrFHbYYbrGwrRaq0m3zST0kM9pusRL c6C4ysrBUOsroWjQNFBDfueSYNMAqGSzfO7yVpUnEi9E9FC9QMRHnSJHXfiPSBxJ+cfo nE4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=wID7GPzzGugzEQ5iVN7/g09xQ7WkykCVt8yS+PyRhgU=; b=DVf0L92PlnRtjmUiPJrb0UYqkai8mBRtTi/DqYGninOn9ePCP/wcuucZW3cXL6hrl8 3L9t/eW3OL7j29Qj+FzEZLutHov2tMOBriSHOaKmWP2cTDRVqLP84x1QTxfcS0ZwRXjY 2R/6280rP8Nqop8teqx7uMVtmBfjSkSPfVtkksSIvUxrohxeU3O2ZGSXCMfcSzHXwYwx lafGAVlcY5SgVjyleHJaHrrf/z9jMOd9AOaWzTLiEd1fWrrcr5pdSNx+JpFkpS31zliw 697hm1oMz3o2OWWXa3QVUdUlQe77KN+sfiqJi5fIjQJIwWnusb5ZyrRaQbgHsysjNqOj zzuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lt13-20020a17090b354d00b0024e13530c0dsi1182751pjb.38.2023.05.31.09.06.37; Wed, 31 May 2023 09:07:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233479AbjEaPqE (ORCPT + 99 others); Wed, 31 May 2023 11:46:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231545AbjEaPqB (ORCPT ); Wed, 31 May 2023 11:46:01 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2340D8E; Wed, 31 May 2023 08:46:00 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4QWYTK03h2z67nFJ; Wed, 31 May 2023 23:43:48 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 31 May 2023 16:45:56 +0100 Date: Wed, 31 May 2023 16:45:56 +0100 From: Jonathan Cameron To: Junhao He CC: , , , , , , , , Subject: Re: [PATCH v2 1/3] drivers/perf: hisi: Add support for HiSilicon H60PA and PAv3 PMU driver Message-ID: <20230531164556.000027e9@Huawei.com> In-Reply-To: <20230531104625.18296-2-hejunhao3@huawei.com> References: <20230531104625.18296-1-hejunhao3@huawei.com> <20230531104625.18296-2-hejunhao3@huawei.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.76] X-ClientProxiedBy: lhrpeml500003.china.huawei.com (7.191.162.67) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 31 May 2023 18:46:23 +0800 Junhao He wrote: > Compared to the original PA device, H60PA offers higher bandwidth. > The H60PA is a new device and we use HID to differentiate them. > > The events supported by PAv3 and PAv2 are different. They use the > same HID. The PMU version register is used in the driver to > distinguish different versions. > > For each H60PA PMU, except for the overflow interrupt register, other > functions of the H60PA PMU are the same as the original PA PMU module. > It has 8-programable counters and each counter is free-running. > Interrupt is supported to handle counter (64-bits) overflow. > > Signed-off-by: Junhao He Hi, I would have slightly preferred to see the refactoring done as a first patch and then the new device supported added in a second, but as that second patch would only be a few lines I don't mind that much. The result looks fine to me. Reviewed-by: Jonathan Cameron