Date: Thu, 06 Nov 2008 21:02:03 +0200 From: Alexander Motin <mav@FreeBSD.org> To: Lars Engels <lme@FreeBSD.org>, "M. Warner Losh" <imp@bsdimp.com>, freebsd-arm@FreeBSD.org, freebsd-current@FreeBSD.org, freebsd-mobile@FreeBSD.org Subject: Re: RFC: PCI SD host controller driver & mmc/mmcsd modules improvements Message-ID: <49133F2B.4080801@FreeBSD.org> In-Reply-To: <20081106184017.GB161@e.0x20.net> References: <48DEA8E7.2080503@FreeBSD.org> <20081106180556.GH8256@e.0x20.net> <4913345F.2050801@FreeBSD.org> <20081106.112338.1564836080.imp@bsdimp.com> <20081106184017.GB161@e.0x20.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Lars Engels wrote:
> Much better! Loading mmcsd first, then mmc and sdhci gives me the mmcsd0
> device:
>
> sdhci0: <RICOH R5C822 SD> mem 0xd8002800-0xd80028ff irq 22 at device 9.2
> on pci5
> sdhci0: 1 slot(s) allocated
> sdhci0: [ITHREAD]
> mmc0: <MMC/SD bus> on sdhci0
> mmcsd0: 1924MB <SD Memory Card> at mmc0 16MHz/4bit
> sdhci0-slot0: Got data interrupt 0x00000002, but there is no active
This error should not happen normally. Or this controller has some
problems with DMA mode (it's PCI class reports that DMA is not
supported, but as soon as we have some reports that it does working it
is forcefully used) or it is some problem with driver. To get some info
about what is happening actually, uncomment two fragments in driver. This:
/* printf("%s cmd op %u arg %u flags %u data %ju\n", __func__,
req->cmd->opcode, req->cmd->arg, req->cmd->flags,
(req->cmd->data)?req->cmd->data->len:0); */
and this:
/*
slot_printf(slot, "got interrupt %x\n", intmask);
*/
Enable verbose messages, and send me what you will get.
--
Alexander Motin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49133F2B.4080801>
