From owner-freebsd-current@FreeBSD.ORG Mon May 12 06:00:23 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75AAB106572D; Mon, 12 May 2008 06:00:23 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp7.yandex.ru (smtp7.yandex.ru [213.180.200.45]) by mx1.freebsd.org (Postfix) with ESMTP id 5362F8FC54; Mon, 12 May 2008 06:00:22 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from mail.kirov.so-cdu.ru ([77.72.136.145]:17100 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S738552AbYELGAP (ORCPT + 2 others); Mon, 12 May 2008 10:00:15 +0400 X-Yandex-Spam: 1 X-Yandex-Front: smtp7 X-Yandex-TimeMark: 1210572015 X-MsgDayCount: 15 X-Comment: RFC 2476 MSA function at smtp7.yandex.ru logged sender identity as: bu7cher Message-ID: <4827DCED.1000205@yandex.ru> Date: Mon, 12 May 2008 10:00:13 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Andrey Chernov , sos@freebsd.org, grehan@FreeBSD.ORG, current@freebsd.org References: <20080511004607.GA67182@nagual.pp.ru> In-Reply-To: <20080511004607.GA67182@nagual.pp.ru> Content-Type: multipart/mixed; boundary="------------070307030306000202090406" Cc: Subject: Re: atadev->param.model problem or bug with Marvell 88SE6811 chip X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 12 May 2008 06:00:23 -0000 This is a multi-part message in MIME format. --------------070307030306000202090406 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Andrey Chernov wrote: > I have device detection problem with device attached to > atapci0: port 0xec00-0xec07,0xe880-0xe883,0xe800-0xe807,0xe480-0xe483,0xe400-0xe40f mem 0xfebffc00-0xfebfffff irq 16 at device 0.0 on pci3 > (ASUS P5E3 motherboard). > It seems that this controller not fills atadev->param.model as current > ata-all.c code expects: Can you try this patch and show verbose dmesg with patched kernel? -- WBR, Andrey V. Elsukov --------------070307030306000202090406 Content-Type: text/plain; name="ata.diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ata.diff.txt" Index: src/sys/dev/ata/ata-all.c =================================================================== RCS file: /ncvs/src/sys/dev/ata/ata-all.c,v retrieving revision 1.287 diff -u -b -p -r1.287 ata-all.c --- src/sys/dev/ata/ata-all.c 20 Apr 2008 17:45:32 -0000 1.287 +++ src/sys/dev/ata/ata-all.c 12 May 2008 05:56:33 -0000 @@ -605,6 +605,11 @@ ata_getparam(struct ata_device *atadev, ata_free_request(request); } + if (!error && bootverbose) + device_printf(ch->dev, "IDENTIFY DEVICE data is %s, word2 is 0x%04x\n", + (atadev->config & (1 << 2)) ? "incomplete":"complete", + atadev->reserved2); + if (!error && (isprint(atadev->param.model[0]) || isprint(atadev->param.model[1]))) { struct ata_params *atacap = &atadev->param; --------------070307030306000202090406--