{"id":818938,"url":"http://patchwork.ozlabs.org/api/covers/818938/?format=json","web_url":"http://patchwork.ozlabs.org/project/sparclinux/cover/1506491952-9659-1-git-send-email-vijay.ac.kumar@oracle.com/","project":{"id":10,"url":"http://patchwork.ozlabs.org/api/projects/10/?format=json","name":"Linux SPARC Development ","link_name":"sparclinux","list_id":"sparclinux.vger.kernel.org","list_email":"sparclinux@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1506491952-9659-1-git-send-email-vijay.ac.kumar@oracle.com>","list_archive_url":null,"date":"2017-09-27T05:59:10","name":"[0/2] sparc64: Optimize fls, fls64 and __fls","submitter":{"id":67939,"url":"http://patchwork.ozlabs.org/api/people/67939/?format=json","name":"Vijay Kumar","email":"vijay.ac.kumar@oracle.com"},"mbox":"http://patchwork.ozlabs.org/project/sparclinux/cover/1506491952-9659-1-git-send-email-vijay.ac.kumar@oracle.com/mbox/","series":[{"id":5285,"url":"http://patchwork.ozlabs.org/api/series/5285/?format=json","web_url":"http://patchwork.ozlabs.org/project/sparclinux/list/?series=5285","date":"2017-09-27T05:59:11","name":"sparc64: Optimize fls, fls64 and __fls","version":1,"mbox":"http://patchwork.ozlabs.org/series/5285/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/818938/comments/","headers":{"Return-Path":"<sparclinux-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=sparclinux-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y26cR156tz9t33\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 27 Sep 2017 16:00:23 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752317AbdI0F7a (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tWed, 27 Sep 2017 01:59:30 -0400","from aserp1040.oracle.com ([141.146.126.69]:38408 \"EHLO\n\taserp1040.oracle.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752290AbdI0F71 (ORCPT\n\t<rfc822; sparclinux@vger.kernel.org>); Wed, 27 Sep 2017 01:59:27 -0400","from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74])\n\tby aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with\n\tESMTP id v8R5xOrm006055\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=OK); Wed, 27 Sep 2017 05:59:25 GMT","from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72])\n\tby userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v8R5xOke032096\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=OK); Wed, 27 Sep 2017 05:59:24 GMT","from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18])\n\tby userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id\n\tv8R5xNwd005230; Wed, 27 Sep 2017 05:59:24 GMT","from ca-sparc60.us.oracle.com (/10.147.24.150)\n\tby default (Oracle Beehive Gateway v4.0)\n\twith ESMTP ; Tue, 26 Sep 2017 22:59:23 -0700"],"From":"Vijay Kumar <vijay.ac.kumar@oracle.com>","To":"davem@davemloft.net","Cc":"linux-kernel@vger.kernel.org, sparclinux@vger.kernel.org,\n\tbabu.moger@oracle.com","Subject":"[PATCH 0/2] sparc64: Optimize fls, fls64 and __fls","Date":"Tue, 26 Sep 2017 23:59:10 -0600","Message-Id":"<1506491952-9659-1-git-send-email-vijay.ac.kumar@oracle.com>","X-Mailer":"git-send-email 1.7.1","X-Source-IP":"userv0022.oracle.com [156.151.31.74]","Sender":"sparclinux-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<sparclinux.vger.kernel.org>","X-Mailing-List":"sparclinux@vger.kernel.org"},"content":"SPARC provides lzcnt instruction (with VIS3) which can be used to\noptimize fls, fls64 and __fls functions. For the systems that supports \nlzcnt instruction, we now do boot time patching to use sparc\noptimized fls, fls64 and __fls functions.\n  \nVijay Kumar (2):\n  sparc64: Define SPARC default fls and __fls\n  sparc64: Use lzcnt instruction for fls and __fls\n\n arch/sparc/Makefile                |    1 +\n arch/sparc/include/asm/bitops_64.h |    7 +-\n arch/sparc/kernel/head_64.S        |    2 +\n arch/sparc/lib/Makefile            |    4 +\n arch/sparc/lib/NG4fls.S            |   31 +++++++++\n arch/sparc/lib/NG4patch.S          |    9 +++\n arch/sparc/lib/fls.S               |  126 ++++++++++++++++++++++++++++++++++++\n 7 files changed, 177 insertions(+), 3 deletions(-)\n create mode 100644 arch/sparc/lib/NG4fls.S\n create mode 100644 arch/sparc/lib/fls.S\n\n--\nTo unsubscribe from this list: send the line \"unsubscribe sparclinux\" in\nthe body of a message to majordomo@vger.kernel.org\nMore majordomo info at  http://vger.kernel.org/majordomo-info.html"}