Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2793742rwb; Sun, 15 Jan 2023 22:45:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXvZC/ZSnRYEtY4hwTYYwW2G49jMZyCMyIIr3TxqINtnNUUQp7mGPsdXp3NSwKUlIfcm9Kpe X-Received: by 2002:a05:6a20:2a8f:b0:b8:a355:5914 with SMTP id v15-20020a056a202a8f00b000b8a3555914mr194650pzh.37.1673851512195; Sun, 15 Jan 2023 22:45:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673851512; cv=none; d=google.com; s=arc-20160816; b=oRjxGljBS+S4kdy3cHfLwEBj8xlJkBr1yStzwG/2L28DyZLtX+/Sa2MMvA3uU8Db2z 7TUGEZl5ts3EuXdBIKLHCzvQFzWOE7sHTQX64TJ+RTJjTqtaSuDBc6fYnSkqfm7eo2JJ ySGzl72FcqaNyUq7OUwxKD+M5Bx/EMF9wj99yduX6zx+pNBjWTxOpuTbxOMIR5GYisC6 vVZEYTLc7bvlbsB21zMdNkqEIHTCuyrfCqhNz/4ueDtoPDfppGEwkQ2z7ll/+KgLtOUZ 96dMJnt95BlyH/iOGCuidee5hp9vI6vlFLc780TtiJg+7Opgr3Tbg9opi3l5KWhYKMmX +qIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=iHXmUxKHJ3JqL+MyNmJSZ5Ave3Bea37FEut34Go+l58=; b=VOvw2wbhVy2+339IUwxEUhdU/szy2DQVr+A1k/nHlx/69nLcmUZ7cMtrFJYaheBU8w LpFzJ99SW+fDIAZl59pTWrwsoYo2Eq4mhwD3lr6TOLKnaOP6Q+N38np3y96miVDvb8F3 D8Molhr6Dr2bxC5swWv+darXk/UhNAscStVdW6hqXChe5xO7rKjWgT/pS+5WzJbku4yI BDQGD40ZBMVoKOtZalRZFrBc2uuqbI9PenwAHKZzmKHwKRbm8G/eozI+/P6w/ysbwLbP X3h8/Wf41VhxU9SFHO1D14YPFVKpzwqKdU6eDLHvBbyLEEzYx8AdkAV7uNuwZAgsOkpX SmpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=W39RRFLr; 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=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t3-20020a654b83000000b0046f51cbaf53si29613898pgq.529.2023.01.15.22.45.05; Sun, 15 Jan 2023 22:45:12 -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=@xry111.site header.s=default header.b=W39RRFLr; 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=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231776AbjAPFtc (ORCPT + 52 others); Mon, 16 Jan 2023 00:49:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231689AbjAPFt2 (ORCPT ); Mon, 16 Jan 2023 00:49:28 -0500 X-Greylist: delayed 467 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 15 Jan 2023 21:49:26 PST Received: from xry111.site (xry111.site [IPv6:2001:470:683e::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CE7C868D for ; Sun, 15 Jan 2023 21:49:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1673847696; bh=rEd5LJal0k18Z47RyzG7yfXliLKWwpAHYhS56ZWoUe4=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=W39RRFLrV0CslCMgWrHHxG3sW/TZBG215J1jo1nhqCpEqKh11pTqn2Hxr4Y9ICy+5 TLPHJkH+03+dXFjt/6C2EcOt9t/5cgac9r+OA6bUqXAzh8NiMoEJB0vgpYgaWki+S8 wxIZo9+P6SpF+o1QE5vi7zH7/YsZm25F3KP7nuRI= Received: from [IPv6:240e:358:116a:de00:dc73:854d:832e:2] (unknown [IPv6:240e:358:116a:de00:dc73:854d:832e:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 1F93166753; Mon, 16 Jan 2023 00:41:29 -0500 (EST) Message-ID: <972e4d0c69dea4e9659eb9459072b2b7b2fd963b.camel@xry111.site> Subject: Re: [PATCH 1/4] LoongArch: Use trampoline for exception handlers and kill la.abs From: Xi Ruoyao To: Huacai Chen , Jinyang He Cc: Youling Tang , Xuerui Wang , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Date: Mon, 16 Jan 2023 13:41:17 +0800 In-Reply-To: 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> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.3 MIME-Version: 1.0 X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, SPF_HELO_PASS,SPF_PASS,T_PDS_OTHER_BAD_TLD autolearn=no 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, 2023-01-16 at 09:30 +0800, Huacai Chen wrote: > On Sat, Jan 14, 2023 at 2:38 PM Jinyang He > wrote: > >=20 > > Hi, Ruoyao and Youling, > >=20 > > 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 :). Best regards --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University