Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2627364rbb; Wed, 28 Feb 2024 07:42:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVZt6IgJHrIXOuHRJc0JFeBToNgjtdqmhrW45C1dQYPJjxCgPcLSsBWcz+hOiJTSnhDpI1q0pdhWEgCKk/Kz8+gQ9l5nxo2i4nOnTux+w== X-Google-Smtp-Source: AGHT+IF/Dae6vVN8IhGFab6p57bArTLl8MNFrYkMg5bv29aN0u62oXaGzijr831dRW/qibvwaqY/ X-Received: by 2002:a17:90a:f0c2:b0:299:14c6:4fc7 with SMTP id fa2-20020a17090af0c200b0029914c64fc7mr73077pjb.13.1709134933067; Wed, 28 Feb 2024 07:42:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709134933; cv=pass; d=google.com; s=arc-20160816; b=ryCTQrSRzCnQX/uGTreCi9pGEdnqM6b50lSMl3KO2DymjopT70xvheF+1kXqOqYmfl 6S1MEzt4pwQMYXUzLwe9V0LsP/iR1esPWeL77QNox8DIUgEOqNFv1LUZ1zOwe+jWaLSF S6MDmnhAVkizqy6HCdvbEpHkHnaIQus8lOy8qoB4wRQ/ppZYDgAK50GNmdzJ4Ydi/X7Z oSDrZVBXHFi/7sAuppv3NQoYnunHMzTitOUgSsOsLjqS/+Lt29GtjN+W5EUYWgh1vt+P JNB8Xp6ZVyqKibd3s59FuEP3GqWkZfc4YtmQV67emrF+wK2c7HmLhnyNOBmZ42mdqyv4 LNIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :sender:dkim-signature; bh=Zq4bTZFqY8eleGsJN4GFni/OSPgsFi5dlmOPB1MRAMY=; fh=Pjx7sHJ7gbJjaMVColcU30wdIOIXyJPF6rWOB5ujO18=; b=g8Xqe78ZfzRcB5Ttg/7HyA6JwlkEzKIIOv++o1wTG0RNUh0TLzaD8/C2oeNfsUYzXO vF2IYcoSxVHz4x6IqGVR+tKJm+FlmpVgPnbxTsPlkTAsxtjtwMRgt+Wrma8voVd3W5lO YDO2UiSFrt9UrB6firRC+8uIItsJr5324do93o3pLNR3BThfHeT7tU8QlM/sM4ANm3sf lVWJj7k3huPfWnJmZHI3DcUMpCqFKxuQJc+RV+uKfVf+LzKlBznjIIFKGIq8EKMTCZFH yE+8xMI7RmH9an5xLF3Ry5iwEVVHu7hYe5gOmtPFGliv1IBY27YYDmW54PGNIPkqu8il JELQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NCC5zxGP; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-85283-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85283-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h18-20020a17090aa89200b00298a01535acsi1527205pjq.105.2024.02.28.07.42.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 07:42:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85283-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=NCC5zxGP; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-85283-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85283-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 BD2EE2845C4 for ; Wed, 28 Feb 2024 15:42:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57FB515D5B3; Wed, 28 Feb 2024 15:40:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NCC5zxGP" Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) (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 45083152E14; Wed, 28 Feb 2024 15:40:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709134849; cv=none; b=HGQeHUTE1Pgl5Eb7MT0cDFEOuiykMy/d+qQBODMUxzaLFn+X45qP18/TOiIO4sYfzWpcxyEurIq4Eq7qHBy80jZppI5icONSjCMInCrPT6f0Dktyo9Zt4k566MPl3D9lvtE6sHEGyp78TdGgsKKLoL5n5I3NNaTAhl4yn+Dxoec= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709134849; c=relaxed/simple; bh=2IYPJcQeiiqLb8GQ5Y15ULpr+TeJHmKTDRpQbYJcgZc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hY1PV9cJtpsY40M/gEjLFKQNFVhPlJ2vUTlpsFIkLHP4w4urQz5xdbtuoiIPoLNDj/m8r2SKuqA87bC52FYDTDzZblKGBY9PYqgOzp7D5pSA5UDkJtVp6s+pJxdE+/rhHLzSpI/xJV9FAeLfAzDzDtSrr8u7YXb+4ZvT3rp1MPA= 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=NCC5zxGP; arc=none smtp.client-ip=209.85.166.47 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-io1-f47.google.com with SMTP id ca18e2360f4ac-7c78573f31aso263616539f.3; Wed, 28 Feb 2024 07:40:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709134846; x=1709739646; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=Zq4bTZFqY8eleGsJN4GFni/OSPgsFi5dlmOPB1MRAMY=; b=NCC5zxGPKCcBpwfiFqZNazmo8Kuuca+9pKj0nEKo7NNtExT6Z6tj6Po0HsyaE2Rut+ R20mSjTf+AV7h5o8cYSfIFm45+yGX68u/JiB+FuBD7B0BMscQupXk8AsFpW8oy3mslwQ DGm8JeXnCuhrPDVWKDB9217I270rr1OfJh/eCBfASUdA/Qj0tKYb2Imf1/r04sUnaAn0 iqR3yWsMhNf90qSF2YlxIXnkNgg1aN/62/gueQTyftJVqjVdozaa7Ww0YJFal1jOEmxe 7hKS7f2iy/WK4dk6aviqqtLhZwBtFKhV6ZDHuQz5m8DPQ7jIWfLLRBoxORVddJKOXYEt R75w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709134846; x=1709739646; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Zq4bTZFqY8eleGsJN4GFni/OSPgsFi5dlmOPB1MRAMY=; b=C8ofN/dWSJjBbSIRG2MfMHkBoR2MA7RrTZE5tEBy6ZVmY5Y+mjUsWRb+XW/fLcbekw yXfgpSAdClxmvdWQVL/6oupxJAHnlmra3AZyjt86fe4BEHYcNln6kwG0CQB7+pzT+QvC S8dpz0fDSMOGkUnL8n0EJnATZeCiA5x2ShDTcNCuFtDxl/SrfngMEc3eaRAoB8SlJhiK c9b1jtP3rLHg3rOrlY53Mr71tEoNe/lLIm3rnFd5TIF6nPg+cnKF72LlpQkHVBGoCc2l hA1vKn/dJG5gHqcvsng59qxZUZ+xRy7GsrjsFKyxex48K+gEIBPnJK80mjSNlAlt6bmB A3Zw== X-Forwarded-Encrypted: i=1; AJvYcCUV48K/YIDVRntMuOZjMqz7WXKK7JXOnow3okAXYqkb/GrghTxhbDNllJACL+0dGzJU7ZpL6nOksGhYXmJnRY1iQbSYqKueLIIPg5PBnYwMgsYVqtH6w0VpbFc5cCgPQEkZRAtBPiRV4v83eFi1Oj+XBvkKVKxpBzMDWS7ca3d+IVzpL0DjSKXsMBIS X-Gm-Message-State: AOJu0Yxt6GAvWR21dkXPlrPb/zyX84K0UwVnqFaW2L1/gyU8kPwrzas4 O2o0UMzQK2BvKU+Pnmi59tUVn/nSDAQepRCqLtf42PvIZO4JKLr+ X-Received: by 2002:a92:d80f:0:b0:365:29e4:d963 with SMTP id y15-20020a92d80f000000b0036529e4d963mr12080575ilm.30.1709134846407; Wed, 28 Feb 2024 07:40:46 -0800 (PST) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id cv3-20020a056e023b8300b00365ab9e9799sm999015ilb.79.2024.02.28.07.40.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Feb 2024 07:40:45 -0800 (PST) Sender: Guenter Roeck Message-ID: Date: Wed, 28 Feb 2024 07:40:43 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v10] lib: checksum: Use aligned accesses for ip_fast_csum and csum_ipv6_magic tests Content-Language: en-US To: Geert Uytterhoeven Cc: Christophe Leroy , Charlie Jenkins , "Russell King (Oracle)" , David Laight , Palmer Dabbelt , Andrew Morton , Helge Deller , "James E.J. Bottomley" , Parisc List , Arnd Bergmann , "linux-kernel@vger.kernel.org" , Palmer Dabbelt , Linux ARM , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development References: <7ae930a7-3b10-4470-94ee-89cb650b3349@csgroup.eu> <9b4ce664-3ddb-4789-9d5d-8824f9089c48@csgroup.eu> <02bb92c3-a14c-4a77-a3b0-a7c857d1d60d@roeck-us.net> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3M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0Zy+6iRQ8G8ng QjsSqYJx8iAR8JRB7Gm2rQOMv8lSRdjva++GT0VLXtHULdlzg8VjDnFZ3lfz5PWEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2/28/24 02:15, Geert Uytterhoeven wrote: > CC testing > > On Wed, Feb 28, 2024 at 8:59 AM Guenter Roeck wrote: >> On 2/27/24 23:25, Christophe Leroy wrote: >> [ ... ] >>>> >>>> This test case is supposed to be as true to the "general case" as >>>> possible, so I have aligned the data along 14 + NET_IP_ALIGN. On ARM >>>> this will be a 16-byte boundary since NET_IP_ALIGN is 2. A driver that >>>> does not follow this may not be appropriately tested by this test case, >>>> but anyone is welcome to submit additional test cases that address this >>>> additional alignment concern. >>> >>> But then this test case is becoming less and less true to the "general >>> case" with this patch, whereas your initial implementation was almost >>> perfect as it was covering most cases, a lot more than what we get with >>> that patch applied. >>> >> NP with me if that is where people want to go. I'll simply disable checksum >> tests on all architectures which don't support unaligned accesses (so far >> it looks like that is only arm with thumb instructions, and possibly nios2). >> I personally find that less desirable and would have preferred a second >> configurable set of tests for unaligned accesses, but I have no problem >> with it. > > IMHO the tests should validate the expected functionality. If a test > fails, either functionality is missing or behaves wrong, or the test > is wrong. > > What is the point of writing tests for a core functionality like network > checksumming that do not match the expected functionality? > Tough one. I can't enable CONFIG_NET_TEST on nios2, parisc, and arm with THUMB enabled due to crashes or hangs in gso tests. I accept that. Downside is that I have to disable CONFIG_NET_TEST on those architectures/platforms entirely, meaning a whole class of tests are missing for those architectures. I would prefer to have a configuration option such as CONFIG_NET_GSO_TEST to let me disable the problematic tests for the affected platforms so I can run all the other network unit tests. Yes, obviously something is wrong either with the affected tests or with the implementation of the tested functionality on the affected systems, but that could be handled separately if a separate configuration option existed, and new regressions in other tests on the affected architectures could be identified as they happen. This case is similar. I'd prefer to have a separate configuration option, say, CONFIG_CHECKSUM_MISALIGNED_KUNIT, which I can disable to be able to run the common checksum tests on platforms / architectures which don't support unaligned accesses. However, as I said, if the community wants to take a harsh stance, I have no problem with just disabling groups of tests entirely on platforms which have a problem with part of it. Guenter