From owner-freebsd-scsi@FreeBSD.ORG Wed May 12 09:05:28 2004 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A08D16A4CE for ; Wed, 12 May 2004 09:05:28 -0700 (PDT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FF2943D39 for ; Wed, 12 May 2004 09:05:28 -0700 (PDT) (envelope-from scottl@freebsd.org) Received: from freebsd.org (junior-wifi.samsco.home [192.168.0.11]) by pooker.samsco.org (8.12.10/8.12.10) with ESMTP id i4CGA3u6067729; Wed, 12 May 2004 10:10:03 -0600 (MDT) (envelope-from scottl@freebsd.org) Message-ID: <40A24B2C.2010602@freebsd.org> Date: Wed, 12 May 2004 10:05:00 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040304 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joan Picanyol i Puig References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=3.8 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pooker.samsco.org cc: freebsd-scsi@freebsd.org Subject: Re: setting WCE on SCSI disks across reboots X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 May 2004 16:05:28 -0000 Joan Picanyol i Puig wrote: > Hi, > > I'm trying to disable the write-cache on these two disks: > > at scbus0 target 0 lun 0 (pass0,da0) > at scbus0 target 6 lun 0 (pass2,da1) > > both sitting on an Adaptec 2940 U2W controller > > ahc0: port 0x1000-0x10ff mem > 0xd0020000-0xd0020fff irq 11 at device 14.0 on pci0 > > I can set WCE to 0 using camcontrol modepage -e -m 0x08, but upon reboot > WCE is set to 1 again. AFAIK this can't be set interactively, so I am at a > loss as to how to disable the wc forever. > > Any ideas? > > tks Check the Adaptec BIOS. You probably have WCE set in there. Scott