From owner-freebsd-stable Sun May 6 8: 1: 4 2001 Delivered-To: freebsd-stable@freebsd.org Received: from embelia.wanadoo.fr (smtp-rt-7.wanadoo.fr [193.252.19.161]) by hub.freebsd.org (Postfix) with ESMTP id 168A837B423 for ; Sun, 6 May 2001 08:01:02 -0700 (PDT) (envelope-from jean-sebastien.roy@wanadoo.fr) Received: from villosa.wanadoo.fr (193.252.19.122) by embelia.wanadoo.fr; 6 May 2001 17:01:00 +0200 Received: from powerdream.root (193.252.108.43) by villosa.wanadoo.fr; 6 May 2001 17:00:39 +0200 From: Jean-Sebastien ROY To: freebsd-stable@freebsd.org Subject: Re: Tagged Queueing and ATA driver (was soft update should be default) References: <00b601c0d5bd$42ba1340$0901a8c0@haym.transactionsite.com> Organization: - MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit User-Agent: MT-NewsWatcher/3.1 (PPC) Date: Sun, 06 May 2001 17:00:39 +0200 Message-ID: Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG (Jan Conrad) wrote: > Well, if I read the sources correctly, enabling tagged queueuing in the > ata driver *IMPLIES* write caching!!! > > So it's pretty clear why tagged queueing is as good as write cacheing (or > as bad :-) > > sys/dev/ata/ata-disk.c of 4.3R says > > /* enable write cacheing if allowed and not default on device */ > if (ata_wc || ata_tags) { > if (ata_command(adp->controller, adp->unit, ATA_C_SETFEATURES, > 0, 0, 0, 0, ATA_C_F_ENAB_WCACHE, ATA_WAIT_INTR)) > ata_printf(scp, device, "enabling write cache failed\n"); > } > > What I really do not understand here - maybe it's trivial, as I am not an > expert here - is why does tags imply wc for ATA but not for SCSI? > > The SCSI driver says 'Tagged Queueing Enabled' even on my SCSI disk (IBM > DDYS-T18350N) where WCE is off! > > > -Jan On a related note, is there a way to know if Tagged Queueing and/or Write Caching are -really- enabled ? I've got a Promise controller (), and looking at the code, it seems "Tagged Queueing" is disabled on some promise controllers. But : systctl -a | grep ata always returns what I've put in /boot/loader.conf ie : hw.ata.tags: 1 js To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message