From owner-freebsd-virtualization@FreeBSD.ORG Sun Nov 30 02:26:46 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9EEC26F6 for ; Sun, 30 Nov 2014 02:26:46 +0000 (UTC) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2FCB75E5 for ; Sun, 30 Nov 2014 02:26:46 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id r20so14229527wiv.14 for ; Sat, 29 Nov 2014 18:26:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Jj6dsPq3MTQVQUkcefq6HyXOpGYruXT3X53lg4fC6UM=; b=I12goAcZ84CUufD4dEiSz+1fWVWKt/pSSmj8/DBKAfjo39R7alvnbh6/zdzK5JqiN+ EBmoguT8DBToKbhRgkepNd7IY97+Iwnc2OEkAyMtilqdh2zp5S6aAZOhq8wcO3zQFXfc 2KBIGWb/3Rw6YAI/1Xv92gbNGCnMYK0PwYvw34H32Gi5Sn7vWKzrBGD/tmXNoxM+ULgt Pp8uu3TtQ/zilobCmkI8WPQ3IU4NFDR5ZHEy6h4L/qc+x6AfMXSJ5KHvdt32jQpPjj74 Qk59bDr6ZBTiHD2tQulaO+kBxHoZQlTLBqooWcPMlGLMvoGXupJrP2aSB8IO7isS7E35 7HQQ== MIME-Version: 1.0 X-Received: by 10.180.75.237 with SMTP id f13mr71654497wiw.69.1417314404568; Sat, 29 Nov 2014 18:26:44 -0800 (PST) Received: by 10.27.12.168 with HTTP; Sat, 29 Nov 2014 18:26:44 -0800 (PST) In-Reply-To: References: Date: Sat, 29 Nov 2014 18:26:44 -0800 Message-ID: Subject: Re: Unsupported cmd:c4 (ada0:ahcich0:0:0:0): READ_MUL. ACB: c4 00 00 00 00 40 00 00 00 00 01 00 From: Neel Natu To: =?UTF-8?Q?Ask_Bj=C3=B8rn_Hansen?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2014 02:26:46 -0000 Hi Bjorn, On Fri, Nov 28, 2014 at 2:42 AM, Ask Bj=C3=B8rn Hansen = wrote: > Hi everyone, > > I=E2=80=99ve spent some time off this week upgrading my build-my-personal= -NanoBSD-image tool from a VMware virtual machine to a physical box running= a 32-bit build-box under bhyve. > > So far so good =E2=80=94 all that has been working really well. > > My nanobsd image is only used on Soekris and PC Engines boxes and my prod= uction images are really small (some <100MB storage and ~32MB memory), so I= have a crufty kernel config that excluded a bunch of stuff I (thought I) d= on=E2=80=99t need. > > Now I=E2=80=99d like to run my built image under bhyve for testing. It=E2= =80=99s easier for me if the disk comes up as an ada device, so I=E2=80=99m= using ahci-hd instead of virtio-blk. With virtio-blk the system boots but = the device has the =E2=80=9Cwrong" name. > > With ahci-hd it can=E2=80=99t read my partition for some reason. > > I=E2=80=99ve tried with both file and zvol backing store. > > This is the error I=E2=80=99m getting: > > ada0: ATA-8 SATA 2.x device > ada0: Serial Number 123456 > ada0: 300.000MB/s transfers (SATA 2.x, PIO4, PIO 8192bytes) > ada0: Command Queueing enabled > ada0: 260MB (532480 512 byte sectors: 16H 63S/T 528C) > ada0: Previously was known as ad4 > Unsupported cmd:c4 > (ada0:ahcich0:0:0:0): READ_MUL. ACB: c4 00 c1 1f 08 40 = 00 00 00 00 04 00 > (ada0:ahcich0:0:0:0): CAM status: ATA Status Error > (ada0:ahcich0:0:0:0): ATA status: 41 (DRDY ERR), error: 04 (ABRT ) > (ada0:ahcich0:0:0:0): RES: 41 04 00 00 00 40 00 00 00 00 00 > (ada0:ahcich0:0:0:0): Retrying command > Unsupported cmd:c4 > > > Any suggestion for what I=E2=80=99m doing wrong? Did I compile my kernel = with some idiotic set of not-working options? > Are you, by any chance, setting the tunable 'hw.ata.ata_dma' to 0 to disable DMA? I ask this because in the dmesg above you have: ada0: 300.000MB/s transfers (SATA 2.x, PIO4, PIO 8192bytes) In my setup, I get this instead: ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) best Neel > > Ask > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@free= bsd.org"