From nobody Tue Feb 10 01:30:58 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1602087808; cv=none; d=zohomail.com; s=zohoarc; b=RJyNNTkEU5Jq9czhw7bSEE+SnXttngBlOoQjV5Y1cY/Q9e+8fRYTz5UhddfbJIWVLyUlZQx1e+FMeU80GWKgwaHbd24wGe61VkFP4oyKmTBpr7ENiuBzIbB9GXocpG/ylyE+kAQ804UQYPSjjYf+raRQ4p+GM482y5Iw9neirhk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602087808; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=eBK05jRS+TMzL9aJmI57xketxlAuAw5ejWzAFKW8NCY=; b=fDQUsi7uB3v0sz7RGbODHAENJ5063q8erP+RMP4mvCPUGp8mR33Y6M+f+lo2PLQUDneHQiYd8uTz/KjFs7WJ4RqBrDfwy3srXzmFF1I5sEmvWIc7de/lvShH0f7r4SuhDgo9oYUbVa2t3PFW8iRjan3QeZ4BmwUt1gbqN7OIWnI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1602087808819401.11747904841616; Wed, 7 Oct 2020 09:23:28 -0700 (PDT) Received: from localhost ([::1]:43238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQCDv-0003EN-EC for importer@patchew.org; Wed, 07 Oct 2020 12:23:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQBsC-0005F7-Bt for qemu-devel@nongnu.org; Wed, 07 Oct 2020 12:01:00 -0400 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:38050) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQBry-0000t5-Qx for qemu-devel@nongnu.org; Wed, 07 Oct 2020 12:00:56 -0400 Received: by mail-wm1-x342.google.com with SMTP id v12so2978685wmh.3 for ; Wed, 07 Oct 2020 09:00:45 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id q13sm3496758wra.93.2020.10.07.09.00.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2020 09:00:41 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 6414E1FF8F; Wed, 7 Oct 2020 17:00:38 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eBK05jRS+TMzL9aJmI57xketxlAuAw5ejWzAFKW8NCY=; b=ncxf6K7om3QeNVuMEdgZoQoVZEO2Sbc/8TDfmOQi8tS2IDKj32dguXwznaFE65jeTX DZb+vWQTMMyYTXyi/KPOUnfqfudNxpVnf86O0zE8QgThVnNUmh8B7H2kKKcIzQGDrvwS XaJVj6HHFATTZNzb7sI3gZ5l0UQ9fqtxYnIQx5CP+zThVqovhMuqxHX51f5vUNL9NIEb 3f9VcOCvXO0/8i0RUX6SjRvJSmdwzFnFDhCcWGV8qvRU3QoF+ZMd6J+IWy2FOY8RQEyu cvHE1yuUz0me1UKuYWWy+xT/dwO0z5bq2Cj+PGez4iQ1j1Gw89n5VO7mJy2dhGl8Na/e bXPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eBK05jRS+TMzL9aJmI57xketxlAuAw5ejWzAFKW8NCY=; b=rw4+fKlJAxrWVZa2K+PqTxXzSTFwuKAHyjRnk2Hl9RntLwtlySfLqqR2QKtwn3il8B EFNM6YmzlyFu/v/N4Fmdv5PdKdb7umpz57k5kuch9PR0+M57l2L7slpnJtEdgpQ1sLdI yGnURyOa2TShMO8CvlQjnoAO+2Cjl8oUgOGjmSQBWhhruXcybjVoRFyxkAdI0WE+NG89 h4QSYhWsu74v+w2dW21qwT+EC0jvpRPeeZ2hL0iPpPZvfuhY/Bq4HFJ4SKswoqmTIzop yw4t3BOoMTD2Kx9HYsi5Wf5gVsCZbBF7e2o4IwkiqLX/B4vZxQD1mgx34iThcv/58znc MYHw== X-Gm-Message-State: AOAM530BXcaR8D1G9uUrITxIAHexhjbgwTre15w+FQ2SPNCRqikHDgu7 sfyVE7nBE3nvJfv03dN8BV7B3mUl/f+xbg== X-Google-Smtp-Source: ABdhPJxzvXH7y+AgpGImwY7Ohv4TD0W879I4raZROUMyXL+Tlt8ndV+/2vyPo7eTR0OUW8KewvN/2A== X-Received: by 2002:a1c:ac88:: with SMTP id v130mr3969213wme.43.1602086443846; Wed, 07 Oct 2020 09:00:43 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 03/22] hw/ide: restore replay support of IDE Date: Wed, 7 Oct 2020 17:00:19 +0100 Message-Id: <20201007160038.26953-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201007160038.26953-1-alex.bennee@linaro.org> References: <20201007160038.26953-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::342; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x342.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: John Snow , Pavel Dovgalyuk , =?UTF-8?q?Alex=20Benn=C3=A9e?= , "open list:IDE" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) A recent change to weak reset handling broke replay due to the use of aio_bh_schedule_oneshot instead of the replay aware replay_bh_schedule_oneshot_event. Fixes: 55adb3c456 ("ide: cancel pending callbacks on SRST") Suggested-by: Pavel Dovgalyuk Signed-off-by: Alex Benn=C3=A9e Acked-by: John Snow Reviewed-by: John Snow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- hw/ide/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ide/core.c b/hw/ide/core.c index 0e32abd779..693b352d5e 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -2289,8 +2289,8 @@ void ide_ctrl_write(void *opaque, uint32_t addr, uint= 32_t val) s =3D &bus->ifs[i]; s->status |=3D BUSY_STAT; } - aio_bh_schedule_oneshot(qemu_get_aio_context(), - ide_bus_perform_srst, bus); + replay_bh_schedule_oneshot_event(qemu_get_aio_context(), + ide_bus_perform_srst, bus); } =20 bus->cmd =3D val; --=20 2.20.1