Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp3350rbb; Fri, 23 Feb 2024 09:51:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV5LRauvTIzKv7skMdwzLbKPmjIsCEIAmXRhmTiYZtz454En7V1x0g2omzoykW9A+VluldyIQcsjrJfie3yYGvr9gHIfdkwuvbZXPrp0A== X-Google-Smtp-Source: AGHT+IFzFLu6pfO/BImKMWV1+gBa1UHNXqFVrmgh3qzVUwakiZ5ZK37Ug+ZuIca5XmDsbulbH7f+ X-Received: by 2002:a17:90a:bd09:b0:29a:8b1b:1f61 with SMTP id y9-20020a17090abd0900b0029a8b1b1f61mr428206pjr.17.1708710701701; Fri, 23 Feb 2024 09:51:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708710701; cv=pass; d=google.com; s=arc-20160816; b=wjEe6P2b66uSFDyPzoekWVnjYNyfHoLf8YuweWtokRptfOUZD1oSnr3JG233OHqjUs uP8jUdGfTzSYtqjbCsakwrkm4rdTviD6Rj0BFLF4dmmA1FIxiupkyURVub4w/qD/V/4A FWP2i//d9tdtCb8i+T06pbxnBNfDrsOuU0jA1actJtCmJJ3bKbUGOT45pE8eBVf8Kv1o 0KwHKSwu0qozVZmUu7wR9IWjxNnF0EoCqDkzJzWma8REz/dCCJ7Ya1FDzr3Eoev2iOW3 6TnJ2MbQ+gel5jnCfC4foT7vt+vAQeI/IQK0DD2um63ecOeqyM1YXY/1bQ/fl8xR8Osn OTTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=aNrSU9nuVeOXLyI/gl27U9+uqESAnu3d8kpcXt7XnhE=; fh=i0BRVv6BQ1uj2PoKeHHnT225teb9VJ2kNNXqdMFtfeo=; b=AJl5slmsIefl5iYMFHptN8vvTtAd6H8rrDk6Y6QxxHgHEwHNKik7JzgPg0gRxuvx40 c41x91Cjq1lwiCzO2x7z738fZty7q8Po5pVcV/gqs68zrhlTjzyHZIwrhqC1hcX/Ic13 ytdBL3BSKX8O5nIeIHs2fo6dXALUG1OpjmU7exoy2xhjaYVzc3cVC7M6HYQzAqRG/f/K 7QDK0S1vILMWd24rTcdPyNAMw5UMkux0oyr/5S3LEnBbyUvP5aGV/IDL4Wz0pQrRoVHI fcZEMk7d1PP6uHRV0IjadOUutzyshIoaKzZp1W9bs3iWIgKpcH6Ro/kzX3rxCJ0qp02X hQ1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=G+ZUSZ8z; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-78883-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78883-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id g14-20020a17090a128e00b00299ef592509si1530820pja.106.2024.02.23.09.51.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 09:51:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78883-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=G+ZUSZ8z; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-78883-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78883-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C0D4EB220DB for ; Fri, 23 Feb 2024 17:40:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 54EC113A262; Fri, 23 Feb 2024 17:39:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="G+ZUSZ8z" Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (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 E417D128388 for ; Fri, 23 Feb 2024 17:39:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708709962; cv=none; b=QnXOqax2mLexocZn3e2wgzEVGTIZ2M1YgY0pwILozH/+1HvI9Dd/lTPWzCdIgDpXnC2E+S1aPJjKHLb0soxlsjkzxa3qAe0NvtODsHxdq2oivieAdElQs9foOSUOYRrMzzc5d3kPm8vOalCVm2tVXNnD2ZmwMjaaXfAmAmPSyn0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708709962; c=relaxed/simple; bh=fjMvw5PejpBRISHQzjnQdIlSvl8+8KPhek5ZeCQS+3M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DypEW1aWi3EdMRd81SwfSwXPpdDGuyeOM4t6uD3XjKJUhj1KMkm+uUTlyezzid3VuHxGcoG9gLYAaPlq4J7rjXPU5Et4u2vils1nf/OAmcji8eufCst0YcbzMAY8sO/4TheXkc+BEMz+PiMusv5EHkBYUPJe0EGc/1Pi6M5S0Z4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=G+ZUSZ8z; arc=none smtp.client-ip=209.85.210.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-6e48eef8be5so808004b3a.1 for ; Fri, 23 Feb 2024 09:39:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1708709960; x=1709314760; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=aNrSU9nuVeOXLyI/gl27U9+uqESAnu3d8kpcXt7XnhE=; b=G+ZUSZ8zsxx3jKATTJpZQMe8kTzKdGS7m8eMnhdp5pbHlxhVx2b61vAkMOA21jOnS9 loZPmMiH4QrYxL7vDKWg9aS5gFxXnybEQq6PrbsV8HEO0n1GkLlBQzpeMHn+Q+Eej/r3 oycXjpF1HHEKvbYWSDBKNCLz5fHDAi80wP0Pm1xBz1n2knW4UQjFgN/kL/+8tPNonLzU bXgXpARarPsijU5h+fw636zqzM9mXf/Ep+md6VRyg/MXg61+1HU0d+JcVJKOWUFZ5IdH Qnuo270BDOSA8CYjC91guTxei9jYlBgGIOEXe5b/faDnaxBAGQSlc/apD/+0+cNDG8uD LUgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708709960; x=1709314760; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aNrSU9nuVeOXLyI/gl27U9+uqESAnu3d8kpcXt7XnhE=; b=TzJ7a31sqVBMum0GuyJKIBSpIqRwH3UDrS+ACPpoZAc4Noh1PfWV81yrwlN3/VYUmZ psIdVCPeZ7AmRvLV2V1pi15Rip2no6aPa4Rk2NcIhnXYu7NTrUMYqdSqVN/I5hCDVkqB UAuAehu5JCtO1+eiKX5V7TPfIkGUzeS4T+8iK8fhxNS3gIcagaJ+K2CUw8wjJTkc9Flr 1rB7giL4UdhDCUW65NhufGJ0dKdOXTfsws92ft4F5/oXhdgfZa7MBt532HFLmB+sTsR+ 4jrmMRjKHHdZA7NIpkvAw15EqKRV1ekL1MtDlz9BB6x/3D5UkGaUlR3A7WNfj4vGEdm7 /0Dg== X-Forwarded-Encrypted: i=1; AJvYcCUK86YTw4UBAy/w1nhKG+Wor6RUmRa0OkKDM+y5gLL5zfpAqdlUCkOYOTQY6IpScTDuFlh2AUQ9odG+mqf6DT/pkW6YBcLDIvcKadRi X-Gm-Message-State: AOJu0YxbQLYpXm6WYTEi6fIjuE/NGv8SoRoFNR9fRqeTdl04WoHooma3 dLbh78vFf+r1u2cJByb3gY6wEvgR8He6BLeIulxIHcgmPPP+k4jiCx+3+XvgkTDk1+AncXZOcNt 14L8= X-Received: by 2002:a05:6a00:987:b0:6e0:5344:1e86 with SMTP id u7-20020a056a00098700b006e053441e86mr733662pfg.23.1708709960302; Fri, 23 Feb 2024 09:39:20 -0800 (PST) Received: from ghost ([2601:647:5700:6860:a351:1ab0:98d6:3d53]) by smtp.gmail.com with ESMTPSA id h17-20020a056a00231100b006e4de94c112sm1795249pfh.66.2024.02.23.09.39.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 09:39:19 -0800 (PST) Date: Fri, 23 Feb 2024 09:39:18 -0800 From: Charlie Jenkins To: Christophe Leroy Cc: Michael Ellerman , Palmer Dabbelt , "linux@roeck-us.net" , "David.Laight@aculab.com" , "akpm@linux-foundation.org" , "deller@gmx.de" , "James.Bottomley@hansenpartnership.com" , "linux-parisc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "lkp@intel.com" Subject: Re: [PATCH v9 0/2] lib: checksum: Fix issues with checksum tests Message-ID: References: <87plwnabm1.fsf@mail.lhotse> <2c0ed167-4566-4120-80fc-a2f40539c27b@csgroup.eu> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2c0ed167-4566-4120-80fc-a2f40539c27b@csgroup.eu> On Fri, Feb 23, 2024 at 09:22:58AM +0000, Christophe Leroy wrote: > > > Le 23/02/2024 ? 08:22, Michael Ellerman a ?crit?: > > Palmer Dabbelt writes: > >> On Wed, 21 Feb 2024 18:55:48 PST (-0800), Charlie Jenkins wrote: > >>> The ip_fast_csum and csum_ipv6_magic tests did not work on all > >>> architectures due to differences in endianness and misaligned access > >>> support. Fix those issues by changing endianness of data and aligning > >>> the data. > >>> > >>> Signed-off-by: Charlie Jenkins > >>> --- > >>> Changes in v9: > >>> - Revert back to v7, the changes to v8 were not needed > >>> - Link to v8: https://lore.kernel.org/r/20240214-fix_sparse_errors_checksum_tests-v8-0-36b60e673593@rivosinc.com > > ... > >>> > >>> --- > >>> Charlie Jenkins (2): > >>> lib: checksum: Fix type casting in checksum kunits > >>> lib: checksum: Use aligned accesses for ip_fast_csum and csum_ipv6_magic tests > >>> > >>> lib/checksum_kunit.c | 396 ++++++++++++++++++--------------------------------- > >>> 1 file changed, 136 insertions(+), 260 deletions(-) > >>> --- > >>> base-commit: 6613476e225e090cc9aad49be7fa504e290dd33d > >>> change-id: 20240119-fix_sparse_errors_checksum_tests-26b86b34d784 > >> > >> I put a > >> > >> Acked-by: Palmer Dabbelt > >> > >> on the v4, but looks like it got lost. I'm happy to take this via the > >> RISC-V tree, as that's how I merged the broken patches in the first > >> place, but no big deal if someone else wants to pick it up. > >> > >> It looks like the issues are all resolved and such, but there's been a > >> long tail of them so I'm not 100% sure here... > > > > I tested v9 on ppc32/64 BE, and it fixes the test failures and the > > sparse errors, so LGTM. > > > > Tested-by: Michael Ellerman (powerpc) > > It magically works, but patch 1 is wrong and patch 2 subject is > unrelated to the problem on powerpc. > > This fix series needs rework. > > Christophe I will rearrange the patches so that patch 1 fixes the endianness and patch 2 addresses alignment. The second patch is subject to endianness and alignment and the title only including alignment (but the body including both) is the source of confusion. - Charlie