[{"id":1768278,"web_url":"http://patchwork.ozlabs.org/comment/1768278/","msgid":"<20170914114834.62dcc428@firefly.ozlabs.ibm.com>","date":"2017-09-14T01:48:34","subject":"Re: [PATCH 5/7] powerpc: Swizzle around 4K PTE bits to free up bit\n\t5 and bit 6","submitter":{"id":9347,"url":"http://patchwork.ozlabs.org/api/people/9347/","name":"Balbir Singh","email":"bsingharora@gmail.com"},"content":"On Fri,  8 Sep 2017 15:44:45 -0700\nRam Pai <linuxram@us.ibm.com> wrote:\n\n> We  need  PTE bits  3 ,4, 5, 6 and 57 to support protection-keys,\n> because these are  the bits we want to consolidate on across all\n> configuration to support protection keys.\n> \n> Bit 3,4,5 and 6 are currently used on 4K-pte kernels.  But bit 9\n> and 10 are available.  Hence  we  use the two available bits and\n> free up bit 5 and 6.  We will still not be able to free up bit 3\n> and 4. In the absence  of  any  other free bits, we will have to\n> stay satisfied  with  what we have :-(.   This means we will not\n> be  able  to support  32  protection  keys, but only 8.  The bit\n> numbers are  big-endian as defined in the  ISA3.0\n>\n\nAny chance for 4k PTE's we can do slot searching for the PTE?\nI guess thats add additional complexity\n\nBalbir Singh.","headers":{"Return-Path":"<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xt1gd5Gftz9t2l\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 14 Sep 2017 11:50:05 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xt1gd2qWGzDqlR\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 14 Sep 2017 11:50:05 +1000 (AEST)","from mail-pf0-x244.google.com (mail-pf0-x244.google.com\n\t[IPv6:2607:f8b0:400e:c00::244])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xt1f5187SzDqJp\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tThu, 14 Sep 2017 11:48:45 +1000 (AEST)","by mail-pf0-x244.google.com with SMTP id q76so782093pfq.5\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed, 13 Sep 2017 18:48:44 -0700 (PDT)","from firefly.ozlabs.ibm.com ([122.99.82.10])\n\tby smtp.gmail.com with ESMTPSA id\n\tg66sm32618715pfj.161.2017.09.13.18.48.39\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tWed, 13 Sep 2017 18:48:42 -0700 (PDT)"],"Authentication-Results":["ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"S+iL11GE\"; dkim-atps=neutral","lists.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"S+iL11GE\"; dkim-atps=neutral","ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gmail.com\n\t(client-ip=2607:f8b0:400e:c00::244; helo=mail-pf0-x244.google.com;\n\tenvelope-from=bsingharora@gmail.com; receiver=<UNKNOWN>)","lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"S+iL11GE\"; dkim-atps=neutral"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=date:from:to:cc:subject:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=/47oY6l6BoUekZlNyHsL1n9XIM6y65uPRFBqqej6Mvo=;\n\tb=S+iL11GEO0XmSCa1g3a26mtL6dY+WBL17QIiEQIDpQXN+1kqB/oNvbm3z9C3V4w48G\n\tu/BTovL7eFpRkVcdAo0J0BhxqMu/2TNGKCaoEMprr1BrIGNI4rI9YneTJjujOLfb7Sxz\n\tNA02ZkoOJg6Ux4e4FKWNSo0sPcqKHjDFPzm6hzde2jHy5kZRN7wymSVG2vYPcWupjVnz\n\tBxQ5WCuNIo63TzXAbnZFJaugBpEwJx3iuEYGVeFREB/Cknr15L2EexHUiPQBg75uGZEy\n\t9kF6uRw5D8OWgOlDXUpk5wqgxaO2Y4cQ9XqsakZ8/M3BzxAosepKIFeHHHjz/REHaGBu\n\tIu+g==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=/47oY6l6BoUekZlNyHsL1n9XIM6y65uPRFBqqej6Mvo=;\n\tb=jR4ZM6NiPbE98Jmdx/xHfizJ/ehzLXiPcKi2tsztexFxMx0QjEnP97hZG8BqoRSS6r\n\tC9y5E7lUBp7acbDX4LvBkFU2ay/ari7Z4ByjK7PCXpvdwBuKnlQXTfxBEv1IhEy/2RQT\n\tuwp07HM6Bf+dnnj7MOocyj1bYP+byIeslHBoq8yJhJKhqSSWt4ZP4dhigFv46gBJFmeR\n\t/NEm+iiC42IdBNNeUcBsGyq7Fnl3AM0ZaJvN4GDcFmYpLGp1IBjd4xoVf6eoR0klC4n0\n\t/M+lMfI/w+myDdLl3n8fVDw/Z7Tu2D7eDi/Nr7Lda8KF7Jhl5Cjs9dr1FOKk1AoFYRuf\n\tG4AQ==","X-Gm-Message-State":"AHPjjUiqRKzptPT0V1yQTYooKyOpV4BKQmS2nqE6QY0jWvj/WcUXUORd\n\taPMyo7oh2wqlZg==","X-Google-Smtp-Source":"ADKCNb7edr0ch9oMa+dQYdk4g76d0M7Bl5gb15ciLAqDXA+NGsyBpaIBob58g4yyh9uQbt5b/ui+7Q==","X-Received":"by 10.99.147.28 with SMTP id b28mr19820399pge.352.1505353723037; \n\tWed, 13 Sep 2017 18:48:43 -0700 (PDT)","Date":"Thu, 14 Sep 2017 11:48:34 +1000","From":"Balbir Singh <bsingharora@gmail.com>","To":"Ram Pai <linuxram@us.ibm.com>","Subject":"Re: [PATCH 5/7] powerpc: Swizzle around 4K PTE bits to free up bit\n\t5 and bit 6","Message-ID":"<20170914114834.62dcc428@firefly.ozlabs.ibm.com>","In-Reply-To":"<1504910713-7094-6-git-send-email-linuxram@us.ibm.com>","References":"<1504910713-7094-1-git-send-email-linuxram@us.ibm.com>\n\t<1504910713-7094-6-git-send-email-linuxram@us.ibm.com>","X-Mailer":"Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-redhat-linux-gnu)","MIME-Version":"1.0","Content-Type":"text/plain; charset=US-ASCII","Content-Transfer-Encoding":"7bit","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.24","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Cc":"ebiederm@xmission.com, mhocko@kernel.org, paulus@samba.org,\n\taneesh.kumar@linux.vnet.ibm.com, bauerman@linux.vnet.ibm.com,\n\tlinuxppc-dev@lists.ozlabs.org, khandual@linux.vnet.ibm.com","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"}},{"id":1768752,"web_url":"http://patchwork.ozlabs.org/comment/1768752/","msgid":"<20170914172306.GE5698@ram.oc3035372033.ibm.com>","date":"2017-09-14T17:23:06","subject":"Re: [PATCH 5/7] powerpc: Swizzle around 4K PTE bits to free up bit 5\n\tand bit 6","submitter":{"id":2667,"url":"http://patchwork.ozlabs.org/api/people/2667/","name":"Ram Pai","email":"linuxram@us.ibm.com"},"content":"On Thu, Sep 14, 2017 at 11:48:34AM +1000, Balbir Singh wrote:\n> On Fri,  8 Sep 2017 15:44:45 -0700\n> Ram Pai <linuxram@us.ibm.com> wrote:\n> \n> > We  need  PTE bits  3 ,4, 5, 6 and 57 to support protection-keys,\n> > because these are  the bits we want to consolidate on across all\n> > configuration to support protection keys.\n> > \n> > Bit 3,4,5 and 6 are currently used on 4K-pte kernels.  But bit 9\n> > and 10 are available.  Hence  we  use the two available bits and\n> > free up bit 5 and 6.  We will still not be able to free up bit 3\n> > and 4. In the absence  of  any  other free bits, we will have to\n> > stay satisfied  with  what we have :-(.   This means we will not\n> > be  able  to support  32  protection  keys, but only 8.  The bit\n> > numbers are  big-endian as defined in the  ISA3.0\n> >\n> \n> Any chance for 4k PTE's we can do slot searching for the PTE?\n> I guess thats add additional complexity\n\nAneesh, i think, is working on moving slot information out of the PTE.\nIf that happens, we will have leg-space to support more keys.\n\nRP","headers":{"Return-Path":"<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xtQPw6Bh6z9sRg\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 15 Sep 2017 03:24:36 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xtQPw5BwyzDrXh\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 15 Sep 2017 03:24:36 +1000 (AEST)","from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n\t[148.163.158.5])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xtQNQ0WHFzDqG3\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tFri, 15 Sep 2017 03:23:17 +1000 (AEST)","from pps.filterd (m0098419.ppops.net [127.0.0.1])\n\tby mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv8EHJJD2053192\n\tfor <linuxppc-dev@lists.ozlabs.org>; Thu, 14 Sep 2017 13:23:15 -0400","from e11.ny.us.ibm.com (e11.ny.us.ibm.com [129.33.205.201])\n\tby mx0b-001b2d01.pphosted.com with ESMTP id 2cywb82tnn-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@lists.ozlabs.org>; Thu, 14 Sep 2017 13:23:15 -0400","from localhost\n\tby e11.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <linuxppc-dev@lists.ozlabs.org> from <linuxram@us.ibm.com>;\n\tThu, 14 Sep 2017 13:23:14 -0400","from b01cxnp23034.gho.pok.ibm.com (9.57.198.29)\n\tby e11.ny.us.ibm.com (146.89.104.198) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tThu, 14 Sep 2017 13:23:10 -0400","from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com\n\t[9.57.199.109])\n\tby b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP\n\tid v8EHNA2640435728; Thu, 14 Sep 2017 17:23:10 GMT","from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 3B6C9112034;\n\tThu, 14 Sep 2017 13:22:52 -0400 (EDT)","from ram.oc3035372033.ibm.com (unknown [9.85.179.168])\n\tby b01ledav004.gho.pok.ibm.com (Postfix) with ESMTPS id 1F7E7112047; \n\tThu, 14 Sep 2017 13:22:51 -0400 (EDT)"],"Authentication-Results":"ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=us.ibm.com\n\t(client-ip=148.163.158.5; helo=mx0a-001b2d01.pphosted.com;\n\tenvelope-from=linuxram@us.ibm.com; receiver=<UNKNOWN>)","Date":"Thu, 14 Sep 2017 10:23:06 -0700","From":"Ram Pai <linuxram@us.ibm.com>","To":"Balbir Singh <bsingharora@gmail.com>","Subject":"Re: [PATCH 5/7] powerpc: Swizzle around 4K PTE bits to free up bit 5\n\tand bit 6","References":"<1504910713-7094-1-git-send-email-linuxram@us.ibm.com>\n\t<1504910713-7094-6-git-send-email-linuxram@us.ibm.com>\n\t<20170914114834.62dcc428@firefly.ozlabs.ibm.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<20170914114834.62dcc428@firefly.ozlabs.ibm.com>","User-Agent":"Mutt/1.5.20 (2009-12-10)","X-TM-AS-GCONF":"00","x-cbid":"17091417-2213-0000-0000-0000021B197F","X-IBM-SpamModules-Scores":"","X-IBM-SpamModules-Versions":"BY=3.00007733; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000227; SDB=6.00916991; UDB=6.00460532;\n\tIPR=6.00697218; \n\tBA=6.00005589; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009;\n\tZB=6.00000000; \n\tZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00017154;\n\tXFM=3.00000015; UTC=2017-09-14 17:23:13","X-IBM-AV-DETECTION":"SAVI=unused REMOTE=unused XFE=unused","x-cbparentid":"17091417-2214-0000-0000-0000578BD882","Message-Id":"<20170914172306.GE5698@ram.oc3035372033.ibm.com>","X-Proofpoint-Virus-Version":"vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-09-14_05:, , signatures=0","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n\tspamscore=0 suspectscore=2\n\tmalwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam\n\tadjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000\n\tdefinitions=main-1709140261","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.24","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Reply-To":"Ram Pai <linuxram@us.ibm.com>","Cc":"ebiederm@xmission.com, mhocko@kernel.org, paulus@samba.org,\n\taneesh.kumar@linux.vnet.ibm.com, bauerman@linux.vnet.ibm.com,\n\tlinuxppc-dev@lists.ozlabs.org, khandual@linux.vnet.ibm.com","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"}}]