Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp561592pxj; Fri, 14 May 2021 09:58:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkkACWWt9T2ccv0e884qeRMDPJrPIUqdr7KeQYqLjj+2Nk9LSm0Z/I/J1DZtK8vloddcOw X-Received: by 2002:a05:6602:446:: with SMTP id e6mr15730655iov.20.1621011532297; Fri, 14 May 2021 09:58:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621011532; cv=none; d=google.com; s=arc-20160816; b=bLOJU/m5xnTi0nXRGQvPolvUjtrLfdiurim4WtDEy5enonW1OfhrB5oC6yI9LLP/dK BtO6bhduL2kqFSxKUp+GXPSwoLfY0f1oz25FPf68XfrpRH8m3wxKIX8+6gnfCacQInmz tUmphgPRnwlpcI1kOh3UsBybvwcIAkI4W/Jhhc6sxjPXp1dVsbC8VXKvZzz24CcalzMS NwkuOVvcoBPX4+iwNM8PlEnQxNEc+ne5r4DRyM3hyIt8kqs3gmnP3MBpQZEyiqyJMIu7 y1UxT2uwxweI+pGBiBaeWHQk16oMgGdfQosvwKlA5UIteOctfMgc6PVASF+xmWayZHzg /YaQ== 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; bh=JgG90KMk3zguMkJG3/v8mwUNf+3ovN4cLU4f6djNuXc=; b=Ck6U3FFRfQacp5LwsZEQTuL+/FeRIi+KS+NGxR6/KDkXu72iRbG5bPqA0mx2J6D0c0 X84S4EmsJg6zaakEggrmIqsVMUPwouqUsz1WYwHcL8Th84TeTEy0BoY/jbvOIT/WU0BB QPhgTbWLB4q+p26ARwb3nQXKgXZb123iajxmTupLxB2EnkdGoEK/5JpQG/ZjtJGoITfK 8eqK5Cxhr7/Tmpw5K7+O0jyItFnbjoVMYz7kKUcmAzGnlX+bbwAUHbG9SdqzrSt2JAaA 4wFYCytvEu0Ebem2HPNEbCYzztkfyVaWHbmOQt+kZDcQBycEr+F0rMtNLZyR5vVwtJPJ dpLA== ARC-Authentication-Results: i=1; mx.google.com; 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 z2si3691582jat.35.2021.05.14.09.58.38; Fri, 14 May 2021 09:58:52 -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; 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 S230063AbhENKf6 (ORCPT + 99 others); Fri, 14 May 2021 06:35:58 -0400 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:49671 "EHLO outpost1.zedat.fu-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232200AbhENKfr (ORCPT ); Fri, 14 May 2021 06:35:47 -0400 Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.94) with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1lhV9N-003KKt-2u; Fri, 14 May 2021 12:34:33 +0200 Received: from dynamic-089-012-149-178.89.12.pool.telefonica.de ([89.12.149.178] helo=[192.168.1.10]) by inpost2.zedat.fu-berlin.de (Exim 4.94) with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (envelope-from ) id 1lhV9M-002u9m-Rx; Fri, 14 May 2021 12:34:33 +0200 Subject: Re: [PATCH v2 03/13] sh: remove unaligned access for sh4a To: Arnd Bergmann , linux-arch@vger.kernel.org Cc: Linus Torvalds , Vineet Gupta , Arnd Bergmann , Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210514100106.3404011-1-arnd@kernel.org> <20210514100106.3404011-4-arnd@kernel.org> From: John Paul Adrian Glaubitz Message-ID: <3d70eb2a-2969-197e-63e8-f3e0a6a8ddd8@physik.fu-berlin.de> Date: Fri, 14 May 2021 12:34:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210514100106.3404011-4-arnd@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 89.12.149.178 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd! On 5/14/21 12:00 PM, Arnd Bergmann wrote: > Unlike every other architecture, sh4a uses an inline asm implementation > for get_unaligned(). I have shown that this produces better object > code than the asm-generic version. However, there are very few users of > arch/sh/ overall, and most of those seem to use sh4 rather than sh4a CPU > cores, so it seems not worth keeping the complexity in the architecture > independent code. My Renesas SH4-Boards actually run an sh4a-Kernel, not an sh4-Kernel: root@tirpitz:~> uname -a Linux tirpitz 5.11.0-rc4-00012-g10c03c5bf422 #161 PREEMPT Mon Jan 18 21:10:17 CET 2021 sh4a GNU/Linux root@tirpitz:~> So, if this change reduces performance on sh4a, I would rather not merge it. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaubitz@debian.org `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913