Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Sep 2017 17:43:18 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r323555 - head/sys/dev/intpm
Message-ID:  <201709131743.v8DHhI4w039453@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Wed Sep 13 17:43:18 2017
New Revision: 323555
URL: https://svnweb.freebsd.org/changeset/base/323555

Log:
  intpm(4): Decrease requested i/o port range width
  
  On some AMD FCH devices driven by intpm(4) (read: mine), the SMBus I/O port
  range is split in two and the low range is only 0x10 wide.  intpm(4) does
  not access any registers above 0x0f, so there is no need for the wider
  range.
  
  Discussed with:	avg
  Sponsored by:	Dell EMC Isilon

Modified:
  head/sys/dev/intpm/intpm.c

Modified: head/sys/dev/intpm/intpm.c
==============================================================================
--- head/sys/dev/intpm/intpm.c	Wed Sep 13 17:00:02 2017	(r323554)
+++ head/sys/dev/intpm/intpm.c	Wed Sep 13 17:43:18 2017	(r323555)
@@ -128,7 +128,7 @@ amd_pmio_read(struct resource *res, uint8_t reg)
 static int
 sb8xx_attach(device_t dev)
 {
-	static const int	AMDSB_SMBIO_WIDTH = 0x14;
+	static const int	AMDSB_SMBIO_WIDTH = 0x10;
 	struct intsmb_softc	*sc;
 	struct resource		*res;
 	uint32_t		devid;



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