Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp5256rdh; Tue, 13 Feb 2024 07:52:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV7KCC99hEjtw26EGRu4e2niakef1WPhdC7aG17BGC1aTs4/Ajry5VYZ5HzHezvICVv0czYwbLBeejCTmjmXcFL8fcoR/d8QZFzYnOjNA== X-Google-Smtp-Source: AGHT+IGv+K8y+Iraq9SsnpkCKmlyFXDF9TbD+NUp6UNRGefVKDRDfvtFXBVfTBuBOzpkEbNo26U7 X-Received: by 2002:a17:902:6b46:b0:1d9:6091:6f3b with SMTP id g6-20020a1709026b4600b001d960916f3bmr9800480plt.47.1707839528710; Tue, 13 Feb 2024 07:52:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707839528; cv=pass; d=google.com; s=arc-20160816; b=OqrpqVyYVpcVcEIUUeUP9OkqghUlrlU3RGcezPGUjDDtU4OYrpuvwdN86JQIQyFFDI Q2UpRMrpiVplQTTbDJsptc/rAB94/+YMzGGmjHR/7raO2v2tHU2W1sRO6jlEo86Ry7oz wgwjqRR+j/WO0bcDW1XXQCH7vE4aS0njVa5X1I3oNyHQqKzRGWY7cIxhe6kqvF3ZZjME PlH96WaXInN5Bk8K8RnYE972CGDmoSKsDWGxoA5RfcM29cAFv7RumaSH6uO5qrbdy7dT Yf6wgGtXwasFoIzdpSLbZv3bb9h8I6cT2m8azGVoVxeqFtBK4lTZGhUYwYaEeMBtyr0V l27A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=U+3BpPKMjD1J2fSsUJskQB1Fc9DT84H9Okdrmy51Z0A=; fh=HQ9dVdqVOx732576zpvtnmyVYxMbfAgexPwtIzZ2wSs=; b=ZtdbAHA23sprF2Z1xxXzfWiVtzMwmi/VZBkNp5pjKjjwSpDjBZnPOtMz1uTbyScajy LLUesuadIvW/ob6kXyEtKL2eEZWFSIddm3n4ijig/wrompTIBMjJuE7teSMIQZAtOhIb LwmKW8d+so9I1eUUXObAq+loQhpIXMLNpGByTkqP4uawHRj3/+6zi0e9RLA5vSteABfd FwnuoefmLQj/V+RkBBi2TdguDJIFDWzjTE+cc4JzvlPf2S6pXpkcw9zlJ6bAvEChcpOQ cUmzymDh7L4eZcWg1U2t0H9US7zBuEICZxT3gLbCqWEWdrZk5YoB+kXOziiF9xqEh00e 20lQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BuQpxVsc; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-63835-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63835-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCXN6JJGEUQQf/CVKJhCvHT0XJeqGLvr3Zu6lzh9TV/ZLDF0sn9K9dTLq8JeBumC/30ftW0bQVZI39SlRdejl6XxjXmJxaKD35i4wJVweQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p15-20020a170902e74f00b001d6f2929011si2188698plf.21.2024.02.13.07.52.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 07:52:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63835-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BuQpxVsc; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-63835-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63835-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D2859284890 for ; Tue, 13 Feb 2024 15:52:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 941405F845; Tue, 13 Feb 2024 15:51:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BuQpxVsc" Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (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 3F6EA5F540 for ; Tue, 13 Feb 2024 15:51:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707839506; cv=none; b=I/TFZNv7e85PWqM0lzrxQV+drmt1JgD1kCsH97Iuc+uWjxctPwBgz/BHh5M87jX4Eq1iToRqWcyYVvg4sVld+88xIeAlu7FIMhU9GwW5sKt7OqBNSH9ilpIYdn+aujvAglfuOQ3UYJ83C9jT/3KX43bw4vNKpFjFqvpjt6R6vhM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707839506; c=relaxed/simple; bh=q/kL3NK0Oh6JKbtt5pAiHpip2kdsHCnqNt0VYwL9wDQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bEn4a2+FEaQX7q75ikIaeqG1aHsEZ/fkIkpgjXLALci5JNhNsxUOHFKW5besNqdXb1Eie8T31V98qE4fGGYu1K12DiKHKGWMCor1kG05Xzw6evNaM6ROZEoJmhhjw1nAuJ6osjB2t4GUiWtQbGLPYnwoF/A1HFSjTqfY1+HfCNg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BuQpxVsc; arc=none smtp.client-ip=209.85.216.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-296dcd75be7so2664227a91.2 for ; Tue, 13 Feb 2024 07:51:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707839504; x=1708444304; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=U+3BpPKMjD1J2fSsUJskQB1Fc9DT84H9Okdrmy51Z0A=; b=BuQpxVscxxm+0bvzGjRWZuvq74k6Aowheg8enkdI71QW2YCEAYK8ZSA6GryZM+s26x iie0oF5TJqAja6l5KGuDUNsyjoA6QtV96Xty4EFPFdIV2WSSvteWqg2WCzLr/VFVeYOC VcohjKL5Xd5msqNYsaHDng6+QjeTCLKNDiuPK7oEM3qSHSNOLWlk07i9fZ1uJwby/4K0 x4Y3rUpFqXnpPZWxL+UmTNgkqj1A9UtcUgssMLbN8sT5ImF1inhC1WopJu5YJEFQOE7R Xr4geD37RHN17mRUlGZaEEojYVyTX0KAW0D6/pQUKOQA1joB90eM2pvJ43y2vS/IswTa 7Qbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707839504; x=1708444304; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=U+3BpPKMjD1J2fSsUJskQB1Fc9DT84H9Okdrmy51Z0A=; b=SSVGz4u+v+nngi8tIoAyKpd/bCQqV7i/8Sjb8MdxqM2rfwHUxwZSYrm/DJr+uU+YIu du4kUsE8irjHWGblsd/mJ2YqWKQSFkWnHkcdZKOSjARK5WM6qcYvz+ckLibPhcxULH4d NlJ880+TDPmSXE7y5X7tqtaHpDIEChz2KyY4KFk/UXM+Varszc5cssTfqujdHEThCpsD Ek/TKEkKDBtGaKRSaXN9rXrAQJFjQ7Rvy/yqdabdmmWxjazCBOIaVPBn9tAIozGYSLcW 06gnN/Ql1eUw/k37S7rURfwyRJrOeLN5WV72VJaDAwU7c3dVCF3t/ZPipIa5jp2NWOGh inCg== X-Forwarded-Encrypted: i=1; AJvYcCVQ9sCnslooKTloy/Joros2OcnbUYV9eccRmu2rbzFlfsg3KGhqyCYt9KOMqZcofsJhgPvlGcjfxVRMBVakLcpK3PRKG1LfUfq9Bl1j X-Gm-Message-State: AOJu0YyBmK+1N3XkJazk0PmGCsTvaMUvry+TkhQppumAWVcdp9ulFDJu c/s1iQiGm/8gFEsepAIpovRdFk/PZEgJ6adBcEmKSRpZl9WLZypE X-Received: by 2002:a17:90a:1fc8:b0:296:cc9e:89a0 with SMTP id z8-20020a17090a1fc800b00296cc9e89a0mr7558147pjz.38.1707839504373; Tue, 13 Feb 2024 07:51:44 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXYBK900j0AubnvtqZw87qgFis1cRZ6WxbcAPNAGuJKjeJ4ViPt/NqCBpnELJCDORoNdyCE22Dpk0yqEQVhire0XwCyCmHScK0f78jpwNYxYu0bZM1Tp+oisga+nxLBKG0o+i+lwGkBnQX8NX6rZnoRAjI7hJY8XLHdCeiHyju/Rcg28+3jaq6r88MYqj52EF25eT65 Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id rr16-20020a17090b2b5000b00296a23e407csm2690654pjb.7.2024.02.13.07.51.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 07:51:43 -0800 (PST) Sender: Guenter Roeck Date: Tue, 13 Feb 2024 07:51:42 -0800 From: Guenter Roeck To: Charlie Jenkins Cc: David Laight , Palmer Dabbelt , Andrew Morton , Al Viro , linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 2/2] lib: checksum: Use aligned accesses for ip_fast_csum and csum_ipv6_magic tests Message-ID: <3e73b623-07c5-49fc-b76f-4fb3d29dd203@roeck-us.net> References: <20240212-fix_sparse_errors_checksum_tests-v7-0-bbd3b8f64746@rivosinc.com> <20240212-fix_sparse_errors_checksum_tests-v7-2-bbd3b8f64746@rivosinc.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240212-fix_sparse_errors_checksum_tests-v7-2-bbd3b8f64746@rivosinc.com> On Mon, Feb 12, 2024 at 12:33:05PM -0800, Charlie Jenkins wrote: > The test cases for ip_fast_csum and csum_ipv6_magic were failing on a > variety of architectures that are big endian or do not support > misalgined accesses. Both of these test cases are changed to support big > and little endian architectures. > > The test for ip_fast_csum is changed to align the data along (14 + > NET_IP_ALIGN) bytes which is the alignment of an IP header. The test for > csum_ipv6_magic aligns the data using a struct. An extra padding field > is added to the struct to ensure that the size of the struct is the same > on all architectures (44 bytes). > > Fixes: 6f4c45cbcb00 ("kunit: Add tests for csum_ipv6_magic and ip_fast_csum") > Signed-off-by: Charlie Jenkins I don't think holding this up for the sake of parisc64 (where the test fails on qemu if the addresses are not 8-byte aligned) make sense, so I would suggest to move forward with this patch series and address any remaining problems separately. Reviewed-by: Guenter Roeck Tested-by: Guenter Roeck Thanks, Guenter