From patchwork Tue Dec 26 10:29:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 122735 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp780185qgn; Tue, 26 Dec 2017 02:32:07 -0800 (PST) X-Google-Smtp-Source: ACJfBotls0uhtGNPMmG28lYiPijfPvCkOzqRAAjGpPq28a5txPd28ibNnKfwKXrYAyBTSGczLdDy X-Received: by 10.99.95.213 with SMTP id t204mr22284556pgb.133.1514284327659; Tue, 26 Dec 2017 02:32:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514284327; cv=none; d=google.com; s=arc-20160816; b=Ck35q17CDrAkEWxxEGRyMOL9sbmOtEOQZQtJsQq5g0KctD6UhZ3xLdyLKyOuVny8h1 ohRQONL22icBtbUwIb4ix3kNH61lJQYLqEXc7ffySOPnMlWJ0wcyLlYK2o7yGhDeEZUI j6ReKku67/0OVz/lkOAtbI0fAcGcmqDW9yHjPlPYqy1cOsZBjJSZ7pxCSCbDDU7rZ8Gd AJXPTXWZgZ7jwcOh55NOzil/96qgFhHGpDYPA9pix59eZDgstktFTeEwhdqXo5EE4ZU4 VhqiajO30mKIbDCtJxo5Fjc3OyQHFDA5Nhu6V8vxlxuibwQkbQpKKlkL3GcxXM4xPh3o u9Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=pIuvgWz9cU0Gs2JZlomiE4bqQgfoPVzzwAyZzj/V5lo=; b=mjvgoSIq1+Cko6C6ENyQP/Ws+5JZupBJh3WXLFeR99aOcTu8wbhsjr27gvY764n3/m RyN+gl+DEyah/fYhQWk1AeXo/bk0zsmQN6nVshb7Ei0o0vyzjqBth5qFibqX05Z7nikD vnOllkjGuCrpXkLlrxcUxFnlOM858/I8YTRwb9uP2RTycEKb9BtHjCoL2YdfFP8f2tV1 qFSy4NbgTUScQnJ7ldCke2s+kr+64pr+3VLBFgYU9XDjb94PyqhImJpq4BWgm5z/6mxl 45qj+cw0l+M4io9TkSilH7syWSgsBDqvxa6eLxY0/iN1Dnp7SOejn7qvEBL566Hv+uq4 t7fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ih75zeFJ; spf=pass (google.com: best guess record for domain of linux-rt-users-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-rt-users-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z64si23003917pfa.207.2017.12.26.02.32.07; Tue, 26 Dec 2017 02:32:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-rt-users-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ih75zeFJ; spf=pass (google.com: best guess record for domain of linux-rt-users-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-rt-users-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751470AbdLZKcG (ORCPT + 4 others); Tue, 26 Dec 2017 05:32:06 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:39339 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751389AbdLZKbg (ORCPT ); Tue, 26 Dec 2017 05:31:36 -0500 Received: by mail-wr0-f194.google.com with SMTP id o101so5667078wrb.6 for ; Tue, 26 Dec 2017 02:31:36 -0800 (PST) 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; bh=0dxSTFX/xduNQExyV3nBFWyJqjc8FIvuy78ML4E3Ors=; b=ih75zeFJlXEcmHsH+8uN1aJl0+FxWxmJQdbiJRuhobgPvfqI6pCVYS+p7YXpsCDr0V Gu/dNDSS/rhAZCeMEs2ydb93OcAKsLgh/q36XuiQhtfPA8oaE17vhouVVfHXphWgZxyQ IapwM0fUd0Ecp2fXMo0Clm0Q0FWYOOGU4660U= 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; bh=0dxSTFX/xduNQExyV3nBFWyJqjc8FIvuy78ML4E3Ors=; b=s7QQ4urOfViVd7LRNx3fWq4m3wMXeM4tREJI2pDR9TCTUH4MIbXK8fGq8VuGW48+vy CWr3TMb2OQM97jBQHBC94fIBATsQmZOStGOJbPRWgZgXiS4atMggLQ6MMZAk6zWPQEQL 4iQoy4F8GgcEmpbsO6z2hUKUlH+cSt3ID9564NlETdN2lV7q/4Imn1xh7rq36l0jtXg5 /LpEJ8JAg2YVQ5KkniGtB2uhm7ajQ7CjGM8/N+xqcvjq7EG3GSJl9kPk7RxBUmbHGM2I 3VbechZLGOKlRjfi9FSBjP2/ftIAgJvPyl19SmYiTtUlR5OmCfvWN9UvZ8+usQ0pOZyh qL0w== X-Gm-Message-State: AKGB3mIOUGCQQgrgwkNfpeIuaCMRnIlzySRAhgm/nQmG+bhwFAHd9Yl+ fbv/yTMjd8QJQivPevfEFOVwuQ== X-Received: by 10.223.159.82 with SMTP id f18mr6425413wrg.219.1514284295188; Tue, 26 Dec 2017 02:31:35 -0800 (PST) Received: from localhost.localdomain ([160.171.216.245]) by smtp.gmail.com with ESMTPSA id l142sm13974036wmb.43.2017.12.26.02.31.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Dec 2017 02:31:34 -0800 (PST) From: Ard Biesheuvel To: linux-kernel@vger.kernel.org Cc: Ard Biesheuvel , Dave Martin , Russell King - ARM Linux , Sebastian Andrzej Siewior , Mark Rutland , linux-rt-users@vger.kernel.org, Peter Zijlstra , Catalin Marinas , Will Deacon , Steven Rostedt , Thomas Gleixner Subject: [PATCH v4 20/20] DO NOT MERGE Date: Tue, 26 Dec 2017 10:29:40 +0000 Message-Id: <20171226102940.26908-21-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171226102940.26908-1-ard.biesheuvel@linaro.org> References: <20171226102940.26908-1-ard.biesheuvel@linaro.org> Sender: linux-rt-users-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rt-users@vger.kernel.org Test code to force a kernel_neon_end+begin sequence at every yield point, and wipe the entire NEON state before resuming the algorithm. --- arch/arm64/include/asm/assembler.h | 33 ++++++++++++++++++++ 1 file changed, 33 insertions(+) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h index 575d0f065d28..295937b2f39b 100644 --- a/arch/arm64/include/asm/assembler.h +++ b/arch/arm64/include/asm/assembler.h @@ -622,6 +622,7 @@ alternative_else_nop_endif cmp w1, #PREEMPT_DISABLE_OFFSET csel x0, x0, xzr, eq tbnz x0, #TIF_NEED_RESCHED, .Lyield_\@ // needs rescheduling? + b .Lyield_\@ #endif /* fall through to endif_yield_neon */ .subsection 1 @@ -631,6 +632,38 @@ alternative_else_nop_endif .macro do_cond_yield_neon bl kernel_neon_end bl kernel_neon_begin + movi v0.16b, #0x55 + movi v1.16b, #0x55 + movi v2.16b, #0x55 + movi v3.16b, #0x55 + movi v4.16b, #0x55 + movi v5.16b, #0x55 + movi v6.16b, #0x55 + movi v7.16b, #0x55 + movi v8.16b, #0x55 + movi v9.16b, #0x55 + movi v10.16b, #0x55 + movi v11.16b, #0x55 + movi v12.16b, #0x55 + movi v13.16b, #0x55 + movi v14.16b, #0x55 + movi v15.16b, #0x55 + movi v16.16b, #0x55 + movi v17.16b, #0x55 + movi v18.16b, #0x55 + movi v19.16b, #0x55 + movi v20.16b, #0x55 + movi v21.16b, #0x55 + movi v22.16b, #0x55 + movi v23.16b, #0x55 + movi v24.16b, #0x55 + movi v25.16b, #0x55 + movi v26.16b, #0x55 + movi v27.16b, #0x55 + movi v28.16b, #0x55 + movi v29.16b, #0x55 + movi v30.16b, #0x55 + movi v31.16b, #0x55 .endm .macro endif_yield_neon, lbl