From patchwork Wed Nov 14 19:50:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 151119 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6105455ljp; Wed, 14 Nov 2018 11:51:06 -0800 (PST) X-Google-Smtp-Source: AJdET5eVBFEwlrIyJBb+KI+rON9IoJJVQ9rFk5i+y+fti23x32oM2utRAQ6d59vYGyt9q0Teu2Jo X-Received: by 2002:a63:ba19:: with SMTP id k25mr3010226pgf.194.1542225065884; Wed, 14 Nov 2018 11:51:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542225065; cv=none; d=google.com; s=arc-20160816; b=saP8Qe3u6uMx+ZqiepsCZxTSfLieJ+SKMyvW2MTUJ2sPlgRgzf+UAmlT/dKpHVCHJY /4F4RjRm0aUHFfGowQxE9DIq6Z0P/jE7BIZ36miXdjAxp4w2CsYwrjShI/isWrNwEk16 RabgYDdz5Iyz6tELlBlXx7EycBRMvBzkm2mgaHKxvruwqtcRKIBCf3bdhAEv/QntdThe nPnbWwb91qYVPViCxuENOM8UXOsWJBtgZkctcdjdsI9lMwVnVLwWihtsJLtJVjK9/ebZ YP3AZGlMUB7dnH3uSy/KrBuZyAgtUWIp7upaxPV8fZdUNt6jawzqeAAKUCwEK2YJ7izc g0vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=oCv4Lw9q0VTIhKfZpW+pK6HgBb+FJlUzjgZm/83nV8o=; b=AgBS4auvNIPoI4XvURBzYAHoaHybCkfNGrtewmoLoex7n7SFN7+dk5jXJ3EY3OjB0G CU78Ra1WHxDQOaEr8Akof8MOtFvTgUowis73oDijrLacl+XQAC9PfuRIv9036Ben4wL/ ay3qcyp46cRgiUU/hfl1BomM2ngTBYop9BoFvqS+G9V63bn9aRxdQEt0c2PMuh/Zhxf3 nztc44TEjVVwDYxVX6rCAeZteWzh4dBZZD79hTuuy+tyGRTq/VvjvqpMTgQOrVJnEAxy zCMgZIbgcjHV0a6u3SRHaC3sQvO/tGOGhGyZF41NVqDRpFSDN3lYdiZQhEku3TFuClz/ P1uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=iQRuf5sU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b19-v6si18923840pls.32.2018.11.14.11.51.05; Wed, 14 Nov 2018 11:51:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=iQRuf5sU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726823AbeKOFzg (ORCPT + 32 others); Thu, 15 Nov 2018 00:55:36 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:48154 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbeKOFzg (ORCPT ); Thu, 15 Nov 2018 00:55:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=oCv4Lw9q0VTIhKfZpW+pK6HgBb+FJlUzjgZm/83nV8o=; b=iQRuf5sUdc6pxqq+oMLCY+4ib 658kuRHLSss/mEJoJvPQltxKcaIh21KSs0JwWDHPS1wmf19n6oOtSVAktpwCO3diQ84Nmg0OYfbxc J2FsMCz/2RcfIawwh/vzRCqmKbLw5Q4TA+0eBUT0JW/aUMY6pwY7+Q/YG89F5dBYoJ28w=; Received: from [64.114.255.97] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gN1Bd-0004Kb-Bb; Wed, 14 Nov 2018 19:50:53 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id EFED2440078; Wed, 14 Nov 2018 19:50:46 +0000 (GMT) From: Mark Brown To: Shuah Khan , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Andy Lutomirski Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, x86@kernel.org Subject: [PATCH RFC 0/2] Make fsgsbase test more stable Date: Wed, 14 Nov 2018 11:50:41 -0800 Message-Id: <20181114195043.8021-1-broonie@kernel.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series attempts to make the fsgsbase test in the x86 kselftest report a stable result. On some Intel systems there are intermittent failures in this testcase which have been reported and discussed previously: https://lore.kernel.org/lkml/20180126153631.ha7yc33fj5uhitjo@xps/ with the analysis concluding that this is a hardware issue affecting a subset of systems but no fix has been merged as yet. In order to at least make the test more solid for use in automated testing this series modifies it to execute the test often enough to reproduce the problem reliably. I'm not happy with this since it doesn't fix the actual problem, the code isn't particularly clean and it makes the execution time for the selftests much longer - my main goal here is to restart the discussion of the test failure, I don't think merging this is a great idea. Mark Brown (2): selftests/x86/fsgsbase: Indirect output through a wrapper function selftests/x86/fsgsbase: Default to trying to run the test repeatedly tools/testing/selftests/x86/fsgsbase.c | 79 +++++++++++++++++++++++++--------- 1 file changed, 58 insertions(+), 21 deletions(-)