Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4077883rwb; Mon, 16 Jan 2023 17:55:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXuq2UdXvP86+IgccGP6JxBS1zfMAqJ6nsiKv0UjZZQnu/rNN+B/8mw/Dlg+zjDPCry8UaGX X-Received: by 2002:a17:902:e788:b0:194:9e58:13da with SMTP id cp8-20020a170902e78800b001949e5813damr2031732plb.11.1673920544192; Mon, 16 Jan 2023 17:55:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673920544; cv=none; d=google.com; s=arc-20160816; b=sjlJV1mikyaS7vXUJjyMbV7iCnY5waR1VjqSDXJE0Q5hC0phZXp9MTs0et2RqA6+LK GldU1olpxGy54Ie5jpFkuLKrALH6xTwi1OnAGMgpr2LmTkO6PvqEXZKgP3to40MAXSnF NKAhGhG2rJ5kapX0C/g/QQ/7dhWEO5TD/B/oz43671GYx4oYRCXX+Vxbd0M73kS93gvQ WORzZ+Lj39BAdIffk6Z+2EvrLo8Mtcb86zUwxm83Vot1QOq5EqYnoprmUBo5XePAKEzC KTE9HSfwF9APVMWo2Mwyw9DuGdJgfxLocQr4yQJ2/jRvaUydfYY78zeP0aUiESFJytI0 yrcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=FhN3cpKsOXHNKE1wkF6NGaaMtaU8jQjC/eJgz5Z/KcM=; b=kymys5SkhAlYZ1kKCvqeolLSjstjZDxHn/iNkeg1jncGq7sOCvBO/yuRiP5rcdQ2Jb oNrqlA+jyqcA4WRh0dks0NqF3vvHMG3x2kgm6CBdXnElTIW0D/+HDxK0Uebfj2QkWrsI B1xH798dh82SXqF1GFPWc4zE1YuZ5tTm27EybICkpZDo9xhLvpb70lXMQLls35YTtyMn H4YWwQOp2fRvPAt1RqUbVukstn1bT1L5FJ+YBiRLHWzQbNYWKSdgnHnXaee5DGhzGSw4 DnbIMJIs/BeAkZHlCjSYoap1+bI7Ks6kXJOEDTH6zdieBssapl87oUisJS/pQH5w/us9 ecrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Uxp8WjQM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g5-20020a170902e38500b00186f81a0765si27686303ple.540.2023.01.16.17.55.36; Mon, 16 Jan 2023 17:55:44 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Uxp8WjQM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234976AbjAQBir (ORCPT + 49 others); Mon, 16 Jan 2023 20:38:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234550AbjAQBi0 (ORCPT ); Mon, 16 Jan 2023 20:38:26 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B03282887F for ; Mon, 16 Jan 2023 17:38:25 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 69136B810BD for ; Tue, 17 Jan 2023 01:38:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04230C43392 for ; Tue, 17 Jan 2023 01:38:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673919503; bh=6I6qWiZy6+VUHL/BjgqW5ooPHVYKqIo8pjsdpLzyhJM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Uxp8WjQMOD1iV74W2WXYsEwNnKRGE0lhIviQY5FqQ7Mdw/vd5KD1zTKaC/MUyBbeD 39N9VNrYjQh4awIY7UQpNiFPb03zjd+EQasCWKhTtKI5iMWQnx2ZVOzuccryhPs9tg oBOCUGok/coBej/8h+M8P/L+heGRslB68jIrvQgOdnvCZqOYuMI1AMQXgrgdO05LSQ 3DMTvv6As2f1rFB8414m5OkdZ3ApipyrNzZyWrIU/lNgykeAaY97+hm9/0dsCvC9YL STEDKiZzkHOqBmFPtLlE4G4w59DEojLNKVkuqe6ylERUzozi0wFr3emkaNBpEa+GNp nt/ztCsuE5Rog== Received: by mail-ej1-f48.google.com with SMTP id vm8so71898016ejc.2 for ; Mon, 16 Jan 2023 17:38:22 -0800 (PST) X-Gm-Message-State: AFqh2kot3dBH7uz3kDX1wc8z+ZyYp/lYBqiXw5pIQS9m0gf4yphhMFNB uN5GH6RSLVkmLIdG+6Zg4ZzQK4Dkue3m6NMqNQg= X-Received: by 2002:a17:906:a28a:b0:7c0:ff76:7866 with SMTP id i10-20020a170906a28a00b007c0ff767866mr58519ejz.272.1673919501199; Mon, 16 Jan 2023 17:38:21 -0800 (PST) MIME-Version: 1.0 References: <1673255274-18238-1-git-send-email-tangyouling@loongson.cn> <1673255274-18238-2-git-send-email-tangyouling@loongson.cn> <6f1a1f3c-4569-c427-76ae-2f7093cb5e9f@loongson.cn> <972e4d0c69dea4e9659eb9459072b2b7b2fd963b.camel@xry111.site> In-Reply-To: <972e4d0c69dea4e9659eb9459072b2b7b2fd963b.camel@xry111.site> From: Huacai Chen Date: Tue, 17 Jan 2023 09:38:11 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/4] LoongArch: Use trampoline for exception handlers and kill la.abs To: Xi Ruoyao Cc: Jinyang He , Youling Tang , Xuerui Wang , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 Mon, Jan 16, 2023 at 1:41 PM Xi Ruoyao wrote: > > On Mon, 2023-01-16 at 09:30 +0800, Huacai Chen wrote: > > On Sat, Jan 14, 2023 at 2:38 PM Jinyang He > > wrote: > > > > > > Hi, Ruoyao and Youling, > > > > > > I care about the performance when NUMA enabled. We set CSR.EENTRY > > > for each possible cpus where is NUMA-relative. So, I guess the more > > > codes in NUMA-relative memory makes more performance. If we just set > > > handler_trampoline as exception handler, the performance may be > > > influenced. > > So copying both the handlers and handler_trampoline can solve the > > problem? If that is possible, please do that on top of the latest code > > in > > https://github.com/loongson/linux/commits/loongarch-next > > Hi folks, > > I just wrote the trampoline code as a PoC to show "relocatable kernel > can work" and there must be some better way. But I'm too sad to write > any serious code in this month, and I don't have access to a LoongArch > NUMA system. So I think it's better to leave the job for you guys now > :). Hmm, I hope this series can be merged in 6.3. :) Huacai > > Best regards > > -- > Xi Ruoyao > School of Aerospace Science and Technology, Xidian University