Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp899966ybt; Fri, 10 Jul 2020 15:38:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy33RIHDcOJRVJjRgkxUcQkZuf5DYyaDCKk/th48wuwSwEfPQL2JE4Kyj6PhMJ2nmx1bLqR X-Received: by 2002:a50:ee01:: with SMTP id g1mr71269192eds.264.1594420684237; Fri, 10 Jul 2020 15:38:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594420684; cv=none; d=google.com; s=arc-20160816; b=aDEChiTuecF0mZXrWbhD8y3vHoNzdn0Jt4xrdg4OcPqP/RMv09yd3KO9go5eolxIx9 RjTeIzCxRCEuwCu0l1aT1fZ0rGgzg7fJSslFPBWAyk74w0aqV8Swh8Zo2NbpA8gBXshK 49oSXSHBw4UnR9gkn/QcQ1GgOuftGlB/bYZZHuLC9UXYRCWUI0IGNDQETnYhN9/TXj0K 8mPVrG+dM0opQAeIDHTallyrDhFCZWrpIeCzA/m3Z0oLiMxwdjMfjR3jyzBAvYpblMFB AbeZFeYy584nWnWB2uqFbiQDp1Ynkqw3HQpKV5Qq6ygwvXr7mdcRmXvGelxHtGIZRUdK M8dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=EOOtoPj/TYBlLc+eU82ZHIb+aymt/x6TobGnTd4fwRE=; b=FgGpTgjoN0a5T5+LW+YR7i2UJR8r0f3Oc3nwLsZjKUGBsYbm9AVHB3I586zXw76ciU gDEcJ+gLqhHNf6oddET9rV/UswbRGGgcZWAx3r2ZLL5T8AX2Ky93XGadIP1Xk/958Jaa 0YN9kBtgjgDuNdLCaBelzZeYZJWBSkKCeLC2x11mAYyc5gIZM6bwsAgvpT6430Qf3+OT yUoQjpB8/IixfUR0DyFopQeVSsLB8D25+Rfe27dTsOKmOfwRjA86ynrxHpptQkmE39bF Qga9rSp1Id2fAJzSksdLTPh/7Zw4O9KZJOCdHyWBPhEtiTYR6Yz2Y3pA0AxjpKZU4Luc 475Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="dIx+a/Ow"; 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 rv20si5042926ejb.420.2020.07.10.15.37.40; Fri, 10 Jul 2020 15:38:04 -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=@linux-foundation.org header.s=google header.b="dIx+a/Ow"; 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 S1726845AbgGJWhc (ORCPT + 99 others); Fri, 10 Jul 2020 18:37:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726823AbgGJWhb (ORCPT ); Fri, 10 Jul 2020 18:37:31 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43962C08C5DC for ; Fri, 10 Jul 2020 15:37:31 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id e8so8175674ljb.0 for ; Fri, 10 Jul 2020 15:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EOOtoPj/TYBlLc+eU82ZHIb+aymt/x6TobGnTd4fwRE=; b=dIx+a/OwAnrG8R/KYnef3nenl3etd7RuZhDAvmAKf7ajW9FgZYiY8mwJH2kbJjCGgL 3Eqx+OUt+DfTqjhEIgVjZIcJuRAUMoSbLLJVDrixXdLI6pQjJzHO23RA08UVqdtmORyA GTqR0ieEhppw219L++AfD2SD316wsFRClTDOQ= 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=EOOtoPj/TYBlLc+eU82ZHIb+aymt/x6TobGnTd4fwRE=; b=J6v50puw/INOL68oY0EMBQH/AEp/8noCSaDJXgeCfg/FoHf9obAHkiE4gUdvSXdZlo QjZOvrFdPqD8PMVvwtOAKxtg6Y9/YRgVZdupHexp1oK3GT6OqnVDsVBEQl70y+kKU1S2 f6woaSlo1IXEA3nYqjvAws8U+h4VBQe5bsQu1C8PKGakEM31bRbO8j/ijn+lkIEZzEg7 6SmQH6MaKKejY64Bo9NVkdw5ounhaQpBGU0clQGafP4vj2IGAuFKZBeOmaPWOkNjV5VS DG5sdpxMFlZewX3n4kAGrOVtcENTUC9XPQtQ2Sj4aDY1gBdrqJgn7y26ArtIRwFk8hi3 QeMg== X-Gm-Message-State: AOAM532i8MGPFDTZcY5rMR+AX5Exw3WtNFPuVGUbzt9UNwF20VClaTtd TtJFwdMlI3+siq+FMgMVpfGPh7dUGcE= X-Received: by 2002:a05:651c:1b5:: with SMTP id c21mr16337147ljn.82.1594420649264; Fri, 10 Jul 2020 15:37:29 -0700 (PDT) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com. [209.85.208.175]) by smtp.gmail.com with ESMTPSA id 203sm2349338ljf.14.2020.07.10.15.37.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Jul 2020 15:37:27 -0700 (PDT) Received: by mail-lj1-f175.google.com with SMTP id h22so8115563lji.9 for ; Fri, 10 Jul 2020 15:37:26 -0700 (PDT) X-Received: by 2002:a2e:9b42:: with SMTP id o2mr40467600ljj.102.1594420646447; Fri, 10 Jul 2020 15:37:26 -0700 (PDT) MIME-Version: 1.0 References: <87lfk26nx4.fsf@mpe.ellerman.id.au> <20200702201755.GO2786714@ZenIV.linux.org.uk> <20200702205902.GP2786714@ZenIV.linux.org.uk> <20200703013328.GQ2786714@ZenIV.linux.org.uk> <20200703210237.GS2786714@ZenIV.linux.org.uk> <20200704004959.GY2786714@ZenIV.linux.org.uk> <20200704021157.GZ2786714@ZenIV.linux.org.uk> In-Reply-To: From: Linus Torvalds Date: Fri, 10 Jul 2020 15:37:10 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: objtool clac/stac handling change.. To: David Laight Cc: Al Viro , Michael Ellerman , Christophe Leroy , Josh Poimboeuf , Peter Zijlstra , "the arch/x86 maintainers" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 7, 2020 at 5:35 AM David Laight wrote: > > > So separate copy and checksum passes should easily exceed 4 bytes/clock, > but I suspect that doing them together never does. > (Unless the buffer is too big for the L1 cache.) Its' the "touch the caches twice" that is the problem". And it's not the "buffer is too big for L1", it's "the source, the destination and any incidentals are too big for L1" with the additional noise from replacement policies etc. That said, I agree it's likely less of an issue these days when L1 sizes are bigger, and thankfully direct-mapped caches are no more. It _used_ to be that touching the location twice was very very noticeable in some situations, it may not be so much any more. Linus