Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3553837iog; Tue, 21 Jun 2022 00:43:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u5IyQabVoHCsZX2hYz8sQkBMRVtChJnpPKCdoPbFq0qzyJpLcYpkYfBAz2qzTD73QV+OmN X-Received: by 2002:a05:6402:388c:b0:435:548c:177e with SMTP id fd12-20020a056402388c00b00435548c177emr29227322edb.231.1655797433455; Tue, 21 Jun 2022 00:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655797433; cv=none; d=google.com; s=arc-20160816; b=T5XIUFmD92tjHxS2Hzc1+9JF5Wz1ojeTMyCgYGNiPuIbvjP/db84420ZQIjBhyqIEC ikLswTS75oaEdz6n6qlmI2q53vfMhCD6FopF7KdqDna2ocpug+6Txv1nITHG+uT+7gRQ xHvG4KUUaOvWUksT2N5MiY001A+6w4LmG+VOFrKW2UeCXoQCdTBk10R07QW9XvVuInUJ HtJLdzOwvJbmnGAoD8uyEQPu6XieKSrGChVJkxXIHAF8v1DjVaxZPVlqSb/nIKIgRKAb ROQfTxPOpO7LvXPgvcBXd5dvmW5omJy8lI6pYArZQHDvDtsJAqxgSQUnHI324YhGqaaq Ph5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=JWoj78HmAPrvorsNxXzRtRwiByDkC/N1zM+BJrt112k=; b=gY7Q3xZbKgvHO4nbPeyn2WQUSgKHRilpDg36NSa19jpz72EPbhySU0jJMWQF90kbr2 tYjrzNuuI/xDq9ZxzSKmlKpu12RaU1ihpU0qf5UP4foXgS3S9hRBnKeiIPUd/qSqrsCC dfg/Gt4coDizH63GeCPJj1n+goE63378CJ9o6J84In5iZWEqyHgmyL957w3sTR1PWM5M EhVXT7QVAHaZkdyTWkbp+GHU0sMOGx7xydJ6hLm3LoCK4wrgwVBM1npPl/DfOqkfW8zL LVLG36MqR2oYlBzRDy+529ROa1Y6IZLGhXglvvIEfy6c+f4JlomUE+ugS5BDrqRmfy/i b2IA== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z1-20020aa7d401000000b0042ab25a873fsi15764323edq.435.2022.06.21.00.43.27; Tue, 21 Jun 2022 00:43:53 -0700 (PDT) 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347174AbiFUH10 (ORCPT + 99 others); Tue, 21 Jun 2022 03:27:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347056AbiFUH1P (ORCPT ); Tue, 21 Jun 2022 03:27:15 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3936522B0A for ; Tue, 21 Jun 2022 00:27:15 -0700 (PDT) Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LRygB2V2KzSh6N; Tue, 21 Jun 2022 15:23:50 +0800 (CST) Received: from kwepemm600017.china.huawei.com (7.193.23.234) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 21 Jun 2022 15:26:56 +0800 Received: from localhost.localdomain (10.175.112.125) by kwepemm600017.china.huawei.com (7.193.23.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 21 Jun 2022 15:26:55 +0800 From: Tong Tiangen To: Mark Rutland , James Morse , Andrew Morton , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Robin Murphy , Dave Hansen , Catalin Marinas , Will Deacon , Alexander Viro , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , , "H . Peter Anvin" CC: , , , , Kefeng Wang , Xie XiuQi , Guohanjun , Tong Tiangen Subject: [PATCH -next v6 05/10] arm64: extable: move _cond_extable to _cond_uaccess_extable Date: Tue, 21 Jun 2022 07:26:33 +0000 Message-ID: <20220621072638.1273594-6-tongtiangen@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220621072638.1273594-1-tongtiangen@huawei.com> References: <20220621072638.1273594-1-tongtiangen@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600017.china.huawei.com (7.193.23.234) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Currently, We use _cond_extable for cache maintenance uaccess helper caches_clean_inval_user_pou(), so this should be moved over to EX_TYPE_UACCESS_ERR_ZERO and rename _cond_extable to _cond_uaccess_extable for clarity. Suggested-by: Mark Rutland Signed-off-by: Tong Tiangen Acked-by: Mark Rutland --- arch/arm64/include/asm/asm-extable.h | 6 +++--- arch/arm64/include/asm/assembler.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm64/include/asm/asm-extable.h b/arch/arm64/include/asm/asm-extable.h index 73266553f8a2..b97213d292ce 100644 --- a/arch/arm64/include/asm/asm-extable.h +++ b/arch/arm64/include/asm/asm-extable.h @@ -75,9 +75,9 @@ * Create an exception table entry for `insn` if `fixup` is provided. Otherwise * do nothing. */ - .macro _cond_extable, insn, fixup - .ifnc \fixup, - _asm_extable \insn, \fixup + .macro _cond_uaccess_extable, insn, fixup + .ifnc \fixup, + _asm_extable_uaccess \insn, \fixup .endif .endm diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h index 8c5a61aeaf8e..dc422fa437c2 100644 --- a/arch/arm64/include/asm/assembler.h +++ b/arch/arm64/include/asm/assembler.h @@ -423,7 +423,7 @@ alternative_endif b.lo .Ldcache_op\@ dsb \domain - _cond_extable .Ldcache_op\@, \fixup + _cond_uaccess_extable .Ldcache_op\@, \fixup .endm /* @@ -462,7 +462,7 @@ alternative_endif dsb ish isb - _cond_extable .Licache_op\@, \fixup + _cond_uaccess_extable .Licache_op\@, \fixup .endm /* -- 2.25.1