Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2224448/?format=api
{ "id": 2224448, "url": "http://patchwork.ozlabs.org/api/patches/2224448/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260416161305.24118-1-maximilian.brune@9elements.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260416161305.24118-1-maximilian.brune@9elements.com>", "list_archive_url": null, "date": "2026-04-16T16:13:05", "name": "pci: correct PCI device enumeration to include all functions on device 0", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "238bd776ae51242ded291fa4067d54151ab419f4", "submitter": { "id": 93175, "url": "http://patchwork.ozlabs.org/api/people/93175/?format=api", "name": "Maximilian Brune", "email": "maximilian.brune@9elements.com" }, "delegate": { "id": 3651, "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api", "username": "trini", "first_name": "Tom", "last_name": "Rini", "email": "trini@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260416161305.24118-1-maximilian.brune@9elements.com/mbox/", "series": [ { "id": 500326, "url": "http://patchwork.ozlabs.org/api/series/500326/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=500326", "date": "2026-04-16T16:13:05", "name": "pci: correct PCI device enumeration to include all functions on device 0", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/500326/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2224448/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2224448/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=9elements.com header.i=@9elements.com header.a=rsa-sha256\n header.s=google header.b=Xuv+xrkK;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=9elements.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n secure) header.d=9elements.com header.i=@9elements.com header.b=\"Xuv+xrkK\";\n\tdkim-atps=neutral", "phobos.denx.de; dmarc=pass (p=quarantine dis=none)\n header.from=9elements.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=maximilian.brune@9elements.com" ], "Received": [ "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fxvk33QC2z1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 17 Apr 2026 22:45:31 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 7640284314;\n\tFri, 17 Apr 2026 14:44:02 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id A12748405A; Thu, 16 Apr 2026 18:13:14 +0200 (CEST)", "from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com\n [IPv6:2a00:1450:4864:20::42d])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id D9C0783EEF\n for <u-boot@lists.denx.de>; Thu, 16 Apr 2026 18:13:08 +0200 (CEST)", "by mail-wr1-x42d.google.com with SMTP id\n ffacd0b85a97d-43cfd832155so5678764f8f.1\n for <u-boot@lists.denx.de>; Thu, 16 Apr 2026 09:13:08 -0700 (PDT)", "from mmax.sec.9e.network ([185.254.75.29])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-43ead3566b7sm15524821f8f.11.2026.04.16.09.13.07\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 16 Apr 2026 09:13:07 -0700 (PDT)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=9elements.com; s=google; t=1776355988; x=1776960788; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=IoNMUcoV2Z9BAIJ2q8e+0qv5et7Zu1kh2NhEcLrhTv8=;\n b=Xuv+xrkKW9tzj3YryNGMvedNUWa1m9whC1RxtPoQsd2gIyCCO6gK7g3vIVf1JSmd96\n 737vxXC6FxQG+uwkp/gZ2AGPXOh46q/A8xITS1qEE6UqqyUqoX59ww2jVJLqsmwCcl7z\n Y6Q+euvravaBF6yQ7FWi4UtTJj0YLfiQ+EtEfT0Wl2J9e80P+X37p/F8b/BK0t+OheOZ\n Lv0enSbrbpheRPonGT7EOex+FmUHKD8j75LNU3up0S3Al6H2/7WewC/rAjix/ZYe9HML\n yK95s134mznDZmRgaf/GcjdK2G8SjLyDY2pFhAubVJfB1RsgUduQIJllUqzhXaoJBGB5\n kcKA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776355988; x=1776960788;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=IoNMUcoV2Z9BAIJ2q8e+0qv5et7Zu1kh2NhEcLrhTv8=;\n b=aqeXhJK6QtLVyLkURfb+DCsgJ3DUHY05SeUG58T7WiZnM29A/0OAG7bqFsfnoyEQ6x\n uDjR2ilC4CEBLYh9MGXKtRlpo4eMy698HFozCx5VhW9hB60nXo7GVi8QAcm2j9lv4l5X\n ku/AizdSIthB6MzrQsX0Nqw757hSpeB8YSGtu2Etx0zoIfCTqe+psoYKV4lU4KZ0hn9D\n aOUFFlNq3hg8PD3B6zC/+AcWZ6CvI9WDUt7+YWDKn0bpTrqAQx1ixJQHtKS5T7vW/Rjx\n kxz6BTj9TK6zlR+P16zoj75zz5ySISVhUv9xobF80hzruODefjELe2BHyv2n8pxr3f1h\n Y9KA==", "X-Gm-Message-State": "AOJu0YyndXwV6eNBmyCUhUkIxVZO4rl2VNDLGRbRN7lSYhlkXgGdKdUU\n DoR/LPZ77Tiug5ip7jr+pcL8oCKxdAFqmZ9PoC+ddiTlrs9fMdLjz6fniAmWQVqI5K/fcpTJVbU\n vsh0mKTc=", "X-Gm-Gg": "AeBDietSMlX9PatUA+xWzJXZ9TIl5uuKaV/URB8aFndapPA1tknZaMQBqx9W8cjxkr1\n YEN5vwgCUwpcEpHQWxWhhKjPNeX7mKf1lVVKbkuZuEGi7Zi76sx8yFfqNfA8w3QVy3c/emcXZJO\n hIjaUQVsm35ZoxtLKOsfibKIP8glyx2CTjUiQ1p3sVAGs9GImiNiDvNX9cnMqBQ0N73SQIo4VJ+\n LxknWzc8elmJSTuMeGZyKWAgUvNu0fIqjxPVybVOOK4KOSXZdmXuxQg3qk1x+uTR6Bu9bjWTU51\n UZYmYsMJ+0RCJ4E77oy65KkPCZjubUbgubFUmgs5uWFap3Y33ToPDVprwfh8xWcOdUxc1QUHqEi\n 8KiXHyFJrbpVTpKa+bHOgCsaG1tjX4TTjbKpI8mVvt79SUQjCK5dvcHLzkuiPUI8xf1toeKRf9v\n qqBFX9CYxmC0v2HM0wrnbhPQXr/pn5gcxAVc9VaVu3w+07CB3lkyMUFrlLHW6i3edH24ar", "X-Received": "by 2002:a5d:5f82:0:b0:43f:dfbc:8c71 with SMTP id\n ffacd0b85a97d-43fe0613a3amr134616f8f.25.1776355988161;\n Thu, 16 Apr 2026 09:13:08 -0700 (PDT)", "From": "Maximilian Brune <maximilian.brune@9elements.com>", "To": "u-boot@lists.denx.de", "Cc": "trini@konsulko.com, andrew.goodbody@linaro.org,\n george.mccollister@konsulko.com,\n Maximilian Brune <maximilian.brune@9elements.com>", "Subject": "[PATCH] pci: correct PCI device enumeration to include all functions\n on device 0", "Date": "Thu, 16 Apr 2026 18:13:05 +0200", "Message-ID": "<20260416161305.24118-1-maximilian.brune@9elements.com>", "X-Mailer": "git-send-email 2.53.0", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Mailman-Approved-At": "Fri, 17 Apr 2026 14:43:59 +0200", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.39", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>", "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "Currently the implementation does not just skip all devices beside\ndevice 0, it also skips all functions (besides 0) on device 0. This\nbroke basically all AMD platforms, since they have a lot of internal SOC\ndevices behind on these functions.\n\nThis was detected, because the XHCI controller and therefore the USB\ndevices were not found by u-boot on AMD/crater platform.\n\nFix it by checking all functions on device 0 (Linux does the same).\n\nTEST=build u-boot as coreboot payload and run it on a recent x86 AMD\nplatform. Devices like the XHCI controller are now found again.\n---\n drivers/pci/pci-uclass.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c\nindex 83b76d01f24..f58d542ef75 100644\n--- a/drivers/pci/pci-uclass.c\n+++ b/drivers/pci/pci-uclass.c\n@@ -927,7 +927,7 @@ int pci_bind_bus_devices(struct udevice *bus)\n \t\tif (PCI_FUNC(bdf) && !found_multi)\n \t\t\tcontinue;\n \n-\t\tif (only_one_child(bus) && (PCI_MASK_BUS(bdf) > 0))\n+\t\tif (only_one_child(bus) && (PCI_DEV(bdf) > 0))\n \t\t\tcontinue;\n \n \t\t/* Check only the first access, we don't expect problems */\n", "prefixes": [] }