Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2434834imm; Sat, 29 Sep 2018 19:35:14 -0700 (PDT) X-Google-Smtp-Source: ACcGV63yy4ENcLJk18RDV0qB47sU8PSaQJNGHDvU7/rvEBO5LFB45AOTGAozv0nmr/seZkvIgqjY X-Received: by 2002:a63:d502:: with SMTP id c2-v6mr4866397pgg.324.1538274914357; Sat, 29 Sep 2018 19:35:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538274914; cv=none; d=google.com; s=arc-20160816; b=1EbCXptnRayVXyDLyOvi63Biyj1i/JZiSg1HDTrE/Ylzlp/fYye+NS8QDZvX7KGmpF ptj/SWXxLEEFXJEH8unLkqGRFa0Bg4NwXBRhvROwYZECbs69dWTxLakPz+T4kjorDcR0 YCQz/dXsEhp/vZx0GDKLCqP33+cjb+lqAJZmrqRjf0rHc0u5PZzBnkeQMNCXF/6qT+lS yoCwMSRYlp/0s4x69z+CfJPmQKjC+RhIceM6rbr+TB0yYWCgUx8lSEeIVPZymDgialPd GyRqyMPZch1dI2wwAJrSK3R/xHWFQewK5kYxoPv0Mes8bgo+O0t3rvfaZqG/4bmN2EXu veNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fJJI9zbw6kfOJzp20zWlPrlIroOC+ng6Zrxk74lpMFQ=; b=JpkUaR0StRQe4fhFcZPQq6C0X+aY7DZUyOhd5pWEpNODZedsvbkU0b/84FfxuJvwgq oskJeKhmeS0N+dgLdb2YlWHGhfGgvlZUJgZZnYE95IcSisWK4oy48M6Do2pIMBk3i9N/ i0LyUPOd1vmwvhzjSWcqRtteh5vY7mY9ZFgWpFSpPrSjHeeghi7QR05wFH0dEIkEYH/w 3+wRZrZ5HAHiXXjy4gFwifJXlIShvMTAqbn54PopxUlEvuj5FqbjStn0jo/W05wVchTQ Lx7z9XkKlzDOh6XJ99XmPqVE91osePgdnon8RDGzLGF8+JxZ/MJlbSHShMHO9N57rOes 4TOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=VIvyzsiz; 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 o2-v6si4799908pgj.111.2018.09.29.19.34.59; Sat, 29 Sep 2018 19:35:14 -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=VIvyzsiz; 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 S1727631AbeI3JEf (ORCPT + 99 others); Sun, 30 Sep 2018 05:04:35 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:46249 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726348AbeI3JEf (ORCPT ); Sun, 30 Sep 2018 05:04:35 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 8778f682; Sun, 30 Sep 2018 02:14:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; s=mail; bh=mphiti1i2w2NgrTtpzTMRK1yooE=; b=VIvyzs izujXT1nObdVz//WAUr6bL5mK7RB6+rfGRyRpY1RQR05Ot6pKCnQD2LSw+zLFZgt 8umcU1Do9h0GGzlu8pdt53u1Per4pEvgWKKHl53EfiEnLtzeuUq2qQ/soawpb+gZ SmFh09Ov7rWR3W75GEyqB0ZtRCmUR3qXPhdNBGLndJCFJ6sPUX2Cpg1chO6TrKuR /jgdHqwOTJXPybCRNd5h96MyZywI6s3CAt/IaSqzVLgcYRd71gGmPkofenrj+GMo oKfYy6cz5iC6MMnukW2dzF9Y1fx9ew5oFK99q5KV+ifVlrlIU1CYUO64EvHMlN63 VXTCCO+1U7LG54Gg== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 372a8dde (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO); Sun, 30 Sep 2018 02:14:33 +0000 (UTC) Received: by mail-oi1-f181.google.com with SMTP id d63-v6so8489100oic.12; Sat, 29 Sep 2018 19:33:32 -0700 (PDT) X-Gm-Message-State: ABuFfoj0UryJabTzb6a5yB/TSKRPCt5g+k25SZcD5FCrnnknf/0FzpdK e7HQJ0exnK2CqrgiseOFSilP/NHjSnZddsBPKng= X-Received: by 2002:aca:d489:: with SMTP id l131-v6mr2265429oig.15.1538274811561; Sat, 29 Sep 2018 19:33:31 -0700 (PDT) MIME-Version: 1.0 References: <20180925145622.29959-1-Jason@zx2c4.com> <20180925145622.29959-8-Jason@zx2c4.com> In-Reply-To: From: "Jason A. Donenfeld" Date: Sun, 30 Sep 2018 04:33:20 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next v6 07/23] zinc: ChaCha20 ARM and ARM64 implementations To: Ard Biesheuvel Cc: LKML , Netdev , Linux Crypto Mailing List , David Miller , Greg Kroah-Hartman , Samuel Neves , Andrew Lutomirski , Jean-Philippe Aumasson , Russell King - ARM Linux , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ard, On Sat, Sep 29, 2018 at 8:16 AM Ard Biesheuvel wrote: > > You mean to say that since these nobs are def_bool y and are > > essentially "depends on ARM", then I should just straight up use > > CONFIG_ARM? I had thought about this, but figured this would make it > > easier to later make these optional or have other options block them > > need be, or even if the dependencies and requirements for having them > > changes (for example, with UML on x86). I think doing it this way > > gives us some flexibility later on. So if that's a compelling enough > > reason, I'd like to keep those. > > Sure. But probably better to be consistent then, and stop using > CONFIG_ARM directly in your code. Ack. > > The reason it was added was indeed because of: > > https://lists.01.org/pipermail/kbuild-all/2018-September/053114.html > > -- exactly what you suspected, ARCH_RPC. Have a better suggestion than > > !CPU_32v3? > > Yes, you could just add > > asflags-$(CONFIG_CPU_32v3) += -march=armv4 > > with a comment stating that we don't actually support ARMv3 but only > use it as a code generation target for reasons unrelated to the ISA Alright, I'll do exactly that. Though, if the rationale for this has to do only with codegen -- with what the C compiler does -- then shouldn't this be set globally for CONFIG_CPU_32v3? I couldn't find any macros that test against __LINUX_ARM_ARCH__ being 3 in the assembly, so this shouldn't be a problem I don't think. Maybe I'll send a patch. Jason