From patchwork Tue Jun 21 13:35:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miko Larsson X-Patchwork-Id: 12889305 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9BFBC433EF for ; Tue, 21 Jun 2022 13:37:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351771AbiFUNhI (ORCPT ); Tue, 21 Jun 2022 09:37:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350729AbiFUNgj (ORCPT ); Tue, 21 Jun 2022 09:36:39 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99BB42CC82; Tue, 21 Jun 2022 06:35:29 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id g4so10047675lfv.9; Tue, 21 Jun 2022 06:35:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kzAosVTA9b9PugXkA4Upw/+iMo4tmsufzeUut4m9uC0=; b=E5fJoQH/G+nmrT3zZKHouHp23ouJ1Q1Nztd0CggUcBII8aM3q7AbcJ2TrvvvoTHwa8 4/W02HElN7Y8ZxttJFL0Kc9dMzeSj/Eg9CuxpJEmAudpg6vOGag1eVdl8yx01Po13qCZ oTu8JSVTJ4H+3p6PWXYLJxIR8y+DmGvS3gRAmYe/B7AhTJH8fdq1DViFNJv1aPYCAZTQ S/4w320UFZ9xNGKmRqwGTPlHscewaIFiNgfq1HNac2NyJ90NL0BIfTk5klk9FzyZvXfI wfu7ZZjC0JDT7zjDRUccLRyCnYWI+NLU14cEKZNW09IjcoxQxnmGu0yVh3uKHFCdoBj4 q/ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kzAosVTA9b9PugXkA4Upw/+iMo4tmsufzeUut4m9uC0=; b=ra3aNVtHCCjH3wHRXxDYHbub1mk4t7+K8c9+R5mDiWaBpwZ/j3eHMsqwQb7v4sXD/a wg2uJDb8tq++S3/uGMaycFah97r76gpKsXFJZSAP9hHio8iZzLDwW5cUhe7q+zyfeyMh 5nhu0+eFi4vcFitzGCX3odcYkGRRPpRMgOBe42tZFt0n39oHil2WwbiDro5zVur3zmC6 HWGLXAlqAx3MshFW0GnTwdddqL3vRD30RohrFgtMuHMWZGct4RyqjxrOqUqydOpSJAGg 0BVolAQ3/vZLk4T/UFCDYqw48t3XHjSwLPp4fccSoLGE5gZniu8aHM4XgBbI09FeDjwW SwCQ== X-Gm-Message-State: AJIora+3B4lUr/fHOFKGCibkuy8FwMfDs9+uFbfgTexj87HlTNat+icE 63TDJESE4MdEXekMYPvPxvAQM9f4/UOQPPUW X-Google-Smtp-Source: AGRyM1vEh8l3dmR/pm7rQ2srim+u6z+RnxxX8uX8BXWCQpknShwN6WzuxVUV2RY8vGWNiZDz4y1+Pg== X-Received: by 2002:a05:6512:e9d:b0:478:fc65:328c with SMTP id bi29-20020a0565120e9d00b00478fc65328cmr16821362lfb.312.1655818527696; Tue, 21 Jun 2022 06:35:27 -0700 (PDT) Received: from sakura.myxoz.lan (2-248-181-228-no2390.tbcn.telia.com. [2.248.181.228]) by smtp.gmail.com with ESMTPSA id a16-20020a19ca10000000b00478a8b7ab1csm347142lfg.150.2022.06.21.06.35.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jun 2022 06:35:27 -0700 (PDT) From: Miko Larsson To: linux-kernel@vger.kernel.org Cc: Miko Larsson , linux-kbuild@vger.kernel.org, x86@kernel.org, Nathan Chancellor , Vlastimil Babka , Nick Desaulniers , Thomas Gleixner , Sebastian Andrzej Siewior , Sean Christopherson , "Gustavo A. R. Silva" , Arnd Bergmann , Chris Down , Dmitry Torokhov , John Ogness , Elliot Berman , Oleksandr Natalenko Subject: [PATCH 1/2] Kconfig: Mark -O3 as experimental Date: Tue, 21 Jun 2022 15:35:25 +0200 Message-Id: <20220621133526.29662-2-mikoxyzzz@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220621133526.29662-1-mikoxyzzz@gmail.com> References: <20220621133526.29662-1-mikoxyzzz@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Mark -O3 as experimental, as it might cause unwanted regressions for users. Signed-off-by: Miko Larsson --- init/Kconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init/Kconfig b/init/Kconfig index c7900e897..9c292acb2 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1402,12 +1402,15 @@ config CC_OPTIMIZE_FOR_PERFORMANCE helpful compile-time warnings. config CC_OPTIMIZE_FOR_PERFORMANCE_O3 - bool "Optimize more for performance (-O3)" + bool "Optimize more for performance (-O3) (EXPERIMENTAL)" depends on ARC help Choosing this option will pass "-O3" to your compiler to optimize the kernel yet more for performance. + This option is EXPERIMENTAL; you may encounter compiler bugs and/or + kernel bugs with this option enabled. + config CC_OPTIMIZE_FOR_SIZE bool "Optimize for size (-Os)" help From patchwork Tue Jun 21 13:35:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miko Larsson X-Patchwork-Id: 12889306 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77502C43334 for ; Tue, 21 Jun 2022 13:37:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349510AbiFUNhJ (ORCPT ); Tue, 21 Jun 2022 09:37:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351251AbiFUNgm (ORCPT ); Tue, 21 Jun 2022 09:36:42 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B9CB23BED; Tue, 21 Jun 2022 06:35:30 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id c2so22463396lfk.0; Tue, 21 Jun 2022 06:35:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=V/pJJPQHdhr1X6GXakjW2t24XxjC4Wm3mry4MS1kuhQ=; b=A15lnbTyDN1bihZ3NQjR7koVWIn2pcEyi8IoNnhoJJ0ZU9wNrzK6b/HeRmq2pTjkeS j0Pz3mZSsEmiOJ81pm7Fm2QQXQ3HUdbIrn55z1AenbwTXA0C0pTnM70DYMPFgnKbwX1P agWj6P5CVYesSSQfOia7DbM4846Swcrq1mVwVbUQDcdynEn31M0Rw1nxGvl5sBXKwWPc pu96WalvEnGSpe1uTDuhfo+8gcnpY30SUHlJx/xZOOAZeYaaxTRqTCR6HNs5/OUmax/A oog57eN5yqGmp5YJnb3hXYNKkrDBQNKy9yNmutBV9z4cYryIHHnVL4Z/BfyaPgbzk6mB cWuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=V/pJJPQHdhr1X6GXakjW2t24XxjC4Wm3mry4MS1kuhQ=; b=p25OGoTOaAy84nFm53dzQosgUK1nmGEUXkV2v0/GVNuemHleepJhM1ceaN12PDMUEv 8i+75OJWH5rlPzU/N4KOtEaXUsjcuRW8reVEEfyWIgt7IWFT0s0W7QbQwLyIG7jyEFoP QNS1yzPxc9eAPWnqJuNjmdDICDdS5OgyTxO5K4O26Aj26Dm0QBS7SOYs08txm51MgBTr ow0doXfIYLht8ZkpH2pmEFWNX99+/EknUJvWvyt8Xkwx5VHflKlhOe6vTPNLmKt1FW8p owjuWbx8hXWPlJXbu5f+STDNSD+/XcHeD8E1dGFtEc0Ial5jNzLJ/dT86/K+Cv1m8k1K OLPw== X-Gm-Message-State: AJIora+HDjqS0o+6mSCa3SswfbIHC/BkrzV8IobqI1webhESOe+81quP ELznHECm9v3Qt61lgSWGZS5rmyGaaSe8f5C9 X-Google-Smtp-Source: AGRyM1uOgvRC1Qe3dwS8TCGpEsJjmszOrkvZDUBMkFfrk8xoVEiNxsbB7lk2+ejP577wC8Ag0t5lmA== X-Received: by 2002:a05:6512:22cf:b0:47f:7b38:73e7 with SMTP id g15-20020a05651222cf00b0047f7b3873e7mr2651904lfu.523.1655818528591; Tue, 21 Jun 2022 06:35:28 -0700 (PDT) Received: from sakura.myxoz.lan (2-248-181-228-no2390.tbcn.telia.com. [2.248.181.228]) by smtp.gmail.com with ESMTPSA id a16-20020a19ca10000000b00478a8b7ab1csm347142lfg.150.2022.06.21.06.35.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jun 2022 06:35:28 -0700 (PDT) From: Miko Larsson To: linux-kernel@vger.kernel.org Cc: Miko Larsson , linux-kbuild@vger.kernel.org, x86@kernel.org, Nathan Chancellor , Vlastimil Babka , Nick Desaulniers , Thomas Gleixner , Sebastian Andrzej Siewior , Sean Christopherson , "Gustavo A. R. Silva" , Arnd Bergmann , Chris Down , Dmitry Torokhov , John Ogness , Elliot Berman , Oleksandr Natalenko Subject: [PATCH 2/2] Kconfig: Allow -O3 for all architectures Date: Tue, 21 Jun 2022 15:35:26 +0200 Message-Id: <20220621133526.29662-3-mikoxyzzz@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220621133526.29662-1-mikoxyzzz@gmail.com> References: <20220621133526.29662-1-mikoxyzzz@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org This commit allows all architectures to use the experimental -O3 optimization option. Previously, only ARC was allowed to use this option. Signed-off-by: Miko Larsson --- init/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/init/Kconfig b/init/Kconfig index 9c292acb2..b88613cb5 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1403,7 +1403,6 @@ config CC_OPTIMIZE_FOR_PERFORMANCE config CC_OPTIMIZE_FOR_PERFORMANCE_O3 bool "Optimize more for performance (-O3) (EXPERIMENTAL)" - depends on ARC help Choosing this option will pass "-O3" to your compiler to optimize the kernel yet more for performance.