Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3227944rwb; Fri, 16 Dec 2022 11:50:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXvPpS5Z3rmTJmpfZ1hyJy0tJC4HUtjgQHB7UY7NEq1Lm7xzFlIeGDKlMSIgmvasFTJXkwvF X-Received: by 2002:a05:6402:1619:b0:472:473c:eeba with SMTP id f25-20020a056402161900b00472473ceebamr9865063edv.16.1671220237946; Fri, 16 Dec 2022 11:50:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671220237; cv=none; d=google.com; s=arc-20160816; b=wiWfXONBypHttWrhh0XF5DX7asS1dwlZdc5jz3l0yRn+Gd0PFQOyY3CuInjqiJ9Hr5 69byoM3ENeTBloB3mXCV+qttZfDECw0pwaVNcwhhZJYJ8MLTmUtNIHytDqRI0lW3RAyM ku6GIVGzcdbG/9JfnTeDHpsp3czcMNRyOpV+pAEK9GuT11+q1e5+B5P2+0Rz6ulqBZd6 wnSPb8t3uzilvpPXnJi6VoQFIRocENABgucx2ZSQ1Ir7MGFfjp1JOSZ/FUPImE4KMLJz A+XaiwQ8dQnZY9MQ5wDoXYKfK3Y0uWCAxK6J3wbG611cnKeFPLE54flcToR5ij/mP1k3 a0Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:references :in-reply-to:subject:cc:to:from:date:mime-version; bh=JIlGjrzjAMIvfeJQ0xhoFPjzMwqQY6QE0koR/vFAiWk=; b=iP2kxP41D9JZyYsw6eNuqSGRZs1RVkZMMiTOxExd3R0zDMCP0l3saY94PQwJekS+Hh zokSqZrz85KSTJuNtcFxHZ4hynFcn/kSyPany1AdUeKE4paYCHyHOVLZwDTRAb+zbgg+ 7zbSepuufQzRH6IHaUT+FvIXwv2z0YSRZgh/weBe1VBOSj0CXMEyZb6f2a/fsN6V4AcL 71k+ts3QHbSi8hc/73kSQHY5/MXG7+az3+gf6krzLe1txvu5W+H2wLdpYzEB/lZMrk1I YD40Z+UpYWaCiUYp+Z/wcJuGlGbWSe57T09oDHjz8mPTGtFqR5S9Ytri2/cry4SIgpo8 GL4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u20-20020aa7d0d4000000b00469af6681b1si2773905edo.183.2022.12.16.11.50.21; Fri, 16 Dec 2022 11:50:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232014AbiLPTpd (ORCPT + 70 others); Fri, 16 Dec 2022 14:45:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbiLPTpb (ORCPT ); Fri, 16 Dec 2022 14:45:31 -0500 Received: from imap5.colo.codethink.co.uk (imap5.colo.codethink.co.uk [78.40.148.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C423F02D for ; Fri, 16 Dec 2022 11:45:29 -0800 (PST) Received: from [78.40.148.178] (helo=webmail.codethink.co.uk) by imap5.colo.codethink.co.uk with esmtpsa (Exim 4.94.2 #2 (Debian)) id 1p6Ge1-00BQ4s-8w; Fri, 16 Dec 2022 19:45:21 +0000 MIME-Version: 1.0 Date: Fri, 16 Dec 2022 19:45:21 +0000 From: Ben Dooks To: Saleem Abdulrasool Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] riscv: avoid enabling vectorized code generation In-Reply-To: <20221216185012.2342675-1-abdulras@google.com> References: <20221216185012.2342675-1-abdulras@google.com> Message-ID: <39636675da60fc6c54cc8bbab64ddbac@codethink.co.uk> X-Sender: ben.dooks@codethink.co.uk Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-12-16 18:50, Saleem Abdulrasool wrote: > The compiler is free to generate vectorized operations for zero'ing > memory. The kernel does not use the vector unit on RISCV, similar to > architectures such as x86 where we use `-mno-mmx` et al to prevent the > implicit vectorization. Perform a similar check for > `-mno-implicit-float` to avoid this on RISC-V targets. I'm not sure if we should be emitting either of the vector or floating point instrucitons in the kernel without explicitly marking the section of code which is using them such as specific accelerator blocks. -- Ben