Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jan 2012 12:52:34 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r230734 - stable/9/sys/sparc64/sparc64
Message-ID:  <201201291252.q0TCqYlR035752@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Sun Jan 29 12:52:34 2012
New Revision: 230734
URL: http://svn.freebsd.org/changeset/base/230734

Log:
  MFC: r228024
  
  Update comment.

Modified:
  stable/9/sys/sparc64/sparc64/ata_machdep.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/amd64/include/xen/   (props changed)
  stable/9/sys/boot/   (props changed)
  stable/9/sys/boot/i386/efi/   (props changed)
  stable/9/sys/boot/ia64/efi/   (props changed)
  stable/9/sys/boot/ia64/ski/   (props changed)
  stable/9/sys/boot/powerpc/boot1.chrp/   (props changed)
  stable/9/sys/boot/powerpc/ofw/   (props changed)
  stable/9/sys/cddl/contrib/opensolaris/   (props changed)
  stable/9/sys/conf/   (props changed)
  stable/9/sys/contrib/dev/acpica/   (props changed)
  stable/9/sys/contrib/octeon-sdk/   (props changed)
  stable/9/sys/contrib/pf/   (props changed)
  stable/9/sys/contrib/x86emu/   (props changed)

Modified: stable/9/sys/sparc64/sparc64/ata_machdep.c
==============================================================================
--- stable/9/sys/sparc64/sparc64/ata_machdep.c	Sun Jan 29 12:50:43 2012	(r230733)
+++ stable/9/sys/sparc64/sparc64/ata_machdep.c	Sun Jan 29 12:52:34 2012	(r230734)
@@ -36,14 +36,13 @@ sparc64_ata_disk_firmware_geom_adjust(st
 {
 
 	/*
-	 * The Sun disk label only uses 16-bit fields for cylinders,
-	 * heads and sectors so the geometry of large IDE disks has
-	 * to be adjusted.  If the disk is > 32GB at 16 heads and 63
-	 * sectors, the sectors have to be adjusted to 255.  If the
-	 * the disk is even > 128GB, additionally adjust the heads
-	 * to 255.
-	 * XXX the OpenSolaris dad(7D) driver limits the mediasize
-	 * to 128GB.
+	 * The VTOC8 disk label only uses 16-bit fields for cylinders, heads
+	 * and sectors so the geometry of large disks has to be adjusted.
+	 * If the disk is > 32GB at 16 heads and 63 sectors, adjust to 255
+	 * sectors (this matches what the OpenSolaris dad(7D) driver does).
+	 * If the the disk is even > 128GB, additionally adjust the heads to
+	 * 255.  This allows disks up to the 2TB limit of the extended VTOC8.
+	 * XXX the OpenSolaris dad(7D) driver limits the mediasize to 128GB.
 	 */
 	if (disk->d_mediasize > (off_t)65535 * 16 * 63 * disk->d_sectorsize)
 		disk->d_fwsectors = 255;



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