Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 2013 12:33:55 -0400
From:      Chris Ross <cross+freebsd@distal.com>
To:        Marius Strobl <marius@alchemy.franken.de>
Cc:        "freebsd-sparc64@freebsd.org" <freebsd-sparc64@freebsd.org>
Subject:   Re: CAM timeouts on Netra X1
Message-ID:  <A80C1D4A-3459-4DE0-985C-0BEC32F6E76F@distal.com>
In-Reply-To: <20130325135951.GA45845@alchemy.franken.de>
References:  <B2952A89-81DA-4392-99F7-DE2F107DBA0D@distal.com> <B0C7D281-1EAE-4BFE-945B-C088C405830D@distal.com> <FAC3CA6E-6C8D-4665-886E-8FD27F4DCAB3@distal.com> <20130325135951.GA45845@alchemy.franken.de>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mar 25, 2013, at 9:59 AM, Marius Strobl wrote:
> Err, right, ATA_CAM broke ATA_NO_48BIT_DMA. The simplest workaround
> likely is to use a stock GENERIC and set the hw.ata.ata_dma loader
> tunable to 0. That will globally disable DMA and not just in cases
> where 48-bit DMA is needed but should get you working.
> Once you've managed to install FreeBSD, could you please try whether
> the following patch fixes that regression?
> http://people.freebsd.org/~marius/ATA_CAM_NO_48BIT_DMA.diff

  Well, I'm net booting to do the install, so I can test it whenever.  =
:-)

  That patch applied, except for cam/ata/ata_all.h, which failed to =
apply because my copy (stable/9 from Mar 22) didn't have SID_AEN =
defined.  But, I hand applied that piece to add SID_DMA48, and it then =
failed to build as follows:

         - Chris

cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE =
-nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include =
/usr/obj/usr/src/sys/GENERIC/opt_global.h -I. -I@ -I@/contrib/altq =
-finline-limit=3D15000 --param inline-unit-growth=3D100 --param =
large-function-growth=3D1000 -fno-common -g =
-I/usr/obj/usr/src/sys/GENERIC  -mcmodel=3Dmedany -msoft-float =
-ffreestanding -fstack-protector -std=3Diso9899:1999 -fstack-protector =
-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  =
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef =
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs =
-fdiagnostics-show-option   -c =
/usr/src/sys/modules/ata/atadisk/../../../dev/ata/ata-disk.c
cc1: warnings being treated as errors
/usr/src/sys/modules/ata/atadisk/../../../dev/ata/ata-disk.c: In =
function 'ad_ioctl':
/usr/src/sys/modules/ata/atadisk/../../../dev/ata/ata-disk.c:354: =
warning: implicit declaration of function 'ata_device_ioctl'
/usr/src/sys/modules/ata/atadisk/../../../dev/ata/ata-disk.c:354: =
warning: nested extern declaration of 'ata_device_ioctl' =
[-Wnested-externs]
/usr/src/sys/modules/ata/atadisk/../../../dev/ata/ata-disk.c: In =
function 'ad_init':
/usr/src/sys/modules/ata/atadisk/../../../dev/ata/ata-disk.c:397: =
warning: implicit declaration of function 'ata_setmode'
/usr/src/sys/modules/ata/atadisk/../../../dev/ata/ata-disk.c:397: =
warning: nested extern declaration of 'ata_setmode' [-Wnested-externs]
/usr/src/sys/modules/ata/atadisk/../../../dev/ata/ata-disk.c: In =
function 'ad_set_geometry':
/usr/src/sys/modules/ata/atadisk/../../../dev/ata/ata-disk.c:516: =
warning: implicit declaration of function 'ata_getparam'
/usr/src/sys/modules/ata/atadisk/../../../dev/ata/ata-disk.c:516: =
warning: nested extern declaration of 'ata_getparam' [-Wnested-externs]
/usr/src/sys/modules/ata/atadisk/../../../dev/ata/ata-disk.c: In =
function 'ad_describe':
/usr/src/sys/modules/ata/atadisk/../../../dev/ata/ata-disk.c:558: =
warning: implicit declaration of function 'ata_unit2str'
/usr/src/sys/modules/ata/atadisk/../../../dev/ata/ata-disk.c:558: =
warning: nested extern declaration of 'ata_unit2str' [-Wnested-externs]
/usr/src/sys/modules/ata/atadisk/../../../dev/ata/ata-disk.c:561: =
warning: implicit declaration of function 'ata_satarev2str'
/usr/src/sys/modules/ata/atadisk/../../../dev/ata/ata-disk.c:561: =
warning: nested extern declaration of 'ata_satarev2str' =
[-Wnested-externs]
/usr/src/sys/modules/ata/atadisk/../../../dev/ata/ata-disk.c:561: =
warning: format '%s' expects type 'char *', but argument 8 has type =
'int' [-Wformat]
/usr/src/sys/modules/ata/atadisk/../../../dev/ata/ata-disk.c:561: =
warning: format '%s' expects type 'char *', but argument 11 has type =
'int' [-Wformat]
*** [ata-disk.o] Error code 1
1 error
*** [all] Error code 2
1 error
*** [all] Error code 2
1 error
*** [modules-all] Error code 2
1 error
*** [buildkernel] Error code 2
1 error
*** [buildkernel] Error code 2
1 error




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A80C1D4A-3459-4DE0-985C-0BEC32F6E76F>