From owner-freebsd-scsi Mon Apr 3 5:53:33 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from morpheus.skynet.be (morpheus.skynet.be [195.238.2.39]) by hub.freebsd.org (Postfix) with ESMTP id 0E60637BE72; Mon, 3 Apr 2000 05:53:29 -0700 (PDT) (envelope-from blk@skynet.be) Received: from [195.238.1.121] (brad.techos.skynet.be [195.238.1.121]) by morpheus.skynet.be (Postfix) with ESMTP id 3B111DCBD; Mon, 3 Apr 2000 14:53:03 +0200 (MET DST) Mime-Version: 1.0 X-Sender: blk@pop.skynet.be Message-Id: Date: Mon, 3 Apr 2000 14:52:31 +0200 To: FreeBSD-CURRENT Mailing List From: Brad Knowles Subject: Sysctl for CAM SCSI quirks? Cc: freebsd-scsi@freebsd.org Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Folks, I just did a bit of searching on the website, and garnered enough information from to be able to add a new "quirk" in /usr/src/sys/cam/cam_xpt.c for a piece of hardware I'm having some difficulty with. Assuming this works, I will file a proper PR, etc.... However, shouldn't there be an easier way to do this? For example, shouldn't there be a sysctl for changing these sorts of things, perhaps something like: kern.cam.cd.changer.min_busy_seconds: 5 kern.cam.cd.changer.max_busy_seconds: 15 kern.cam.quirks.direct.fixed.quantum.XP39100*.*.mintags: 24 kern.cam.quirks.direct.fixed.quantum.XP39100*.*.maxtags: 32 kern.cam.quirks.direct.fixed.quantum.XP34550*.*.mintags: 24 kern.cam.quirks.direct.fixed.quantum.XP34550*.*.maxtags: 32 kern.cam.quirks.direct.fixed.quantum.XP32275*.*.mintags: 24 kern.cam.quirks.direct.fixed.quantum.XP32275*.*.maxtags: 32 This would make it very easy to add new quirks as they come along (just update your sysctl.conf), and without having to always file a PR so that /usr/src/sys/cam/cam_xpt.c gets modified so that you can have your quirk and track -CURRENT too (or -STABLE, for that matter). -- These are my opinions -- not to be taken as official Skynet policy ====================================================================== Brad Knowles, || Belgacom Skynet SA/NV Systems Architect, Mail/News/FTP/Proxy Admin || Rue Colonel Bourg, 124 Phone/Fax: +32-2-706.13.11/12.49 || B-1140 Brussels http://www.skynet.be || Belgium To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message