From owner-freebsd-stable@freebsd.org Mon Oct 17 15:05:49 2016 Return-Path: Delivered-To: freebsd-stable@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 779AFC15CC1 for ; Mon, 17 Oct 2016 15:05:49 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from mailhost.m5p.com (mailhost.m5p.com [IPv6:2001:418:3fd::f7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1805216E for ; Mon, 17 Oct 2016 15:05:48 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from [10.100.0.31] (haymarket.m5p.com [10.100.0.31]) by mailhost.m5p.com (8.14.5/8.14.5) with ESMTP id u9HF5f4E046377 for ; Mon, 17 Oct 2016 11:05:47 -0400 (EDT) (envelope-from george+freebsd@m5p.com) Subject: Re: Clandestine USB SD card slot To: FreeBSD Stable Mailing List References: <832db721-d03a-a21e-11ed-701190140d17@yahoo.com> <2bf09be6-e2ad-2d38-ffd8-d80b45d4c3d8@m5p.com> <82d2acb3-12cd-678e-c90a-21b9d62b5721@m5p.com> From: George Mitchell Message-ID: Date: Mon, 17 Oct 2016 11:05:41 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.73 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (mailhost.m5p.com [10.100.0.247]); Mon, 17 Oct 2016 11:05:47 -0400 (EDT) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2016 15:05:49 -0000 On 10/17/16 11:02, George Mitchell wrote: > [...] > After setting hw.sdhci.debug=1 and hw.mmc.debug=1 in /etc/sysctl.conf > and doing a verbose boot, then inserting and removing an SD card, all > I get in "dmesg | egrep mmc\|sdhci" is: > > sdhci_pci0: mem 0xf0c6c000-0xf0c6c0ff irq 16 at device > 20.7 on pci0 > sdhci_pci0: 1 slot(s) allocated > sdhci_pci0: mem 0xf0c6c000-0xf0c6c0ff irq 16 at device > 20.7 on pci0 > sdhci_pci0-slot0: 50MHz 8bits 3.3V DMA > sdhci_pci0-slot0: ============== REGISTER DUMP ============== > sdhci_pci0-slot0: Sys addr: 0x00000000 | Version: 0x00001001 > sdhci_pci0-slot0: Blk size: 0x00000000 | Blk cnt: 0x00000000 > sdhci_pci0-slot0: Argument: 0x00000000 | Trn mode: 0x00000000 > sdhci_pci0-slot0: Present: 0x01f20000 | Host ctl: 0x00000000 > sdhci_pci0-slot0: Power: 0x00000000 | Blk gap: 0x00000000 > sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x00000000 > sdhci_pci0-slot0: Timeout: 0x00000000 | Int stat: 0x00000000 > sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb > sdhci_pci0-slot0: AC12 err: 0x00000000 | Slot int: 0x000000ff > sdhci_pci0-slot0: Caps: 0x21de32b2 | Max curr: 0x00c80064 > sdhci_pci0-slot0: =========================================== > sdhci_pci0: 1 slot(s) allocated > > (Same for "egrep mmc\|sdhci /var/log/messages".) > > "pciconf -lv" suggests this is a: > sdhci_pci0@pci0:0:20:7: class=0x080501 card=0x08651025 chip=0x78131022 > rev=0x01 hdr=0x00 > vendor = 'Advanced Micro Devices, Inc. [AMD]' > device = 'FCH SD Flash Controller' > class = base peripheral > subclass = SD host controller > > Are there some quirks I should define for this controller? -- George > For those coming in late: FreeBSD 10.3-RELEASE-p7 #0: Thu Aug 11 18:38:15 UTC 2016 -- George