From nobody Fri Apr 22 14:40:17 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C4C311990A5A; Fri, 22 Apr 2022 14:40:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KlHBT52fpz3rPy; Fri, 22 Apr 2022 14:40:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650638417; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zbyAIz28Tn+UsnmujOOKwGROn8v1tCsrS0qQDdrjky0=; b=p0aQrYxif7BMYJSeiwUGC/iZlsrJ5m2xW2oHqHinRmbc6oN0UvyHCCvx+l+PMun8a0lti7 SnCG+tkLBNucqDsmhwt75lAs9DyeFvCnKpyJFBSqavWGgO9Jq+kU+ipLnknNzCwyBCqZ9q NG7ntgtBDaablHAf25z25lwW/H1Rx2dQ9IzO7bSc+eNdsGBcnTzJ1ljN+xxnsJfo6mEnYq W5V3SGfIJg9uATpNaeG6FvZS4Zh0knage7XnDY2v/uG8nooI1Hr99O6LFSLad6lBbAO5R8 FgfGvQBAO/3rfi3hiWpr8PP1GHsZqM5yzobo11iBN27GVvk0EeqykzTtX64NCA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8D38D1E870; Fri, 22 Apr 2022 14:40:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23MEeHY1021186; Fri, 22 Apr 2022 14:40:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23MEeHAv021180; Fri, 22 Apr 2022 14:40:17 GMT (envelope-from git) Date: Fri, 22 Apr 2022 14:40:17 GMT Message-Id: <202204221440.23MEeHAv021180@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Stefan E=C3=9Fer?= Subject: git: f010b9c2b9b0 - main - pci: recognize "non-essential instrumentation" devices List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f010b9c2b9b0a550656de8a5b5ad1469630c3e2c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650638417; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zbyAIz28Tn+UsnmujOOKwGROn8v1tCsrS0qQDdrjky0=; b=hhNL4eN9TbfEaN/cqm2tEy8mTvbfKM85QlrVsiA4HsSePkWwQCWsnDjcBThu8Wein5kqGH Ib+FoygnNc/v4ll47YTAjECkyQTsO315NePWydxAJxmlp4Wh1v4Zu4GKDhzL1Jk/EwRe2N o96oloWRO8XGxqUtq7eRPdbMxQDudcOQNHbTmioWtwuI4wLEx0CJC2bIyTcrAhosyq754e T/mk1KkkUvyVjCHI41Q9Iu3RgaWKCP7rcxwqZ0cQPv06j48nWnejoEHuDdFG/rEGYLwcev qtLnPdYZilBXdckRPObIeOMpPorgoZIo2kT1ZbyX4zt+oIVJrWMfXDPfbliqpQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650638417; a=rsa-sha256; cv=none; b=cdbtv9wHt1DPDLAP729G2CTo90KXNvNU2h02yk+ltI87aM8TVCk78dm6dSzDME8LBsehL5 RWKUwPru5njnjje+OtShECDk7THrEPLsIvzaXTNjl/z3hHalbK5M/Cw2Ic/3nhT6cFkP3X 9qyufuFgidm0oi/UOgTVEq6CYTh6r5RqT8Ax1z4DgqcK1tEbHqwvzYqjCCigaNGeEg6jby oDAqAQNlROuocNNaOj80gWRi0l8WsAxvcAS4bOXsqyLX6ObKL5XKQ55BvbZDsswNATN1Rt AkVkbvH5OHFA2wvM/FRjcIUQ9UQXSTaEY1ttLLt5IVPEpoGaL3AgzjQojXxkUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by se: URL: https://cgit.FreeBSD.org/src/commit/?id=f010b9c2b9b0a550656de8a5b5ad1469630c3e2c commit f010b9c2b9b0a550656de8a5b5ad1469630c3e2c Author: John F. Carr AuthorDate: 2022-04-22 14:28:34 +0000 Commit: Stefan Eßer CommitDate: 2022-04-22 14:39:23 +0000 pci: recognize "non-essential instrumentation" devices Some AMD EPYC VCPUs generated boot message of the type: pci4: at device 0.0 (no driver attached) These are displayed for device class 0x13 devices, e.g.: none8@pci0:130:0:0: class=0x130000 rev=0x00 hdr=0x00 vendor=0x1022 \ device=0x148a subvendor=0x1022 subdevice=0x148a vendor = 'Advanced Micro Devices, Inc. [AMD]' device = 'Starship/Matisse PCIe Dummy Function' class = non-essential instrumentation Since these devices serve no purpose (no driver attaches) I have enabled the reporting of suich devices only for verbose boots (a diversion from the patch provided in the PR). A verbose boot will now display such devices as: pci4: at device 0.0 (no driver attached) PR: 263469 Reported by: jfc@mit.edu (John F. Carr) MFC after: 1 week --- sys/dev/pci/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 535d4f6f3f3b..5a011bdd0c8f 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -5030,6 +5030,7 @@ static const struct {PCIC_DASP, PCIS_DASP_PERFCNTRS, 1, "performance counters"}, {PCIC_DASP, PCIS_DASP_COMM_SYNC, 1, "communication synchronizer"}, {PCIC_DASP, PCIS_DASP_MGMT_CARD, 1, "signal processing management"}, + {PCIC_INSTRUMENT, -1, 0, "non-essential instrumentation"}, {0, 0, 0, NULL} };