From patchwork Thu Oct 18 14:56:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jason A. Donenfeld" X-Patchwork-Id: 149152 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp2083846lji; Thu, 18 Oct 2018 07:57:40 -0700 (PDT) X-Google-Smtp-Source: ACcGV61XVDmqZpigCoMLCAe3z5QTCOzUTJptVI7WzuJrrYS4Gwvgw45vHBwPrMX0wvISQ/fgy4JR X-Received: by 2002:a62:5982:: with SMTP id k2-v6mr30168634pfj.180.1539874659754; Thu, 18 Oct 2018 07:57:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539874659; cv=none; d=google.com; s=arc-20160816; b=Y9ejDv6bVsZgA91PMDelcMOi8wQvwSK1bCFx6lVWMsjSsNEORJxHbMVnll41BO7WG6 QI7R0cZSicb+kFmZencGBxTpKT22F7f2sfNGsFVjXQ4cJcGYBNS3E52SvZ/GRcnohCkj khNqa8l1uNkbHoUjXlJyVwuhLoUTFur8X1GjH+UyDrI0JgVAUopDNnmGBIgjZe/S/avD 1m2sWhXucp9y4G4IlZ9cfVQC/QI2zUZ1Z1oqMcp3Mz1IKvo3UTRiR4UcQxDgBYfPzKyn h1KYkaDOg5ZABFvWfGiXs6zz1XRaE2QO8WMjQUEoZUXKgYP5tCQRwmEpiPzwYGXDQVtW PqUA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=w5QCz/Mt0NXpNVtMN/9vtq5vUemhsObCDfjJH401RWQ=; b=hXYCcNNzw4n6pqNmtzLWukk23hAuvA2DpuK7HKTwOqPgG3WhPhFXIHdsLbwcRYTMVj FyGxtGOx+PAHDfnh70gNzzzThqPKXbD6Ri+X4+3XJMWRO3iG7Diw90DNi1qEAbNRhtC4 JUySY+s54WQUho0kJZ2u5unzsmE1umUmSPl8L94fFTv5qbMIAqgRIR8ZgdwcsL3TCnUc 4hCmjkGWWbUzpLnNbVIY23U6dqnrzt7eKpfcFwJZ+pBSRQB/VxWiYAAdBffKqu0awq9A LFwb8Xn2ru1+UMSUAirYFXzgk57HMX/EiyWg5bhtUJ0i9uHzn96hjiUKHR+xjcF4zOei cb8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=hfOcOwyA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i72-v6si21294919pfe.224.2018.10.18.07.57.39; Thu, 18 Oct 2018 07:57:39 -0700 (PDT) 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=pass header.i=@zx2c4.com header.s=mail header.b=hfOcOwyA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727986AbeJRW7A (ORCPT + 32 others); Thu, 18 Oct 2018 18:59:00 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:46347 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726816AbeJRW67 (ORCPT ); Thu, 18 Oct 2018 18:58:59 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 6f6b3f04; Thu, 18 Oct 2018 14:55:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=mail; bh=ONxB0XP9Yn5tIjT3u3An/COyc Jk=; b=hfOcOwyADrLvmwpMbP51DiNlBWlkKgpGQtXvU69aYhayNdsIa4ox25Q85 UqeDmnPuNN0EcFzY42C/LRai22vpxyrI1JZlS36o+UDKnjizB+fmps2iobZifpIS vIf33HKMSTgAqpqUWoKYWl0E6ZcBnMHLMP5TdU4ToefcmdDqEFETRMsG7R928lwB qo8qeWz/r+dRmiYt6XQ5hxcTdwjWjCS2LAhKSe6HBfXfbZuvQ9GVGHp8ceT0Re3C bmFNePIhJi4PGClTu3HDRfMXXUxvPJB8I2LPG6NvBjJSDKvt96scvyVjiejokZyM AORh8kj+lJ9kWaVEdcrI3ItDhD0cg== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id a3718c39 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 18 Oct 2018 14:55:33 +0000 (UTC) From: "Jason A. Donenfeld" To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-crypto@vger.kernel.org, davem@davemloft.net, gregkh@linuxfoundation.org Cc: "Jason A. Donenfeld" Subject: [PATCH net-next v8 01/28] ARM: makefile: use ARMv3M mode for RiscPC Date: Thu, 18 Oct 2018 16:56:45 +0200 Message-Id: <20181018145712.7538-2-Jason@zx2c4.com> In-Reply-To: <20181018145712.7538-1-Jason@zx2c4.com> References: <20181018145712.7538-1-Jason@zx2c4.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The purpose of CONFIG_CPU_32v3 is to avoid ldrh/strh on the RiscPC, which is pretty much an ARMv4 device, except its bus will choke on the half-words. The way to make the C compiler not output ldrh/strh is with -march=armv3, which doesn't support them in the ISA. However, this prevents certain cryptography code from working that uses instructions like umull. Fortunately there's also -march=armv3m that does support those, making it possible to continue assembling optimized cryptography routines for our beloved RiscPC. Signed-off-by: Jason A. Donenfeld --- Notes: This commit has been submitted to the proper ARM tree and is working its way upstream. It's included in this series here so that kbuild 0-day bot doesn't get too nervous about RiscPC, but is already entering the tree through arm-next. arch/arm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.19.1 diff --git a/arch/arm/Makefile b/arch/arm/Makefile index d1516f85f25d..7fd4bcaf0721 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -74,7 +74,7 @@ endif arch-$(CONFIG_CPU_32v5) =-D__LINUX_ARM_ARCH__=5 $(call cc-option,-march=armv5te,-march=armv4t) arch-$(CONFIG_CPU_32v4T) =-D__LINUX_ARM_ARCH__=4 -march=armv4t arch-$(CONFIG_CPU_32v4) =-D__LINUX_ARM_ARCH__=4 -march=armv4 -arch-$(CONFIG_CPU_32v3) =-D__LINUX_ARM_ARCH__=3 -march=armv3 +arch-$(CONFIG_CPU_32v3) =-D__LINUX_ARM_ARCH__=3 -march=armv3m # Evaluate arch cc-option calls now arch-y := $(arch-y)