Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1326505/?format=api
{ "id": 1326505, "url": "http://patchwork.ozlabs.org/api/patches/1326505/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20200710052340.737567-8-oohall@gmail.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": "<20200710052340.737567-8-oohall@gmail.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20200710052340.737567-8-oohall@gmail.com/", "date": "2020-07-10T05:23:32", "name": "[07/15] powerpc/powernv/sriov: Rename truncate_iov", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "13f6bcf3ecd19ff0bff5add3de5ca8a90c2c6f12", "submitter": { "id": 68108, "url": "http://patchwork.ozlabs.org/api/people/68108/?format=api", "name": "Oliver O'Halloran", "email": "oohall@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20200710052340.737567-8-oohall@gmail.com/mbox/", "series": [ { "id": 188782, "url": "http://patchwork.ozlabs.org/api/series/188782/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=188782", "date": "2020-07-10T05:23:26", "name": "[01/15] powernv/pci: Add pci_bus_to_pnvhb() helper", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/188782/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1326505/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1326505/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <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" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4B326k4tLtz9s1x\n\tfor <patchwork-incoming@ozlabs.org>; Fri, 10 Jul 2020 15:44:30 +1000 (AEST)", "from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4B326k1ltPzDrLX\n\tfor <patchwork-incoming@ozlabs.org>; Fri, 10 Jul 2020 15:44:30 +1000 (AEST)", "from mail-wr1-x442.google.com (mail-wr1-x442.google.com\n [IPv6:2a00:1450:4864:20::442])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by lists.ozlabs.org (Postfix) with ESMTPS id 4B31gN052KzDrHy\n for <linuxppc-dev@lists.ozlabs.org>; Fri, 10 Jul 2020 15:24:15 +1000 (AEST)", "by mail-wr1-x442.google.com with SMTP id f18so4587810wrs.0\n for <linuxppc-dev@lists.ozlabs.org>; Thu, 09 Jul 2020 22:24:15 -0700 (PDT)", "from 192-168-1-18.tpgi.com.au ([220.240.245.68])\n by smtp.gmail.com with ESMTPSA id 92sm9090941wrr.96.2020.07.09.22.24.10\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 09 Jul 2020 22:24:11 -0700 (PDT)" ], "Authentication-Results": [ "ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20161025 header.b=oUm/2j4A;\n\tdkim-atps=neutral", "lists.ozlabs.org; spf=pass (sender SPF authorized)\n smtp.mailfrom=gmail.com (client-ip=2a00:1450:4864:20::442;\n helo=mail-wr1-x442.google.com; envelope-from=oohall@gmail.com;\n receiver=<UNKNOWN>)", "lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "lists.ozlabs.org; dkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20161025 header.b=oUm/2j4A; dkim-atps=neutral" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=yjFBAfMSdSR2RLDZl/53A4AuXVN4BJQAVTP8K1aAgMs=;\n b=oUm/2j4AoPGrtuPrYNcl7ONb/z69zR0XRjLaWGeSAUvz/p2UJrua90xhvB/4eVLxqj\n VBAQJ519DDVRVLI+tVu61a/Ej8QVkKjchKexYbG/GXYBhNN9QNQ1TuZJn7mAf+SmIkhl\n QZhTz+jX0Q8usvHjINyZYZGZ2lbHU150I0V/9ukcuoxRtT6umbKVKDN/lIR82RvfDQkS\n VI4FV5GJufi9d24CwVswM17dhuMzH1ZhDS09f1A0OuJxlanQL4Ho5UhEmmtUsCYd1Gli\n ka3NyBQRgxVlSVlmxdMLao8JtvHJzrEZXjY2tH5Qog1C+E22JZPdqgFNI78u+keSmNOL\n bG0A==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=yjFBAfMSdSR2RLDZl/53A4AuXVN4BJQAVTP8K1aAgMs=;\n b=tI7OjoFeOgHEenqb4n8uZ/F4BeAKpWCfCnH1pzWRJC44nSy+2MtVdxKzKaiumoP49X\n IslQ3QhXYghJ0XWY/hlpk91M1mu2Xds3RXyr+uDEIDPmt3/rIE8UpSNfToKMCpPOhlPT\n bnZiiyhqbJZg4gYo6AzDavSkwxgcUAe4c5GI5wiqyuYENqfNeAW74NnjcNtDCxdHS2DW\n x+Ob/QsSAyOdSq+FL4qXV13gKklkwj3P6C4mhBPa50VlYF9Bqr83r0hRyz9yB+Rw/er0\n Rx5gGyFKxYaN1eMWmCuBbEA++AWUuhW3ilsIPPJYJoSWTkklOyThlR4W2WDnk0fwu7RO\n +hSQ==", "X-Gm-Message-State": "AOAM5338Ag0V/5QtNY2xT4ORXDuwUywog9WxTl52u+VYG64uYsK9SLoE\n zeJ433EmG5S9RhehnICPlIpYZ5px5HM=", "X-Google-Smtp-Source": "\n ABdhPJzDQsAFDHm199IO9Dk7WFaKLCDfKUQYh2J5nCXmKYJiKIQEstnM2j+P8G2ZGTvcyJcRgSXPCw==", "X-Received": "by 2002:a5d:444e:: with SMTP id\n x14mr63305893wrr.279.1594358652197;\n Thu, 09 Jul 2020 22:24:12 -0700 (PDT)", "From": "Oliver O'Halloran <oohall@gmail.com>", "To": "linuxppc-dev@lists.ozlabs.org", "Subject": "[PATCH 07/15] powerpc/powernv/sriov: Rename truncate_iov", "Date": "Fri, 10 Jul 2020 15:23:32 +1000", "Message-Id": "<20200710052340.737567-8-oohall@gmail.com>", "X-Mailer": "git-send-email 2.26.2", "In-Reply-To": "<20200710052340.737567-1-oohall@gmail.com>", "References": "<20200710052340.737567-1-oohall@gmail.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "linuxppc-dev@lists.ozlabs.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "Linux on PowerPC Developers Mail List <linuxppc-dev.lists.ozlabs.org>", "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n <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 <mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>", "Cc": "Oliver O'Halloran <oohall@gmail.com>", "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org", "Sender": "\"Linuxppc-dev\"\n <linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>" }, "content": "This prevents SR-IOV being used by making the SR-IOV BAR resources\nunallocatable. Rename it to reflect what it actually does.\n\nSigned-off-by: Oliver O'Halloran <oohall@gmail.com>\n---\n arch/powerpc/platforms/powernv/pci-sriov.c | 11 ++++++-----\n 1 file changed, 6 insertions(+), 5 deletions(-)", "diff": "diff --git a/arch/powerpc/platforms/powernv/pci-sriov.c b/arch/powerpc/platforms/powernv/pci-sriov.c\nindex f4c74ab1284d..216ceeff69b0 100644\n--- a/arch/powerpc/platforms/powernv/pci-sriov.c\n+++ b/arch/powerpc/platforms/powernv/pci-sriov.c\n@@ -155,7 +155,7 @@ static void pnv_pci_ioda_fixup_iov_resources(struct pci_dev *pdev)\n \n \tiov = kzalloc(sizeof(*iov), GFP_KERNEL);\n \tif (!iov)\n-\t\tgoto truncate_iov;\n+\t\tgoto disable_iov;\n \tpdev->dev.archdata.iov_data = iov;\n \n \ttotal_vfs = pci_sriov_get_totalvfs(pdev);\n@@ -170,7 +170,7 @@ static void pnv_pci_ioda_fixup_iov_resources(struct pci_dev *pdev)\n \t\t\tdev_warn(&pdev->dev, \"Don't support SR-IOV with\"\n \t\t\t\t\t\" non M64 VF BAR%d: %pR. \\n\",\n \t\t\t\t i, res);\n-\t\t\tgoto truncate_iov;\n+\t\t\tgoto disable_iov;\n \t\t}\n \n \t\ttotal_vf_bar_sz += pci_iov_resource_size(pdev,\n@@ -209,7 +209,8 @@ static void pnv_pci_ioda_fixup_iov_resources(struct pci_dev *pdev)\n \t\t * mode is 32MB.\n \t\t */\n \t\tif (iov->m64_single_mode && (size < SZ_32M))\n-\t\t\tgoto truncate_iov;\n+\t\t\tgoto disable_iov;\n+\n \t\tdev_dbg(&pdev->dev, \" Fixing VF BAR%d: %pR to\\n\", i, res);\n \t\tres->end = res->start + size * mul - 1;\n \t\tdev_dbg(&pdev->dev, \" %pR\\n\", res);\n@@ -220,8 +221,8 @@ static void pnv_pci_ioda_fixup_iov_resources(struct pci_dev *pdev)\n \n \treturn;\n \n-truncate_iov:\n-\t/* To save MMIO space, IOV BAR is truncated. */\n+disable_iov:\n+\t/* Save ourselves some MMIO space by disabling the unusable BARs */\n \tfor (i = 0; i < PCI_SRIOV_NUM_BARS; i++) {\n \t\tres = &pdev->resource[i + PCI_IOV_RESOURCES];\n \t\tres->flags = 0;\n", "prefixes": [ "07/15" ] }