Date: Wed, 16 Sep 2009 22:52:20 +0000 (UTC) From: Scott Long <scottl@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r197260 - head/sys/dev/ciss Message-ID: <200909162252.n8GMqKew038102@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: scottl Date: Wed Sep 16 22:52:20 2009 New Revision: 197260 URL: http://svn.freebsd.org/changeset/base/197260 Log: Increase CISS_MAX_PHYSTGT to 256 so that it matches what the controller might give us. Without this, certain data structures get sized incorrectly, leading to a panic on certain cards that want to use high-value target numbers. Modified: head/sys/dev/ciss/cissvar.h Modified: head/sys/dev/ciss/cissvar.h ============================================================================== --- head/sys/dev/ciss/cissvar.h Wed Sep 16 19:53:29 2009 (r197259) +++ head/sys/dev/ciss/cissvar.h Wed Sep 16 22:52:20 2009 (r197260) @@ -176,7 +176,7 @@ struct ciss_pdrive #define CISS_PHYSICAL_SHIFT 5 #define CISS_PHYSICAL_BASE (1 << CISS_PHYSICAL_SHIFT) -#define CISS_MAX_PHYSTGT 15 +#define CISS_MAX_PHYSTGT 256 #define CISS_IS_PHYSICAL(bus) (bus >= CISS_PHYSICAL_BASE) #define CISS_CAM_TO_PBUS(bus) (bus - CISS_PHYSICAL_BASE)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909162252.n8GMqKew038102>