Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Feb 2018 15:18:31 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r330113 - head/sys/dev/acpica
Message-ID:  <201802281518.w1SFIVkA072325@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Wed Feb 28 15:18:31 2018
New Revision: 330113
URL: https://svnweb.freebsd.org/changeset/base/330113

Log:
  Only check the ProducerConsumer flag on extended memory. As per the ACPI
  6.0 spec 6.4.3.5 bit 0 is ignored on QWord, DWord, and Word Address Space
  Descriptors, but not Extended Address Space Descriptors.
  
  Reviewed by:	jhb
  Sponsored by:	DARPA, AFRL
  Sponsored by:	Cavium (Hardware)
  Differential Revision:	https://reviews.freebsd.org/D14516

Modified:
  head/sys/dev/acpica/acpi_resource.c

Modified: head/sys/dev/acpica/acpi_resource.c
==============================================================================
--- head/sys/dev/acpica/acpi_resource.c	Wed Feb 28 15:03:53 2018	(r330112)
+++ head/sys/dev/acpica/acpi_resource.c	Wed Feb 28 15:18:31 2018	(r330113)
@@ -342,7 +342,8 @@ acpi_parse_resource(ACPI_RESOURCE *res, void *context)
 	}
 	if (length <= 0)
 	    break;
-	if (res->Data.Address.ProducerConsumer != ACPI_CONSUMER) {
+	if (res->Type == ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64 &&
+	    res->Data.Address.ProducerConsumer != ACPI_CONSUMER) {
 	    ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES,
 		"ignored %s %s producer\n", name,
 		acpi_address_range_name(res->Data.Address.ResourceType)));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802281518.w1SFIVkA072325>