{"id":794512,"url":"http://patchwork.ozlabs.org/api/1.2/patches/794512/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1df3e7e0-6f32-fa38-0a7d-2cf0ecb92e91@linux.vnet.ibm.com/","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/1.2/projects/2/?format=json","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":"<1df3e7e0-6f32-fa38-0a7d-2cf0ecb92e91@linux.vnet.ibm.com>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/1df3e7e0-6f32-fa38-0a7d-2cf0ecb92e91@linux.vnet.ibm.com/","date":"2017-07-27T16:09:57","name":"[V2,1/4] powerpc/firmware: Add definitions for new drc-info firmware feature","commit_ref":null,"pull_url":null,"state":"changes-requested","archived":false,"hash":"60939d4ff553be8e058d129933ef6488eae89aef","submitter":{"id":65104,"url":"http://patchwork.ozlabs.org/api/1.2/people/65104/?format=json","name":"Michael Bringmann","email":"mwb@linux.vnet.ibm.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1df3e7e0-6f32-fa38-0a7d-2cf0ecb92e91@linux.vnet.ibm.com/mbox/","series":[],"comments":"http://patchwork.ozlabs.org/api/patches/794512/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/794512/checks/","tags":{},"related":[],"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 3xJH8b5HCLz9s0Z\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 28 Jul 2017 02:13:35 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xJH8b4RNGzDrKx\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 28 Jul 2017 02:13:35 +1000 (AEST)","from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com\n\t[148.163.156.1])\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 3xJH4X4SFBzDrL8\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tFri, 28 Jul 2017 02:10:04 +1000 (AEST)","from pps.filterd (m0098393.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv6RG7cnG086759\n\tfor <linuxppc-dev@lists.ozlabs.org>; Thu, 27 Jul 2017 12:10:02 -0400","from e32.co.us.ibm.com (e32.co.us.ibm.com [32.97.110.150])\n\tby mx0a-001b2d01.pphosted.com with ESMTP id 2byjw2hmmx-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@lists.ozlabs.org>; Thu, 27 Jul 2017 12:10:02 -0400","from localhost\n\tby e32.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <linuxppc-dev@lists.ozlabs.org> from <mwb@linux.vnet.ibm.com>;\n\tThu, 27 Jul 2017 10:10:01 -0600","from b03cxnp08027.gho.boulder.ibm.com (9.17.130.19)\n\tby e32.co.us.ibm.com (192.168.1.132) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tThu, 27 Jul 2017 10:09:58 -0600","from b03ledav002.gho.boulder.ibm.com\n\t(b03ledav002.gho.boulder.ibm.com [9.17.130.233])\n\tby b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with\n\tESMTP id v6RG9vn059244632; Thu, 27 Jul 2017 09:09:57 -0700","from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id C619C13603A;\n\tThu, 27 Jul 2017 10:09:57 -0600 (MDT)","from oc1554177480.ibm.com (unknown [9.53.92.155])\n\tby b03ledav002.gho.boulder.ibm.com (Postfix) with ESMTP id\n\t834E2136044; Thu, 27 Jul 2017 10:09:57 -0600 (MDT)"],"To":"linuxppc-dev@lists.ozlabs.org","From":"Michael Bringmann <mwb@linux.vnet.ibm.com>","Subject":"[PATCH V2 1/4] powerpc/firmware: Add definitions for new drc-info\n\tfirmware feature","Organization":"IBM Linux Technology Center","In-Reply-To":"<e884f428-c76d-112a-aa2f-f57a94de55fb@linux.vnet.ibm.com>","Date":"Thu, 27 Jul 2017 11:09:57 -0500","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.2.0","MIME-Version":"1.0","Content-Type":"text/plain; charset=utf-8","Content-Language":"en-US","Content-Transfer-Encoding":"8bit","X-TM-AS-GCONF":"00","x-cbid":"17072716-0004-0000-0000-000012A98EA1","X-IBM-SpamModules-Scores":"","X-IBM-SpamModules-Versions":"BY=3.00007436; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000214; SDB=6.00893700; UDB=6.00446819;\n\tIPR=6.00673861; \n\tBA=6.00005495; 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.00016409;\n\tXFM=3.00000015; UTC=2017-07-27 16:09:59","X-IBM-AV-DETECTION":"SAVI=unused REMOTE=unused XFE=unused","x-cbparentid":"17072716-0005-0000-0000-0000806E9975","Message-Id":"<1df3e7e0-6f32-fa38-0a7d-2cf0ecb92e91@linux.vnet.ibm.com>","X-Proofpoint-Virus-Version":"vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-07-27_08:, , signatures=0","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n\tspamscore=0 suspectscore=1\n\tmalwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam\n\tadjust=0 reason=mlx scancount=1 engine=8.0.1-1706020000\n\tdefinitions=main-1707270254","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":"nfont@linux.vnet.ibm.com, Michael Bringmann <mwb@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":"Firmware Features: Define new bit flag representing the presence of\nnew device tree property \"ibm,drc-info\".  The flag is used to tell\nthe front end processor when the Linux kernel supports the new properties,\nand by the front end processor to tell the Linux kernel that the new\nproperty is present in the device tree.\n\nSigned-off-by: Michael Bringmann <mwb@linux.vnet.ibm.com>\n---\n arch/powerpc/include/asm/firmware.h       |    3 ++-\n arch/powerpc/include/asm/prom.h           |    1 +\n arch/powerpc/platforms/pseries/firmware.c |    1 +\n 3 files changed, 4 insertions(+), 1 deletion(-)","diff":"diff --git a/arch/powerpc/include/asm/firmware.h b/arch/powerpc/include/asm/firmware.h\nindex 8645897..329d537 100644\n--- a/arch/powerpc/include/asm/firmware.h\n+++ b/arch/powerpc/include/asm/firmware.h\n@@ -51,6 +51,7 @@\n #define FW_FEATURE_BEST_ENERGY\tASM_CONST(0x0000000080000000)\n #define FW_FEATURE_TYPE1_AFFINITY ASM_CONST(0x0000000100000000)\n #define FW_FEATURE_PRRN\t\tASM_CONST(0x0000000200000000)\n+#define FW_FEATURE_DRC_INFO\tASM_CONST(0x0000000400000000)\n \n #ifndef __ASSEMBLY__\n \n@@ -67,7 +68,7 @@ enum {\n \t\tFW_FEATURE_CMO | FW_FEATURE_VPHN | FW_FEATURE_XCMO |\n \t\tFW_FEATURE_SET_MODE | FW_FEATURE_BEST_ENERGY |\n \t\tFW_FEATURE_TYPE1_AFFINITY | FW_FEATURE_PRRN |\n-\t\tFW_FEATURE_HPT_RESIZE,\n+\t\tFW_FEATURE_HPT_RESIZE | FW_FEATURE_DRC_INFO,\n \tFW_FEATURE_PSERIES_ALWAYS = 0,\n \tFW_FEATURE_POWERNV_POSSIBLE = FW_FEATURE_OPAL,\n \tFW_FEATURE_POWERNV_ALWAYS = 0,\ndiff --git a/arch/powerpc/include/asm/prom.h b/arch/powerpc/include/asm/prom.h\nindex 35c00d7..4fb02cc 100644\n--- a/arch/powerpc/include/asm/prom.h\n+++ b/arch/powerpc/include/asm/prom.h\n@@ -172,6 +172,7 @@ struct of_drconf_cell {\n #define OV5_HASH_GTSE\t\t0x1940\t/* Guest Translation Shoot Down Avail */\n /* Radix Table Extensions */\n #define OV5_RADIX_GTSE\t\t0x1A40\t/* Guest Translation Shoot Down Avail */\n+#define OV5_DRC_INFO\t\t0x1640\t/* Redef Prop Structures: drc-info   */\n \n /* Option Vector 6: IBM PAPR hints */\n #define OV6_LINUX\t\t0x02\t/* Linux is our OS */\ndiff --git a/arch/powerpc/platforms/pseries/firmware.c b/arch/powerpc/platforms/pseries/firmware.c\nindex 63cc82a..757d757 100644\n--- a/arch/powerpc/platforms/pseries/firmware.c\n+++ b/arch/powerpc/platforms/pseries/firmware.c\n@@ -114,6 +114,7 @@ struct vec5_fw_feature {\n vec5_fw_features_table[] = {\n \t{FW_FEATURE_TYPE1_AFFINITY,\tOV5_TYPE1_AFFINITY},\n \t{FW_FEATURE_PRRN,\t\tOV5_PRRN},\n+\t{FW_FEATURE_DRC_INFO,\t\tOV5_DRC_INFO},\n };\n \n static void __init fw_vec5_feature_init(const char *vec5, unsigned long len)\n","prefixes":["V2","1/4"]}