From owner-freebsd-current@freebsd.org Fri Mar 25 23:13:24 2016 Return-Path: Delivered-To: freebsd-current@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 EF70DADD23E for ; Fri, 25 Mar 2016 23:13:24 +0000 (UTC) (envelope-from rm@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D594D2F75; Fri, 25 Mar 2016 23:13:24 +0000 (UTC) (envelope-from rm@FreeBSD.org) Received: from [127.0.0.1] (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id ED9722A20; Fri, 25 Mar 2016 23:13:23 +0000 (UTC) (envelope-from rm@FreeBSD.org) Subject: Re: SD card adapter doesn't working anymore To: Ian Lepore , Ivan Klymenko References: <56F5A0A9.8030207@FreeBSD.org> <20160325224145.2f319ead@nonamehost.local> <56F5A809.2020505@FreeBSD.org> <20160325231115.3752fe53@nonamehost.local> <1458941638.1091.82.camel@freebsd.org> Cc: FreeBSD Current From: Ruslan Makhmatkhanov Message-ID: <56F5C5F6.5060600@FreeBSD.org> Date: Sat, 26 Mar 2016 02:12:54 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <1458941638.1091.82.camel@freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 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: Fri, 25 Mar 2016 23:13:25 -0000 Ian Lepore wrote on 03/26/16 12:33 AM: > On Fri, 2016-03-25 at 23:11 +0200, Ivan Klymenko wrote: >> On Sat, 26 Mar 2016 00:05:13 +0300 >> Ruslan Makhmatkhanov wrote: >> >>> Ivan Klymenko wrote on 03/25/16 11:41 PM: >>>> On Fri, 25 Mar 2016 23:33:45 +0300 >>>> Ruslan Makhmatkhanov wrote: >>>> >>>>> Hello, >>>>> >>>>> I have this in pciconf output: >>>>> >>>>> =============================================================== >>>>> ======= >>>>> none1@pci0:36:0:0: class=0x088000 card=0x167e103c >>>>> chip=0x2392197b rev=0x30 hdr=0x00 >>>>> vendor = 'JMicron Technology Corp.' >>>>> device = 'SD/MMC Host Controller' >>>>> class = base peripheral >>>>> >>>>> none2@pci0:36:0:3: class=0x088000 card=0x167e103c >>>>> chip=0x2393197b rev=0x30 hdr=0x00 >>>>> vendor = 'JMicron Technology Corp.' >>>>> device = 'MS Host Controller' >>>>> class = base peripheral >>>>> =============================================================== >>>>> ======= >>>>> >>>>> And my SD-card controller is not working anymore (it worked on >>>>> -current on the same laptop year or two ago). Do I need to load >>>>> some kld to make it working, or support for this controllers >>>>> was >>>>> dropped altogether for some reason? I have mostly vanilla >>>>> GENERIC >>>>> at r296772, but it actually stopped to work much earlier. >>>>> >>>>> Thanks. >>>>> >>>> >>>> +1 >>>> I would also like to clarify about this problem was drawn up a >>>> bug >>>> report. >>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193341 >>>> >>>> Thanks. >>> >>> Hah, I even see my comment from 2014 in this PR. >> >> I have it broken just from that moment to this day. >> uname -a >> FreeBSD nonamehost.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 >> r297234: >> Thu Mar 24 15:15:39 EET 2016 >> ivan@nonamehost.local:/media/da0s1/obj/usr/src/sys/mk11 amd64 >> >> >>> So looks like it was >>> broken not in r292180 as Ian pointed, but much-much earlier. >>> Anyway, >>> I'll try to update to fresh -current first. >>> > > That PR has a very small range, r271081-138, but I don't any changes in > that range related to sdhci, or to pci. The PR doesn't say anything > about how the device "doesn't work". Does the sdhci device show up in > dmesg, but the sd card is never detected, or does sdhci not even > attach? > > -- Ian If memory serves me right, I first run into this problem about 2-6 months before I added a comment to the PR, that it doesn't works for me on r271687. Doesn't work means driver doesn't attaching to the hardware, so plugging memory card doesn't trigger any changes in system - still no driver attached to hardware and no device, that I can mount, appeared. But I sure that it worked without any intervention before - I just plugged an SD-card and it auto-mounted with my DE. But after that there is just nothing to mount. The reason why I missed particular revision it stopped working is because I'm using SD not too often (once a year or something) to update car music playlist. I can try to boot earlier releases like 10.0 etc, to find out revision on what it works. Anyway, Ian, if you may suggest something, I'm open to any tests and providing all the infos that is needed to debug the issue. Especially, because there is at least three person that are facing the same issue. -- Regards, Ruslan T.O.S. Of Reality