Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp455007rdb; Fri, 5 Jan 2024 16:19:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIO6f/AE3OvtwxPZ2CDG68Df5vq9gUTHE3asmF3LFriZDVl4O68hgTpqyvCY/kxOTQ5EgL X-Received: by 2002:a05:620a:c89:b0:781:a6a2:9a40 with SMTP id q9-20020a05620a0c8900b00781a6a29a40mr196591qki.136.1704500362159; Fri, 05 Jan 2024 16:19:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704500362; cv=none; d=google.com; s=arc-20160816; b=Z1gPkiyK+5NswreRCXeyT/ZGA4R7h7b2ULPuLaQb8206xgy2wC7RZPjD3E7ZSobyx4 9loBANHEXQuehRMMRf4wfcqpFrn1Mre71dpY9sEq41DfUZ3PukFBhJewMn6NiF4PlBYL 6MoGV39jD45FqCIZJA+4qYhcNgSOyCxkj2VAVS83xHVfOzeG13P8tY1OeJ8wcggW9iU+ 61HXU4Uj8qW1rNnN3krLMor+L4W8MgT+z5VWYlmw2Uf4c150cLzW/GA8y8tBKuIk7uoo i7nmDya/JLJxTNxU/NXC2u2tzr885hADXQCgrwzRlSqmuZExjnVlb106v/x3Et1gqWSC stQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=KkrCdBNLcmk3x1SV45s/V/SWlteI2qUXSQc1BGercgY=; fh=FGP6VcxrBn2tea4kwHqXZu2p1vqehMN7XN0L47F/71w=; b=PuZ3sL0dv0F5LAgHjFz+9nxTIRanxBeeYS8r+y0rTdPzu35QTfV026RLBhsodtHOb+ EO0K+12hUJi2OqsYfr9KhTcrV+g9sliNUqo0Y4CoTAE/3F6gYuQp3GnMwQaY3tRejuD6 3XoC64Mb0dzU1nsEj62jHle9S4NxnhQJJu26a7Y2+HNZLWBGUI2gYRMxUtPjsVWonfqg eTzPx4nifEdppaCPSpX1/tRF2aCctLLLo/cZ+EiqEdFYI8dhAZS3niwEd1WX3V4tAVDC kCg5xoWCpMFwxg/e+4JDD7smKB4gtUwBknlj7usjJiLGEXOuiTkbLpdn9mSaJocu9ffD UuUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=JoDncbd1; spf=pass (google.com: domain of linux-kernel+bounces-18433-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18433-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bk15-20020a05620a1a0f00b0077f6791999csi3040726qkb.392.2024.01.05.16.19.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 16:19:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18433-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=JoDncbd1; spf=pass (google.com: domain of linux-kernel+bounces-18433-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18433-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9A0621C2342C for ; Sat, 6 Jan 2024 00:19:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F2D8643; Sat, 6 Jan 2024 00:19:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="JoDncbd1" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8C84139C for ; Sat, 6 Jan 2024 00:19:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a28f66dc7ffso195792566b.0 for ; Fri, 05 Jan 2024 16:19:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1704500342; x=1705105142; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=KkrCdBNLcmk3x1SV45s/V/SWlteI2qUXSQc1BGercgY=; b=JoDncbd1Tbv9C/kmQsmHN+w/Jx7jpqimbyH7N0Lke8bDaVXWD+WNOGSzqTY5dHKF+P B1s6LUgWrSva2oxyHFh7VZoyGRVPwHO176JQvkmSXdCb62yzLYYrW4nYtuPV6Rd+ZHVL huQ2qJr8PXf1MzwhJG4m/ow+4MYDQqnrd96HY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704500342; x=1705105142; 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=KkrCdBNLcmk3x1SV45s/V/SWlteI2qUXSQc1BGercgY=; b=JdfFtp2NUdIZzqtkpJ2eNZ2L1giQCIlXeRf8fhbpGMBsp3419hjTU1y2fCPQUuHt6Q SJCHFB1MIdLKu0PEwPr/d5A7J6R/XX/pXvvMqGNYBMVby9Mj2X+mFpGCs01v1Mgw0XlA 4EyBNwDO4Oisuz+uK2gbuXaLi0NTF2r/fruWXhA1miVbXGBh0GZYUlMkWs9uTIHaNOxs ifUwophEhbkmq2w3jr2w6flT9m3lt4HSyCgG8UwYz0WqQkAvTu0/VquEzrdUfDOqeR1h 0J92db06hOSJeS7Hsp0MGqO+wRsaoZIX5rwoAk8mdhxWXKG47NC936Lwzxbyz3kovBfj iGhg== X-Gm-Message-State: AOJu0YxNyBWqObBrKo6zKIDEPR+eLlA6yzOImOxZPKG+zVg4reJ2f/WG uCzYQf+ryrh82IX7n+NEDNd8dnBgd6IFkOijO8RJ1rMQT+gg8aAw X-Received: by 2002:a17:907:9449:b0:a29:b898:93cc with SMTP id dl9-20020a170907944900b00a29b89893ccmr694880ejc.28.1704500341879; Fri, 05 Jan 2024 16:19:01 -0800 (PST) Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com. [209.85.218.53]) by smtp.gmail.com with ESMTPSA id mf5-20020a1709071a4500b00a2534aebc21sm1377578ejc.40.2024.01.05.16.19.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Jan 2024 16:19:01 -0800 (PST) Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a28ee72913aso193430266b.1 for ; Fri, 05 Jan 2024 16:19:01 -0800 (PST) X-Received: by 2002:a17:906:fe05:b0:a23:5939:759e with SMTP id wy5-20020a170906fe0500b00a235939759emr344150ejb.26.1704500340786; Fri, 05 Jan 2024 16:19:00 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20230920192300.3772199-1-goldstein.w.n@gmail.com> <202309231130.ZI5MdlDc-lkp@intel.com> <5354eeec562345f6a1de84f0b2081b75@AcuMS.aculab.com> <204bf145e6ad47219c005e9a4407ebdc@AcuMS.aculab.com> In-Reply-To: <204bf145e6ad47219c005e9a4407ebdc@AcuMS.aculab.com> From: Linus Torvalds Date: Fri, 5 Jan 2024 16:18:43 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: x86/csum: Remove unnecessary odd handling To: David Laight Cc: Noah Goldstein , kernel test robot , "x86@kernel.org" , "oe-kbuild-all@lists.linux.dev" , "linux-kernel@vger.kernel.org" , "edumazet@google.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "hpa@zytor.com" Content-Type: text/plain; charset="UTF-8" On Fri, 5 Jan 2024 at 15:53, David Laight wrote: > > I'd have to fix his benchmark code first :-) > You can't use the TSC unless you lock the cpu frequency. > The longer the test runs for the faster the cpu will run. They'll stabilize, it has soem cycle result aging code. But yes, set the CPU policy to 'performance' or do performance counters if you care deeply. > On a related point, do you remember what the 'killer app' > was for doing the checksum in copy_to/from_user? No. It's a long time ago, and many things have changed since. It's possible the copy-and-csum it's not worth it any more, simply because all modern network cards will do the csum for us, and I think loopback sets a flag saying "no need to checksum" too. But I do have a strong memory of it being a big deal back when. A _loong_ time ago. Linus