Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp342133rbe; Thu, 29 Feb 2024 00:47:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUX1KtJB0lYGhMeWTKQV+EmV2hiKf4wJ0E09QL6YFXBg9J1o02CLbFjEgKF/oBt4c+TCyrKBuqLPU6PFB9BTgnaR+FrLC2Wd0XjwJXwtQ== X-Google-Smtp-Source: AGHT+IFbv46Xj7jkE7uIKZ++zfC3e+8JFbz6fscHdqpkfgnyEfbpsmn+zibm2isy3dos8i7p+N+Y X-Received: by 2002:a17:906:f8cb:b0:a3e:4d7c:9ce1 with SMTP id lh11-20020a170906f8cb00b00a3e4d7c9ce1mr1039791ejb.21.1709196431854; Thu, 29 Feb 2024 00:47:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709196431; cv=pass; d=google.com; s=arc-20160816; b=JMa/e7WHQkHE1yU8JmZD6QbiPVxVh2Q+nhKyV/K1J7utfcqbndwmAPtGvGBNlLUffG bO8tQqkGQKVoCfu1guThHuyEe8Nlv7lWl0hBUq4gaYzHlPEOp45BPgs2W68Vnxdk4QCd VldC6C+35+YjczmI/7f/cjCJd4aSUGtF5hWPz46j6S9/qfsiXdjVeF7Ha7VSUVPNMytJ fbditrHo9vZS3Ha9AP0r36J46VyyJnGyCEF/hFgUxwvWL/MYKjV7fF3iXaPdt3NW5H9a DznJuHpUJOmcxH3RlLybdirPxwvviWKyyWH8xb84ijqtkIZlSMAmjM/ZRUiEITASXMdu YNIQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=Ulcrfge3dIu9txF9ZPWk1YqG9TlLAnjzw2E2aDqON2c=; fh=WUPNbWbV5M5DiCaLJmPufQ5oLo34GMsPHSoCGPq6LL0=; b=DurLMy7rZZUd1vsQnlIVzIjtQT/TIPoeQ1S6a3crbWhPdsQ3Wurk2pP+kCxUpC3Hry fQj8UKSJRDPH2cwB5zgWsIdP09rfYQ+c3XiuLRNuL4IFnZXownocRs1uMP7gz078KcTU GyPw5P8LQRGBshLoT88toWGJVL8SYhOL+Rn/DK82FT9c1d4vGjcyWYH1cKJv5fGZ0EjF TIUNjddSCKKXSBtbRqk+CWqgX6R3e/u/gRm9lqVTqYSo+3JktPCIQ+pLjySHR9r8j5sl Azq/3LogwzZn1ux98z2BuM6RLnL6A1fRQnv94GDqO/bZbo/zCtRkKCVTMkRdQ3cAO/0y JNwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=IfH4fgTH; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-crypto+bounces-2383-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2383-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m15-20020a170906160f00b00a4439b5c147si378681ejd.530.2024.02.29.00.47.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 00:47:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2383-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=IfH4fgTH; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-crypto+bounces-2383-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2383-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com 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 7B7E61F25CBE for ; Thu, 29 Feb 2024 08:46:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CDB7A5380C; Thu, 29 Feb 2024 08:46:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="IfH4fgTH" X-Original-To: linux-crypto@vger.kernel.org Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 B865E535AF; Thu, 29 Feb 2024 08:46:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709196407; cv=none; b=rydlZVmZvFhRRhAS/lHPZXcSd0CGIa3CCj/1qNmLfQhe/fvJfZyc1Q0uJ8Nz1xpwDn6SJ24s6SM6ZPD6w2Z8NB5nSNQvwXeLcBuGyUwLT8H+G8fTgDMJpOyygZqwbv0DSf0vVXkqitQ3GXdgtMfofwk8FHJa/U6YfWfvw+atfKA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709196407; c=relaxed/simple; bh=qwCh4HkETlXqvXQiDnkTAVSKoofLJRfU5jEJr6Y2t1E=; h=From:To:CC:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=CAsbI5SuAl6SG2S/MKKRPP7TKpz8J8tuL31mvJf4EkN1ruXylYtSArdPuy6oLyQx2sKggudMabFz3Sl3KevgyHyuVpdz+zp9NZlX6nUJvMsuHoOY9rjrMzW3o/zp3JuRascHrKgedVLxev4GzVK7tCnYUmLnH3L02j57HDT4Bm8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=IfH4fgTH; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 41T8jSoB094393; Thu, 29 Feb 2024 02:45:28 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1709196328; bh=Ulcrfge3dIu9txF9ZPWk1YqG9TlLAnjzw2E2aDqON2c=; h=From:To:CC:Subject:In-Reply-To:References:Date; b=IfH4fgTHaE4W04yHnZz6V9XlunSfeUzgZ3pdOsDqyvv+MW7GaKzyXSez2HnXFO7Hx mamka70Odc/h0m6xvZVc1tHjC15u3MZEmGY45aqsmA85HoZEAe1JyrDoJrsFO/Pvys AIH3JMDB54TXFWFbuGzjNu+Jdic7xRkc7mMqi/7w= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41T8jRZb035729 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 29 Feb 2024 02:45:27 -0600 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 29 Feb 2024 02:45:27 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 29 Feb 2024 02:45:27 -0600 Received: from localhost (kamlesh.dhcp.ti.com [172.24.227.123]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 41T8jQQj078498; Thu, 29 Feb 2024 02:45:27 -0600 From: Kamlesh Gurudasani To: "Elliott, Robert (Servers)" , Eric Biggers CC: Herbert Xu , "David S. Miller" , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Nishanth Menon , Vignesh Raghavendra , "Tero Kristo" , Catalin Marinas , "Will Deacon" , Maxime Coquelin , Alexandre Torgue , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-stm32@st-md-mailman.stormreply.com" Subject: RE: Re: [PATCH v2 2/6] crypto: crc64 - add crc64-iso framework In-Reply-To: References: <20230719-mcrc-upstream-v2-0-4152b987e4c2@ti.com> <20230719-mcrc-upstream-v2-2-4152b987e4c2@ti.com> <20230812025520.GE971@sol.localdomain> <87jztserrf.fsf@kamlesh.i-did-not-set--mail-host-address--so-tickle-me> Date: Thu, 29 Feb 2024 14:15:25 +0530 Message-ID: <87plwfk6ai.fsf@kamlesh.i-did-not-set--mail-host-address--so-tickle-me> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 "Elliott, Robert (Servers)" writes: >> -----Original Message----- >> From: Kamlesh Gurudasani >> Sent: Friday, August 18, 2023 2:26 AM >> Subject: Re: [EXTERNAL] Re: [PATCH v2 2/6] crypto: crc64 - add crc64-iso >> framework >> >> Eric Biggers writes: >> >> > Is "crc64-iso" clear enough, or should it be "crc64-iso3309"? There are >> > thousands of ISO standards. Different CRC variants are specified by >> different >> > ISO standards. Is this particular variant indeed commonly referred to >> as simply >> > the "ISO" CRC-64? Even if it's currently the case that all other CRCs >> in ISO >> > standards are different widths than 64 bits (which may be unlikely?), >> I'm not >> > sure we should count on no CRC-64 variant ever being standardized by >> ISO. >> > >> > - Eric >> https://en.wikipedia.org/wiki/Cyclic_redundancy_check >> >> Last entry CRC-64-ISO in the table. >> It is mentioned as crc64-iso and that's the >> only 64-bit CRC standardized by ISO. > > ECMA-182 (DLT-1 tapes) was contributed to become ISO/IEC 13421 in 1993, so > that was another "64-bit CRC standardized by ISO." Plus, ISO could publish new > standards with new CRCs at any time. > >> But I do agree that crc64-iso3309 would be more specific, will change it >> to crc64-iso3309 in next revision. Thanks. >> >> Regards, >> Kamlesh > > ISO-3309:1991 was withdrawn and revised by > ISO/IEC 3309:1993, which was withdrawn and revised by > ISO/IEC 13239:2002, which was confirmed in 2007 and is still current. > > Apparently only the 1991 version defined a CRC-64; later versions dropped > that. > > Is there really a demand for adding a 23 year old deprecated algorithm to > the kernel? I understand your concern but a lot of TI's K3 based J7* and AM6* SOCs have MCRC and MCRC64(Mostly on AM6* SOCs) Where MCRC64 only supports above mentioned CRC64 algorithm and few customers wants to use the hardware based CRC to ensure FFI, so we actually need it. If it is available in upstream and can be used easily, a lot of customers would want to use it. I'll look into the naming and will provide something specific to that particular algo. Kamlesh