Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp107352lqc; Thu, 29 Feb 2024 11:38:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX9fEk+kLN/mdDl6e91yRXyQxkgdj8XawkgRU/8SPNNhGQAohQ9E4oJX/vCe2jneoSBhp6UQQWd5/mjmSiSd24mzLVmX1jkLfuPrm6VTA== X-Google-Smtp-Source: AGHT+IGFTy02ALeqo9z50zwWl4TePYGi1QafyxOsLDd/1BLwhPamNr4RyMbaMBC5bOwcsGvBnmQP X-Received: by 2002:a81:49cb:0:b0:608:a212:f494 with SMTP id w194-20020a8149cb000000b00608a212f494mr30580ywa.20.1709235539334; Thu, 29 Feb 2024 11:38:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709235539; cv=pass; d=google.com; s=arc-20160816; b=0NF1WSuw8UZ/p564iHeW6gq/P3uFiRECxPIxi49HiSE+P6smfSlKwtsQwBx8D55428 pfcOuEUoPPYAd2ZD5NNrmwGYrfR0/o0Ifc4QuniUWIEJR5Sl9JOAFmDhmz/FthS368M0 OiIq0zAzxHiWD64zSXO776j7WDUp+eYZEWzWEOtFBsuQ/OrjJeDsbb8c6fd8RO4VSg5i fU6stLptwr0GhXIpyZy6WKth+XJNrdalhqqXslFwGibdO+tODkgeZJjtZTa0N2qqiThn rSBV1o+MpOjExD/0YioJkYeHv3wWAkGyEHza7lwWAin9zDox8KYUF1CsbOS8uQcFjC3t pbqg== 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=rcIkG6HFp7uZcYBkm60c3cGbHaaSPPHBdXFb5C4zZf4=; fh=SOm9Shn2CcJSRS54hPncm7XisirPOeHoMKLTQEvq1Tc=; b=lNi/aSKWCJTg5F4hLUrK9J5kz1rRgQCYRrvORMoY0QZLHr0OEREts1s0FOoiLwo4jb NP4USQuK5JWqoa1hKCOaT6C0c3NgST8IS/chJxBLap1U+8AYTPOT5VYaSDYqwyb/Wxmi bt2eb6ClxC25uukI9A8bsTnSOvDvkMjr6IiyFuo34hi8RZWoqZec2zfx6fvabJMbmaVQ HfYMpD75IdtTKKe0d+UYXjgM58XSBBFOvJUbgPo6t4/kqXBgiLW74LGBhQ6uyK9nPJs4 37dYGFVwnlyLvkGhDKBjWaS6+Cw2uUj2KtVRCKzzdIUJrNRQbo54O6B6Q8FpI6hqlbin PT6A==; 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=TD9nXLrq; 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-87363-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87363-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 o1-20020ac84281000000b0042eae074ea7si1847075qtl.754.2024.02.29.11.38.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 11:38:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87363-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=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=TD9nXLrq; 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-87363-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87363-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 F3F5F1C2252E for ; Thu, 29 Feb 2024 19:38:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B13BC13D316; Thu, 29 Feb 2024 19:38:40 +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="TD9nXLrq" Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (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 0D78813C9E1 for ; Thu, 29 Feb 2024 19:38:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709235519; cv=none; b=jI8DVI4KLc+ZAKu1H4xn0/iJjndOi2DT6eGGaQIRGhWre+hwBcayM0BugjdFKjiCyYyDvqLS70e7mZ5vX6+au9WvY8U7JHVggW88kMBdC+YPdcBKMeB+XuhZutRQW17Xm/+wplFdfJXcO+AWWerTB1lWNQfuEd8wH2EyB6HkaCQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709235519; c=relaxed/simple; bh=4aW9MYhuIFjdLhubgiG7js2bZ/KKs/H3S5wRJKpoVzI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SumgchI/9gz/XYeuhSBk7XG+2JMQUxjiT/1ZgTnpwofEy+gSk6Zz+a1ED0hrZLBv9ch7rxCLe61EOA/Do8Zm/inkVQU+y06U/ePoGqscriyleYinQh3QgaN8Qf+qT32AUO3MDIDSuRii0HaUtnFRh2WDr3xLD3aKr93rPXbQNbk= 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=TD9nXLrq; arc=none smtp.client-ip=209.85.214.179 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-pl1-f179.google.com with SMTP id d9443c01a7336-1dc9222b337so14069115ad.2 for ; Thu, 29 Feb 2024 11:38:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1709235517; x=1709840317; 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=rcIkG6HFp7uZcYBkm60c3cGbHaaSPPHBdXFb5C4zZf4=; b=TD9nXLrqzbhs3NYuVki1G1ktfdGoNAy0+EMDRaNz4iVHNAlwzLuET+oLPnffra7tjo PetgQsZB5ACGahEddvt8mXrGeEqfOfnI5ZBt8BkVax9kNyX/kT3OSBYP74a0j36EldRz 51PeGymirMoJN3iNnCFeN3rJ0qQ2/+RDVYDaAeT2TLs+5KSl9BwsEtfw+WYdinj6vTUh KjlNoKcfMi8i1xDz/nJnwc6P8Ip5sjHSXIpMvhwQInIcGtO0qD8b8ytYdwWsPtfoxC2F Bk3luh6z2/IruzBVUqzIBD3Et+ev7/eJkbZHlAC4l7KxTDzXCQUmPWW+8vAuBhWMJHAp qXLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709235517; x=1709840317; 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=rcIkG6HFp7uZcYBkm60c3cGbHaaSPPHBdXFb5C4zZf4=; b=rK5cQpENICwrGwjQoGvFVYmYwt0XCoEvUyIl9YCjjNCW18y8L6gAgcQcpJlnKeyeWW Mk9jN6pYkddUCL7P0HoMNIcNUWZJVZmaoL8W2kjlG4Ax5EhOpJ6Uf16CBw5d3/YT6Rh1 5hG5nSmA4KQ3XCxU2OTuufI3P5sf1kfzIjKfrBg+C7YCflQhXiQWTQJsCimfoMi04Rq6 wcPH/JmVzgfj8Xaoz/rP2zu1CpXOk2jf2vYRhc4zWl5eGGYQ/YmUW2HWcntJIrDwi/Gh ZW8HBBLFVuaX2QlPajcLPb0dd/6RmsHVJpj1i3t973XB4wgDKWZf8CrRJxr0gyo7RH9Q 18yA== X-Forwarded-Encrypted: i=1; AJvYcCVb2QyN3O35MYLsQZC8dYq/rDF8+eS/TrfCz0I2QpWPA+n/LBSMp1+ZI3tf1AWj0HRYPt2xIlqpTExjogh11Mnaa8++HBLn6LcDuMNE X-Gm-Message-State: AOJu0Yw9UOec12a3LGD7aeLotnB9/kNrFJ6d+NGoNKOwybvg0T+vcpT6 Sr97idMBMMGeV4tYA76AZj3eA6k+Oy8JKPK8rO2LRmcU7GP1SLcyAaMM+sgbxWs= X-Received: by 2002:a17:902:f806:b0:1dc:2755:16e4 with SMTP id ix6-20020a170902f80600b001dc275516e4mr3088414plb.22.1709235517284; Thu, 29 Feb 2024 11:38:37 -0800 (PST) Received: from ghost (mobile-166-137-160-039.mycingular.net. [166.137.160.39]) by smtp.gmail.com with ESMTPSA id u5-20020a170902b28500b001d6ee9d8957sm1864423plr.281.2024.02.29.11.38.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 11:38:36 -0800 (PST) Date: Thu, 29 Feb 2024 11:38:32 -0800 From: Charlie Jenkins To: Guenter Roeck Cc: Geert Uytterhoeven , Christophe Leroy , "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 Subject: Re: [PATCH v10] lib: checksum: Use aligned accesses for ip_fast_csum and csum_ipv6_magic tests Message-ID: References: <9b4ce664-3ddb-4789-9d5d-8824f9089c48@csgroup.eu> <02bb92c3-a14c-4a77-a3b0-a7c857d1d60d@roeck-us.net> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Feb 28, 2024 at 07:40:43AM -0800, Guenter Roeck wrote: > 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. I think I got confused here, is this an issue with the tests included in this patch or is it unrelated? - Charlie > > 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 >