From owner-freebsd-hackers@freebsd.org Fri Aug 31 00:58:45 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 21CEBEFDA48 for ; Fri, 31 Aug 2018 00:58:45 +0000 (UTC) (envelope-from leres@freebsd.org) Received: from xse.com (xse.com [IPv6:2607:f2f8:abb8::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "xse.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AF8A87A2F6 for ; Fri, 31 Aug 2018 00:58:44 +0000 (UTC) (envelope-from leres@freebsd.org) Received-SPF: pass (dot.xse.com: authenticated connection) receiver=dot.xse.com; client-ip=2620:83:8000:102::cb; helo=hot.ee.lbl.gov; envelope-from=leres@freebsd.org; x-software=spfmilter 2.001 http://www.acme.com/software/spfmilter/ with libspf2-1.2.10; Received: from hot.ee.lbl.gov (hot.ee.lbl.gov [IPv6:2620:83:8000:102:0:0:0:cb]) (authenticated bits=0) by dot.xse.com (8.15.2/8.15.2) with ESMTPSA id w7V0wfMq094787 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 30 Aug 2018 17:58:42 -0700 (PDT) (envelope-from leres@freebsd.org) Subject: Re: Is it possible to disable da0? To: Mark Saad References: <87cc687a-29f0-08d0-91a7-ff82c09f4938@freebsd.org> <818DD503-10CA-472F-A437-A1BB6A26CFBE@longcount.org> Cc: FreeBSD Hackers From: Craig Leres Message-ID: Date: Thu, 30 Aug 2018 17:58:41 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <818DD503-10CA-472F-A437-A1BB6A26CFBE@longcount.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.100.1 at dot.xse.com X-Virus-Status: Clean X-GBUdb-Analysis: Unknown X-MessageSniffer-Rules: 0-0-0-2533-c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2018 00:58:45 -0000 On 8/30/18 1:18 PM, Mark Saad wrote: > If the kernel hint may not work due to no media . You can try three other options . Tweak devd to stop checking the device . It’s doable but I can’t recall the details . Set a hint to stop loading the device that the mmc / sd card reader hangs off . Check pciconf to pin down its address . There are examples how to do this in the dpdk docs , they show how to do this in the case of a nic . It should apply to all devices. Lastly most vendors support turning the device off in bios or Uefi . Thanks; turns out adding -q to devd_flags solves this for me. I didn't try it before because a found an old post that said it *didn't* work. But it does. Craig