Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp629968pxj; Fri, 14 May 2021 11:32:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhOZGOkKNj8J7HfA9sL6Kgbt+I4g+MwCbYi4t68DCZXcwWkFWuYSvx0LgDe7D8UKX9ADjC X-Received: by 2002:aa7:dbcd:: with SMTP id v13mr57059923edt.59.1621017170523; Fri, 14 May 2021 11:32:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621017170; cv=none; d=google.com; s=arc-20160816; b=W/4l8Gz6cb9PXC+bhlLdfCKtTmU5uiQsJdZmA7g/MttB7Y3CZ9UiFYYt21gb0G5+FI B6IyEme/6/C9AuLhMKkOgfa66Vqm3WiSxrKRObpRpOr4jCBRxhNa2b9rl0nThSUBs1Xi 3+IhObMILsdI8BJhSdBPbnnHd41NpuwGUGOu9U99fc8Cx1GFSBE9lq+QppixL6idgIaz w3uXQoKbZ5svNAOM2UL89+qMKv8D6qdGYSupfHR59cIPK1CLD/tB3piDMhznm4vs6q31 8nrIeciWQ1a1cTKXR8szqQMGcul3ApWGEPK3HydiEHsk9R4wXevJdFvr33gi2jE1dUA+ j7uw== 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=PMoB219Wk0yoviRxnfz4NPU85GI59Iviit3UM/FH9mc=; b=MCO5UlAL+7oOIkdXBD4ylr+ovhO7hfdDfyvmiLJ8gZMWsk0zKi9aWYMvAvvcLVgk31 BN3zam08GPVdcJ9jsVF7K/CdupYvNnliBSBsdf0ysAHL5JJZ9iw3LglHxsgLfq+vpcHM yElvsZsV3KWMM1Tmw7Mnb/njor3WvLnIJPuEKfwcc9VzVQfeL26mC0+0o6gJ3DcgZ6jT 0SgoreT5ONucFTnH70Gz/2mqJx7zsSmjlBTdPjk8yDHSDxj8FkuYdTyEJlKNApcUwCRp +3m4/nla7GbcpyiTX7eXH2l9c6SkSUDhRXj1wyXBi15/XlynJhJ8EYUQCruKN9KDUb4m iDug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ovF/DZ6v"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a4si6174764ejy.359.2021.05.14.11.32.27; Fri, 14 May 2021 11:32:50 -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=@kernel.org header.s=k20201202 header.b="ovF/DZ6v"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233815AbhENNE6 (ORCPT + 99 others); Fri, 14 May 2021 09:04:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:49480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231518AbhENNE6 (ORCPT ); Fri, 14 May 2021 09:04:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F07B461457; Fri, 14 May 2021 13:03:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620997427; bh=KjRucVq9b2NKDaj10nQp3ecBtpjWikZo5h6VILTp9TQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ovF/DZ6vdNyVMSH9t0zjMiEagYR721FRrBVU2xZxXX/OUhYjI4DoeKwouVrElnjNo H2LSDPkvaHREyrn1HyHd22hBkz3doo6H4OkJrDEXpJxqK/vktxIuA+Y7acAYuukBaa 8O0eESoVXTaqfbi08ympBP0C9YMyag7kUEqEptmhtLOP4nWQVjNY971q4Zvmp63YMt FApG43bQoRmB4kFdndQzCDNsl0JV6NwuAMLOJTgNrK92jp4knsyOUt4/jlG789UKl4 nQaqjm0JUA5D0nUp8/StBDRTX5A//K7DIJJsrFgQEHzMgV0l+g4iKzmuREdaMda1QZ 5UKkdWqvLttRg== Received: by mail-wr1-f51.google.com with SMTP id n2so30044378wrm.0; Fri, 14 May 2021 06:03:46 -0700 (PDT) X-Gm-Message-State: AOAM530KCJZ25nhLNBkcuOGsrukBadGFOwRVs7o/kskMcnBcQNwdUi+J h0h3Qwac+7v5/Xe/g6Jn0wrMUz57wfFV2BMBHOI= X-Received: by 2002:a5d:6dc4:: with SMTP id d4mr60213997wrz.105.1620997425625; Fri, 14 May 2021 06:03:45 -0700 (PDT) MIME-Version: 1.0 References: <20210514100106.3404011-1-arnd@kernel.org> <20210514100106.3404011-6-arnd@kernel.org> <20210514114813.GJ10366@gate.crashing.org> In-Reply-To: <20210514114813.GJ10366@gate.crashing.org> From: Arnd Bergmann Date: Fri, 14 May 2021 15:02:43 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 05/13] powerpc: use linux/unaligned/le_struct.h on LE power7 To: Segher Boessenkool Cc: linux-arch , Vineet Gupta , linuxppc-dev , Linux Kernel Mailing List , Paul Mackerras , Linus Torvalds Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 14, 2021 at 1:48 PM Segher Boessenkool wrote: > 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. Ok, thanks for the clarification. Should we just remove the Kconfig option for it then as further cleanup? Is there any other code such as alignment trap handling that could be removed if LE POWER7 gets dropped? Arnd