Cover Letter Detail
Show a cover letter.
GET /api/covers/811855/?format=api
{ "id": 811855, "url": "http://patchwork.ozlabs.org/api/covers/811855/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/cover/1504910713-7094-1-git-send-email-linuxram@us.ibm.com/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<1504910713-7094-1-git-send-email-linuxram@us.ibm.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1504910713-7094-1-git-send-email-linuxram@us.ibm.com/", "date": "2017-09-08T22:44:40", "name": "[0/7] powerpc: Free up RPAGE_RSV bits", "submitter": { "id": 2667, "url": "http://patchwork.ozlabs.org/api/people/2667/?format=api", "name": "Ram Pai", "email": "linuxram@us.ibm.com" }, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/cover/1504910713-7094-1-git-send-email-linuxram@us.ibm.com/mbox/", "series": [ { "id": 2303, "url": "http://patchwork.ozlabs.org/api/series/2303/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=2303", "date": "2017-09-08T22:44:40", "name": "powerpc: Free up RPAGE_RSV bits", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/2303/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/covers/811855/comments/", "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 3xpst21Vfkz9s8J\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat, 9 Sep 2017 08:48:10 +1000 (AEST)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xpst20BzhzDrcq\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat, 9 Sep 2017 08:48:10 +1000 (AEST)", "from mail-qt0-x242.google.com (mail-qt0-x242.google.com\n\t[IPv6:2607:f8b0:400d:c0d::242])\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 3xpsr53PFVzDrWB\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tSat, 9 Sep 2017 08:46:29 +1000 (AEST)", "by mail-qt0-x242.google.com with SMTP id k2so2348348qte.5\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tFri, 08 Sep 2017 15:46:29 -0700 (PDT)", "from localhost.localdomain (50-39-103-96.bvtn.or.frontiernet.net.\n\t[50.39.103.96]) by smtp.gmail.com with ESMTPSA id\n\tx124sm2033726qka.85.2017.09.08.15.46.25\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 08 Sep 2017 15:46:26 -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=\"LaNDeGaT\"; 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=\"LaNDeGaT\"; dkim-atps=neutral", "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gmail.com\n\t(client-ip=2607:f8b0:400d:c0d::242; helo=mail-qt0-x242.google.com;\n\tenvelope-from=ram.n.pai@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=\"LaNDeGaT\"; dkim-atps=neutral" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id;\n\tbh=Eij1ETQ8KLlvwMddHIPTUqFpZgaNVj5V44T5WQZixto=;\n\tb=LaNDeGaTUU+EBXSdvs5uTvEHIjQEk65I3nfO4/xaNUQcScdHJ4MWDGC6LnknV1TzWB\n\tSa9gRDrhGPRQPKUaq+dQn9OxZzGBXS0A3YAVic3gaFKbOI88u5eCuj7Jj8hN1IioebTu\n\t/06g6mqSfhUPirFyo6U/GYCKLV71VcIeMJpnsPxSeSTlNJ6FsCAytuSqQu1p/1juq4Z2\n\t3kLRnfzo2k8ss9rNGf5CakMj80HHi0wURHU1FGyIkUl88q6idyiJKon9LMxiltyxAmwX\n\teiWn4m68jmsAgTzYzDJCKIxTPlWhqohamy6oLKKM4pmBVex/eYL99e9gxM10fsuBri1x\n\tv17A==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id;\n\tbh=Eij1ETQ8KLlvwMddHIPTUqFpZgaNVj5V44T5WQZixto=;\n\tb=FMU3KonAkItlZl4HpuFb/jP2JHU2Y0oa45IjvJI/GXBHYT/aLBsvoSzC+9QB5nvIrJ\n\t8N9bAtz96yaVNCTWBu8KAVtwjrSIDtvul18gfUZunaMfuygncAZWLgn4ZhsO6WcFJyOZ\n\tZhqf/IoZZoP+5LX+WNabxnk3K4FFxJLsAdmyPWtLFgHTCzBJWCsYbIdvTmxZ2NW1DbSp\n\t4qpJWTGOgXApa9L10rgO3FSSwrS7kA/5pgDqlopLyw3gHGUh2VzxOAWwn/vHI0KTQwog\n\tcGuU2uYc8uRtGtEr8y06OP1ozQhqiS8T5E8DtveKa4l8FHKhu1xWXjMKaMXjSWWk/gja\n\tEHtQ==", "X-Gm-Message-State": "AHPjjUjXBVt+kgQ7aH0jvUHziUhf3GxPuSDumnxnmUlsVHzMK4wU68b4\n\tcCHqIcf0VKv5Nw==", "X-Google-Smtp-Source": "AOwi7QDdAsTOm86tPi4JMoT5hhhQnrMePxpkY12BpgPM0tbhdRtVPzplkWAYXcMySWVKJ7BdpVP2Dw==", "X-Received": "by 10.200.36.132 with SMTP id s4mr6133994qts.4.1504910786819;\n\tFri, 08 Sep 2017 15:46:26 -0700 (PDT)", "From": "Ram Pai <linuxram@us.ibm.com>", "To": "mpe@ellerman.id.au,\n\tlinuxppc-dev@lists.ozlabs.org", "Subject": "[PATCH 0/7] powerpc: Free up RPAGE_RSV bits", "Date": "Fri, 8 Sep 2017 15:44:40 -0700", "Message-Id": "<1504910713-7094-1-git-send-email-linuxram@us.ibm.com>", "X-Mailer": "git-send-email 1.7.1", "X-BeenThere": "linuxppc-dev@lists.ozlabs.org", "X-Mailman-Version": "2.1.23", "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, linuxram@us.ibm.com, mhocko@kernel.org,\n\tpaulus@samba.org, aneesh.kumar@linux.vnet.ibm.com,\n\tbauerman@linux.vnet.ibm.com, 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>" }, "content": "RPAGE_RSV0..4 pte bits are currently used for hpte slot\ntracking. We need these bits for memory-protection\nkeys. Luckily these four bits are relatively easier \nto move among all the other candidate bits.\n\nFor 64K linux-ptes backed by 4k hptes, these bits\nare used for tracking the validity of the slot value\nstored in the second-part-of-the-pte. We device a new\nmechanism for tracking the validity without using\nthose bits. The mechanism is explained in the patch.\n\nFor 64K linux-pte backed by 64K hptes, we simply move\nthe slot tracking bits to the second-part-of-the-pte.\n\nThe above mechanism is also used to free the bits for\nhugetlb linux-ptes.\n\nFor 4k linux-pte, we have only 3 free bits available.\nWe swizzle around the bits and release RPAGE_RSV{2,3,4}\nfor memory protection keys.\n\nTesting:\n--------\nhas survived kernel compilation on multiple platforms\np8 powernv hash-mode, p9 powernv hash-mode, p7 powervm,\np8-powervm, p8-kvm-guest.\n\nHas survived git-bisect on p8 power-nv with 64K page\nand 4K page.\n\nHistory:\n-------\nThis patchset is a spin-off from the memkey patchset.\n\nversion v9:\n\t(1) rearranged the patch order. First the helper\n\t\troutines are defined followed by the\n\t\tpatches that make use of the helpers.\n\nversion v8:\n\t(1) an additional patch added to free up\n RSV{2,3,4} on 4K linux-pte.\n\nversion v7:\n\t(1) GIX bit reset change moved to the second\n\t\tpatch -- noticed by Aneesh.\n\t(2) Separated this patches from memkey patchset\n\t(3) merged a bunch of patches, that used the\n \t\thelper function, into one.\nversion v6:\n\t(1) No changes related to pte.\n\nversion v5:\n\t(1) No changes related to pte.\n\nversion v4:\n\t(1) No changes related to pte.\n\nversion v3:\n\t(1) split the patches into smaller consumable\n\t\tpatches.\n\t(2) A bug fix while invalidating a hpte slot\n\t\tin __hash_page_4K()\n \t\t-- noticed by Aneesh\n\t\n\nversion v2:\n \t(1) fixed a bug in 4k hpte backed 64k pte\n \t\twhere page invalidation was not\n\t\tdone correctly, and initialization\n\t \tof second-part-of-the-pte was not\n\t\tdone correctly if the pte was not\n\t \tyet Hashed with a hpte.\n\t \t --\tReported by Aneesh.\n\t\n\nversion v1: Initial version\n\nRam Pai (7):\n powerpc: introduce pte_set_hash_slot() helper\n powerpc: introduce pte_get_hash_gslot() helper\n powerpc: Free up four 64K PTE bits in 4K backed HPTE pages\n powerpc: Free up four 64K PTE bits in 64K backed HPTE pages\n powerpc: Swizzle around 4K PTE bits to free up bit 5 and bit 6\n powerpc: use helper functions to get and set hash slots\n powerpc: capture the PTE format changes in the dump pte report\n\n arch/powerpc/include/asm/book3s/64/hash-4k.h | 21 ++++\n arch/powerpc/include/asm/book3s/64/hash-64k.h | 61 ++++++++----\n arch/powerpc/include/asm/book3s/64/hash.h | 8 +-\n arch/powerpc/mm/dump_linuxpagetables.c | 3 +-\n arch/powerpc/mm/hash64_4k.c | 14 +--\n arch/powerpc/mm/hash64_64k.c | 131 +++++++++++++------------\n arch/powerpc/mm/hash_utils_64.c | 35 +++++--\n arch/powerpc/mm/hugetlbpage-hash64.c | 18 ++--\n 8 files changed, 171 insertions(+), 120 deletions(-)" }