Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp828567ybs; Sun, 24 May 2020 23:31:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyO8yOTqHludvHkArjCT0YtLavSge+cNstzmqr8Mwn4R0zIA9/xn3TsVprhRtacodwDxw+B X-Received: by 2002:a17:906:f06:: with SMTP id z6mr17486526eji.105.1590388319008; Sun, 24 May 2020 23:31:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1590388319; cv=pass; d=google.com; s=arc-20160816; b=E6uZ+CLghl54Mt5cmA+WinmimHfIhNm1Ihv4fnrpGuLLX5eS7bw3kBBxDfgndZOgFq OYvxSLt39n5oSUH4knkJAU1X0t4h3inH4529QcNIQ24KNqPLCuprUXPyBR9E/9ELKyVp snKK3zX9cx2q2D2RXB9qGg34Pu0OpG6WXt+M5BsytXfuQv7AbJCce4GWbXeykedeYSCo 8Rtl6a6GedTCQt8fPM/iYuBIklXD2yszThVYx3PKSwraeP/wfOEy06/GcEtznm7yZn+a a2Fd1EEbOF1MsSnsA7IUE+S1kR6mh3OlCoY6k/mDmfnHjTc0cWvS8P1vcTo1bK4aIm75 JSrQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:original-authentication-results :mime-version:content-transfer-encoding:nodisclaimer :authentication-results-original:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:dkim-signature:dkim-signature; bh=tv1jqUYENvo6g+B9+/K4FqJigiAnUJw8oDZVDnXfIwk=; b=K+eZsymCZ9dNgMDl/1pnh7XuCT/3hB4XGo3ye7c0vUQt5lkHszPgVQJDsq9/9J8Dqq LEgS0546uhXT2Y2+gjyv4qzwd3TxPQ/xZ9o1LrW69Xh5lrL+dgZdXF3WGtDZGAQGAbL0 K+K+e2oGxsEnzxdvdbYAAi/4oMV8rqnJLgKnIDej051kcdFczX7Rr9iJvuZs6oZoXjC4 gM5f/E9QeVE6fW8qdJqAqOHV3MxJ+BosoYynJZsz3xv8NjbUUish9cPzNKcfzzvCzGx4 Wg+pASxQfSMofTRcoSxxxETJ14PyzfKuTUbO0Zn0qI+kMvPK8ZLc4D10Hbvb9GDH5/SL b9yQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b="h24bf90/"; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b="h24bf90/"; arc=pass (i=1 spf=pass spfdomain=arm.com dkim=pass dkdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a6si9982477ejy.11.2020.05.24.23.31.35; Sun, 24 May 2020 23:31:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b="h24bf90/"; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b="h24bf90/"; arc=pass (i=1 spf=pass spfdomain=arm.com dkim=pass dkdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388833AbgEYG3y (ORCPT + 99 others); Mon, 25 May 2020 02:29:54 -0400 Received: from mail-eopbgr60085.outbound.protection.outlook.com ([40.107.6.85]:44014 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388631AbgEYG3x (ORCPT ); Mon, 25 May 2020 02:29:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tv1jqUYENvo6g+B9+/K4FqJigiAnUJw8oDZVDnXfIwk=; b=h24bf90/6sweDGx8M8jhvP8vxxBZvxk9bDgShvzkhIG4wgrDmDeOx+1Ar2bqea/GZZ/wjV3Ui64mqv9rZ+PTWEx9T3wK1DSfpjfluBhe3QI0V075GxviMM9e5uvAZaJtusx7OyJ/tuLP3OrFdLbSv9fgXqZctjOsHiIX+ezAx8Y= Received: from AM6P194CA0095.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:8f::36) by AM0PR08MB3827.eurprd08.prod.outlook.com (2603:10a6:208:104::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.27; Mon, 25 May 2020 06:29:47 +0000 Received: from VE1EUR03FT029.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:8f:cafe::4d) by AM6P194CA0095.outlook.office365.com (2603:10a6:209:8f::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Mon, 25 May 2020 06:29:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; vger.kernel.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;vger.kernel.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT029.mail.protection.outlook.com (10.152.18.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Mon, 25 May 2020 06:29:46 +0000 Received: ("Tessian outbound 952576a3272a:v57"); Mon, 25 May 2020 06:29:46 +0000 X-CR-MTA-TID: 64aa7808 Received: from 321a59c5948d.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id F730ED51-801B-4B63-9D6A-674A705BFED7.1; Mon, 25 May 2020 06:29:41 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 321a59c5948d.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 25 May 2020 06:29:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KSypO2YUKNPTsemCIcScehxAoTNKhWxDi6O4Pxlb5PaER+9G3EyPd7+M/459te6FoiGt0n4B3pQ8hCwKbzhUY0UjdPxmcBuyuC/gvqWKVXCs/okBZ8AWRwV+eU4o/6rMWDry2PCgh4G6QdiP0yGPMpQsp18h9LRpEJMK5wQvYMJ3z/whPy7S8OdgiXu6MDyg1Xc3stL2Sw2kWcvPTY2Kv5YOZGfYix8P7AwvrfgD9VpFTQgSk0/IXFGgHBDgBiC1zenzEylwsljE5TUwhXBAAnUw4hQV+SggM4UY7mogiYJdkzPBaqWTHBOQlfzpfiRMsPnbcUTHUW7vk4PlG/aQqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tv1jqUYENvo6g+B9+/K4FqJigiAnUJw8oDZVDnXfIwk=; b=gsofweYC2SQmt1RAJQE/4qFiZlNHWMnD4b/naj8mkhw779EkCVSkkJpjKRAiXjOiNp4/KHF587SftEnLpKs27ego+cNTHaEDq2MiYdnCT58e4j0qTHYUKbubfenWrrZnITMlRyakqsS7CZ3BdWNPZrNd9kRj8WiketJ6s6hjUM/C/AAIJ9U4gT/7cwoKib1tVXP0iln027QnlVyVOxhEgPobTVflIolJvShfR4qjrx3E5wWbaRmwmdAGjPM8SEFgb+uOX6rssv99qP0s2ZiLsSR1z24Ikjjn4FtNQrp0kp9zrchjRu7+dA5G+8L+BzqEYz6V/ORNJQvBmk/9TQ1PsQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tv1jqUYENvo6g+B9+/K4FqJigiAnUJw8oDZVDnXfIwk=; b=h24bf90/6sweDGx8M8jhvP8vxxBZvxk9bDgShvzkhIG4wgrDmDeOx+1Ar2bqea/GZZ/wjV3Ui64mqv9rZ+PTWEx9T3wK1DSfpjfluBhe3QI0V075GxviMM9e5uvAZaJtusx7OyJ/tuLP3OrFdLbSv9fgXqZctjOsHiIX+ezAx8Y= Received: from HE1PR0802MB2555.eurprd08.prod.outlook.com (2603:10a6:3:e0::7) by HE1PR0802MB2441.eurprd08.prod.outlook.com (2603:10a6:3:de::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.24; Mon, 25 May 2020 06:29:37 +0000 Received: from HE1PR0802MB2555.eurprd08.prod.outlook.com ([fe80::b1eb:9515:4851:8be]) by HE1PR0802MB2555.eurprd08.prod.outlook.com ([fe80::b1eb:9515:4851:8be%6]) with mapi id 15.20.3021.029; Mon, 25 May 2020 06:29:37 +0000 From: Jianyong Wu To: Richard Cochran , "maz@kernel.org" CC: "netdev@vger.kernel.org" , "yangbo.lu@nxp.com" , "john.stultz@linaro.org" , "tglx@linutronix.de" , "pbonzini@redhat.com" , "sean.j.christopherson@intel.com" , Mark Rutland , "will@kernel.org" , Suzuki Poulose , Steven Price , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.cs.columbia.edu" , "kvm@vger.kernel.org" , Steve Capper , Kaly Xin , Justin He , Wei Chen , nd Subject: RE: [RFC PATCH v12 10/11] arm64: add mechanism to let user choose which counter to return Thread-Topic: [RFC PATCH v12 10/11] arm64: add mechanism to let user choose which counter to return Thread-Index: AQHWMBRtHtaBVLC+ukSXkuIjkrpVgai2gQEAgAGkltCAADJFAIAAAXkA Date: Mon, 25 May 2020 06:29:37 +0000 Message-ID: References: <20200522083724.38182-1-jianyong.wu@arm.com> <20200522083724.38182-11-jianyong.wu@arm.com> <20200524021106.GC335@localhost> <20200525061622.GA13679@localhost> In-Reply-To: <20200525061622.GA13679@localhost> Accept-Language: en-US Content-Language: en-US X-Mentions: maz@kernel.org X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 7aca3425-c140-4ec0-a6d0-95fe58e99f46.0 x-checkrecipientchecked: true Authentication-Results-Original: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [203.126.0.111] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 9fa46d2d-8b33-476b-dd72-08d80075050e x-ms-traffictypediagnostic: HE1PR0802MB2441:|AM0PR08MB3827: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:6790;OLM:6790; x-forefront-prvs: 0414DF926F X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: ZW6JlXmZhwemS2eMQPwVx7hxLr4GjHypV0+jWz9PVdVzEO+h1o/cOJbJmDq/e1wBQUH3dQ9c3n05Xcjr/u4L8yCEb442mOurjNvjqLB7DI/2a5vwS9RaXr8cM+fJIPrplRA5OZPRJugTkm8JE8a89w+i2ti+OpigdHR0qwJ9ENzT1d42tNEbv/CPkIGXXsMkUiQN4GIMp4WuqFzYLOrLSn3ydIoy00GOFYRey+TS4+tiananRecR2qbjPzDaiGGqdJsGuRB6ZZz2Aj0hEY3r+C79MNL7S3iYcc8w1yGjmYmxOdL4TIz3H4kH7f8EbFlK8qVBS1Wj1k1Uh+EuJhKJ8g== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HE1PR0802MB2555.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(136003)(376002)(39860400002)(396003)(346002)(366004)(316002)(8936002)(6506007)(53546011)(186003)(7416002)(478600001)(7696005)(86362001)(2906002)(33656002)(4326008)(26005)(52536014)(76116006)(5660300002)(66946007)(66446008)(66556008)(71200400001)(66476007)(64756008)(54906003)(9686003)(55016002)(8676002)(110136005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: 3pq7bl41IpQu3mwWMb39oU2EtGjqeWgcpZavkd2cDgxXESzMVfEnidOmlX+fZOYE97fAFoc0AQKl6A826g3fG8Escr5jJ9yImoxbq819Bkrs/EipvYqZ69LnrfF9Z6PJw3HCKqL1Sye+uQes4BOLIywlF2KSePAx6DuV5ZEh1S6IXeeDCsDrI88OX4Pu0u8E5pR5WHAPxcu3fl5AWjb1/AzxHt9C0CGNRGGCRB69OP210G6cVC8/yA4FjQhHaVRbaqeXuq7JbF6VEeehhShE6a+njFEC9q53qR2iVR6i0BONrJXv7C7/y/sMCU7U2brsTTR8l+evt9WxnrnqnjtGDDRwbNjl55H67zDpz7R+sbi4eG1HR8PsKI/JBIDrWTS4j5pNKfHgBydHiy5AsJuVkYCBa2DVkVhkRQeUROCKhGbBrvCF0TFOk2g6iMlAOX0INXvpdg7x0ETofsw3f/nGEWbemQqjKK+PRsQncqTGqFo= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2441 Original-Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT029.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFTY:;SFS:(4636009)(39860400002)(396003)(136003)(346002)(376002)(46966005)(26005)(186003)(82740400003)(47076004)(53546011)(6506007)(336012)(70206006)(70586007)(2906002)(81166007)(7696005)(478600001)(5660300002)(110136005)(36906005)(316002)(356005)(9686003)(33656002)(55016002)(8936002)(86362001)(52536014)(82310400002)(54906003)(450100002)(4326008)(8676002);DIR:OUT;SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: c89ad0ca-5804-4989-8f3a-08d80074ffa9 X-Forefront-PRVS: 0414DF926F X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n3u2cQO4Xpq8uQQGM+EBAA+quOu5SnBTVE0KKJhZdTKAOR9rYHTGQZgUVJKI43SDWDW9EYH1U4CtdRrqoeP7eMmetCB6tjLxCN1J6V3j94gfEq3YysDbky1jwnkxQpoHIngUwCvdzCslqTrZic7mpbBQ6OoY59tipo3+a9oRptnqwnqPks1Ptv6HtNObjJY33eEYJSFFALIEFIl5ymhi6R/kQZkk17PRdjv2G0+p2BSoLO2q0N/Y9IaRPoIh0NaQ42GKHF99V8J1UztzHgzLYV+ppOoJSQQ5CPnT/oGrTFc/mYD2gMwCFS5LEWv1dTyObeeRCNfA+jrgsIUTELA2NFfXUBco89ocq8iTqSZ6uw8BBamKgMyDFpUXqo6HbXmNK+rxQklyuMusd4HZ9u4WnA== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2020 06:29:46.7149 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9fa46d2d-8b33-476b-dd72-08d80075050e X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3827 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Richard, > -----Original Message----- > From: Richard Cochran > Sent: Monday, May 25, 2020 2:16 PM > To: Jianyong Wu > Cc: maz@kernel.org; netdev@vger.kernel.org; yangbo.lu@nxp.com; > john.stultz@linaro.org; tglx@linutronix.de; pbonzini@redhat.com; > sean.j.christopherson@intel.com; Mark Rutland ; > will@kernel.org; Suzuki Poulose ; Steven Price > ; linux-kernel@vger.kernel.org; linux-arm- > kernel@lists.infradead.org; kvmarm@lists.cs.columbia.edu; > kvm@vger.kernel.org; Steve Capper ; Kaly Xin > ; Justin He ; Wei Chen > ; nd > Subject: Re: [RFC PATCH v12 10/11] arm64: add mechanism to let user choos= e > which counter to return >=20 > On Mon, May 25, 2020 at 04:50:28AM +0000, Jianyong Wu wrote: > > How about adding an extra argument in struct ptp_clock_info to serve as= a > flag, then we can control this flag using IOCTL to determine the counter = type. >=20 > no, No, NO! >=20 Ok,=20 > > > From your description, this "flag" really should be a module paramete= r. > > Maybe use flag as a module parameter is a better way. >=20 > Yes. >=20 It's fine for me, if @maz@kernel.org is not against with it. =20 Thanks Jianyong=20 > Thanks, > Richard