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 DE83DC636CC for ; Tue, 7 Feb 2023 14:41:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231491AbjBGOlv (ORCPT ); Tue, 7 Feb 2023 09:41:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231370AbjBGOlG (ORCPT ); Tue, 7 Feb 2023 09:41:06 -0500 Received: from xry111.site (xry111.site [IPv6:2001:470:683e::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEE873E08B for ; Tue, 7 Feb 2023 06:39:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1675780783; bh=qK47dEiG4b3VDhFuj1VyNuLxehj7dUGSdSUafKPadoU=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=bpJXwySm6en2juFW83O1jqw75uV/ssKIDmQpmVWeZZbnB/zwKimKOhfcl5je3ra3n C0/yL8wnlm8OPt08XD0flQroTl7rGyLXYdj9IMdj5tGCMhJ0aYH2BZm8D1LaD18oTP HLI3Jkxy29dW1vqznGQlEZY5Go70PIwMqtex6rI0= Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 4246F65EB0; Tue, 7 Feb 2023 09:39:41 -0500 (EST) Message-ID: <657d46fa2290ccfacdf5ae0f8e313870405293bb.camel@xry111.site> Subject: Re: [PATCH v2 2/5] LoongArch: Use la.pcrel instead of la.abs for exception handlers From: Xi Ruoyao To: Youling Tang , Huacai Chen , Jinyang He Cc: Xuerui Wang , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Date: Tue, 07 Feb 2023 22:39:39 +0800 In-Reply-To: <20230207142822.52172-3-xry111@xry111.site> References: <20230207142822.52172-1-xry111@xry111.site> <20230207142822.52172-3-xry111@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2023-02-07 at 22:28 +0800, Xi Ruoyao wrote: > +struct handler_reloc *eentry_reloc[128] =3D { > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[0] =3D NULL, /* merr handler = */ Self review: This is actually incorrect. Currently the merr handler (except_vec_cex) is coded as: SYM_FUNC_START(except_vec_cex) b cache_parity_error SYM_FUNC_END(except_vec_cex) Once this is copied into the per-cpu handler page, the offset (coded in the b instruction) will be absolutely wrong. But it's already incorrect in the current mainline, and I'm not familiar with CSR.CRMD.DA=3D1 configuration so I'm not sure how to fix it. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University