From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DF250C54E94 for ; Wed, 25 Jan 2023 19:56:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:References:To:From:Subject: Cc:Message-Id:Date:Mime-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0nD2uX2YiE5vAcChl7/tytgmTOfNMinkLso6fgtVa2o=; b=fD5gZOyM+ZRfIB NxD8I6mFAqveT+TYZpss/N0f56ujf1Q0FLryCVOyFHSku8jFkiI2EKilJY74x4vNkvWTsDWtMuMY2 sFZgRJBC5q4BCCZMggOxsx4VdfSslT8ValcHhKjMZJtZ48tgoBEw2E6zZK9p6Cx04PmSrQoLkCZRS /KiOEiQwAM5rgqpoNaM23QX+dJlGjn1U9KP+j+/Q6nRzs2+XgmZMyYepuf3iRFrskkciAUToHTc70 cTDn8h3KedL1t6vLRaCFRi/BgzmmkuACZoe/O5A2Df8qrEMG4lQMbAM68kuUC7H9hVW9aHRhRJS6I quGIGmSbRVHM4xhDQNIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKls6-008Vpi-4A; Wed, 25 Jan 2023 19:55:50 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKls1-008VnG-RO for linux-arm-kernel@lists.infradead.org; Wed, 25 Jan 2023 19:55:48 +0000 Received: by mail-ej1-x632.google.com with SMTP id tz11so50715349ejc.0 for ; Wed, 25 Jan 2023 11:55:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=UOl9PjUfPHf2zE8mHzj4/btM+NtpuXAGnr0FmOz57aM=; b=qtR7LXkirl6wKBCPEVNammusJ1qhrw6PE/SMr7n2DjetQbgFH4ZD5X/YB8tWUjJY6W gSkY9UVlDNkoqLVXenvwxW+5FWvqXy6oJh9b4jY8vNf6rYNyr1pcSGMBPe3gz8ggq9mn GLnkXwp189tN3i3gCCIxPMVo+8Mgll+wxuRLb6M9nABoRJADWKIFDnIWFt4Wh6OdMP7E nZZVZAReNWb5shGFdWNqJ2N+vlaxvaWx8gsy/eiC2OYZdCeS1VKi6yUmFu6J1sBp0wJa ZOZZSlFJj2YT5F7X3O1FeIGuAiq/ubu8XOXc+65M4RYNhgiy8ASu67QwSjQFsz+IVQPb lx/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=UOl9PjUfPHf2zE8mHzj4/btM+NtpuXAGnr0FmOz57aM=; b=nojx5dicabGPBCgH7nqbCJaJ/flw54xVvG+rdC6A7jDdNR9lr1gksg/n2kZ6L+sZhN mC8Bb6I4SCW1PqB9F/Hx5DHmSqlaFon/MVJ8AZ+G/6e91V2GBja7vrGS+4DJKlWq83NF HB+TdzaplnJkDFBVvYKPV832hNJEAgAjtkefxW1LmqGvyuJwhlrMMPpoKn+rWO+kvo0n mspN4oPUTeLQIMCkMkt7CGs7uLKtX1dWWA28d6d2s7RYCVUTH60CkCeHjV6UCb3Pwr+7 NIrVIrboDmqiUWWqJxD43KsAWwUENxZbtgMsfDtuo6IUtOcgxCjTzSlDEyo/2ORVDO2+ ZpxQ== X-Gm-Message-State: AFqh2kpzollUqr2Ye7l0w+F5QqsQdSChNIeKun0bFZL+mGo9l1WtwFTh if/VI4nkPKFr5b96+F2jN60= X-Google-Smtp-Source: AMrXdXuQTsi8pGKM8DrgwVFAaBNyjOfQn8TQSclyvogC3V7lDj0iyGtKFn8QSaFX4fpE7h1Go20EGQ== X-Received: by 2002:a17:906:d8a8:b0:84b:b481:6188 with SMTP id qc8-20020a170906d8a800b0084bb4816188mr31605315ejb.64.1674676544429; Wed, 25 Jan 2023 11:55:44 -0800 (PST) Received: from localhost ([2001:b07:5d37:537d:484e:dc99:ec59:4292]) by smtp.gmail.com with ESMTPSA id h12-20020a17090634cc00b008717a377125sm2769533ejb.85.2023.01.25.11.55.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Jan 2023 11:55:43 -0800 (PST) Mime-Version: 1.0 Date: Wed, 25 Jan 2023 20:55:42 +0100 Message-Id: Cc: "Miguel Ojeda" , "Catalin Marinas" , "Will Deacon" , Subject: Re: [PATCH 3/3] arm64: rust: Disable neon and fp target features. From: "Vincenzo Palazzo" To: "Jamie Cunliffe" , , X-Mailer: aerc 0.8.2 References: <20230125163739.3798252-1-Jamie.Cunliffe@arm.com> <20230125163739.3798252-4-Jamie.Cunliffe@arm.com> In-Reply-To: <20230125163739.3798252-4-Jamie.Cunliffe@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230125_115545_926604_A8748BF1 X-CRM114-Status: GOOD ( 14.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed Jan 25, 2023 at 5:37 PM CET, Jamie Cunliffe wrote: > Disable the neon and fp target features to avoid fp & simd > registers. The use of fp-armv8 will cause a warning from rustc about > an unknown feature that is specified. The target feature is still > passed through to LLVM, this behaviour is documented as part of the > warning. This will be fixed in a future version of the rustc > toolchain. > > Signed-off-by: Jamie Cunliffe Reviewed-by: Vincenzo Palazzo > --- > arch/arm64/Makefile | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile > index b53ab6aa2dfe..33ae20fc3f56 100644 > --- a/arch/arm64/Makefile > +++ b/arch/arm64/Makefile > @@ -41,6 +41,8 @@ KBUILD_CFLAGS += -mgeneral-regs-only \ > KBUILD_CFLAGS += $(call cc-disable-warning, psabi) > KBUILD_AFLAGS += $(compat_vdso) > > +KBUILD_RUSTFLAGS += -C target-feature="-neon,-fp-armv8" > + > KBUILD_CFLAGS += $(call cc-option,-mabi=lp64) > KBUILD_AFLAGS += $(call cc-option,-mabi=lp64) > > -- > 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel