Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp860794pxb; Tue, 14 Sep 2021 10:14:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9ItTRUWIIMZPeVTaACnnRw0rXu1IG3+CvBLXVaYoyT4uBwNIPZT0ggfuhrmnD2UEe/Ve7 X-Received: by 2002:a2e:3307:: with SMTP id d7mr16512185ljc.292.1631639683468; Tue, 14 Sep 2021 10:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631639683; cv=none; d=google.com; s=arc-20160816; b=IO13MyHcFVmmU3Rtm03fyA4521yyCj2qEcH71xRikrPrZD40ED0zb/CMFHZ2MU0M39 WksDuEn5832XyTKKEqpJvyGfK7gUlUTb7SUsgeoMSZTxirJFQSNtMUQqONjl6NQTfE3g a1NeJlsq5wQ4IHA5wjYUcYzjfJXzG1LAwYdFUfpt7NwD07pAjlZmm144lb5RHG4uAuk5 rdCAiopDfXl6NqjguHHc8nLQaRoV4g/lUUwWypX5OgVk32ShHQALNMaceivtTPrOdwdU T/Ur6Wzn7FMHaiFMPMwM4ziKPgiWbhtTo+J99BjSZInhzl4zHeISEz/jbRanQXrVcROt ff5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=d9SzK4pBoaf11lP96SjVpjf29pHlYDeVwg9n+E1Drc4=; b=nhZRpZ4sci0lR9R6D9yflQV8bD74SjilJAzQd+kdCRiyzl+SWrte88UjohgksP7L/D BfODCzefVmP+8cLaLxlpGLAI2wevQfDbtK57Q6Mdrm2U/cd1czsg1lNFTTqJj9pLmEDj wpYr7TpItMhmlaLI7tyH/y6SiJuzF4g7FTCxc7uR+1/XY7eSDXrNgAH0NUcPYmGGoAgN ta/OwPYT+UKEG6xVUFZiBtIXsWFTqAgrr0UvQ5CjcEWMCdWg3nDSi8BnOqQHdQDqfPix x9BllezqkwJD1g6d9P4Oc4QQ+ltNtkJvDK5wXYoZPBu5VDlqIaHD/tFPKV/zUF0BEw8/ b9AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bluespec-com.20150623.gappssmtp.com header.s=20150623 header.b="QtkWU/Em"; 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 n22si15239108ljc.191.2021.09.14.10.14.14; Tue, 14 Sep 2021 10:14:43 -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=@bluespec-com.20150623.gappssmtp.com header.s=20150623 header.b="QtkWU/Em"; 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 S229844AbhINRJf (ORCPT + 99 others); Tue, 14 Sep 2021 13:09:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbhINRJe (ORCPT ); Tue, 14 Sep 2021 13:09:34 -0400 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B69B3C061574 for ; Tue, 14 Sep 2021 10:08:16 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id y144so97878qkb.6 for ; Tue, 14 Sep 2021 10:08:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bluespec-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=d9SzK4pBoaf11lP96SjVpjf29pHlYDeVwg9n+E1Drc4=; b=QtkWU/EmWLfrq260BxNf0mGiuYZUZUYyoD0xPuezViRZ4mF/XCnK/tGHLl6uCuwm/l OEBXW3WMwE0A/G6QfVBdQklqm6ber7gQIzEoSN3yJBWkAmnQxly90HsctdXmmytbzMHF L3KoPTc+Mr9B9ig4OIUiOkfFqAQvWzvACCR/8Z5Ak8G8u2ih5jz8qYrxjV6ZrPlHV7nH BwsNYjdiDWP5SUb4oj+pil2/1n683Q+0Hj+me82nhkYlYutM9n9fdJneQXyogDsqvWYR fK3GeRs3REIVRpVxC3R5+Vhr/DO39JCqMeN/rHxtTsQw1cI5NFDsb8Hd8MuoOdbh+67y eXmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=d9SzK4pBoaf11lP96SjVpjf29pHlYDeVwg9n+E1Drc4=; b=ygNYBjmM9qIhutnZo/NzZ8apsc9tEHjK45zXBUI/22BpjRjHDth+PJmuNBZzqC9+Kz zFQJ5Cev3/Uw/F1A2aHcBzk3xk+NMJChSDukSWzlF2uhkt/cDujkfA9/1Wd9+lPBk9R1 acoJmSY02amiYexBXEji9IH24DioqmiimkJE5IhCSGW00xBXruK/1PJlf1lLdzVsfgfM PM4RTNDGKJN3eZYa6Ql6H96fG1HgWl0KVwsndwmr4kWLdjJK/RE0gvAtVPaDOgwLH2YT YsPDYFhIWiviDbrhjHt92ToYflOVBlaLFfgJao3EE2WUcUYkq70F5/rJvcr6/d5CW1+i anKQ== X-Gm-Message-State: AOAM530Gj6opDD0rdGsxN63XN8rVsf5nFRitxKzreWggDqzvEH8E9we/ wtB2mOK7Iul6ZFVJhYCjUHMSiv4zlWfi X-Received: by 2002:a05:620a:916:: with SMTP id v22mr6042305qkv.338.1631639295927; Tue, 14 Sep 2021 10:08:15 -0700 (PDT) Received: from [10.28.133.11] ([154.3.44.94]) by smtp.gmail.com with ESMTPSA id r23sm6405377qtp.60.2021.09.14.10.08.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Sep 2021 10:08:15 -0700 (PDT) Subject: Re: [PATCH 1/2] riscv: support HAVE_EFFICIENT_UNALIGNED_ACCESS To: Chen Huang , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Kefeng Wang , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org References: <20210913121956.1776656-1-chenhuang5@huawei.com> <20210913121956.1776656-2-chenhuang5@huawei.com> From: Darius Rad Message-ID: <84697744-f51e-8aaf-d1d3-d063f99b7790@bluespec.com> Date: Tue, 14 Sep 2021 13:08:13 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20210913121956.1776656-2-chenhuang5@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/13/21 8:19 AM, Chen Huang wrote: > The RISCV ISA can perform efficient unaligned memory accesses > in hardware. This patch selects HAVE_EFFICIENT_UNALIGNED_ACCESS > for that. > Not all implementations do, so it seems like this is not appropriate. > Signed-off-by: Chen Huang > Signed-off-by: Kefeng Wang > --- > arch/riscv/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index aac669a6c3d8..6e70bf50b02a 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -81,6 +81,7 @@ config RISCV > select HAVE_DEBUG_KMEMLEAK > select HAVE_DMA_CONTIGUOUS if MMU > select HAVE_EBPF_JIT if MMU > + select HAVE_EFFICIENT_UNALIGNED_ACCESS > select HAVE_FUNCTION_ERROR_INJECTION > select HAVE_FUTEX_CMPXCHG if FUTEX > select HAVE_GCC_PLUGINS >