From owner-freebsd-scsi@freebsd.org Wed Aug 17 16:27:10 2016 Return-Path: Delivered-To: freebsd-scsi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1C0ACBBDA99 for ; Wed, 17 Aug 2016 16:27:10 +0000 (UTC) (envelope-from scott4long@yahoo.com) Received: from nm38-vm7.bullet.mail.gq1.yahoo.com (nm38-vm7.bullet.mail.gq1.yahoo.com [98.136.217.78]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C2D4B1EDD for ; Wed, 17 Aug 2016 16:27:09 +0000 (UTC) (envelope-from scott4long@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1471451077; bh=gcc94fnxLx8nR8+RZMTw2par1l3+37z5o/As71a8wtg=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject; b=FsaxvzYL2V/7zDXoyuZpQDO4OLxiVcSeJ1TmcQTOhfsMjZRqCw0Wx+8oOYDRwNN/NROQYwGFk4dOISRZ7SSPng4Afi4VQTc1Ypk7VRMu0z/ZZ4/f9+w3jlXhZRkChk37BGNtvL/kPaVd4JMddkiLZBfDQzmpuwZa+st+0XnmfCzsXe8CpOsW6JFP0hchru6owvO5fA0KDPMcAFDO3rpLoAge/Lqz5/N3ZKg3g6SC4rIOefaTSUKwSviW39EWey7/dXqOVgbzi7vitJdlj0UaJOvKd03rt+qEZ8gGhQ4tUPDFohHGYPgG93earGAV4tgemfrVWqLJUcW0/QiE58POUQ== Received: from [127.0.0.1] by nm38.bullet.mail.gq1.yahoo.com with NNFMP; 17 Aug 2016 16:24:37 -0000 Received: from [98.137.12.55] by nm38.bullet.mail.gq1.yahoo.com with NNFMP; 17 Aug 2016 16:21:40 -0000 Received: from [208.71.42.194] by tm15.bullet.mail.gq1.yahoo.com with NNFMP; 17 Aug 2016 16:21:40 -0000 Received: from [127.0.0.1] by smtp205.mail.gq1.yahoo.com with NNFMP; 17 Aug 2016 16:21:40 -0000 X-Yahoo-Newman-Id: 308742.66033.bm@smtp205.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-4 X-YMail-OSG: P8pQBMMVM1mHbC1qNWXuQtyLn.EMBVFBQSZpb9cXv.D1xZx 6X_HA67DvBaHTLWqzmSZ51gm_jQAaZioonzDruFWue1Bqzh7_mAQ5drqenNs pWRoSo3o7ZkWQ.yJXxR6lMN0b6w0scIWdjKbCyXjk_bWiWqm3Ff4Za8h1k3y 9EatIIquISHwlkt76wqkqhFdCr1cXNuYWgQhujq6_XsT6VqBt7UnKK48I6FN vXkUJ.tXc34yJIWOAoyW2F3MyQyr8StnC7SazNAnF33NfJNs17Yk1XOlVvxN npBmnxcsCjbfIb_jLOREiv6yhMP35m3qujlqp1M80YNmKrEQBY_Eln4O.yyP 0Z6EwJHqp9_I0V6dFOu_jfVYoOknBY24J.LGN2oR_ipuRkSEkSUqcaOCkxHB R5XSaTGW4mLp9ZSsozQJ36GWa6qa4XtJihpCApgmz3HKqhNA1bGOW6R97.hU vRS1K5pAtKPgXBwgr.h9ZdKsWhjKdX_taxv0BgYBUTs.sUnDHHtpK38jzuxL SERJYsYCL4HecX.l4vyt8c_vrnLEno57r3baJGFyAB06UfTpmT7hg8GIwJQ6 cprXyniz0aaN0 X-Yahoo-SMTP: clhABp.swBB7fs.LwIJpv3jkWgo2NU8- Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: How to disable ata driver on Hyper-V From: Scott Long In-Reply-To: Date: Wed, 17 Aug 2016 09:21:41 -0700 Cc: "freebsd-scsi@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <258CDD7F-7D2B-46D9-B4BE-1A1D35C7D23C@yahoo.com> References: To: Hongjiang Zhang X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2016 16:27:10 -0000 Hi, There=E2=80=99s no direct way to disable a specific driver or specific = instance of a driver. There are ways to disable a particular PCI = function, but I=E2=80=99m not sure if that=E2=80=99s what you want. Are = you looking to override the default ata driver with your own custom = driver? The way to do that is have your custom driver provide a higher = priority return code from its dev_probe routine. The way this works is = that positive return codes indicate an error. Negative return codes = indicate a priority, with the numbers closer to zero being a higher = priority. Zero is the highest priority, but should be used only with = great care. The priority for the default ahci driver is = BUS_PROBE_DEFAULT, which resolves to (-20). You might consider using = BUS_PROBE_VENDOR, which resolves to (-10). By having your driver look = at the PCI bus:device:function tuple, you can selectively override the = default driver for specific hardware. Scott > On Aug 17, 2016, at 2:49 AM, Hongjiang Zhang via freebsd-scsi = wrote: >=20 > Hi all, >=20 > I'm want to disable the default ata driver for FreeBSD on Hyper-V. How = to do that? >=20 > Thanks > Hongjiang Zhang > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to = "freebsd-scsi-unsubscribe@freebsd.org"