Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp929337rdb; Thu, 15 Feb 2024 22:58:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUj1TTj2TsRe4n/qLX84+EgdydVzQYyuuAHghObPYPPjlsKzb4dvgywvZXESCFsRGyOBZbAmqmdfFbXOy6TYa97vbGH7czN0U8JC1YcJw== X-Google-Smtp-Source: AGHT+IHK0ok+G0pNnjIRCCs+6Cgrmuro8AeywUtQ6WChXhdksu3AhtvET3KmH5SY0yzlFx55Tsyb X-Received: by 2002:a17:906:c457:b0:a3d:ed30:11c8 with SMTP id ck23-20020a170906c45700b00a3ded3011c8mr150601ejb.15.1708066737917; Thu, 15 Feb 2024 22:58:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066737; cv=pass; d=google.com; s=arc-20160816; b=vErgafVXGp43IRT+WB8KNtBpcGR1BVIkCfvZKbsarw67O2atolvEkOuQoeVzhg7R0H 3iy1QfP4yut6c7sEjP0v4+zK1V/YoceVjDhjdkcV9xDweVaNQenD79HEth8InKMT1wjv JoFC2AkLpZ4mVYPUdj9lAOGBUwy/LY0tWW9WcAdZJid5qzlm1q77aOMYW0oMtd0KMmdQ 5MYbo2GOq7VKOmf91Y+OKkuW+RKoSAXbP8TE9GOIomAgaP9ZSD96piV0VidhoIjEHeMB M/Whv6UnoqgRaxj59Maxp76zifQaSM8x+6/BHfJPkpWYEGjXJCFRUnncLs9Jq79vrVW6 eLLg== 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=65Y20pAH9KRtgAYGxuwGuiTjTfNVvBPLnCGbqb5FxCk=; fh=agOc+RKZMmxEZPO6VHIRidKzSV/HrpWrQ8g61gtRTp0=; b=l1fK887d/tPIO0YoSrO/J/Xk0uJMKXJ/Rc924nnIw614aBUOJLsk8DdWON+coU/FUF AGynimGoL9Yoif6/EueieJWKEeDKB2ORXdpD7NZyeFAuLXcsDfTo9ALtPZb3fhXCX441 FZrF48C9CgpJTEuYx1HB5LePcBMds/zYqibzBx5vA6jZPWZM8I8F5n63TMgBwXjLKxi/ QkwB7PsiSLrsUuvNI9TnVYc0NKuLJ4gTQQsWfFnxJdbseSlGXFPGCJupr6rnh2vSllQ9 RRRzt3VRe1jLarzuZmqxa7VPcx4YR4lqXkRKzE/BlOWCm8hWIs40bu5JCoZ9j9sE7Vn6 qkOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iIDit2tV; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-68138-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68138-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i24-20020a170906a29800b00a3d6eb4ed5asi1378978ejz.550.2024.02.15.22.58.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:58:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68138-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iIDit2tV; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-68138-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68138-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A9FA01F23381 for ; Fri, 16 Feb 2024 06:58:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4BBA9175A6; Fri, 16 Feb 2024 06:58:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iIDit2tV" Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (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 C444817551; Fri, 16 Feb 2024 06:58:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066730; cv=none; b=ahDoekM+MRAOu/GN39nA7zFLB+/HL8eC3SyN5bidm+/sQkUpDLeoczt4b/KhHTGhL3yObIL+0a/Mi/qZu8+/8ULEWsCOyaCZ2GLPvuvZ5yZ9vZKKzt4YuEqIkyZGZyd25dgBMoe9gHxqHZFGk2hRN1GbWAk7+teSslICoa78U88= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066730; c=relaxed/simple; bh=P6j6+1DMW+2nUeGjSEWM6OnZa73ovhFYv3veacBwZq0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=AGV36SZxRlCYOO6gptM0kSkwF+0IojcJNhIvESnu/MTfki45K064sFSuN8YtH4g7tvh0pxkgWlM2mkATeBVoO54lFIQxRFVvE4avr7ZLSTMNrKEHDCfBNSbcZ3cF3miC8KNPS81ijFL64ijKJ9GrvTP+KwF2NwqUNpbQhswUi1Q= 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=iIDit2tV; arc=none smtp.client-ip=209.85.216.50 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-f50.google.com with SMTP id 98e67ed59e1d1-2906bcae4feso241819a91.3; Thu, 15 Feb 2024 22:58:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708066728; x=1708671528; 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=65Y20pAH9KRtgAYGxuwGuiTjTfNVvBPLnCGbqb5FxCk=; b=iIDit2tV5AnDc+KWyNWngVgta5xDpN2SPRkTNwJ3hUNTzDmijgKqlCjKSOb6Q7Jfo3 IoTyMX5L4IP72WyrcTwdorNiAExy1ifxh41bGt1mCZn9bTRRnC82hTCxzHh8HUlSrz4o KE/OW0SBshyoP6xvHALIyM6aJZ7K0uDlv5QnGAWS5LSL1H3Z0qyLdHzmachc2jX2N+Uv KedgdBY1pUK3d5nEdYieximIFsJ0IlmBUu+7z92RxYQiZctbZZ6e4FhJV7FMKKSXHWI7 FcWUlOUhLrn1bmvx045dxHQfWt9AHKn5EjjjAEO/IDNzxBHpsN7+UsERiKfoTDYAaaUO F+oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708066728; x=1708671528; 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=65Y20pAH9KRtgAYGxuwGuiTjTfNVvBPLnCGbqb5FxCk=; b=UsxidajonZH1W1cWkyvf/AiRSD/iXVUNOtKbHm1nRwaI34QjtSYAsAmEXrepqs5POP 4x1DmA10+SpOSMejWMZvgsItcKa3ILmz0G0KIrxuK55rg1g21OqzdovDEojjQbF2xh2R sqiqUMZMJpEUUeOD3ynmGvBkQ1rppd6+j9N4znaBMmuycYlLlukCaT4VQP3gbP9li9TO DBU3mZ5IINSHRnypJfJ/Y77BTR+ImIuxpy9hbbIcbfGTK+BnYqs6yUKaTBO1N3DsFeKy nDCxw9TuCDKoTb7i1fHdC73hWXlr4p9rWbIKwP1uFO5FhdIbBzesNO0Tp6Y3EUOOVgGs dP0w== X-Forwarded-Encrypted: i=1; AJvYcCXGh6rJblraYXB8Uq6Y1AfI8T81y8yd0c4tnRUYbyO4vlv6uB2yb300C541nAvEHqmySetjy+rkEahC3DAEnOKdR1uB3qOal5/jHoq7XNnfR4nZBVZTJshLtZzPlJnxhgkbrH7VPtwijNAn X-Gm-Message-State: AOJu0Yz5pCQ1uqOBjDwa146DQ0ieMx1YZ+PqNhj5SPy9z9C4pBSr9+ED OpFCLkKsJkTGx8c3msJ3uhylVxiCA+VLWHuFETqtkD815jafQefn X-Received: by 2002:a17:90a:fd0a:b0:297:a5e:c15 with SMTP id cv10-20020a17090afd0a00b002970a5e0c15mr3884344pjb.6.1708066727999; Thu, 15 Feb 2024 22:58:47 -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 hg6-20020a17090b300600b00296b57ac914sm2525943pjb.38.2024.02.15.22.58.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Feb 2024 22:58:47 -0800 (PST) Sender: Guenter Roeck Message-ID: Date: Thu, 15 Feb 2024 22:58:46 -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 v8 2/2] lib: checksum: Use aligned accesses for ip_fast_csum and csum_ipv6_magic tests Content-Language: en-US To: Helge Deller Cc: Charlie Jenkins , David Laight , Palmer Dabbelt , Andrew Morton , Parisc List , Al Viro , linux-kernel@vger.kernel.org References: <20240214-fix_sparse_errors_checksum_tests-v8-0-36b60e673593@rivosinc.com> <20240214-fix_sparse_errors_checksum_tests-v8-2-36b60e673593@rivosinc.com> <2ec91b11-23c7-4beb-8cef-c68367c8f029@roeck-us.net> <25f108d1-827f-4a18-bee4-4105fbd45974@gmx.de> <7b207808-10e7-44b0-9a9f-253e2349011d@gmx.de> 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 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hV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trhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: <7b207808-10e7-44b0-9a9f-253e2349011d@gmx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Helge, On 2/15/24 23:31, Helge Deller wrote: > On 2/16/24 06:25, Guenter Roeck wrote: >> On Fri, Feb 16, 2024 at 06:54:55AM +0100, Helge Deller wrote: >>> >>> Can you please give a pointer to this test code? >>> I'm happy to try it on real hardware. >>> >> See below. > > Testcase runs OK on physical machine: > > #### carry64 aligned, expect 1 -> 1 > #### carry64 unaligned 4, expect 1 -> 1 > #### carry64 unaligned 2, expect 1 -> 1 > #### carry32 aligned, expect 1 -> 1 > #### carry64 unaligned, expect 1 -> 1 > #### carry64 aligned, expect 0 -> 0 > #### carry64 unaligned 4, expect 0 -> 0 > #### carry64 unaligned 2, expect 0 -> 0 > #### carry32 aligned, expect 0 -> 0 > #### carry32 unaligned, expect 0 -> 0 >     ok 6 test_bad_carry > thanks a lot for the confirmation. Guenter