Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18345045rwd; Tue, 27 Jun 2023 15:51:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5BPBYX6bbtcN8KeJKLZg+reAQqUfLm+zPZbCUi0ymJUo0bJa7jATuIPGLTDvGhy+pwWZOl X-Received: by 2002:a05:6a00:1309:b0:64d:42b9:6895 with SMTP id j9-20020a056a00130900b0064d42b96895mr58125778pfu.5.1687906268426; Tue, 27 Jun 2023 15:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687906268; cv=none; d=google.com; s=arc-20160816; b=nOZqzqZWd0NFl4JK1ylHd0rNULFkK3laj3kTg3I3ErqEmlzhbCAwt476DtLcj5zoMJ aUZuIP39FEa2WlDZ1+kbIGaA33Uh9S1jzdsmFr4/0QzCvDIfNz+RcHNct9PgpBFARdij I0QvGc+kq/QENbZi8cnt7tMu+7T7WvZGdDQJpxmOeq1xe138GV2cF4O4z2YnjToNaND9 qsjmmkuUcdErT7GQ22fqsc5B1dU+heHFPhPEwEQpyMQPpOkWWGiuGJiDhM7j16+DeZKd DwH8Mj3s6QWvJf4gTLRYytFwbb/CSFlmFY3PD3Yd0oi8905gnqEuiahyLnyHiB7QwnT8 wHKg== 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=62ZMa8IP6rzchtKNliU3xgtrtztxTiRDLodjcE3oYKw=; fh=6L2vjCD2WrqIjK4RGvaO3RzLO/G/aoB1zeyn6vmLpuo=; b=moylBUR7BTiGMQEhds8EqsymUKkfaSPkkpuH+fV+Cx4dJGfXdrQwOBHXy7ttGNpNtk HoaAskshICYd/++JTf3hCU3mwR3B0Y+SKTXQDgIYdzPT4nV0toG6fyLkwOzYexmaBQ4F QXFif15A2k7Mr8aL01jpmcVUR+1MwK9LT1/Sc6RjU39AmrQGqXwzq81CE/5AmzJupqSW HCwOKVTm6COXXT6Er/jIXnl29eowcWn2yt9Se6vldejS0Y7Rsucx5MiNKIl5HXz3uE25 6FsYkkIXs5G0SyeNwQMVkp0WhImnz3hgj6RB91tOIRqZn13ewyphmtSq1jZB29D5eyJo UECw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=B+n6JzSC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cp22-20020a056a00349600b00643c4345942si6182901pfb.134.2023.06.27.15.50.56; Tue, 27 Jun 2023 15:51:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=B+n6JzSC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229823AbjF0WoG (ORCPT + 99 others); Tue, 27 Jun 2023 18:44:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjF0WoF (ORCPT ); Tue, 27 Jun 2023 18:44:05 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 794BB211E for ; Tue, 27 Jun 2023 15:44:04 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-51dd0205b2cso23177a12.1 for ; Tue, 27 Jun 2023 15:44:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1687905843; x=1690497843; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=62ZMa8IP6rzchtKNliU3xgtrtztxTiRDLodjcE3oYKw=; b=B+n6JzSC5idXgfE44FSmmDdBudiS0zYbWvLaq9xowdVCDRYQVO1zmi6gXhHFp+hj+D 08DdaZK00cxAVDCyXIfHti50mYI8PWry8G4FCuyJPG7NEDveZEH4V/OIfFP36mBGCwrG oIl7Hk+jg+7Z/V0uZ7d8C8s8SrmGg1HRRplF0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687905843; x=1690497843; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=62ZMa8IP6rzchtKNliU3xgtrtztxTiRDLodjcE3oYKw=; b=MPFGgoI5tnGjnD+aaImIUyGqFzD2IewUOEZ6MucX8qwy+gk/QqqoK6ovbw9/2b+Qai RXzGEkRyvv1PP7YV+joJpWDxE6TDCCsx4oJ+X9TFGp4ZBvDPLKDmtfhskp1nWigKDYQe IBVQiHjh314jz8a5LEDxqW4CJ47qekntbKccpGeEhjp1YE2ln91C19wausoMNBhFmlzk UJmnkO4JAAVKDnMN6roJ7ZiXrYOqkw79ut86o9P9f6Czrmr+lkC3ZBWH+p/vensmlhhM iN59Nrmd7E1sUtlGuvPXdvN/bZDY8WRBgDLuR6uDHzWr3hm9U+BKgIF3o/G7/078A9Bi JdUg== X-Gm-Message-State: AC+VfDzFMHvRyBb5drIVDRoQ1AWa+APAKE3rDIcOsElBrxdD/MZRVbSR iLW87HGIPl04zpBtoVRsrCgJ1DB/nTP7bXSkM0PM/6xe X-Received: by 2002:a05:6402:34c7:b0:4fc:97d9:18ec with SMTP id w7-20020a05640234c700b004fc97d918ecmr32994129edc.21.1687905842923; Tue, 27 Jun 2023 15:44:02 -0700 (PDT) Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com. [209.85.208.52]) by smtp.gmail.com with ESMTPSA id h9-20020a50ed89000000b0051d888df7f8sm3975793edr.56.2023.06.27.15.44.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Jun 2023 15:44:02 -0700 (PDT) Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-51a52a7d859so649612a12.0 for ; Tue, 27 Jun 2023 15:44:01 -0700 (PDT) X-Received: by 2002:a05:6402:1614:b0:51d:927e:316f with SMTP id f20-20020a056402161400b0051d927e316fmr8347079edv.19.1687905841740; Tue, 27 Jun 2023 15:44:01 -0700 (PDT) MIME-Version: 1.0 References: <20230627110038.GCZJrBVqu/4BfdyBeN@fat_crate.local> <1982e4b4-3858-d456-6c90-92782b95726a@linux.intel.com> In-Reply-To: From: Linus Torvalds Date: Tue, 27 Jun 2023 15:43:44 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] x86/misc for 6.5 To: Arjan van de Ven Cc: Borislav Petkov , Noah Goldstein , Dave Hansen , x86-ml , lkml Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 27 Jun 2023 at 15:25, Linus Torvalds wrote: > > I don't know what the rules are - and some of the functions you test > seem actively buggy (ie not handling alignment right etc). Oh. And you *only* test the 40-byte case. That seems a bit bogus. If I change the packet size from 40 to 1500, I get 02: 185.1 / 186.4 cycles (8b414316) Upcoming linux kernel version 04: 184.9 / 186.5 cycles (8b414316) Specialized to size 40 06: 107.3 / 117.2 cycles (8b414316) New version 22: 185.6 / 186.5 cycles (8b414316) Odd-alignment handling removed which seems unexpectedly bad for the other versions. But those other functions have that 64-byte unrolling, rather than the "two 40-byte loops", so maybe it is real, and my version is actually just that good. Or maybe it's a sign that my version is some seriously buggy crap, and it just looks good on the benchmark because it does the wrong thing. Whatever. Back to the merge window again. Linus