Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/805259/?format=api
{ "id": 805259, "url": "http://patchwork.ozlabs.org/api/patches/805259/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1503556688-15412-4-git-send-email-sukadev@linux.vnet.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": "<1503556688-15412-4-git-send-email-sukadev@linux.vnet.ibm.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1503556688-15412-4-git-send-email-sukadev@linux.vnet.ibm.com/", "date": "2017-08-24T06:37:59", "name": "[v7,03/12] powerpc/vas: Define vas_init() and vas_exit()", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "b274d68972b1a68030db64d6700ea13d4df68bd9", "submitter": { "id": 984, "url": "http://patchwork.ozlabs.org/api/people/984/?format=api", "name": "Sukadev Bhattiprolu", "email": "sukadev@linux.vnet.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1503556688-15412-4-git-send-email-sukadev@linux.vnet.ibm.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/805259/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/805259/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", "linuxppc-dev@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 3xdFCh2lfDz9sRW\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 24 Aug 2017 16:45:04 +1000 (AEST)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xdFCh1lTVzDrK9\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 24 Aug 2017 16:45:04 +1000 (AEST)", "from ozlabs.org (bilbo.ozlabs.org [103.22.144.67])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xdF455mCMzDrK5\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tThu, 24 Aug 2017 16:38:29 +1000 (AEST)", "from ozlabs.org (bilbo.ozlabs.org [103.22.144.67])\n\tby bilbo.ozlabs.org (Postfix) with ESMTP id 3xdF452V4vz8w2H\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tThu, 24 Aug 2017 16:38:29 +1000 (AEST)", "by ozlabs.org (Postfix)\n\tid 3xdF450WtQz9t3J; Thu, 24 Aug 2017 16:38:29 +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 ozlabs.org (Postfix) with ESMTPS id 3xdF443PVRz9t3H\n\tfor <linuxppc-dev@ozlabs.org>; Thu, 24 Aug 2017 16:38:28 +1000 (AEST)", "from pps.filterd (m0098399.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv7O6aN8v047266\n\tfor <linuxppc-dev@ozlabs.org>; Thu, 24 Aug 2017 02:38:27 -0400", "from e18.ny.us.ibm.com (e18.ny.us.ibm.com [129.33.205.208])\n\tby mx0a-001b2d01.pphosted.com with ESMTP id 2chn6ccgu7-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@ozlabs.org>; Thu, 24 Aug 2017 02:38:26 -0400", "from localhost\n\tby e18.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <linuxppc-dev@ozlabs.org> from <sukadev@linux.vnet.ibm.com>;\n\tThu, 24 Aug 2017 02:38:24 -0400", "from b01cxnp23034.gho.pok.ibm.com (9.57.198.29)\n\tby e18.ny.us.ibm.com (146.89.104.205) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tThu, 24 Aug 2017 02:38:22 -0400", "from b01ledav002.gho.pok.ibm.com (b01ledav002.gho.pok.ibm.com\n\t[9.57.199.107])\n\tby b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP\n\tid v7O6cLVV22347888; Thu, 24 Aug 2017 06:38:21 GMT", "from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id E7620124044;\n\tThu, 24 Aug 2017 02:35:41 -0400 (EDT)", "from suka-w540.usor.ibm.com (unknown [9.70.94.25])\n\tby b01ledav002.gho.pok.ibm.com (Postfix) with ESMTP id 1770512403F;\n\tThu, 24 Aug 2017 02:35:41 -0400 (EDT)" ], "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=linux.vnet.ibm.com\n\t(client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com;\n\tenvelope-from=sukadev@linux.vnet.ibm.com; receiver=<UNKNOWN>)", "From": "Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>", "To": "Michael Ellerman <mpe@ellerman.id.au>", "Subject": "[PATCH v7 03/12] powerpc/vas: Define vas_init() and vas_exit()", "Date": "Wed, 23 Aug 2017 23:37:59 -0700", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1503556688-15412-1-git-send-email-sukadev@linux.vnet.ibm.com>", "References": "<1503556688-15412-1-git-send-email-sukadev@linux.vnet.ibm.com>", "X-TM-AS-GCONF": "00", "x-cbid": "17082406-0044-0000-0000-000003822BCF", "X-IBM-SpamModules-Scores": "", "X-IBM-SpamModules-Versions": "BY=3.00007601; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000224; SDB=6.00906836; UDB=6.00454554;\n\tIPR=6.00687033; \n\tBA=6.00005550; 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.00016840;\n\tXFM=3.00000015; UTC=2017-08-24 06:38:24", "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused", "x-cbparentid": "17082406-0045-0000-0000-000007B0437A", "Message-Id": "<1503556688-15412-4-git-send-email-sukadev@linux.vnet.ibm.com>", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-08-24_03:, , 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-1708240106", "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": "stewart@linux.vnet.ibm.com, mikey@neuling.org, linuxppc-dev@ozlabs.org, \n\tlinux-kernel@vger.kernel.org, apopple@au1.ibm.com, oohall@gmail.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": "Implement vas_init() and vas_exit() functions for a new VAS module.\nThis VAS module is essentially a library for other device drivers\nand kernel users of the NX coprocessors like NX-842 and NX-GZIP.\nIn the future this will be extended to add support for user space\nto access the NX coprocessors.\n\nVAS is currently only supported with 64K page size.\n\nSigned-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>\n---\nChangelog[v5]:\n\t- [Ben Herrenschmidt]: Create and use platform device tree nodes,\n\t fix up the \"reg\" properties for the VAS DT node and use the\n\t platform device helpers to parse the reg properties; Use linked\n\t list of VAS instances (don't assume vasids are sequential);\n\t Use CONFIG_PPC_VAS instead of CONFIG_VAS.\n\nChangelog[v4]:\n\t- [Michael Neuling] Fix some accidental deletions; fix help text\n\t in Kconfig; change vas_initialized to a function; move from\n\t drivers/misc to arch/powerpc/kernel\n\t- Drop the vas_window_reset() interface. It is not needed as\n\t window will be initialized before each use.\n\t- Add a \"depends on PPC_64K_PAGES\"\n\nChangelog[v3]:\n\t- Zero vas_instances memory on allocation\n\t- [Haren Myneni] Fix description in Kconfig\nChangelog[v2]:\n\t- Get HVWC, UWC and window address parameters from device tree.\n---\n .../devicetree/bindings/powerpc/ibm,vas.txt | 24 +++\n MAINTAINERS | 8 +\n arch/powerpc/platforms/powernv/Kconfig | 14 ++\n arch/powerpc/platforms/powernv/Makefile | 1 +\n arch/powerpc/platforms/powernv/vas-window.c | 19 +++\n arch/powerpc/platforms/powernv/vas.c | 183 +++++++++++++++++++++\n arch/powerpc/platforms/powernv/vas.h | 3 +\n 7 files changed, 252 insertions(+)\n create mode 100644 Documentation/devicetree/bindings/powerpc/ibm,vas.txt\n create mode 100644 arch/powerpc/platforms/powernv/vas-window.c\n create mode 100644 arch/powerpc/platforms/powernv/vas.c", "diff": "diff --git a/Documentation/devicetree/bindings/powerpc/ibm,vas.txt b/Documentation/devicetree/bindings/powerpc/ibm,vas.txt\nnew file mode 100644\nindex 0000000..0e3111d\n--- /dev/null\n+++ b/Documentation/devicetree/bindings/powerpc/ibm,vas.txt\n@@ -0,0 +1,24 @@\n+* IBM Powerpc Virtual Accelerator Switchboard (VAS)\n+\n+VAS is a hardware mechanism that allows kernel subsystems and user processes\n+to directly submit compression and other requests to Nest accelerators (NX)\n+or other coprocessors functions.\n+\n+Required properties:\n+- compatible : should be \"ibm,vas\" or \"ibm,power9-vas\"\n+- ibm,vas-id : A unique identifier for each instance of VAS in the system\n+- reg : Should contain 4 pairs of 64-bit fields specifying the Hypervisor\n+ window context start and length, OS/User window context start and length,\n+ \"Paste address\" start and length, \"Paste window id\" start bit and number\n+ of bits)\n+- name : \"vas\"\n+\n+Example:\n+\n+\tvas@6019100000000 {\n+\t\tcompatible = \"ibm,vas\", \"ibm,power9-vas\";\n+\t\treg = <0x6019100000000 0x2000000 0x6019000000000 0x100000000 0x8000000000000 0x100000000 0x20 0x10>;\n+\t\tname = \"vas\";\n+\t\tibm,vas-id = <0x1>;\n+\t};\n+\ndiff --git a/MAINTAINERS b/MAINTAINERS\nindex 3c41902..abc235f 100644\n--- a/MAINTAINERS\n+++ b/MAINTAINERS\n@@ -6425,6 +6425,14 @@ F:\tdrivers/crypto/nx/nx.*\n F:\tdrivers/crypto/nx/nx_csbcpb.h\n F:\tdrivers/crypto/nx/nx_debugfs.h\n \n+IBM Power Virtual Accelerator Switchboard\n+M:\tSukadev Bhattiprolu\n+L:\tlinuxppc-dev@lists.ozlabs.org\n+S:\tSupported\n+F:\tarch/powerpc/platforms/powernv/vas*\n+F:\tarch/powerpc/include/asm/vas.h\n+F:\tarch/powerpc/include/uapi/asm/vas.h\n+\n IBM Power Linux RAID adapter\n M:\tBrian King <brking@us.ibm.com>\n S:\tSupported\ndiff --git a/arch/powerpc/platforms/powernv/Kconfig b/arch/powerpc/platforms/powernv/Kconfig\nindex 6a6f4ef..f565454 100644\n--- a/arch/powerpc/platforms/powernv/Kconfig\n+++ b/arch/powerpc/platforms/powernv/Kconfig\n@@ -30,3 +30,17 @@ config OPAL_PRD\n \thelp\n \t This enables the opal-prd driver, a facility to run processor\n \t recovery diagnostics on OpenPower machines\n+\n+config PPC_VAS\n+\tbool \"IBM Virtual Accelerator Switchboard (VAS)\"\n+\tdepends on PPC_POWERNV && PPC_64K_PAGES\n+\tdefault n\n+\thelp\n+\t This enables support for IBM Virtual Accelerator Switchboard (VAS).\n+\n+\t VAS allows accelerators in co-processors like NX-GZIP and NX-842\n+\t to be accessible to kernel subsystems and user processes.\n+\n+\t VAS adapters are found in POWER9 based systems.\n+\n+\t If unsure, say N.\ndiff --git a/arch/powerpc/platforms/powernv/Makefile b/arch/powerpc/platforms/powernv/Makefile\nindex b5d98cb..e4db292 100644\n--- a/arch/powerpc/platforms/powernv/Makefile\n+++ b/arch/powerpc/platforms/powernv/Makefile\n@@ -12,3 +12,4 @@ obj-$(CONFIG_PPC_SCOM)\t+= opal-xscom.o\n obj-$(CONFIG_MEMORY_FAILURE)\t+= opal-memory-errors.o\n obj-$(CONFIG_TRACEPOINTS)\t+= opal-tracepoints.o\n obj-$(CONFIG_OPAL_PRD)\t+= opal-prd.o\n+obj-$(CONFIG_PPC_VAS)\t+= vas.o vas-window.o\ndiff --git a/arch/powerpc/platforms/powernv/vas-window.c b/arch/powerpc/platforms/powernv/vas-window.c\nnew file mode 100644\nindex 0000000..6156fbe\n--- /dev/null\n+++ b/arch/powerpc/platforms/powernv/vas-window.c\n@@ -0,0 +1,19 @@\n+/*\n+ * Copyright 2016 IBM Corp.\n+ *\n+ * This program is free software; you can redistribute it and/or\n+ * modify it under the terms of the GNU General Public License\n+ * as published by the Free Software Foundation; either version\n+ * 2 of the License, or (at your option) any later version.\n+ */\n+\n+#include <linux/types.h>\n+#include <linux/mutex.h>\n+\n+#include \"vas.h\"\n+\n+/* stub for now */\n+int vas_win_close(struct vas_window *window)\n+{\n+\treturn -1;\n+}\ndiff --git a/arch/powerpc/platforms/powernv/vas.c b/arch/powerpc/platforms/powernv/vas.c\nnew file mode 100644\nindex 0000000..556156b\n--- /dev/null\n+++ b/arch/powerpc/platforms/powernv/vas.c\n@@ -0,0 +1,183 @@\n+/*\n+ * Copyright 2016 IBM Corp.\n+ *\n+ * This program is free software; you can redistribute it and/or\n+ * modify it under the terms of the GNU General Public License\n+ * as published by the Free Software Foundation; either version\n+ * 2 of the License, or (at your option) any later version.\n+ */\n+\n+#include <linux/module.h>\n+#include <linux/kernel.h>\n+#include <linux/export.h>\n+#include <linux/types.h>\n+#include <linux/slab.h>\n+#include <linux/platform_device.h>\n+#include <linux/of_platform.h>\n+#include <linux/of_address.h>\n+#include <linux/of.h>\n+\n+#include \"vas.h\"\n+\n+static bool init_done;\n+LIST_HEAD(vas_instances);\n+\n+static int init_vas_instance(struct platform_device *pdev)\n+{\n+\tint rc, vasid;\n+\tstruct vas_instance *vinst;\n+\tstruct device_node *dn = pdev->dev.of_node;\n+\tstruct resource *res;\n+\n+\trc = of_property_read_u32(dn, \"ibm,vas-id\", &vasid);\n+\tif (rc) {\n+\t\tpr_err(\"VAS: No ibm,vas-id property for %s?\\n\", pdev->name);\n+\t\treturn -ENODEV;\n+\t}\n+\n+\tif (pdev->num_resources != 4) {\n+\t\tpr_err(\"VAS: Unexpected DT configuration for [%s, %d]\\n\",\n+\t\t\t\tpdev->name, vasid);\n+\t\treturn -ENODEV;\n+\t}\n+\n+\tvinst = kcalloc(1, sizeof(*vinst), GFP_KERNEL);\n+\tif (!vinst)\n+\t\treturn -ENOMEM;\n+\n+\tINIT_LIST_HEAD(&vinst->node);\n+\tida_init(&vinst->ida);\n+\tmutex_init(&vinst->mutex);\n+\tvinst->vas_id = vasid;\n+\tvinst->pdev = pdev;\n+\n+\tres = &pdev->resource[0];\n+\tvinst->hvwc_bar_start = res->start;\n+\tvinst->hvwc_bar_len = res->end - res->start + 1;\n+\n+\tres = &pdev->resource[1];\n+\tvinst->uwc_bar_start = res->start;\n+\tvinst->uwc_bar_len = res->end - res->start + 1;\n+\n+\tres = &pdev->resource[2];\n+\tvinst->paste_base_addr = res->start;\n+\n+\tres = &pdev->resource[3];\n+\tvinst->paste_win_id_shift = 63 - res->end;\n+\n+\tpr_devel(\"VAS: Initialized instance [%s, %d], paste_base 0x%llx, \"\n+\t\t\t\"paste_win_id_shift 0x%llx\\n\", pdev->name, vasid,\n+\t\t\tvinst->paste_base_addr, vinst->paste_win_id_shift);\n+\n+\tvinst->ready = true;\n+\tlist_add(&vinst->node, &vas_instances);\n+\n+\tdev_set_drvdata(&pdev->dev, vinst);\n+\n+\treturn 0;\n+}\n+\n+/*\n+ * Although this is read/used multiple times, it is written to only\n+ * during initialization.\n+ */\n+struct vas_instance *find_vas_instance(int vasid)\n+{\n+\tstruct list_head *ent;\n+\tstruct vas_instance *vinst;\n+\n+\tlist_for_each(ent, &vas_instances) {\n+\t\tvinst = list_entry(ent, struct vas_instance, node);\n+\t\tif (vinst->vas_id == vasid)\n+\t\t\treturn vinst;\n+\t}\n+\n+\tpr_devel(\"VAS: Instance %d not found\\n\", vasid);\n+\treturn NULL;\n+}\n+\n+bool vas_initialized(void)\n+{\n+\treturn init_done;\n+}\n+\n+static int vas_probe(struct platform_device *pdev)\n+{\n+\tif (!pdev || !pdev->dev.of_node)\n+\t\treturn -ENODEV;\n+\n+\treturn init_vas_instance(pdev);\n+}\n+\n+static void free_inst(struct vas_instance *vinst)\n+{\n+\tlist_del(&vinst->node);\n+\n+\tkfree(vinst);\n+}\n+\n+static int vas_remove(struct platform_device *pdev)\n+{\n+\tstruct vas_instance *vinst;\n+\n+\tvinst = dev_get_drvdata(&pdev->dev);\n+\n+\tpr_devel(\"VAS: Removed instance [%s, %d]\\n\", pdev->name,\n+\t\t\t\tvinst->vas_id);\n+\tfree_inst(vinst);\n+\n+\treturn 0;\n+}\n+static const struct of_device_id powernv_vas_match[] = {\n+\t{ .compatible = \"ibm,vas\",},\n+\t{},\n+};\n+\n+static struct platform_driver vas_driver = {\n+\t.driver = {\n+\t\t.name = \"vas\",\n+\t\t.of_match_table = powernv_vas_match,\n+\t},\n+\t.probe = vas_probe,\n+\t.remove = vas_remove,\n+};\n+\n+module_platform_driver(vas_driver);\n+\n+int vas_init(void)\n+{\n+\tint found = 0;\n+\tstruct device_node *dn;\n+\n+\tfor_each_compatible_node(dn, NULL, \"ibm,vas\") {\n+\t\tof_platform_device_create(dn, NULL, NULL);\n+\t\tfound++;\n+\t}\n+\n+\tif (!found)\n+\t\treturn -ENODEV;\n+\n+\tpr_devel(\"VAS: Found %d instances\\n\", found);\n+\tinit_done = true;\n+\n+\treturn 0;\n+}\n+\n+void vas_exit(void)\n+{\n+\tstruct list_head *ent;\n+\tstruct vas_instance *vinst;\n+\n+\tlist_for_each(ent, &vas_instances) {\n+\t\tvinst = list_entry(ent, struct vas_instance, node);\n+\t\tof_platform_depopulate(&vinst->pdev->dev);\n+\t}\n+\n+\tinit_done = false;\n+}\n+\n+module_init(vas_init);\n+module_exit(vas_exit);\n+MODULE_DESCRIPTION(\"Bare metal IBM Virtual Accelerator Switchboard\");\n+MODULE_AUTHOR(\"Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>\");\n+MODULE_LICENSE(\"GPL\");\ndiff --git a/arch/powerpc/platforms/powernv/vas.h b/arch/powerpc/platforms/powernv/vas.h\nindex c66aaf0..150d7b1 100644\n--- a/arch/powerpc/platforms/powernv/vas.h\n+++ b/arch/powerpc/platforms/powernv/vas.h\n@@ -382,4 +382,7 @@ struct vas_winctx {\n \tenum vas_notify_after_count notify_after_count;\n };\n \n+extern bool vas_initialized(void);\n+extern struct vas_instance *find_vas_instance(int vasid);\n+\n #endif /* _VAS_H */\n", "prefixes": [ "v7", "03/12" ] }