Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp606328pxj; Fri, 14 May 2021 10:58:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEjr4YOkdjmzsbmqL5PgASJxvJlm5g9qBsoXLfTFA+J818AQBtmygA3omGtBb24nmwpyNf X-Received: by 2002:a05:6e02:1a0c:: with SMTP id s12mr41055336ild.201.1621015115436; Fri, 14 May 2021 10:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621015115; cv=none; d=google.com; s=arc-20160816; b=AMDVuYHqZBruuOgUUfQpAqHTYZbZJwnzEyZddSAYJr9VMvQfBHFXdsmFVjQ4SEN7b+ FpnwisdnFSVRiAu7LyuVt/w/YTJAT/TKN6j9uYyOeA1+OO5ys6oIn2QTNuxA1AEKXi4/ oFYMwsnA0IIRzYCAYlOYISfB7JVZ8NKwR5ICkHhh1qRIFvKGqKB+fkMDFUE8w/3SBWQz A2mVEXmXLxU3npnWjyl8UI69FIpPa54IVqhDEXSQK1PMvkwLDK5FEV0eCcIrW+12Nz1x t9eiRb5tleUna9G9uAve3t2j/hCOB52zLhunDHQ4YhcCX7w1A+H6CTpXX+iK5Z9jhjJn ZTPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=mfxwAI7I0TU1IiyW3sJk3r8/NE1n9ua9n+ZEKYvkcl0=; b=lPtVb1aizmEYhgWyX/knKKMyA5XOJ4pOYWsosXw6lCsYp4AaVYFaTwQhieXfjvlJKQ pQ5onbCtJoKeaj5orfRFUC2dH7n9mZBdqPT9uPLUtnfoiRuKG+flBhoO0/TXqXkJAt1u zQ5/Ygi3TDwNTipwEpX2m2WGD/aIoevCi9BppJ60lkhiXFnw4a3DDhwvdVakFy6M2iDf 5B1N7IKQqJl0PlrEYE4xGXEn8QYM736iy8tg4KHIzFczGYjrqV5yAapiWUrfHCRdUyxl s88NdszIZfWTaB/XikqsNOEpX1uLkI2LFEYtQMxe/ePa5ha4mtU4PzSLGtT6UhqNe0Iu U3qQ== 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 t3si7897819iov.10.2021.05.14.10.58.18; Fri, 14 May 2021 10:58:35 -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 S232785AbhENLy4 (ORCPT + 99 others); Fri, 14 May 2021 07:54:56 -0400 Received: from gate.crashing.org ([63.228.1.57]:37389 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231839AbhENLy4 (ORCPT ); Fri, 14 May 2021 07:54:56 -0400 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 14EBmDhI029374; Fri, 14 May 2021 06:48:14 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 14EBmDxj029373; Fri, 14 May 2021 06:48:13 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Fri, 14 May 2021 06:48:13 -0500 From: Segher Boessenkool To: Arnd Bergmann Cc: linux-arch@vger.kernel.org, Arnd Bergmann , Vineet Gupta , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Paul Mackerras , Linus Torvalds Subject: Re: [PATCH v2 05/13] powerpc: use linux/unaligned/le_struct.h on LE power7 Message-ID: <20210514114813.GJ10366@gate.crashing.org> References: <20210514100106.3404011-1-arnd@kernel.org> <20210514100106.3404011-6-arnd@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210514100106.3404011-6-arnd@kernel.org> User-Agent: Mutt/1.4.2.3i Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On Fri, May 14, 2021 at 12:00:53PM +0200, Arnd Bergmann wrote: > Little-endian POWER7 kernels disable > CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS because that is not supported on > the hardware, but the kernel still uses direct load/store for explicti > get_unaligned()/put_unaligned(). > > I assume this is a mistake that leads to power7 having to trap and fix > up all these unaligned accesses at a noticeable performance cost. > > The fix is completely trivial, just remove the file and use the > generic version that gets it right. LE p7 isn't supported (it requires special firmware), and no one uses it anymore, also not for development. It was used for powerpc64le-linux development before p8 was widely available. Segher