get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/806954/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 806954,
    "url": "http://patchwork.ozlabs.org/api/patches/806954/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1503987820-31933-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": "<1503987820-31933-4-git-send-email-sukadev@linux.vnet.ibm.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1503987820-31933-4-git-send-email-sukadev@linux.vnet.ibm.com/",
    "date": "2017-08-29T06:23:33",
    "name": "[v8,03/10] powerpc/vas: Define vas_init() and vas_exit()",
    "commit_ref": "4dea2d1a927c61114a168d4509b56329ea6effb7",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "d3cb9b01d82fd2675f66feb2c2ef3a2573ebd4e2",
    "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/1503987820-31933-4-git-send-email-sukadev@linux.vnet.ibm.com/mbox/",
    "series": [
        {
            "id": 310,
            "url": "http://patchwork.ozlabs.org/api/series/310/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=310",
            "date": "2017-08-29T06:23:30",
            "name": "Enable VAS",
            "version": 8,
            "mbox": "http://patchwork.ozlabs.org/series/310/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/806954/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/806954/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 [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 3xhJcp6vZ3z9t2v\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 29 Aug 2017 16:28:58 +1000 (AEST)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xhJcp650FzDqkh\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 29 Aug 2017 16:28:58 +1000 (AEST)",
            "from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2])\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 3xhJW51lHQzDqVg\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tTue, 29 Aug 2017 16:24:01 +1000 (AEST)",
            "from ozlabs.org (bilbo.ozlabs.org [103.22.144.67])\n\tby bilbo.ozlabs.org (Postfix) with ESMTP id 3xhJW46MsSz8vLq\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tTue, 29 Aug 2017 16:24:00 +1000 (AEST)",
            "by ozlabs.org (Postfix)\n\tid 3xhJW44yLrz9t3J; Tue, 29 Aug 2017 16:24:00 +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 ozlabs.org (Postfix) with ESMTPS id 3xhJW40hQGz9t3f\n\tfor <linuxppc-dev@ozlabs.org>; Tue, 29 Aug 2017 16:23:59 +1000 (AEST)",
            "from pps.filterd (m0098414.ppops.net [127.0.0.1])\n\tby mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv7T6JM0Q079417\n\tfor <linuxppc-dev@ozlabs.org>; Tue, 29 Aug 2017 02:23:57 -0400",
            "from e12.ny.us.ibm.com (e12.ny.us.ibm.com [129.33.205.202])\n\tby mx0b-001b2d01.pphosted.com with ESMTP id 2cn1jynxdj-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@ozlabs.org>; Tue, 29 Aug 2017 02:23:57 -0400",
            "from localhost\n\tby e12.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\tTue, 29 Aug 2017 02:23:57 -0400",
            "from b01cxnp23032.gho.pok.ibm.com (9.57.198.27)\n\tby e12.ny.us.ibm.com (146.89.104.199) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tTue, 29 Aug 2017 02:23:54 -0400",
            "from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com\n\t[9.57.199.110])\n\tby b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP\n\tid v7T6NrpZ23789616; Tue, 29 Aug 2017 06:23:53 GMT",
            "from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 7AE77AE03C;\n\tTue, 29 Aug 2017 02:24:17 -0400 (EDT)",
            "from suka-w540.usor.ibm.com (unknown [9.70.94.25])\n\tby b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP id A08D1AE034;\n\tTue, 29 Aug 2017 02:24:16 -0400 (EDT)"
        ],
        "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=linux.vnet.ibm.com\n\t(client-ip=148.163.158.5; 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 v8 03/10] powerpc/vas: Define vas_init() and vas_exit()",
        "Date": "Mon, 28 Aug 2017 23:23:33 -0700",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1503987820-31933-1-git-send-email-sukadev@linux.vnet.ibm.com>",
        "References": "<1503987820-31933-1-git-send-email-sukadev@linux.vnet.ibm.com>",
        "X-TM-AS-GCONF": "00",
        "x-cbid": "17082906-0048-0000-0000-000001DB0A1F",
        "X-IBM-SpamModules-Scores": "",
        "X-IBM-SpamModules-Versions": "BY=3.00007631; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000226; SDB=6.00909146; UDB=6.00455923;\n\tIPR=6.00689401; \n\tBA=6.00005559; 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.00016912;\n\tXFM=3.00000015; UTC=2017-08-29 06:23:56",
        "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused",
        "x-cbparentid": "17082906-0049-0000-0000-0000426238AC",
        "Message-Id": "<1503987820-31933-4-git-send-email-sukadev@linux.vnet.ibm.com>",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-08-29_01:, , 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-1708290094",
        "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[v8]:\n\t- [Michael Ellerman] VAS should be built-in and not a module;\n\t\tdrop the vas_exit() and free_vinst() code since its not\n\t\ta module and might need some refcounting. Drop init_done,\n\t\t->ready and unnecessary \"len\" fields in vinst; Misc cleanup.\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        |  23 ++++\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               | 151 +++++++++++++++++++++\n arch/powerpc/platforms/powernv/vas.h               |   2 +\n 7 files changed, 218 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..a096d73\n--- /dev/null\n+++ b/Documentation/devicetree/bindings/powerpc/ibm,vas.txt\n@@ -0,0 +1,23 @@\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\".\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+\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 1c3feff..ec68732 100644\n--- a/MAINTAINERS\n+++ b/MAINTAINERS\n@@ -6437,6 +6437,14 @@ L:\tnetdev@vger.kernel.org\n S:\tSupported\n F:\tdrivers/net/ethernet/ibm/ibmvnic.*\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 Virtual Ethernet Device Driver\n M:\tThomas Falcon <tlfalcon@linux.vnet.ibm.com>\n L:\tnetdev@vger.kernel.org\ndiff --git a/arch/powerpc/platforms/powernv/Kconfig b/arch/powerpc/platforms/powernv/Kconfig\nindex 6a6f4ef..3e3bbe9 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 y\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..de21acb\n--- /dev/null\n+++ b/arch/powerpc/platforms/powernv/vas-window.c\n@@ -0,0 +1,19 @@\n+/*\n+ * Copyright 2016-17 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..565a487\n--- /dev/null\n+++ b/arch/powerpc/platforms/powernv/vas.c\n@@ -0,0 +1,151 @@\n+/*\n+ * Copyright 2016-17 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+#define pr_fmt(fmt) \"vas: \" fmt\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 DEFINE_MUTEX(vas_mutex);\n+static LIST_HEAD(vas_instances);\n+\n+static int init_vas_instance(struct platform_device *pdev)\n+{\n+\tint rc, vasid;\n+\tstruct resource *res;\n+\tstruct vas_instance *vinst;\n+\tstruct device_node *dn = pdev->dev.of_node;\n+\n+\trc = of_property_read_u32(dn, \"ibm,vas-id\", &vasid);\n+\tif (rc) {\n+\t\tpr_err(\"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(\"Unexpected DT configuration for [%s, %d]\\n\",\n+\t\t\t\tpdev->name, vasid);\n+\t\treturn -ENODEV;\n+\t}\n+\n+\tvinst = kzalloc(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+\n+\tres = &pdev->resource[1];\n+\tvinst->uwc_bar_start = res->start;\n+\n+\tres = &pdev->resource[2];\n+\tvinst->paste_base_addr = res->start;\n+\n+\tres = &pdev->resource[3];\n+\tif (res->end > 62) {\n+\t\tpr_err(\"Bad 'paste_win_id_shift' in DT, %llx\\n\", res->end);\n+\t\tgoto free_vinst;\n+\t}\n+\n+\tvinst->paste_win_id_shift = 63 - res->end;\n+\n+\tpr_devel(\"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+\tmutex_lock(&vas_mutex);\n+\tlist_add(&vinst->node, &vas_instances);\n+\tmutex_unlock(&vas_mutex);\n+\n+\tdev_set_drvdata(&pdev->dev, vinst);\n+\n+\treturn 0;\n+\n+free_vinst:\n+\tkfree(vinst);\n+\treturn -ENODEV;\n+\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+\tmutex_lock(&vas_mutex);\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\tmutex_unlock(&vas_mutex);\n+\t\t\treturn vinst;\n+\t\t}\n+\t}\n+\tmutex_unlock(&vas_mutex);\n+\n+\tpr_devel(\"Instance %d not found\\n\", vasid);\n+\treturn NULL;\n+}\n+\n+static int vas_probe(struct platform_device *pdev)\n+{\n+\treturn init_vas_instance(pdev);\n+}\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+};\n+\n+static int __init vas_init(void)\n+{\n+\tint found = 0;\n+\tstruct device_node *dn;\n+\n+\tplatform_driver_register(&vas_driver);\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(\"Found %d instances\\n\", found);\n+\n+\treturn 0;\n+}\n+device_initcall(vas_init);\ndiff --git a/arch/powerpc/platforms/powernv/vas.h b/arch/powerpc/platforms/powernv/vas.h\nindex abb545f..650805d 100644\n--- a/arch/powerpc/platforms/powernv/vas.h\n+++ b/arch/powerpc/platforms/powernv/vas.h\n@@ -379,4 +379,6 @@ struct vas_winctx {\n \tenum vas_notify_after_count notify_after_count;\n };\n \n+extern struct vas_instance *find_vas_instance(int vasid);\n+\n #endif /* _VAS_H */\n",
    "prefixes": [
        "v8",
        "03/10"
    ]
}