From nobody Fri Aug 19 01:31:24 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 4M843J56Bcz4Yxnf; Fri, 19 Aug 2022 01:31:24 +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 4M843J4cy9z49GM; Fri, 19 Aug 2022 01:31:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660872684; 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=vZYEpPqRSrQBJLruyPs8eGWimn61h38RbPEj2sWcsJM=; b=gANX0yiSdNFuTEKnjgdUkjpiob6dGekwWyrE3w0L25C8Qk0g8zfQwZFM8mOSdF5u+Z58Zc oolQZVc9rucbtzInNGvazwQ99sGQW2Ubb8M9D37w7BvmhKBbnEBPk1c60hUvjsUNIs/fB4 9k51TDYqZBH3vseqTeXw+Jh7hYQy2VoHBeWq+vp7jMGBB3tPb72E2yTHGZ5O8qEsBtLeZB qS88NTUr2o/dZwLeeifS3pUrVJIEUqIDqTn1sx4OV2VXZ1An9JWGCJjRGSybWhBbFuuuRC 3zRowyAfSQ4EXWp31ZdH3ELzV3fPp93iVN82Dmv/P9teTjYjy28dhur7YjT5/g== 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 4M843J3h79zZNl; Fri, 19 Aug 2022 01:31:24 +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 27J1VOvt005859; Fri, 19 Aug 2022 01:31:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27J1VOJd005858; Fri, 19 Aug 2022 01:31:24 GMT (envelope-from git) Date: Fri, 19 Aug 2022 01:31:24 GMT Message-Id: <202208190131.27J1VOJd005858@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Motin Subject: git: 3b7935f33b50 - main - Decode couple arrays in NFIT table. 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: mav X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3b7935f33b50aa69637e722c3d3fd275c0efd3cd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660872684; 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=vZYEpPqRSrQBJLruyPs8eGWimn61h38RbPEj2sWcsJM=; b=WVYiOef7gQooXjcp88MCAJIhtj9TWSVO5T7A+kjiCthe66+ZlU84Zn2kXtWlVZxsDAWGMs fP8zrFaTmJWeg7STJABGIh43pLgSvsYuckYPZ8P83WS6xohJKPYTLZwloXFH+bKNLvakAJ VwoQgyS7l6WdrksTgGOqBotW39i66NgbF8wuIq/U3y8UL7QXS9I+H2/XC2PejAwwNkNNYV pJz8s1P702iE2Ghlbd7ZgGkstquF/Od7+PBvcejQioUu5qcAhSNhLCIG/tcI2GD4dccRQT fh8q2RzWlMaviFirr8Om3AeIlFh8Hzc0bVOd9qwCIsvEkX3OLd9iSee31CXQiA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660872684; a=rsa-sha256; cv=none; b=kQX+BqMZ2qiBmmCdEXUL/x2PpJsyCdOgRKf5qgZUwkvvU3bWE4UUc8BOkOSfBOpkltu9gU VL+XFx0i71INMkm0TDi5+eVeK6cgchLlS75FcN1S0iWRAPsfXUSQ2XZI7hE5jFaFrC3SGa cVZYBg1kw3F+9+7IR9xvwhBC3wNhEyTTNGMC7MLHPfZ1EuA5i9Xai260/QtiaHzNq0Z6kH LW4sc2OWx/UrWbr64FwP+1Xm3OQGCBjnhXy2tMv+1qKSCveD5QxY2s8upIZlbE0YhbKhox Z+O/aN4K7poPg/M4EGR7mb2RRGTI/J3DyWbU5NXIx5+rV9AuDw/pVjU/O67i7A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=3b7935f33b50aa69637e722c3d3fd275c0efd3cd commit 3b7935f33b50aa69637e722c3d3fd275c0efd3cd Author: Alexander Motin AuthorDate: 2022-08-19 01:30:38 +0000 Commit: Alexander Motin CommitDate: 2022-08-19 01:30:38 +0000 Decode couple arrays in NFIT table. MFC after: 1 week --- usr.sbin/acpi/acpidump/acpi.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/usr.sbin/acpi/acpidump/acpi.c b/usr.sbin/acpi/acpidump/acpi.c index c560a38411ba..6f758e60a176 100644 --- a/usr.sbin/acpi/acpidump/acpi.c +++ b/usr.sbin/acpi/acpidump/acpi.c @@ -1578,7 +1578,7 @@ static void acpi_print_nfit(ACPI_NFIT_HEADER *nfit) { char *uuidstr; - uint32_t status; + uint32_t m, status; ACPI_NFIT_SYSTEM_ADDRESS *sysaddr; ACPI_NFIT_MEMORY_MAP *mmap; @@ -1655,7 +1655,10 @@ acpi_print_nfit(ACPI_NFIT_HEADER *nfit) (u_int)ileave->InterleaveIndex); printf("\tLineCount=%u\n", (u_int)ileave->LineCount); printf("\tLineSize=%u\n", (u_int)ileave->LineSize); - /* XXX ileave->LineOffset[i] output is not supported */ + for (m = 0; m < ileave->LineCount; m++) { + printf("\tLine%uOffset=0x%08x\n", (u_int)m + 1, + (u_int)ileave->LineOffset[m]); + } break; case ACPI_NFIT_TYPE_SMBIOS: smbios = (ACPI_NFIT_SMBIOS *)nfit; @@ -1716,7 +1719,10 @@ acpi_print_nfit(ACPI_NFIT_HEADER *nfit) fladdr = (ACPI_NFIT_FLUSH_ADDRESS *)nfit; printf("\tDeviceHandle=%u\n", (u_int)fladdr->DeviceHandle); printf("\tHintCount=%u\n", (u_int)fladdr->HintCount); - /* XXX fladdr->HintAddress[i] output is not supported */ + for (m = 0; m < fladdr->HintCount; m++) { + printf("\tHintAddress%u=0x%016jx\n", (u_int)m + 1, + (uintmax_t)fladdr->HintAddress[m]); + } break; case ACPI_NFIT_TYPE_CAPABILITIES: caps = (ACPI_NFIT_CAPABILITIES *)nfit;