get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 92070,
    "url": "https://patches.dpdk.org/api/patches/92070/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20210423101420.2991473-1-zbigniewx.sikora@intel.com/",
    "project": {
        "id": 3,
        "url": "https://patches.dpdk.org/api/projects/3/?format=api",
        "name": "DTS",
        "link_name": "dts",
        "list_id": "dts.dpdk.org",
        "list_email": "dts@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dts",
        "webscm_url": "http://git.dpdk.org/tools/dts/",
        "list_archive_url": "https://inbox.dpdk.org/dts",
        "list_archive_url_format": "https://inbox.dpdk.org/dts/{}",
        "commit_url_format": ""
    },
    "msgid": "<20210423101420.2991473-1-zbigniewx.sikora@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210423101420.2991473-1-zbigniewx.sikora@intel.com",
    "date": "2021-04-23T10:14:20",
    "name": "vm_pw_mgmt_policy: fixes core mask and driver",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "5f4c407c192b754dc94de76c27401b958fcda8ce",
    "submitter": {
        "id": 2082,
        "url": "https://patches.dpdk.org/api/people/2082/?format=api",
        "name": "Zbigniew Sikora",
        "email": "zbigniewx.sikora@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20210423101420.2991473-1-zbigniewx.sikora@intel.com/mbox/",
    "series": [
        {
            "id": 16629,
            "url": "https://patches.dpdk.org/api/series/16629/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=16629",
            "date": "2021-04-23T10:14:20",
            "name": "vm_pw_mgmt_policy: fixes core mask and driver",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/16629/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/92070/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/92070/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dts-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 5CFE9A0548;\n\tFri, 23 Apr 2021 12:14:31 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2A6B0410DD;\n\tFri, 23 Apr 2021 12:14:30 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id 914E74014F\n for <dts@dpdk.org>; Fri, 23 Apr 2021 12:14:28 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 23 Apr 2021 03:14:23 -0700",
            "from silpixa00400895.ir.intel.com ([10.243.23.135])\n by fmsmga004.fm.intel.com with ESMTP; 23 Apr 2021 03:14:21 -0700"
        ],
        "IronPort-SDR": [
            "\n Y/0Xl7WkYqe0sxT0UjCw1vfZqHOceyWI5XcmCXMAbfqqjVpXcXDLNkiX6n+BDSbTdaQJ/Wqjus\n fMe0zTZ7B08w==",
            "\n GxM4bW9a9NzhwUsJOevLq1evFCd8XMU3VuQ/ZmIYaSeWbqi8WwkklPmQaylHf5v6EwntFN7XFV\n E+5a5ZuGXvyg=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,9962\"; a=\"195602972\"",
            "E=Sophos;i=\"5.82,245,1613462400\"; d=\"scan'208\";a=\"195602972\"",
            "E=Sophos;i=\"5.82,245,1613462400\"; d=\"scan'208\";a=\"446547642\""
        ],
        "X-ExtLoop1": "1",
        "From": "Zbigniew Sikora <zbigniewx.sikora@intel.com>",
        "To": "dts@dpdk.org,\n\tzbigniewx.sikora@intel.com,\n\treshma.pattan@intel.com",
        "Date": "Fri, 23 Apr 2021 12:14:20 +0200",
        "Message-Id": "<20210423101420.2991473-1-zbigniewx.sikora@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Subject": "[dts] [PATCH] vm_pw_mgmt_policy: fixes core mask and driver",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "test suite reviews and discussions <dts.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dts/>",
        "List-Post": "<mailto:dts@dpdk.org>",
        "List-Help": "<mailto:dts-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dts-bounces@dpdk.org",
        "Sender": "\"dts\" <dts-bounces@dpdk.org>"
    },
    "content": "1. Now vm_power_manager only grants access to the cores listed\n   in its coremask, so change core number to be the one\n   from vm_power_mgr core mask.\n2. Replaced driver igb_uio to vfio-pci\n3. Resetsynchronize system clock after the test completion.\n\nRelevant DPDK patch:\nhttp://patches.dpdk.org/project/dpdk/patch/20210115125250.22416-1-david.hunt@intel.com/\n\nSigned-off-by: Zbigniew Sikora <zbigniewx.sikora@intel.com>\n\n--\n1.8.3.1\n\n--------------------------------------------------------------\nIntel Research and Development Ireland Limited\nRegistered in Ireland\nRegistered Office: Collinstown Industrial Park, Leixlip, County Kildare\nRegistered Number: 308263\n\n\nThis e-mail and any attachments may contain confidential material for the sole\nuse of the intended recipient(s). Any review or distribution by others is\nstrictly prohibited. If you are not the intended recipient, please contact the\nsender and delete all copies.",
    "diff": "diff --git a/test_plans/vm_pw_mgmt_policy_test_plan.rst b/test_plans/vm_pw_mgmt_policy_test_plan.rst\nindex cfbfe96..98894ff 100644\n--- a/test_plans/vm_pw_mgmt_policy_test_plan.rst\n+++ b/test_plans/vm_pw_mgmt_policy_test_plan.rst\n@@ -172,7 +172,7 @@ Set up testing environment\n     export RTE_TARGET=x86_64-native-linuxapp-gcc\n     make -C examples/vm_power_manager\n\n-   ./examples/vm_power_manager/build/vm_power_mgr -c 0x7 -n 4\n+   ./examples/vm_power_manager/build/vm_power_mgr -c 0xffff -n 4\n\n     vmpower> add_vm <vm_name>\n     vmpower> add_channels <vm_name> all\n@@ -195,7 +195,7 @@ Set up testing environment\n     make -C examples/vm_power_manager/guest_cli\n\n    ./examples/vm_power_manager/guest_cli/build/guest_vm_power_mgr \\\n-   -c 0x1f -n 4 --file-prefix=vmpower2 -- -i --vm-name=<vm name> \\\n+   -c 0xff -n 4 --file-prefix=vmpower2 -- -i --vm-name=<vm name> \\\n    --policy=<policy name> --vcpu-list=<vcpus list> --busy-hours=<time stage>\n\n     options description::\ndiff --git a/tests/TestSuite_vm_pw_mgmt_policy.py b/tests/TestSuite_vm_pw_mgmt_policy.py\nindex 9abcafd..f074f6d 100644\n--- a/tests/TestSuite_vm_pw_mgmt_policy.py\n+++ b/tests/TestSuite_vm_pw_mgmt_policy.py\n@@ -311,7 +311,7 @@ class TestVmPwMgmtPolicy(TestCase):\n                 'name': ch_name.format(cnt)}\n             self.vm.add_vm_virtio_serial_channel(**channel)\n         # set vm default driver\n-        self.vm.def_driver = 'igb_uio'\n+        self.vm.def_driver = 'vfio-pci'\n         # boot up vm\n         self.vm_dut = self.vm.start()\n         self.is_vm_on = True\n@@ -348,7 +348,7 @@ class TestVmPwMgmtPolicy(TestCase):\n             '-v '\n             '-c {core_mask} '\n             '-n {mem_channel} ').format(**{\n-                'core_mask': self.get_cores_mask(\"1S/3C/1T\"),\n+                'core_mask': self.get_cores_mask(\"1S/12C/1T\"),\n                 'mem_channel': self.dut.get_memory_channels(), })\n         prompt = 'vmpower>'\n         cmd = [' '.join([self.vm_power_mgr, eal_option]), prompt, 30]\n@@ -566,7 +566,7 @@ class TestVmPwMgmtPolicy(TestCase):\n         drv_name = output.splitlines()[0].strip()\n         return drv_name\n\n-    def get_linux_cpu_attrs(self, core_num, name=\"cpuinfo_cur_freq\"):\n+    def get_linux_cpu_attrs(self, core_num, name=\"scaling_setspeed\"):\n         freq_path = \"/sys/devices/system/cpu/cpu{0}/cpufreq/{1}\".format(\n             core_num, name)\n         output = self.d_a_con(\"cat %s\" % freq_path)\n@@ -924,6 +924,7 @@ class TestVmPwMgmtPolicy(TestCase):\n         \"\"\"\n         Run after each test case.\n         \"\"\"\n+        self.dut.send_expect('systemctl restart chronyd', '# ')\n         self.vm_dut.kill_all()\n         self.dut.kill_all()\n\n",
    "prefixes": []
}