From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0054.outbound.protection.outlook.com [104.47.36.54]) by dpdk.org (Postfix) with ESMTP id C59BE1B0FC for ; Fri, 12 Oct 2018 06:13:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kdtuH8R4r4Hhz6sXJ8NO0mNnKSnJ8t6VCgCF9lAy/6A=; b=c8FNIDDYiyMBi4EAV0YipxnRhqQQlirieSzuiH08jM7ccniX3tEW4AtbvNcw6mjE1uwc6krxNzah+WsYNiU+mFV0iXNo+sQbWQKRSTEkm3cFnrNknPRTSsngCLOc7OtquHfMwjvLFic1aaImFCkHroXd6zbSG9kow6wmgePgVCA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (115.113.156.3) by BYAPR07MB4999.namprd07.prod.outlook.com (2603:10b6:a03:5b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.28; Fri, 12 Oct 2018 04:13:20 +0000 Date: Fri, 12 Oct 2018 09:42:57 +0530 From: Jerin Jacob To: Chao Zhu Cc: dev@dpdk.org, thomas@monjalon.net, gowrishankar.m@linux.vnet.ibm.com, ola.liljedahl@arm.com Message-ID: <20181012041255.GA7250@jerin> References: <20181007061857.29451-1-jerin.jacob@caviumnetworks.com> <000001d461d2$adc87910$09596b30$@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <000001d461d2$adc87910$09596b30$@linux.vnet.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [115.113.156.3] X-ClientProxiedBy: PN1PR01CA0101.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00::17) To BYAPR07MB4999.namprd07.prod.outlook.com (2603:10b6:a03:5b::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 09abdfff-c8eb-4755-ceb6-08d62ff90d0b X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4999; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4999; 3:OOdxY43ZTQbX0ml1jSCW2wObAx9z/qEccZ6XxUw4ITwQdTiy2H94/+z2LJZiK0/TsQ/syRMOqfA5U6NceP3kxqfHUgF0VKKTf4nfE+LNMOHK5gw7OzFIZHHxQPfJKNNB6S+CP/kPlvTWN5NAvGuxEjzxi+1wkMMKGT1NJhR+2xWRIayJSFOsYOUZcMdivpLCUwPdKIQAc8plaOI6yMtTbMW80wCMwrG+aHryQ1LplPVv2muvsU8sjdhWwWFiOQqO; 25:AFbRNDV4j6Rf1Qz+1n8hN7pHUUF6oDe+Ke5RyFSvcy6odJjJd0osLn7NQ5xUOaqBHhsYQI+uS8970KmhR/mrMxlq28mEVcRQjiKlNLkVNSx9elWMoQ2XFO+GQpOhQVXrAc3haHU/lrPWkII7sF/aKWKcdNHMLohYJM/R1wgh+SBEgTnFD8200xUDNYx20/1NE5/aMjRromqGuwO0q4b8faZ779c/Ab74S9RBfQMBs3WDigNv6dSt6EVJwqM0ggrLUtPPitXjebipboTmVJAtTHq/rb1dPtDHM531urgpcXpzl+BAb0t2M/aENck73w1SFzFRpiJaYebTXIweehj5Og==; 31:CKLgV6gMMkW+IwCjOql15Mm+IRqvRFMGtxOmhbeZg0iJY3CekKkDnDJmIVq4cXF24dF2TvTcgkjBVpOqSmAzDmQ8xf2o0z5ojsoKl0b/1r9BuKlO8Jp/MvulhaP45C6CJD2zr1Bd0zFj57sB/bxPy+HFg29UwROVrMPiQx90Cd7xSiAQuKVNxxKtJkgIpOUYTCsDOVHIPrE7Yc+pIuqcOFplLx3W89WmqWD7xSbOxTY= X-MS-TrafficTypeDiagnostic: BYAPR07MB4999: X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4999; 20:VcXA0yLyZfijKcvkSW4d2VL1CPnKZq2vFDcuiApPSSLz7Pl89lODkHIFMvsmzJkO/po6xR4HWXvd0m/x0Kx38lu7vW6W4TM83GvJFZiCZuPRx6sfYk0Sp/3ZcSx5RKyV4Rin1f3Wh/8Zrhp1oTdLRa7hB5s9Vbuku8CXRqOASrzzJ/nU4/PDrEgihLDoQlTMC4CVAo3dvHsDkW09wLFgUTWoaymCLG9ASuuIixEI2kszoCK8E+EOCpR4two7AOvOAlHKpIrINk52WTdkQTzT1AuhGspBwP/aMYMLCJSnKsQxA+vqJLIQnLL+332Dy9djleU64ixQ0/x6p+/kLIEn7EKHNU6PtiHnGfbE3I8Qi9mKIsi/CjDati6rUm28iv7HIxU9xHHgJD0/LhyvxPf8/qWEk5s8tXiMxAKs2kd49d/YY9jBs+5arVFQW4SoKJ3ozz79eOGXHK7IKkAeTAEW2HecsbnIinYP9hFNf1Z+ZkqbnXehJ4D4a0eLlbXqQZFmOxPt9aqPuP0qsuKjJJ7hPKevlFgvokhwLZMVuB1wQOUiHTd8Ry6v6GCf/1XSU3d7n6upqwmrpHAVuypKNiNIqvi86dhxt02zxlYZZ9WIN/Q= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(104084551191319)(180628864354917); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231355)(944501410)(4982022)(52105095)(3002001)(93006095)(10201501046)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(201708071742011)(7699051); SRVR:BYAPR07MB4999; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4999; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4999; 4:e+XzpeqrNgmm2XesZSJYeMYBrIee01DfAIDPl2zqDi7oX9WwbOUmy6OJAT4o1q7x0sAxDGKli1xzfbXnB9dN7Py6mFaFsY+XM0aYfgar4+bzq/8rFsf6u0sH+ai8LrEIsDxiQqnEnurPyG/10Cjnz1HO7v4HhOmn7aHAYKeuMoL7NCM28Lj+7lXxySmzXQiIJL/xm0wR3OAlICex00BPA8GlPDd0KlGC3m+3U3SvyvlSNnKWMk4C0rZNZl1BWu9kr7IhjRw00wwNzW8c4kqg3E+97tergbwfvgP0s8peOiL1pql87h892os5KpbQQTTDChqxoVWxq09GTSbaCkkNqkSq0bzkdb0iN4jX5dGCIxU= X-Forefront-PRVS: 0823A5777B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(396003)(366004)(376002)(136003)(199004)(189003)(13464003)(1076002)(81156014)(5660300001)(8936002)(45080400002)(966005)(386003)(97736004)(76176011)(52116002)(7736002)(55236004)(52146003)(6496006)(105586002)(305945005)(224303003)(33896004)(2486003)(53936002)(55016002)(72206003)(61176003)(33716001)(23676004)(6916009)(478600001)(2906002)(33656002)(9686003)(50466002)(106356001)(68736007)(229853002)(26005)(16526019)(44832011)(186003)(6246003)(81166006)(6306002)(2870700001)(66066001)(476003)(42882007)(956004)(446003)(3846002)(25786009)(316002)(486006)(58126008)(47776003)(4326008)(11346002)(6116002)(6666004)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4999; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCWUFQUjA3TUI0OTk5OzIzOlkxZmRkajhYem1kTXZoVXhweUd2TUhsc2JS?= =?utf-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HITdAJyfNeuRn9/IQ==; 5:Okdh3C7Q4nQW/cdiSpOuTNXc6l3epxvhdK74cRSxAMaWbKXa4jWUZGMrORKF1T97SiRx6WYtPq53ByUqc2JxjYfQgMIdDJe3cHy7wajDTi7gjS/qEjusw52KmwLwXPvviv9qtO/eKldWCw+Mct61ee9PqsaEMVcOQBIjsl5oUfo=; 7:rqswXTogWMAb2b/TiY4/MnFwq3bocDS/0bTI1AIN1+yEcMskfFQ/N7j9u6L2Go8kkKOMrrSqRhSrM87YrYPs2+/ViI3n12774YQrqiMbHC348adskQBdX34HesHWQRBIYp2byRXDDDPpciZsqFHiIZf1iF9jMzcgTnbAJkUX9AVAAUDq2KAydLucaB1GMahDhPFjcqvw7FpXJ+JJpVeiqi8tyI7bxsM9Jhkn9eE3WGxo+H4/lNYpV9t8jY2iIyW2 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2018 04:13:20.7876 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 09abdfff-c8eb-4755-ceb6-08d62ff90d0b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4999 Subject: Re: [dpdk-dev] =?utf-8?b?562U5aSNOiAgW1BBVENIXSBlYWwvcHBjNjQ6IGFkZCBz?= =?utf-8?q?upport_for_rte_pause?= X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Oct 2018 04:13:26 -0000 -----Original Message----- > Date: Fri, 12 Oct 2018 10:24:16 +0800 > From: Chao Zhu > To: 'Jerin Jacob' > CC: dev@dpdk.org, thomas@monjalon.net, gowrishankar.m@linux.vnet.ibm.com, > ola.liljedahl@arm.com > Subject: 答复: [dpdk-dev] [PATCH] eal/ppc64: add support for rte pause > X-Mailer: Microsoft Outlook 16.0 > > > -----邮件原件----- > 发件人: Jerin Jacob > 发送时间: 2018年10月7日 14:19 > 收件人: Chao Zhu > 抄送: dev@dpdk.org; thomas@monjalon.net; gowrishankar.m@linux.vnet.ibm.com; > ola.liljedahl@arm.com; Jerin Jacob > 主题: [dpdk-dev] [PATCH] eal/ppc64: add support for rte pause > > Add support for rte_pause() implementation for ppc64. > > Signed-off-by: Jerin Jacob > --- > > The reference implementation for Linux's cpu_relax() for ppc64 is at > https://elixir.bootlin.com/linux/latest/source/arch/powerpc/include/asm/proc > essor.h#L440 > > --- > lib/librte_eal/common/include/arch/ppc_64/rte_pause.h | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/lib/librte_eal/common/include/arch/ppc_64/rte_pause.h > b/lib/librte_eal/common/include/arch/ppc_64/rte_pause.h > index 8bd835764..16e47ce22 100644 > --- a/lib/librte_eal/common/include/arch/ppc_64/rte_pause.h > +++ b/lib/librte_eal/common/include/arch/ppc_64/rte_pause.h > @@ -9,10 +9,17 @@ > extern "C" { > #endif > > +#include "rte_atomic.h" > + > #include "generic/rte_pause.h" > > static inline void rte_pause(void) > { > + /* Set hardware multi-threading low priority */ > + asm volatile("or 1,1,1"); > + /* Set hardware multi-threading medium priority */ > + asm volatile("or 2,2,2"); > + rte_compiler_barrier(); > } > > #ifdef __cplusplus > -- > 2.19.0 > > Acked-by: Chao Zhu Thomas, Just noticed, due to some reason, The above Acked-by: is not reflected in patchwork. http://patches.dpdk.org/patch/46195/ Probably because, it was not a "inline" reply which patchwork couldn't parse it. > >