Received: by 10.192.165.156 with SMTP id m28csp1205463imm; Wed, 11 Apr 2018 14:33:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+nCct0bPev6WH5c3TkBbl5r0UH6GJ0EpcvAtZ2XjwA8r4GaYATS6Oa0/l1CTApyWb3D3NQ X-Received: by 2002:a17:902:ab94:: with SMTP id f20-v6mr6923352plr.375.1523482382915; Wed, 11 Apr 2018 14:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523482382; cv=none; d=google.com; s=arc-20160816; b=ifij/uO4rAnJU/BLefOVCHfLPEh+bZVtpbjI6OueDxNpPa3YBOmf1a1XC6syZs/hMD uOwAmZv+1wVa+Shb0bOGx1zvtme7IbE7ZM59MFZ/rYDsh3guxyJqlyyq+46JuTFA7bbV VlVy9N0ZEPd2HC+bhjmVWAzUExvCFaEoYHiIUwanLzV6LTb7fBP8KGuoZvcC2CRaiAXS g1f6WH0ZIYuh9RKw0d5zAEvsBQqqPMp05w0J6jxIiVWyzxpCYZn4CUCtaGEGddQq6HD0 Dk21bOS/XVTuFoq7AkmCy23A4s1jYx6ywTg7AgHlzwAm1weP+sH7fT46UiM8NFKYy37/ QNkg== 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:organization:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=iyV/qx59t4wWcsdIUyhwMrrZyc/Cl1FatMHmK+h9mPI=; b=cE2QIJhLIIqevFLMhLYXnANmT07v1nFq2GLPgATcN8Fhk53x2ybNkWA47hTIoCkaPS ZpMQIywpvb7YVVhj08jRyxm3EAOit9PaaIayDaXDLkm/NBMebOB7M/bvUM42mXY0hT6A hvHJnEX2lFcyrmRRmBTxTQ3R2GPxesSiU3joWADvCCsQfhXznL3CfVf/m8FU/sepjYbx 3Y2pnCgFcLN+43DG6OGJiskzc0z/oJiyWCo5MIcnrqGWgyrOJBaxT29sklBQ98G26Uey Ms4+z+TyM58griz2Ofxn+TOY5qSPDfZczxub4MChT8kWCLi+3FNpyZPsZ7bcuGZMVdmf V0vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=aL8zI8s5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w24-v6si1761972plq.553.2018.04.11.14.32.26; Wed, 11 Apr 2018 14:33:02 -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; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=aL8zI8s5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754392AbeDKV27 (ORCPT + 99 others); Wed, 11 Apr 2018 17:28:59 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:54526 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753094AbeDKV26 (ORCPT ); Wed, 11 Apr 2018 17:28:58 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3BLQISN051724; Wed, 11 Apr 2018 21:28:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=iyV/qx59t4wWcsdIUyhwMrrZyc/Cl1FatMHmK+h9mPI=; b=aL8zI8s5fTSyAX+dTKS2vRDtQJLzwD8LipIJ1ou7Upe5EPOl8c/U0012WIaNlRdu8GMH mnrAFtgyw6B/bLFKAd2yJC/Ia+Orys/yphudw+iyDKDTHl36RujtaHbgBLrt/TsuAy/I ksJtE5zP3CZcKiAYOl6QUNyvyENywAMQVo6TArLqCkenK2990U3/1RKviDjJbaX2Qid1 d+pWoAbiqWSK/2doYHwmTF6p9uV+iZqOE5ALPM5hA3Sn4GbnvhrRIuDadlyWwjEtGPpx ZWQVDyWcyecklQUi5Q/hPmqOsHn5arlmbfwppfaXQdciBbFG1MGk1Dz0wKNSNBlhVe9a 7A== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2h6pn4s3hm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 11 Apr 2018 21:28:36 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w3BLSZAu030835 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 11 Apr 2018 21:28:36 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w3BLSZvo011829; Wed, 11 Apr 2018 21:28:35 GMT Received: from Santoshs-MacBook-Pro.local (/50.225.201.71) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 11 Apr 2018 14:28:35 -0700 Subject: Re: [PATCH] soc: ti: knav_qmss: Use percpu instead atomic for stats counter To: Vasyl Gomonovych , ssantosh@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20180411191629.21545-1-gomonovych@gmail.com> From: "santosh.shilimkar@oracle.com" Organization: Oracle Corporation Message-ID: <63d79bc4-2ee1-2350-2431-ae41b53b0914@oracle.com> Date: Wed, 11 Apr 2018 14:28:17 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180411191629.21545-1-gomonovych@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8860 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=553 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804110199 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/11/18 12:16 PM, Vasyl Gomonovych wrote: > Hwqueue has collect statistics in heavy use queue_pop/queu_push functions > for cache efficiency and make push/pop faster use percpu variables. > For performance reasons, driver should keep descriptor in software handler > as short as possible and quickly return it back to hardware queue. > Descriptors coming into driver from hardware after pop and return back > by push to reduce descriptor lifetime in driver collect statistics on percpu. > > Signed-off-by: Vasyl Gomonovych > --- This is really good idea. Have you tested this patch ? If not it needs to be tested on Keystone SOCs to make sure all works. Regards, Santosh