Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1249973rbb; Mon, 26 Feb 2024 03:48:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXwAstNjZDLWUFMTP7aOZw8xXkKcg05UfasPTKCnymkHc3/vMgnE79xqEzkTvJkVPC1slOy195ZA6sjZOwRxt7hn21oLfMjkgdSJBQO6g== X-Google-Smtp-Source: AGHT+IHTch4czhe2XoToIuNst0OZQW5s9xkwWm54qPPLBwXKUSOgzlZ+NxJRTzNLt98X8KG8DjI+ X-Received: by 2002:a05:620a:570c:b0:787:7cf8:dcfa with SMTP id wi12-20020a05620a570c00b007877cf8dcfamr8551915qkn.76.1708948116303; Mon, 26 Feb 2024 03:48:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708948116; cv=pass; d=google.com; s=arc-20160816; b=EgaJlV96M68IqhVt8FAdUmPFE2PcMRr1Up6LSVDvb8E8dqRE2RN39YI6ewGPJVXNJb jLKCUk9TYuPJfsKU8+rPSoHNdBeI7xEYcmvvXD4vuB2geb5+4EzJpF6BrY9KQacEmhGt RdwDGZxDxVtTcSfW0qB5oB2AoHQI4xuCcXQp9qNcC2drUihGjEFE5fzih02iRpa5brvk GuyqJBTMOYO6/9q51EecE1rnjvT87YAa8Z0XddJ4nAvW1mMfXWm462BpvbULZb/HaKv5 kvCjj0TojIcisjccxftF/aui0aZquXpBWCDgYhDtzuWkDb2E1GiPLiw9fan9jgHu7RUT galw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender: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=Gw1YcQC9qtJ4/pe66V7YRq+GAf4l9U7OKSN0ldpLYSY=; fh=83A5beVkH386USJGuSijTGIBR5Ag4GyqpZsHJ203LnA=; b=oErLFy5APbvMoK0qHDyWvjqwaYfkULvI7Y9Kf9CYJ9ImrIcfPhPFnb8JmqY88CZPKF OUEoKABXwCAA8DctfsXpqelmmajx7gtgpef8O5SKQFasNz5Bhzuo3hAqREStLraz0tcz ULVIJ9DBPxYqvtzkeO5wbWeIn0zWUS85Fwxr9lhQEXZjEM5wxlaQTFirJddR4HwSvaV9 6npdy0h5FTDCl3e8XgZJY+Qg4xaFiXbExod0fhrWymMtbVD1NWcyVH1xVhluwS1meBNM ndtRoO93BD4p3NkK7Y23Tqaizj7wBBZaP8DPLsHL4dNXfiRyLfXqLCW3n58jUDw4eQt1 r60g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=brVvD7gL; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-81305-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81305-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y2-20020ae9f402000000b0078716503107si4792549qkl.767.2024.02.26.03.48.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 03:48:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81305-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=brVvD7gL; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-81305-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81305-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk 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 118981C25E6E for ; Mon, 26 Feb 2024 11:48:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ABCAE2576B; Mon, 26 Feb 2024 11:48:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="brVvD7gL" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DCF99208B8; Mon, 26 Feb 2024 11:48:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708948093; cv=none; b=jN9L0K7q2aYnUhQzxLpizwfkCmi3uBEAJx4oEPYeJOU/Jq+Qdr26Ze9TJAI8T1UCWX59g2S4+PyS7y5RHFMLpq3rElOfkuvjvCaHvZD8gxtOXf7reMsmZXbRs7Kq+jTwai/YP3q4BVTz7qiRpBrkqYw/Z5KbRMoNqFD36CRgIU8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708948093; c=relaxed/simple; bh=kFr3B/ULY+gMSkUP5N9M2ZZcd1AQsK+54aUGpEWndtI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=J0DF4TDdijSanv8RUV8VEmMUHP69jvxdwiANPSffQhnYPZiL7JFuoCqpxlQIOkwKvX6Eh7qt6RRFXHB2xsUsGP/I5d7moJiJGvOTat4r+nQ5+TcUfw900WXd2usuds3XRjZoSN1t9UfdK0W/VoiEVgMrlzVed2n1+dUlzQhF7pY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=brVvD7gL; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Gw1YcQC9qtJ4/pe66V7YRq+GAf4l9U7OKSN0ldpLYSY=; b=brVvD7gLhZJfWAo8PU5vLdHgiY kdXs2ki0PBjRk/pm7+3gkSDljK1QxtoBZeyd8T+RUXMw9AUUjEuYYJ+vLcSnbqtqk74jX6Xc4GE3x XFX1+7DuIl4b7pTlP9DUxZvqxsMdrQ6/aAo5Yt5IyYF5DP+s36IinJu0HbOsg07TqnyCxHHgwX2Ky HnGs5GLG8BPOhvHM94GvuLxrxxNGy3WuXv4ekVOpOZC/OrkT3kvOMssX3fh+QLX6ieE1pn1MQDhnL JOis2meDoCyogwRu1Se4ystHBJPtbfLHPaoNB72w9rN9zygg7PMxSGBtjvAT3xrFex7WMTbppgRgj yjfwBftQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:56924) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1reZSY-0003A6-2J; Mon, 26 Feb 2024 11:47:50 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1reZSS-0006P5-Tm; Mon, 26 Feb 2024 11:47:44 +0000 Date: Mon, 26 Feb 2024 11:47:44 +0000 From: "Russell King (Oracle)" To: Christophe Leroy Cc: Charlie Jenkins , Guenter Roeck , 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 Subject: Re: [PATCH v10] lib: checksum: Use aligned accesses for ip_fast_csum and csum_ipv6_magic tests Message-ID: References: <20240223-fix_sparse_errors_checksum_tests-v10-1-b6a45914b7d8@rivosinc.com> <7ae930a7-3b10-4470-94ee-89cb650b3349@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: <7ae930a7-3b10-4470-94ee-89cb650b3349@csgroup.eu> Sender: Russell King (Oracle) On Mon, Feb 26, 2024 at 11:34:51AM +0000, Christophe Leroy wrote: > Le 23/02/2024 ? 23:11, Charlie Jenkins a ?crit?: > > The test cases for ip_fast_csum and csum_ipv6_magic were not properly > > aligning the IP header, which were causing failures on architectures > > that do not support misaligned accesses like some ARM platforms. To > > solve this, align the data along (14 + NET_IP_ALIGN) bytes which is the > > standard alignment of an IP header and must be supported by the > > architecture. > > I'm still wondering what we are really trying to fix here. > > All other tests are explicitely testing that it works with any alignment. > > Shouldn't ip_fast_csum() and csum_ipv6_magic() work for any alignment as > well ? I would expect it, I see no comment in arm code which explicits > that assumption around those functions. No, these functions are explicitly *not* designed to be used with any alignment. They are for 16-bit alignment only. I'm not sure where the idea that "any alignment" has come from, but it's never been the case AFAIK that we've supported that - or if we do now, that's something which has crept in under the radar. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!