get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 94695,
    "url": "https://patches.dpdk.org/api/patches/94695/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210623035541.50543-3-richael.zhuang@arm.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20210623035541.50543-3-richael.zhuang@arm.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210623035541.50543-3-richael.zhuang@arm.com",
    "date": "2021-06-23T03:55:41",
    "name": "[v4,2/2] test/power: round cpuinfo cur freq only when using CPPC cpufreq",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8ea8b753faee3d8ec26c25fa0deb152640360078",
    "submitter": {
        "id": 2178,
        "url": "https://patches.dpdk.org/api/people/2178/?format=api",
        "name": "Richael Zhuang",
        "email": "richael.zhuang@arm.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210623035541.50543-3-richael.zhuang@arm.com/mbox/",
    "series": [
        {
            "id": 17448,
            "url": "https://patches.dpdk.org/api/series/17448/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17448",
            "date": "2021-06-23T03:55:39",
            "name": "power: add support for cppc cpufreq driver",
            "version": 4,
            "mbox": "https://patches.dpdk.org/series/17448/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/94695/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/94695/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-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 803BEA0C41;\n\tWed, 23 Jun 2021 05:56:11 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8B30440E09;\n\tWed, 23 Jun 2021 05:56:06 +0200 (CEST)",
            "from foss.arm.com (foss.arm.com [217.140.110.172])\n by mails.dpdk.org (Postfix) with ESMTP id 7849D40E09;\n Wed, 23 Jun 2021 05:56:05 +0200 (CEST)",
            "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14])\n by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EA8E331B;\n Tue, 22 Jun 2021 20:56:04 -0700 (PDT)",
            "from wls-arm-cavium06.shanghai.arm.com\n (wls-arm-cavium06.shanghai.arm.com [10.169.206.120])\n by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 231533F694;\n Tue, 22 Jun 2021 20:56:02 -0700 (PDT)"
        ],
        "From": "Richael Zhuang <richael.zhuang@arm.com>",
        "To": "dev@dpdk.org",
        "Cc": "yux.jiang@intel.com, richael.zhuang@arm.com, stable@dpdk.org,\n David Hunt <david.hunt@intel.com>",
        "Date": "Wed, 23 Jun 2021 11:55:41 +0800",
        "Message-Id": "<20210623035541.50543-3-richael.zhuang@arm.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20210623035541.50543-1-richael.zhuang@arm.com>",
        "References": "<20210512035709.37755-2-richael.zhuang@arm.com>\n <20210623035541.50543-1-richael.zhuang@arm.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v4 2/2] test/power: round cpuinfo cur freq only\n when using CPPC cpufreq",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "On arm platform, the value in \"/sys/.../cpuinfo_cur_freq\" may not\nbe exactly the same as what was set when using CPPC cpufreq driver.\nFor other cpufreq driver, no need to round it currently, or else\nthis check will fail with turbo enabled. For example, with acpi_cpufreq,\ncpuinfo_cur_freq can be 2401000 which is equal to freqs[0].It should\nnot be rounded to 2400000.\n\nFixes: 606a234c6d360 (\"test/power: round CPU frequency to check\")\nCc: richael.zhuang@arm.com\nCc: stable@dpdk.org\n\nSigned-off-by: Richael Zhuang <richael.zhuang@arm.com>\n---\n app/test/test_power_cpufreq.c | 23 ++++++++++++++---------\n 1 file changed, 14 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/app/test/test_power_cpufreq.c b/app/test/test_power_cpufreq.c\nindex 8516df4ca..b8fc53925 100644\n--- a/app/test/test_power_cpufreq.c\n+++ b/app/test/test_power_cpufreq.c\n@@ -55,7 +55,9 @@ check_cur_freq(unsigned int lcore_id, uint32_t idx, bool turbo)\n \tFILE *f;\n \tchar fullpath[PATH_MAX];\n \tchar buf[BUFSIZ];\n+\tenum power_management_env env;\n \tuint32_t cur_freq;\n+\tuint32_t freq_conv;\n \tint ret = -1;\n \tint i;\n \n@@ -80,15 +82,18 @@ check_cur_freq(unsigned int lcore_id, uint32_t idx, bool turbo)\n \t\t\tgoto fail_all;\n \n \t\tcur_freq = strtoul(buf, NULL, TEST_POWER_CONVERT_TO_DECIMAL);\n-\n-\t\t/* convert the frequency to nearest 100000 value\n-\t\t * Ex: if cur_freq=1396789 then freq_conv=1400000\n-\t\t * Ex: if cur_freq=800030 then freq_conv=800000\n-\t\t */\n-\t\tunsigned int freq_conv = 0;\n-\t\tfreq_conv = (cur_freq + TEST_FREQ_ROUNDING_DELTA)\n-\t\t\t\t\t/ TEST_ROUND_FREQ_TO_N_100000;\n-\t\tfreq_conv = freq_conv * TEST_ROUND_FREQ_TO_N_100000;\n+\t\tfreq_conv = cur_freq;\n+\n+\t\tenv = rte_power_get_env();\n+\t\tif (env == PM_ENV_CPPC_CPUFREQ) {\n+\t\t\t/* convert the frequency to nearest 100000 value\n+\t\t\t * Ex: if cur_freq=1396789 then freq_conv=1400000\n+\t\t\t * Ex: if cur_freq=800030 then freq_conv=800000\n+\t\t\t */\n+\t\t\tfreq_conv = (cur_freq + TEST_FREQ_ROUNDING_DELTA)\n+\t\t\t\t\t\t/ TEST_ROUND_FREQ_TO_N_100000;\n+\t\t\tfreq_conv = freq_conv * TEST_ROUND_FREQ_TO_N_100000;\n+\t\t}\n \n \t\tif (turbo)\n \t\t\tret = (freqs[idx] <= freq_conv ? 0 : -1);\n",
    "prefixes": [
        "v4",
        "2/2"
    ]
}