Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp150987pxf; Wed, 17 Mar 2021 01:32:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx14uzvBrRawrG+QuJq5y4CsR+IkRNqe9RIXc0KRp4o58w7+eRSxUk2m8je2XRxKQqMBHRa X-Received: by 2002:a17:906:b318:: with SMTP id n24mr22433179ejz.372.1615969967707; Wed, 17 Mar 2021 01:32:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615969967; cv=none; d=google.com; s=arc-20160816; b=r5cFPMhck9T6ujNnEUs1YuQtscBjH1itZS7xi74BkSBNMnWNjVaRhlvpOY+3eMq7wB I3fWcAlm8DOCZ6ONiyqvgDMEJEsqFQApjRdpKH1dKew6nRDH1gWCnJ5Ko3wirAOXqwXS +/d1OozLlj/5zTJXj4i5m8U64pHiFfL/kc1q52l9frjkqzn8oX0bYbWfDl4hvzUuQ6Dg Ctd04sRfG9fwAwBQwTIZXWEXeDB89xhZfAcRgPKeqbfidQ27Z/ASdTO7jblzrgarf2zL 7bK+KV9UNLJ15F0MPyeEdWcs2NNwqDQHMQaUArXg1Wg/SznCI8Scq4lWqZzs/8K+YFJe xeZg== 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=mTo2lq3PDu4WGFFq1mhOr8xSWejm9N9TQezVn74QV2U=; b=H/fj6gSc1KOPf2Yf/oWOChyyk7jIzn4mCTDLb/8SCzJ/rFw9tM4SkBBbv3ZliBwMq7 cSfW7WfcWE68C6WZ42I5FkLkywwW1RgbBgSAUX5qqeIEfMEf2Q41hPw1LJ6D9YsEF5ES iJv4I/RBr+Di8NtVQcx11jv1dYqAdsP+IEDCH8Ilcg59sh6kRVGGileHkH/Honf35HNN 2AdsQYTf+XiYAQh+jbNShhdShV+Or32kxHxJu3721cZoc1syXxJv7fIMVu1o1q66DgxS 0R6zx1xCAehWS/Ii6Tq1hgXRWQ3CFI8dgCHQQ2EiTlqmMCChzDkvHG5qpxnau24QHcc4 IX7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b="vAaAUsa/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si16007515eje.538.2021.03.17.01.32.24; Wed, 17 Mar 2021 01:32:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b="vAaAUsa/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229541AbhCQIbR (ORCPT + 99 others); Wed, 17 Mar 2021 04:31:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbhCQIaw (ORCPT ); Wed, 17 Mar 2021 04:30:52 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64934C06174A for ; Wed, 17 Mar 2021 01:30:52 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id z2so878731wrl.5 for ; Wed, 17 Mar 2021 01:30:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mTo2lq3PDu4WGFFq1mhOr8xSWejm9N9TQezVn74QV2U=; b=vAaAUsa/COHtV4cLxsSywSoISFUKa72oGocoAShP8GzMsu4VnLzLxHplR51NIem1Dt 4SH5wo7AnV2GMfGbaQHCR2wSdM0Fz+xdBq1qkM/6JKPYo6O61hhdSsOpkxWPtfN46xIH JatlJMAtbZ5GARS64wj29j/RuMdVqxtZlAcMfOoJ+PVSj5i5OGcXtcKqkLJzme85c399 RDCpdMuwOvVgxxRvYvfzFyalKDTdHZvzLD5oK5xoSmTf/YvwYTT0HXjbt1q9HoyKCxix r5PvnQh5x4N9X30IEXWEKMsJUHmDIXe67vjRRzz4LjrXgsgHt2NcoL2O1dq9r0W2kH2Q rTLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mTo2lq3PDu4WGFFq1mhOr8xSWejm9N9TQezVn74QV2U=; b=NXyDKfvfuUvnFctIdW0NdNIBLJ+JkAAsyon8f+CQGGKQjzkoT75JoVtbtawpSd6ugP At/WAieBrnlJyqJ/uUexfpQKGhSh2MMLlnMDa02Z7xcPVZz3SOJMTjhjPtL0EnAOCMLo ni26wXTDDCrwzOuVyTSnV0ZnU3PTgrjiuwknaBSv1xUJLBC4izH4cB2H+dSvPwT/fBuL OMqZYkDV28Zi+ZwvUlYOGl75tCi1cXbMao0L5YqcvYTGZ+cR1479FHhwrCZpKTHKjVd6 EBUL9A5OsKMdZF4nN3tcYw36fkiyDZzeJehgcWMoCqb6x2BFpEvVDI6abXJc01dDGtO4 KtHA== X-Gm-Message-State: AOAM532ivZhwX6cG9nF26YAsQ5FpWTHh3y+ZTVdMox41ZPCYeIC93WFl le/58jlqYUgUPxiIJom77r9G9MUJ96JpfMxw44Yu92WcjAI= X-Received: by 2002:adf:9544:: with SMTP id 62mr3114501wrs.128.1615969851060; Wed, 17 Mar 2021 01:30:51 -0700 (PDT) MIME-Version: 1.0 References: <20210317081725.28412-1-yuzihao@ict.ac.cn> In-Reply-To: <20210317081725.28412-1-yuzihao@ict.ac.cn> From: Anup Patel Date: Wed, 17 Mar 2021 14:00:35 +0530 Message-ID: Subject: Re: [PATCH] riscv,entry: fix misaligned base for excp_vect_table To: Zihao Yu Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv , "linux-kernel@vger.kernel.org List" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 17, 2021 at 1:48 PM Zihao Yu wrote: > > * In RV64, the size of each entry in excp_vect_table is 8 bytes. If the > base of the table is not 8-byte aligned, loading an entry in the table > will raise a misaligned exception. Although such exception will be > handled by opensbi/bbl, this still causes performance degradation. > > Signed-off-by: Zihao Yu Looks good to me. Reviewed-by: Anup Patel Regards, Anup > --- > arch/riscv/kernel/entry.S | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/riscv/kernel/entry.S b/arch/riscv/kernel/entry.S > index 744f3209c..76274a4a1 100644 > --- a/arch/riscv/kernel/entry.S > +++ b/arch/riscv/kernel/entry.S > @@ -447,6 +447,7 @@ ENDPROC(__switch_to) > #endif > > .section ".rodata" > + .align LGREG > /* Exception vector table */ > ENTRY(excp_vect_table) > RISCV_PTR do_trap_insn_misaligned > -- > 2.20.1 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv