From nobody Sat Dec 04 06:10:44 2021 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9861718A8D2B for ; Sat, 4 Dec 2021 06:10:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J5fSg6wpDz4Rl9 for ; Sat, 4 Dec 2021 06:10:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CF3BD1F0E9 for ; Sat, 4 Dec 2021 06:10:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1B46Ahnh031568 for ; Sat, 4 Dec 2021 06:10:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B46Ah3U031567 for virtualization@FreeBSD.org; Sat, 4 Dec 2021 06:10:43 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 260200] AHCI emulation throws CAM errors when backed by -t malloc memory disk devices Date: Sat, 04 Dec 2021 06:10:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: editor@callfortesting.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638598244; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cAp62YiY5W4Ag11CIpdm6HS1ekItH2tlT5PiJ6kyIhs=; b=NhHkfIsSvfu2gfonPV0yEz8LhGQpOYUGK9YrfeYtHpdP1w5IhCzfnoJw5Ad2XQH8KvGwVA /mSYxEFp0LwdVxqdapFP46CUYh18vA8+iTdAQI2vJC1a311d0WboZ6ixj6WjxvqoOOJ7N+ fcVin3/uWjjDPA6mZkl2wv+wcjpffJ0C4oWVERDSZc6cUNqJVVx3KNV7J/TbkVwqf3Tc7b 2kPeNQiPdCKTwjj7tooNAHBxqxYSkCFsZZKfjMTCDMU4VCZN2kwF9YutzRTYR8/onMGvSM YUikLC8Xlitn2G6pLfe9tGBRngIZb3lS9bVBicZhpdLHf1XffSsCZmrOGyV+LA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638598244; a=rsa-sha256; cv=none; b=pbvXCBl3jjZMJO9mvkIL6skV0VC92oM/MQuL2JDZmyeaIu2W7dh/gRoLUMhTAwMuZiOADY v12TMPoqZxKpt1i2AvQVSDmEzt/EyUZN3bFEdk9fsazcXba5JgAi90KznIxbjVQyMuT4xp FFTvU4trwobmzd+Nieuqeo/zC46nOjJX0OCgXCxP5L7dpGmg9QkgUQotnGQX7x7EoP49mA crG42ojnq4lqfXwTS8/EROvkgDG/IxLvMawCdFdCNhyaTS7Sxz9BBfDEzjbFmWhBMnQGqg vkKjkXaX4xPJ1K22JCXdcUHOPbGRZ+4r7vZUTCgr4hcFvgHi2vQT7CaAa3RuSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260200 Bug ID: 260200 Summary: AHCI emulation throws CAM errors when backed by -t malloc memory disk devices Product: Base System Version: 13.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: editor@callfortesting.org If a bhyve emulated AHCI device is backed by a 'mdconfig -t malloc' memory = disk device, variations on this simple fio(1) test: fio --name=3Dbhyve --rw=3Dwrite --runtime=3D1 --time_based --filename=3D/de= v/ada0 --bs=3D512b --size=3D512b Produces these errors logged in the system messages: (ada0:ahcich0:0:0:0): FLUSHCACHE48. ACB: ea 00 00 00 00 40 00 00 00 00 00 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, 0 more tries remain (ada0:ahcich0:0:0:0): FLUSHCACHE48. ACB: ea 00 00 00 00 40 00 00 00 00 00 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): Error 5, Retries exhausted (ada0:ahcich0:0:0:0): Synchronize cache failed The error is consistent with repeat runs and variations on the fio syntax. The virtio-blk and nvme devices do not exhibit this behavior. --=20 You are receiving this mail because: You are the assignee for the bug.=