From owner-freebsd-current@FreeBSD.ORG Mon Dec 14 11:45:48 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 077AE106566C; Mon, 14 Dec 2009 11:45:48 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26]) by mx1.freebsd.org (Postfix) with ESMTP id 682E88FC15; Mon, 14 Dec 2009 11:45:47 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id d26so707852eyd.3 for ; Mon, 14 Dec 2009 03:45:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type; bh=IutKSUz3ngZpruoPyDgoWdjqdlvopoPIS+rVjb5vpZ4=; b=Z0n2dGKf4P/4lLuYhpfP4EcxxCh8Ebl8p/Rslvx1E0w1i7yiYYLZZyZZziJtxTMzWR LpCk6uV9OVQVdxRlERGqhAqlnj2+1+U7OUBvk3gEkMakeYRzCdnd/3wrh9x/466/o9mc /s1RAv3lJ0G6ejJYnaxjEcVzBzS/Py6pmyGIU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=f+flCVmtoqf9CHaY0i30rAx60sOwPJDpU7yv7xB9fn5CeNpULtk8uraguwJK7u5Yae rZ+2Jw1Mct9WafIhB9w62m518n1/5QYO92ZyzQR42JmnSzF8+05AW9sicQxWZCoUqUoz wjwhcPy+mBo9dVxqs1WxXDi4uIU6Ve5UmZDwk= MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.216.163.81 with SMTP id z59mr1901887wek.95.1260791146213; Mon, 14 Dec 2009 03:45:46 -0800 (PST) In-Reply-To: <4B262119.6090904@FreeBSD.org> References: <1258575782.00184876.1258562404@10.7.7.3> <1258579386.00184908.1258567802@10.7.7.3> <1258590193.00184983.1258579804@10.7.7.3> <4B262119.6090904@FreeBSD.org> From: Ivan Voras Date: Mon, 14 Dec 2009 12:45:26 +0100 X-Google-Sender-Auth: 3842a3e6b93b9359 Message-ID: <9bbcef730912140345u6dada7f4g3b445b18c531ed63@mail.gmail.com> To: Alexander Motin Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD-Current Subject: Re: How do I use NCQ of Intel X25-E(SSD) on ahci(4)? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2009 11:45:48 -0000 2009/12/14 Alexander Motin : > Ivan Voras wrote: >> 2009/11/18 Alexander Motin : >>> Ivan Voras wrote: >> >>>> I know next to nothing about AHCI and drivers so this might be obviously >>>> wrong but wouldn't a quick (i.e. MFC-able) obvious temporary fix be to say >>>> >>>> numslots = min(get_minimum_tags_of_all_drives(), ...) >>>> ? >>> Problem is that SIM driver has no idea about devices capabilities, and >>> also doesn't have method to resize queue after attach. In SCSI case, >>> tags are random and only simultaneous number of request is limited, and >>> this is handled fine by CAM. SATA NCQ is more restrictive, allowing to >>> use only tags 0..(N-1). I am planning to make XPT inform SIM about >>> supported tags for each device, to allow SIM to use that information >>> while scheduling requests. I didn't do it yet, just because most of >>> devices able to handle all 32 tags possible on SATA. This Intel SSD is >>> one of rare exceptions. >> >> Ok, (still thinking about something that could be MFC-able in an >> emergency), how about adding a loader tunable integer instead of "32"? > > Just for note, it is already fixed and merged. Thank you!