Received: by 10.192.165.156 with SMTP id m28csp819540imm; Fri, 13 Apr 2018 08:21:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx49h0sSR8ntXagT15pKZPr7xAY7aazV+7OxBS04acyPhASSHp182ZCbbjhJRbUqo/sJcquCM X-Received: by 2002:a17:902:9898:: with SMTP id s24-v6mr5554832plp.51.1523632874594; Fri, 13 Apr 2018 08:21:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523632874; cv=none; d=google.com; s=arc-20160816; b=ZlFPS85CfPKmiE1i8yDujc/l+WbSfwG9VfnNZUHBXtTfUEGhSkRFBbKsGWAkQv+FKU iXVQRvkYUvbqiueQKCQIjlDfom4ISVIPM2TgsDA79r6DDv7AUQ/T7UDSYXxXcmcxItmu rE/LPy1Dyu3pl3FEJynzrKKyJGWocCBfjs1j84sSDb/Xb7yVLq02Wl/rrawrQoeuzaPU 8gJNDECNkQTPRKzFYT5rOpY5RsS2DsNmwXk1mx65qCOqqh6A0MXWtwmXUfDk1EWMSgx3 zLoAWS1uMeMhsgms7AVPmqk0oZ1d0es1Krd6BUTAshIYy/hcZ10aEObByzkF40Kc8tzA E/0g== 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:references:cc:to:from:subject :dkim-signature:arc-authentication-results; bh=+c537VAfX80SlGPtoKdbRw7mzRF5sAlcFjNzt8Yn3eU=; b=p6VB1mJwvZjuQPVxt5pz3BGuwdK6tcHrNOVmCGo6wvu9b8COTt4I9gs+4ILjle0FVV Y8001DbkcsMQWiOik688uyR6grWZY/eORn2/iNly27um2llxbXFxIzQKjuoBj3o1cG3I 0YG+90/9ZRM50PAD4HMOHyaE02a9XurYhcC9CVMQYYNuFkf/S1ZYZtAyHHdbLZXXUz7m uh4aORBucAVn6RZdzaX3Vt6kxv8KgUmMIFQ7FqSq+upRU/p1L7y5dmcX+80SujnEU6m3 rrOK2m3UyGnRHA2srMyPRzxKggfyVaFYMpVUxxn93nqarJNEJF92SudsA8oMZA3UOEiY MOzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=HFwupzpJ; 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 3si2534835pfp.161.2018.04.13.08.21.00; Fri, 13 Apr 2018 08:21:14 -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=HFwupzpJ; 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 S1751299AbeDMPTd (ORCPT + 99 others); Fri, 13 Apr 2018 11:19:33 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:46602 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750928AbeDMPTc (ORCPT ); Fri, 13 Apr 2018 11:19:32 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3DFFwMD068631; Fri, 13 Apr 2018 15:19:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : from : to : cc : references : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=+c537VAfX80SlGPtoKdbRw7mzRF5sAlcFjNzt8Yn3eU=; b=HFwupzpJxpyG6RJIf5NlP+p7bbUpu3S/4mE8Q0bHKuFAeeNKdxoiZJJ34T63hLx8xDxo ut0JgRUFhoI65lMB9tssGHdmYZCXeN7Cx1XsZnl8soh6isDStR3m+JW2IG3Rzm3n21/i /KpWc8dZjOM9Wjd0mk2K7dxKdgi2ZVPFkRsa419zSyCpMupMQHF1EH5qP/3Sb0SgLF8d SMkgpQnCKCGqPVk4XB1L9OMX2HQoEnYTixOmxuiYS3/r8WKWnD8RMaVUcLawS10QAi2t QbpKF0B2huXQTQTPFgYRx8WeOZhpDVtcQjWk3TW4BvoPsQzJg4HLxKbC1FLYjrQ25io2 /g== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2130.oracle.com with ESMTP id 2h6kgtsq46-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 13 Apr 2018 15:19:14 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w3DFJDuF017160 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 13 Apr 2018 15:19:13 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w3DFJD1T007699; Fri, 13 Apr 2018 15:19:13 GMT Received: from dhcp-10-154-148-165.vpn.oracle.com (/10.154.148.165) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 13 Apr 2018 08:19:12 -0700 Subject: Re: [PATCH] soc: ti: knav_qmss: Use percpu instead atomic for stats counter From: "santosh.shilimkar@oracle.com" To: Vasyl Gomonovych Cc: ssantosh@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20180411191629.21545-1-gomonovych@gmail.com> <63d79bc4-2ee1-2350-2431-ae41b53b0914@oracle.com> Organization: Oracle Corporation Message-ID: <89591f43-19c6-26b5-c0f7-e370721ec397@oracle.com> Date: Fri, 13 Apr 2018 09:19:07 -0600 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: <63d79bc4-2ee1-2350-2431-ae41b53b0914@oracle.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=8861 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=581 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804130141 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/11/18 3:28 PM, santosh.shilimkar@oracle.com wrote: > 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. > Thanks for confirming the tests done with rapidIO offlist. Will queue this patch for next merge window. Regards, Santosh