From patchwork Fri Apr 5 22:50:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Burton X-Patchwork-Id: 10887931 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 48D4E922 for ; Fri, 5 Apr 2019 22:50:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 26A5128A4E for ; Fri, 5 Apr 2019 22:50:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1938C28B35; Fri, 5 Apr 2019 22:50:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC93E28A4E for ; Fri, 5 Apr 2019 22:50:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726387AbfDEWuj (ORCPT ); Fri, 5 Apr 2019 18:50:39 -0400 Received: from mail-eopbgr740120.outbound.protection.outlook.com ([40.107.74.120]:4924 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726206AbfDEWuj (ORCPT ); Fri, 5 Apr 2019 18:50:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavesemi.onmicrosoft.com; s=selector1-wavecomp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AWdQyE4NWb82Aahva76qEhK/y1svkWEIMIlo8/ry+ec=; b=Dv8rRivIp2N8VikWfJrL6XpOF02JD4ti74yVX3m3YXKXmoFfIoMUc+vsDMvg/daWkFTrx+gIgx43X/1gl9oB/g3V1NygE7BmVORBMH9yNxOYA3u3R3VLzmtMRg464vKuAXzHc4TVR5idwoVzCJs7sRysiFxe9eaOTH0A3/eSAkQ= Received: from MWHPR2201MB1277.namprd22.prod.outlook.com (10.174.162.17) by MWHPR2201MB1278.namprd22.prod.outlook.com (10.174.162.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.22; Fri, 5 Apr 2019 22:50:35 +0000 Received: from MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::b9d6:bf19:ec58:2765]) by MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::b9d6:bf19:ec58:2765%7]) with mapi id 15.20.1771.016; Fri, 5 Apr 2019 22:50:35 +0000 From: Paul Burton To: "linux-mips@vger.kernel.org" CC: Paul Burton Subject: [PATCH 1/3] MIPS: jump_label: Remove redundant nops Thread-Topic: [PATCH 1/3] MIPS: jump_label: Remove redundant nops Thread-Index: AQHU7AH7CwG3ZcEkaU69Sdva8A7leg== Date: Fri, 5 Apr 2019 22:50:35 +0000 Message-ID: <20190405225014.15236-1-paul.burton@mips.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR05CA0079.namprd05.prod.outlook.com (2603:10b6:a03:e0::20) To MWHPR2201MB1277.namprd22.prod.outlook.com (2603:10b6:301:24::17) authentication-results: spf=none (sender IP is ) smtp.mailfrom=pburton@wavecomp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.21.0 x-originating-ip: [67.207.99.198] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c3acfb56-024c-4311-ae17-08d6ba191d6f x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328)(7193020);SRVR:MWHPR2201MB1278; x-ms-traffictypediagnostic: MWHPR2201MB1278: x-microsoft-antispam-prvs: x-forefront-prvs: 0998671D02 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39840400004)(366004)(376002)(346002)(396003)(136003)(189003)(199004)(486006)(305945005)(8936002)(105586002)(14454004)(25786009)(52116002)(2351001)(476003)(44832011)(6512007)(2616005)(81166006)(53936002)(186003)(5640700003)(107886003)(99286004)(81156014)(4326008)(316002)(26005)(7736002)(8676002)(5660300002)(2501003)(50226002)(386003)(102836004)(42882007)(2906002)(106356001)(97736004)(66066001)(36756003)(1076003)(6436002)(71190400001)(6506007)(6916009)(478600001)(256004)(3846002)(6116002)(6486002)(71200400001)(68736007);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR2201MB1278;H:MWHPR2201MB1277.namprd22.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: wavecomp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: U3S3Bg9uuPAMre6hRQ5jHoLy66FULMQ+6006P1yInS+OMa/FWLbhQsbNadJHKkxR43geoZ3vEoXXThkg6Kh96KBGi4IZ8Ee4aExI2A8lGbhj6zk+FAoVlChuf6OlDkk5r7222kKA/auymArlB4yzhNk+VqVESdaKLqJabLGUrLC8Hxs3Hm3+8OZ5Hf8H79Wg6FXcbB6WH+04PHPTYntH2b+nEz429dZwuhKB1cW8PxYnq4sHHyZ5BZ6eMgdAKf/cqQg6oUjtN8GSVL7fe5NVCCd88af4Mgyvl4Ul7T6RrhHjYe2tQivLpJLqjufHqLUUz+BYYPH8dZ8QFsn6j6wSWlpCezZ66dV2xcoTGcwM7mzn4W/REt9JDCB7pHmts8Xft9GBLGEA/gAATxBAVqllsM7vSYUTCBgl5mxsF3VYWho= MIME-Version: 1.0 X-OriginatorOrg: mips.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3acfb56-024c-4311-ae17-08d6ba191d6f X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Apr 2019 22:50:35.5154 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 463607d3-1db3-40a0-8a29-970c56230104 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR2201MB1278 Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Both arch_static_branch() & arch_static_branch_jump() emit a control transfer instruction (ie. branch or jump) without disabling assembler re-ordering. As such the assembler will automatically fill their delay slots. Both functions follow their branch or jump with an explicit nop that at first appears to be there to fill the delay slot, but given that the assembler will do that the explicit nops serve no purpose & we end up with our branch or jump followed by 2 nops. Remove the redundant nops. Signed-off-by: Paul Burton --- arch/mips/include/asm/jump_label.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/mips/include/asm/jump_label.h b/arch/mips/include/asm/jump_label.h index e4456e450f94..df04449b261b 100644 --- a/arch/mips/include/asm/jump_label.h +++ b/arch/mips/include/asm/jump_label.h @@ -29,7 +29,7 @@ static __always_inline bool arch_static_branch(struct static_key *key, bool branch) { asm_volatile_goto("1:\t" B_INSN " 2f\n\t" - "2:\tnop\n\t" + "2:\t.insn\n\t" ".pushsection __jump_table, \"aw\"\n\t" WORD_INSN " 1b, %l[l_yes], %0\n\t" ".popsection\n\t" @@ -43,7 +43,6 @@ static __always_inline bool arch_static_branch(struct static_key *key, bool bran static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) { asm_volatile_goto("1:\tj %l[l_yes]\n\t" - "nop\n\t" ".pushsection __jump_table, \"aw\"\n\t" WORD_INSN " 1b, %l[l_yes], %0\n\t" ".popsection\n\t" From patchwork Fri Apr 5 22:50:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Burton X-Patchwork-Id: 10887933 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 95F611669 for ; Fri, 5 Apr 2019 22:50:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F73B28A4E for ; Fri, 5 Apr 2019 22:50:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 741AC28B35; Fri, 5 Apr 2019 22:50:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01C6028A4E for ; Fri, 5 Apr 2019 22:50:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726388AbfDEWul (ORCPT ); Fri, 5 Apr 2019 18:50:41 -0400 Received: from mail-eopbgr740120.outbound.protection.outlook.com ([40.107.74.120]:4924 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726384AbfDEWul (ORCPT ); Fri, 5 Apr 2019 18:50:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavesemi.onmicrosoft.com; s=selector1-wavecomp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4soFz8TJ4lT+1PYwh+XzMTCD636I7KxICWWSoMhzqm0=; b=Vmq+7VYmctWU5LHt5FJHxcm0aJnY7CS5cLKHeA7dd3brcGtdXDCNBRgMbjmjGdeDYAP5/ywo0ECKRYFLLPcA6ezYBEPmz+8gQOo2zgB6z8hG6fonVKWWjagfE2imXEr9o9U+ZKUNp4SZjRP2lXFzYOtGBFFYVYQ6kjNMGgHC7fs= Received: from MWHPR2201MB1277.namprd22.prod.outlook.com (10.174.162.17) by MWHPR2201MB1278.namprd22.prod.outlook.com (10.174.162.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.22; Fri, 5 Apr 2019 22:50:36 +0000 Received: from MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::b9d6:bf19:ec58:2765]) by MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::b9d6:bf19:ec58:2765%7]) with mapi id 15.20.1771.016; Fri, 5 Apr 2019 22:50:36 +0000 From: Paul Burton To: "linux-mips@vger.kernel.org" CC: Paul Burton Subject: [PATCH 2/3] MIPS: jump_label: Use compact branches for >= r6 Thread-Topic: [PATCH 2/3] MIPS: jump_label: Use compact branches for >= r6 Thread-Index: AQHU7AH7l3WWxLhIgE2nt3nAQ5lAlQ== Date: Fri, 5 Apr 2019 22:50:36 +0000 Message-ID: <20190405225014.15236-2-paul.burton@mips.com> References: <20190405225014.15236-1-paul.burton@mips.com> In-Reply-To: <20190405225014.15236-1-paul.burton@mips.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR05CA0079.namprd05.prod.outlook.com (2603:10b6:a03:e0::20) To MWHPR2201MB1277.namprd22.prod.outlook.com (2603:10b6:301:24::17) authentication-results: spf=none (sender IP is ) smtp.mailfrom=pburton@wavecomp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.21.0 x-originating-ip: [67.207.99.198] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dbbd42d2-9ec9-4a15-fc34-08d6ba191df6 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328)(7193020);SRVR:MWHPR2201MB1278; x-ms-traffictypediagnostic: MWHPR2201MB1278: x-microsoft-antispam-prvs: x-forefront-prvs: 0998671D02 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39840400004)(366004)(376002)(346002)(396003)(136003)(189003)(199004)(486006)(305945005)(8936002)(76176011)(105586002)(14454004)(25786009)(52116002)(2351001)(476003)(44832011)(6512007)(2616005)(81166006)(53936002)(186003)(446003)(5640700003)(107886003)(99286004)(81156014)(4326008)(316002)(26005)(7736002)(8676002)(5660300002)(2501003)(11346002)(50226002)(386003)(102836004)(42882007)(2906002)(106356001)(97736004)(66066001)(14444005)(36756003)(1076003)(6436002)(71190400001)(6506007)(6916009)(478600001)(256004)(3846002)(6116002)(6486002)(71200400001)(68736007);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR2201MB1278;H:MWHPR2201MB1277.namprd22.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: wavecomp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: eMcH4HATiWIlJ1PC9xlTf6w70W0pMo0Nux9gr3uHP05RRkLVDVDkSosFUFQJgnxyKRgOpQ7XghyDoIy1C8tAaEitc+npksfigC3x45PIbxSllvjyXzahpeSICJzH4Xns7ZmkfRalNP5yao4ycz+XYN13zcCANJPd8rA3rsd11hhCXJLHQ0vm+lHh+1vn/zPfIE48B6JxZk0KJKF2uPEGSx2xAbSAHfNZZOnZogemYJmt3XuzTzFBsCnQsB441hUoRDhFG5+7CAH/tU0eUWPHwRJ9tibmbaxRkTu6uCszJDZswZlRFxdOyuwb0NhWaMym8gUFWaTQbMroffMPG3HH//WVHGsDl4+eQ4OJjilDwFEekrnaVHopS3lxoZUCe6KAN4KRErdBDAQAwWr2pzO4zJXqr/vd46fH6epO1I8iAQE= MIME-Version: 1.0 X-OriginatorOrg: mips.com X-MS-Exchange-CrossTenant-Network-Message-Id: dbbd42d2-9ec9-4a15-fc34-08d6ba191df6 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Apr 2019 22:50:36.3181 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 463607d3-1db3-40a0-8a29-970c56230104 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR2201MB1278 Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP MIPSr6 introduced compact branches which have no delay slots. Make use of them for jump labels in order to avoid the need for a nop to fill the branch or jump delay slot, saving 4 bytes of code for each static branch. Signed-off-by: Paul Burton --- arch/mips/include/asm/jump_label.h | 12 +++++++++--- arch/mips/kernel/jump_label.c | 30 +++++++++++++++++++++++++----- 2 files changed, 34 insertions(+), 8 deletions(-) diff --git a/arch/mips/include/asm/jump_label.h b/arch/mips/include/asm/jump_label.h index df04449b261b..3185fd3220ec 100644 --- a/arch/mips/include/asm/jump_label.h +++ b/arch/mips/include/asm/jump_label.h @@ -11,6 +11,7 @@ #ifndef __ASSEMBLY__ #include +#include #define JUMP_LABEL_NOP_SIZE 4 @@ -21,9 +22,14 @@ #endif #ifdef CONFIG_CPU_MICROMIPS -#define B_INSN "b32" +# define B_INSN "b32" +# define J_INSN "j32" +#elif MIPS_ISA_REV >= 6 +# define B_INSN "bc" +# define J_INSN "bc" #else -#define B_INSN "b" +# define B_INSN "b" +# define J_INSN "j" #endif static __always_inline bool arch_static_branch(struct static_key *key, bool branch) @@ -42,7 +48,7 @@ static __always_inline bool arch_static_branch(struct static_key *key, bool bran static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) { - asm_volatile_goto("1:\tj %l[l_yes]\n\t" + asm_volatile_goto("1:\t" J_INSN " %l[l_yes]\n\t" ".pushsection __jump_table, \"aw\"\n\t" WORD_INSN " 1b, %l[l_yes], %0\n\t" ".popsection\n\t" diff --git a/arch/mips/kernel/jump_label.c b/arch/mips/kernel/jump_label.c index ab943927f97a..662c8db9f45b 100644 --- a/arch/mips/kernel/jump_label.c +++ b/arch/mips/kernel/jump_label.c @@ -40,18 +40,38 @@ void arch_jump_label_transform(struct jump_entry *e, { union mips_instruction *insn_p; union mips_instruction insn; + long offset; insn_p = (union mips_instruction *)msk_isa16_mode(e->code); - /* Jump only works within an aligned region its delay slot is in. */ - BUG_ON((e->target & ~J_RANGE_MASK) != ((e->code + 4) & ~J_RANGE_MASK)); - /* Target must have the right alignment and ISA must be preserved. */ BUG_ON((e->target & J_ALIGN_MASK) != J_ISA_BIT); if (type == JUMP_LABEL_JMP) { - insn.j_format.opcode = J_ISA_BIT ? mm_j32_op : j_op; - insn.j_format.target = e->target >> J_RANGE_SHIFT; + if (!IS_ENABLED(CONFIG_CPU_MICROMIPS) && MIPS_ISA_REV >= 6) { + offset = e->target - ((unsigned long)insn_p + 4); + offset >>= 2; + + /* + * The branch offset must fit in the instruction's 26 + * bit field. + */ + WARN_ON((offset >= BIT(25)) || + (offset < -(long)BIT(25))); + + insn.j_format.opcode = bc6_op; + insn.j_format.target = offset; + } else { + /* + * Jump only works within an aligned region its delay + * slot is in. + */ + WARN_ON((e->target & ~J_RANGE_MASK) != + ((e->code + 4) & ~J_RANGE_MASK)); + + insn.j_format.opcode = J_ISA_BIT ? mm_j32_op : j_op; + insn.j_format.target = e->target >> J_RANGE_SHIFT; + } } else { insn.word = 0; /* nop */ } From patchwork Fri Apr 5 22:50:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Burton X-Patchwork-Id: 10887935 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D63D71669 for ; Fri, 5 Apr 2019 22:50:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C11FE28A4E for ; Fri, 5 Apr 2019 22:50:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5B4F28B35; Fri, 5 Apr 2019 22:50:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D75B28A4E for ; Fri, 5 Apr 2019 22:50:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726384AbfDEWun (ORCPT ); Fri, 5 Apr 2019 18:50:43 -0400 Received: from mail-eopbgr740120.outbound.protection.outlook.com ([40.107.74.120]:4924 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726206AbfDEWun (ORCPT ); Fri, 5 Apr 2019 18:50:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavesemi.onmicrosoft.com; s=selector1-wavecomp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dEzMvOIf7x0ouwuCVCRrCgf1Hzvijuzyj0ak8tcLsNk=; b=rIsN6PB3CDtj9FJGrnOB35FbPOR097B6yXo297gN7XZ94PSNot364em9vzHKPQjEr88dQ86WC7qjXikDN4j0eyvJhV1F6hTVakONLj0WJmQ2RaYk2TelrQF+gUUs4dHJc5nNcemaDLnsVkdlnoOM3HTbgLj6Qsmfvsv4YnAakBA= Received: from MWHPR2201MB1277.namprd22.prod.outlook.com (10.174.162.17) by MWHPR2201MB1278.namprd22.prod.outlook.com (10.174.162.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.22; Fri, 5 Apr 2019 22:50:37 +0000 Received: from MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::b9d6:bf19:ec58:2765]) by MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::b9d6:bf19:ec58:2765%7]) with mapi id 15.20.1771.016; Fri, 5 Apr 2019 22:50:37 +0000 From: Paul Burton To: "linux-mips@vger.kernel.org" CC: Paul Burton Subject: [PATCH 3/3] MIPS: generic: Enable CONFIG_JUMP_LABEL Thread-Topic: [PATCH 3/3] MIPS: generic: Enable CONFIG_JUMP_LABEL Thread-Index: AQHU7AH8CErdwUearEmY9sLCsMvvNw== Date: Fri, 5 Apr 2019 22:50:37 +0000 Message-ID: <20190405225014.15236-3-paul.burton@mips.com> References: <20190405225014.15236-1-paul.burton@mips.com> In-Reply-To: <20190405225014.15236-1-paul.burton@mips.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR05CA0079.namprd05.prod.outlook.com (2603:10b6:a03:e0::20) To MWHPR2201MB1277.namprd22.prod.outlook.com (2603:10b6:301:24::17) authentication-results: spf=none (sender IP is ) smtp.mailfrom=pburton@wavecomp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.21.0 x-originating-ip: [67.207.99.198] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 02f8aee2-626a-4bfa-12b5-08d6ba191e72 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328)(7193020);SRVR:MWHPR2201MB1278; x-ms-traffictypediagnostic: MWHPR2201MB1278: x-microsoft-antispam-prvs: x-forefront-prvs: 0998671D02 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39840400004)(366004)(376002)(346002)(396003)(136003)(189003)(199004)(486006)(305945005)(8936002)(76176011)(105586002)(14454004)(25786009)(52116002)(2351001)(476003)(44832011)(6512007)(2616005)(81166006)(53936002)(186003)(446003)(5640700003)(107886003)(99286004)(81156014)(4326008)(316002)(26005)(7736002)(8676002)(5660300002)(2501003)(11346002)(50226002)(386003)(102836004)(42882007)(2906002)(106356001)(97736004)(66066001)(14444005)(36756003)(1076003)(6436002)(71190400001)(6506007)(6916009)(4744005)(478600001)(256004)(3846002)(6116002)(6486002)(71200400001)(68736007)(41533002);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR2201MB1278;H:MWHPR2201MB1277.namprd22.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: wavecomp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: drSWsoD8cdLNyzASmKwBcVS5E4at62sf5WDaApyPFsOn2NVcTlNbe5VBsBRBuoSQgW0n7+qJ/MSh/05RMBWACSu+9Ham0/uMn40ONpRsJXVthci9KdhC8klAO3/qo2SDtR4rSiwM7NwtTCOjToU/O8JUnxo0TVS+TAxKywa0tvdbfaA5DHdEFzOg7qZu1GXlwXKaHa3Ot1BP4Y+KanCWFex3WYFTKW6ULDcB0Q2ntF/OVfs16ONUGyHeYGTj7NEdFoBIQLjNk1qXHJ6ILg+ZMYWuc5GGVyvo5oq4MiFm0x9XYRCOSfWS+z1HKds6E3GxgkDsGDZ0QPbhj0GRyEWctqoZ+IQBYBV5pO8eVq5nnqR9PkrE553WVS1ltePTNuxdVKhcnuMBPJMP+U5WoWxqPGpGwFaNyWrO1if5dklej8k= MIME-Version: 1.0 X-OriginatorOrg: mips.com X-MS-Exchange-CrossTenant-Network-Message-Id: 02f8aee2-626a-4bfa-12b5-08d6ba191e72 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Apr 2019 22:50:37.0517 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 463607d3-1db3-40a0-8a29-970c56230104 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR2201MB1278 Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Enable CONFIG_JUMP_LABEL for generic configs in order to better optimize at runtime and get better test coverage for our jump label support. Signed-off-by: Paul Burton --- arch/mips/configs/generic_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/configs/generic_defconfig b/arch/mips/configs/generic_defconfig index 5d80521e5d5a..714169e411cf 100644 --- a/arch/mips/configs/generic_defconfig +++ b/arch/mips/configs/generic_defconfig @@ -26,6 +26,7 @@ CONFIG_MIPS_CPS=y CONFIG_HIGHMEM=y CONFIG_NR_CPUS=16 CONFIG_MIPS_O32_FP64_SUPPORT=y +CONFIG_JUMP_LABEL=y CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y CONFIG_TRIM_UNUSED_KSYMS=y