From nobody Fri May 3 07:14:35 2024 Delivered-To: importer@patchew.org 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; 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=1584704857; cv=none; d=zohomail.com; s=zohoarc; b=lxmXfD+XX+DzpVHmXpffnc+/D8Q7QGQ7cTiYajraQQyi/XuIKu1lUFWzqpkGAoP6hHk+/WrWpcVQY8YUurm4cbvEX9DCQP4ye7x0Ur9Xa7U5sxnvfJOZvfJcaovIrNh7A5qxLvkm7AlYzGXS17Cer9UzpWc0ayLcqCcMu0Z6rbA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584704857; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=TDipM9rGYjEtiaI6CSouTQvfuQ8pFm/kQ+ylrt2XN9A=; b=Qjf5kchl2TyqWwQSVNdTMvYm7wMl7CdibB3J6kglJ5qw1FZh58aiDvohVjkTHV8qaVj/0UivJ+c6Gn/bXYyimjVNMqA/aKX1GNDvifwFtAuHWAaSrpyiMpvc3vbTMTqtAQ3Em6CddQ5B+08BIlg5soluwyYlG94I7IDNvwKwzHA= 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 1584704857548828.3492704683343; Fri, 20 Mar 2020 04:47:37 -0700 (PDT) Received: from localhost ([::1]:51266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFG7k-0000HF-6z for importer@patchew.org; Fri, 20 Mar 2020 07:47:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50965) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFG64-0007Jh-F6 for qemu-devel@nongnu.org; Fri, 20 Mar 2020 07:45:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFG5z-0008Dw-PE for qemu-devel@nongnu.org; Fri, 20 Mar 2020 07:45:52 -0400 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:51158) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jFG5z-0008Cp-76 for qemu-devel@nongnu.org; Fri, 20 Mar 2020 07:45:47 -0400 Received: by mail-wm1-x341.google.com with SMTP id d198so417290wmd.0 for ; Fri, 20 Mar 2020 04:45:47 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id n18sm7896591wrw.34.2020.03.20.04.45.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Mar 2020 04:45:44 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id D2A721FF7E; Fri, 20 Mar 2020 11:45:43 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TDipM9rGYjEtiaI6CSouTQvfuQ8pFm/kQ+ylrt2XN9A=; b=SDgifskkg/4S5zCku6kzcpWqsrCeZMxlLovTNGUEyQ81akCZZYLoj7bWk7DGqIA3Jo BTGzwgPs8IFGfVEMSrUTO6EsR4u6+67zsjNgUh5n7oftHhoC7AukB0VPYh15k7dznPXI 0XMvC6VgNfvPmPHxtV6mffScgcoqfZodrdAo5sVd6BJO4h4epddyxscHgxQY2Oj59pZ1 Q5Pe0W/Ub+rZkBUHVZrPWCDndxjFNP/b6/4D2y6+kqMU7tyZ8/4NKpVltWS1sy92jXYX lZHMvPCDjS9czDtpRUq4VnEhdIzmN+7aW/14T1W5Iur6McCUVbZxy8c3wiv+EaNBQYa/ 05aw== 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:mime-version :content-transfer-encoding; bh=TDipM9rGYjEtiaI6CSouTQvfuQ8pFm/kQ+ylrt2XN9A=; b=ldn7xtakk0WLKK88bbtbnVg0BJRuHVcx1tOdgpl8KT/YZJgHG5F9nBpZfHo/6bBXtp I8TcHmsKeIIYrTq+w0LYaCgb/XvB2csRjcnMMhYKTm5hBhrcT1ptrY9IsLLt6B8ZlHx4 Nymqb0PxR7yIk0CJqoellj+kZU4AAgoHwaE65mwHO4Hd/1y51EJibt8fnBNBwAksFylF zuWjL9GL59zmylm/6uUDesKzqmi12JDJo1cnHzZ+mdKyNxHEuaLZlmSW5+QOJy+JuNEQ yTKS5yKUjQPXIoRiNxkdi6UoukIt5Sr2yYhh49SKEKrGWKWS00ijwJc1AXYMTtnvYIQD 9xjA== X-Gm-Message-State: ANhLgQ0YBxQmPU76ybELLiTZdhn0tbAPIefmzJv45MFA9pOfr3W1jqyU cqDwrz6jC2FRWyUMC3DVGSXuQA== X-Google-Smtp-Source: ADFU+vsDEDknC3K4oKwu5D6JrJ4Rdps7XFFhrOFOUPVzoklWQmTT9AozsYTPlf0mK2tPrI+Y3rC3Cg== X-Received: by 2002:a1c:7209:: with SMTP id n9mr9663782wmc.188.1584704745947; Fri, 20 Mar 2020 04:45:45 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [RFC PATCH for 5.0] configure: disable MTTCG for MIPS guests Date: Fri, 20 Mar 2020 11:45:22 +0000 Message-Id: <20200320114522.16273-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::341 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: Aleksandar Markovic , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Aleksandar Rikalo , Aurelien Jarno , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) While debugging check-acceptance failures I found an instability in the mips64el test case. Briefly the test case: retry.py -n 100 -c -- ./mips64el-softmmu/qemu-system-mips64el \ -display none -vga none -serial mon:stdio \ -machine malta -kernel ./vmlinux-4.7.0-rc1.I6400 \ -cpu I6400 -smp 8 -vga std \ -append "printk.time=3D0 clocksource=3DGIC console=3Dtty0 console=3Dtty= S0 panic=3D-1" \ --no-reboot Reports about a 9% failure rate: Results summary: 0: 91 times (91.00%), avg time 5.547 (0.45 varience/0.67 deviation) -6: 9 times (9.00%), avg time 3.394 (0.02 varience/0.13 deviation) Ran command 100 times, 91 passes When re-run with "--accel tcg,thread=3Dsingle" the instability goes away. Results summary: 0: 100 times (100.00%), avg time 17.318 (249.76 varience/15.80 deviation) Ran command 100 times, 100 passes Which seems to indicate there is some aspect of the MIPS MTTCG fixes that has been missed. Ideally we would fix that but I'm afraid I don't have time to investigate and am not super familiar with the architecture anyway. I've disabled all the mips guests as I assume it's a fundamental synchronisation primitive that is broken but I haven't tested them all (there are a lot!). Signed-off-by: Alex Benn=C3=A9e Cc: Aleksandar Markovic Cc: Aurelien Jarno Cc: Aleksandar Rikalo Cc: Philippe Mathieu-Daud=C3=A9 Acked-by: Philippe Mathieu-Daud=C3=A9 --- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 206d22c5153..002792d21dc 100755 --- a/configure +++ b/configure @@ -7832,19 +7832,19 @@ case "$target_name" in echo "TARGET_ABI32=3Dy" >> $config_target_mak ;; mips|mipsel) - mttcg=3D"yes" + mttcg=3D"no" TARGET_ARCH=3Dmips echo "TARGET_ABI_MIPSO32=3Dy" >> $config_target_mak ;; mipsn32|mipsn32el) - mttcg=3D"yes" + mttcg=3D"no" TARGET_ARCH=3Dmips64 TARGET_BASE_ARCH=3Dmips echo "TARGET_ABI_MIPSN32=3Dy" >> $config_target_mak echo "TARGET_ABI32=3Dy" >> $config_target_mak ;; mips64|mips64el) - mttcg=3D"yes" + mttcg=3D"no" TARGET_ARCH=3Dmips64 TARGET_BASE_ARCH=3Dmips echo "TARGET_ABI_MIPSN64=3Dy" >> $config_target_mak --=20 2.20.1