get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 986037,
    "url": "http://patchwork.ozlabs.org/api/patches/986037/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20181018153709.32664-6-anirudh.venkataramanan@intel.com/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20181018153709.32664-6-anirudh.venkataramanan@intel.com>",
    "list_archive_url": null,
    "date": "2018-10-18T15:37:07",
    "name": "[5/7] ice: Introduce ice_dev_onetime_setup",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "090e4ae6ea317f8f05082a34a2390ab9c5bb222c",
    "submitter": {
        "id": 73601,
        "url": "http://patchwork.ozlabs.org/api/people/73601/?format=api",
        "name": "Anirudh Venkataramanan",
        "email": "anirudh.venkataramanan@intel.com"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20181018153709.32664-6-anirudh.venkataramanan@intel.com/mbox/",
    "series": [
        {
            "id": 71486,
            "url": "http://patchwork.ozlabs.org/api/series/71486/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=71486",
            "date": "2018-10-18T15:37:02",
            "name": "[1/7] ice: Make ice_msix_clean_rings static",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/71486/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/986037/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/986037/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.138; helo=whitealder.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=intel.com"
        ],
        "Received": [
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\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 42bY7w4FlTz9sDX\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 19 Oct 2018 02:37:16 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id AD2E987D6B;\n\tThu, 18 Oct 2018 15:37:14 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id TXUuPiBfdLcZ; Thu, 18 Oct 2018 15:37:13 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 32B2B87D7F;\n\tThu, 18 Oct 2018 15:37:13 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 54FC11BF3E5\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 18 Oct 2018 15:37:11 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 522C587D86\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 18 Oct 2018 15:37:11 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id Sg9PPE1U2-F7 for <intel-wired-lan@lists.osuosl.org>;\n\tThu, 18 Oct 2018 15:37:10 +0000 (UTC)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id C35B787D5D\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 18 Oct 2018 15:37:10 +0000 (UTC)",
            "from orsmga007.jf.intel.com ([10.7.209.58])\n\tby orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t18 Oct 2018 08:37:09 -0700",
            "from shasta.jf.intel.com ([10.166.241.11])\n\tby orsmga007.jf.intel.com with ESMTP; 18 Oct 2018 08:37:09 -0700"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.54,396,1534834800\"; d=\"scan'208\";a=\"82246053\"",
        "From": "Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Thu, 18 Oct 2018 08:37:07 -0700",
        "Message-Id": "<20181018153709.32664-6-anirudh.venkataramanan@intel.com>",
        "X-Mailer": "git-send-email 2.14.3",
        "In-Reply-To": "<20181018153709.32664-1-anirudh.venkataramanan@intel.com>",
        "References": "<20181018153709.32664-1-anirudh.venkataramanan@intel.com>",
        "Subject": "[Intel-wired-lan] [PATCH 5/7] ice: Introduce ice_dev_onetime_setup",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>",
        "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"
    },
    "content": "ice_dev_onetime_setup contains a couple of driver workarounds for current\nfirmware limitations. These workarounds are expected to go away once\nthese limitations are fixed in the firmware.\n\nSigned-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>\n---\n drivers/net/ethernet/intel/ice/ice_common.c     | 19 +++++++++++++++++++\n drivers/net/ethernet/intel/ice/ice_common.h     |  3 +++\n drivers/net/ethernet/intel/ice/ice_hw_autogen.h |  2 ++\n drivers/net/ethernet/intel/ice/ice_lib.c        |  1 +\n 4 files changed, 25 insertions(+)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ice/ice_common.c b/drivers/net/ethernet/intel/ice/ice_common.c\nindex 78df54b25bf1..5a91a9087d1e 100644\n--- a/drivers/net/ethernet/intel/ice/ice_common.c\n+++ b/drivers/net/ethernet/intel/ice/ice_common.c\n@@ -42,6 +42,23 @@ static enum ice_status ice_set_mac_type(struct ice_hw *hw)\n \treturn 0;\n }\n \n+/**\n+ * ice_dev_onetime_setup - Temporary HW/FW workarounds\n+ * @hw: pointer to the HW structure\n+ *\n+ * This function provides temporary workarounds for certain issues\n+ * that are expected to be fixed in the HW/FW.\n+ */\n+void ice_dev_onetime_setup(struct ice_hw *hw)\n+{\n+\t/* configure Rx - set non pxe mode */\n+\twr32(hw, GLLAN_RCTL_0, 0x1);\n+\n+#define MBX_PF_VT_PFALLOC\t0x00231E80\n+\t/* set VFs per PF */\n+\twr32(hw, MBX_PF_VT_PFALLOC, rd32(hw, PF_VT_PFALLOC_HIF));\n+}\n+\n /**\n  * ice_clear_pf_cfg - Clear PF configuration\n  * @hw: pointer to the hardware structure\n@@ -740,6 +757,8 @@ enum ice_status ice_init_hw(struct ice_hw *hw)\n \tif (status)\n \t\tgoto err_unroll_sched;\n \n+\tice_dev_onetime_setup(hw);\n+\n \t/* Get MAC information */\n \t/* A single port can report up to two (LAN and WoL) addresses */\n \tmac_buf = devm_kcalloc(ice_hw_to_dev(hw), 2,\ndiff --git a/drivers/net/ethernet/intel/ice/ice_common.h b/drivers/net/ethernet/intel/ice/ice_common.h\nindex 1900681289a4..876347e32b6f 100644\n--- a/drivers/net/ethernet/intel/ice/ice_common.h\n+++ b/drivers/net/ethernet/intel/ice/ice_common.h\n@@ -34,6 +34,9 @@ ice_sq_send_cmd(struct ice_hw *hw, struct ice_ctl_q_info *cq,\n \t\tstruct ice_sq_cd *cd);\n void ice_clear_pxe_mode(struct ice_hw *hw);\n enum ice_status ice_get_caps(struct ice_hw *hw);\n+\n+void ice_dev_onetime_setup(struct ice_hw *hw);\n+\n enum ice_status\n ice_write_rxq_ctx(struct ice_hw *hw, struct ice_rlan_ctx *rlan_ctx,\n \t\t  u32 rxq_index);\ndiff --git a/drivers/net/ethernet/intel/ice/ice_hw_autogen.h b/drivers/net/ethernet/intel/ice/ice_hw_autogen.h\nindex a6679a9bfd3a..228afcad6fc3 100644\n--- a/drivers/net/ethernet/intel/ice/ice_hw_autogen.h\n+++ b/drivers/net/ethernet/intel/ice/ice_hw_autogen.h\n@@ -157,6 +157,7 @@\n #define VPINT_ALLOC_LAST_S\t\t\t12\n #define VPINT_ALLOC_LAST_M\t\t\tICE_M(0x7FF, 12)\n #define VPINT_ALLOC_VALID_M\t\t\tBIT(31)\n+#define GLLAN_RCTL_0\t\t\t\t0x002941F8\n #define QRX_CONTEXT(_i, _QRX)\t\t\t(0x00280000 + ((_i) * 8192 + (_QRX) * 4))\n #define QRX_CTRL(_QRX)\t\t\t\t(0x00120000 + ((_QRX) * 4))\n #define QRX_CTRL_MAX_INDEX\t\t\t2047\n@@ -320,6 +321,7 @@\n #define GLV_UPRCL(_i)\t\t\t\t(0x003B2000 + ((_i) * 8))\n #define GLV_UPTCH(_i)\t\t\t\t(0x0030A004 + ((_i) * 8))\n #define GLV_UPTCL(_i)\t\t\t\t(0x0030A000 + ((_i) * 8))\n+#define PF_VT_PFALLOC_HIF\t\t\t0x0009DD80\n #define VSIQF_HKEY_MAX_INDEX\t\t\t12\n #define VSIQF_HLUT_MAX_INDEX\t\t\t15\n #define VFINT_DYN_CTLN(_i)\t\t\t(0x00003800 + ((_i) * 4))\ndiff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c\nindex e750702bcdce..5bacad01f0c9 100644\n--- a/drivers/net/ethernet/intel/ice/ice_lib.c\n+++ b/drivers/net/ethernet/intel/ice/ice_lib.c\n@@ -2529,6 +2529,7 @@ int ice_vsi_rebuild(struct ice_vsi *vsi)\n \tvsi->hw_base_vector = 0;\n \tice_vsi_clear_rings(vsi);\n \tice_vsi_free_arrays(vsi, false);\n+\tice_dev_onetime_setup(&vsi->back->hw);\n \tice_vsi_set_num_qs(vsi);\n \n \t/* Initialize VSI struct elements and create VSI in FW */\n",
    "prefixes": [
        "5/7"
    ]
}