From patchwork Sun Oct 13 12:15:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 3033271 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A6B299F372 for ; Sun, 13 Oct 2013 12:18:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E66F620328 for ; Sun, 13 Oct 2013 12:18:55 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0B29620320 for ; Sun, 13 Oct 2013 12:18:55 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VVKba-0003wu-SS; Sun, 13 Oct 2013 12:17:07 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VVKb5-00010q-8t; Sun, 13 Oct 2013 12:16:35 +0000 Received: from mail-wg0-f47.google.com ([74.125.82.47]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VVKaG-0000vG-5J for linux-arm-kernel@lists.infradead.org; Sun, 13 Oct 2013 12:15:46 +0000 Received: by mail-wg0-f47.google.com with SMTP id c11so1256936wgh.26 for ; Sun, 13 Oct 2013 05:15:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=K8UjPO+SE5gy6sqThdTErsMXbwqg/CA7Cd3DxK3EXmU=; b=iepMuamUNKlwj0AHpwXFzqGo8DcaQO/d/iaNo5XkSsWuSkTiYwmIJqIqV/vukgZcnb QO5qUBuviiik/SyJKt6pOFlrSVD5hNtpsOsNgdy2MexX2+Xq/HRZ62dVDyBuld+rmVC9 Mso4kFcC6YMqoB68uZcRrOgRpag6AKvvhOosaKVVKTUh556/HqwNzBWpkyOYnz/zFqdh mr3FW+Yp/o4pnQbwFSNMTKar0i2HC0neP5VO2f2jpQdmvuxAe7igfU7biLN5lrmDl993 lVw7hUi+jASdY0yIST6av13kD7EVSUyadvWLyk/5lcYZGwvXX9N9zisymg+VAtIw9bEh hvmg== X-Gm-Message-State: ALoCoQmKDg6X5jcadcNQ14tGYRQ6WaiePyg1imbrac0d7EBU0uScjrmC95HJOGP420RXONDj+tYM X-Received: by 10.180.188.202 with SMTP id gc10mr10670441wic.3.1381666522312; Sun, 13 Oct 2013 05:15:22 -0700 (PDT) Received: from ards-mac-mini.local (cag06-7-83-153-85-71.fbx.proxad.net. [83.153.85.71]) by mx.google.com with ESMTPSA id bs15sm13032515wib.10.2013.10.13.05.15.21 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 13 Oct 2013 05:15:21 -0700 (PDT) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Subject: [RFC v3 PATCH 7/7] lib/raid6: port NEON implementation to updated kmode NEON api Date: Sun, 13 Oct 2013 14:15:03 +0200 Message-Id: <1381666503-23726-8-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1381666503-23726-1-git-send-email-ard.biesheuvel@linaro.org> References: <1381666503-23726-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131013_081544_356666_75A9324C X-CRM114-Status: UNSURE ( 8.65 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: catalin.marinas@arm.com, Ard Biesheuvel , linux@arm.linux.org.uk, nico@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ard Biesheuvel --- lib/raid6/neon.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/raid6/neon.c b/lib/raid6/neon.c index 36ad470..172b53f 100644 --- a/lib/raid6/neon.c +++ b/lib/raid6/neon.c @@ -13,8 +13,8 @@ #ifdef __KERNEL__ #include #else -#define kernel_neon_begin() -#define kernel_neon_end() +#define kernel_neon_begin(s) +#define kernel_neon_end(s) #define cpu_has_neon() (1) #endif @@ -33,12 +33,13 @@ static void raid6_neon ## _n ## _gen_syndrome(int disks, \ size_t bytes, void **ptrs) \ { \ + DEFINE_NEON_REGSTACK(s); \ void raid6_neon ## _n ## _gen_syndrome_real(int, \ unsigned long, void**); \ - kernel_neon_begin(); \ + kernel_neon_begin(s); \ raid6_neon ## _n ## _gen_syndrome_real(disks, \ (unsigned long)bytes, ptrs); \ - kernel_neon_end(); \ + kernel_neon_end(s); \ } \ struct raid6_calls const raid6_neonx ## _n = { \ raid6_neon ## _n ## _gen_syndrome, \