Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp374080rdb; Thu, 15 Feb 2024 02:57:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUbAYU/uV8JlghSFWhJXVv0TrmROCYzjgWw+PuwOWRHmWAiNKNlLowpnyube64/XVRbYzWRgu1c6TiEcY5zPbF7lpfvb1BDPMeQz2toOg== X-Google-Smtp-Source: AGHT+IFciUM9VUrifbAcS2VDSQ1KMrjxTuRqQJuFA/LP9pp15YqbBvHxUhQsZF73rAIONZIWcz/X X-Received: by 2002:a05:6402:1491:b0:563:8ea9:c9fc with SMTP id e17-20020a056402149100b005638ea9c9fcmr1035270edv.39.1707994670615; Thu, 15 Feb 2024 02:57:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707994670; cv=pass; d=google.com; s=arc-20160816; b=GsIguaUxNM4pKvLqUG/yiTom4jZOM2j1R8RFBJeujQYo0TAoU1jOJj0HokuANChqoM l3cc1854ltybqtbGRWQn9dOC2Bn15LSMqyDrXX4fL0DL6pZPQRi6EABoWmwAwlbNWDhG MP8L+yg6ETECQiytT1ntIAojhhAqkaRSf2HueBqFXzDFFZyfni9anCGI3LOe9m+fxfjH osa3vBDyzYEr0hIFd0AXD68kbgkxuQgwZC0D7o0Z4MqPH1WDsSDouNviwgv54mai2npk GxT/jFG8kRCME1Z7noBvVpoCHQBrkzCWGzL8gFXIogDEsCxhc8/Xd5LDi0c2UkEUWYMf NKvQ== 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 :content-transfer-encoding:content-id:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:dkim-filter; bh=JH0whwe9yMPahO4ftK676Nk9OMPAhJpwKYEfE7/kv2M=; fh=rmIalEx7YiVw9mVWs0avRhBBqLs0NwIcUUAnutI56Lk=; b=zIF9K/MGQP6IoYkMdeMcEioNA016wpjxECOOjl7pAIr/Uo7HwH+ETEpmr3IYlouukk 9yIJDOVj5jgtIGbsmeV86Vl122THhegsWnc0yImdrDbzJ8GOfO2936gxGs/UhQeKkyau KfZfOazdgEWkjQ8qH5WRzy53W+UYKDBw0WWe7nlI5Deyz7U+iKbKHbRCOLVLPFbff0CA cpzebiI8/I+Cl7ITPGvq9kPTWimLCbQWyPja49kConk8QCRGsLsA2xC8UFVbqHTAKWe9 2haDKTMvuQju9uBAAJS8Cp16ZRwDgMvy/q/Z8u/tvrmQCC+ec16mbNsaRVEFY88qrwa2 eFwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b="aC1Zn/hJ"; arc=pass (i=1 spf=pass spfdomain=salutedevices.com dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-crypto+bounces-2081-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2081-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d25-20020a50cd59000000b0056249472ed2si552014edj.273.2024.02.15.02.57.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 02:57:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2081-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=@salutedevices.com header.s=mail header.b="aC1Zn/hJ"; arc=pass (i=1 spf=pass spfdomain=salutedevices.com dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-crypto+bounces-2081-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2081-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.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 12DDC1F2057F for ; Thu, 15 Feb 2024 10:57:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70F9112BE8E; Thu, 15 Feb 2024 10:43:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b="aC1Zn/hJ" X-Original-To: linux-crypto@vger.kernel.org Received: from mx1.sberdevices.ru (mx1.sberdevices.ru [37.18.73.165]) (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 7A17D12BE85; Thu, 15 Feb 2024 10:43:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.18.73.165 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707993803; cv=none; b=IFMLFyP+0zQ2YKUgd6STW/bP/8CMHUh3heDNWdRBVblYNeQDp2UyWspeexhPrhMK1bE25u8np9bMH5jWNYkbmC6yVFLpMOtH8mihZtRQ8wKGXtnScR2Ue+ZIpq/EYTX2u52pPey3ru/9ergvBLLIue5DDGj/QEeM139z3E5tJVs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707993803; c=relaxed/simple; bh=WRkahTUfWZzwX8Vr9v8Xuq2gLkRiI5fGDnkFKyJWX+w=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=XS8KjY23BqiWWruyv7HWR37oEXrgCZts8xAFD2K+GgFVA0COafQj3cvazn9iZcKYZXD8BxafEZvPJVoag+QkK6EpWhl6eYGsBsNGjl8tXb/VZSoCXGICsv5fSje6+Hw1T7IQSMPxWwjBbe1r7kQNgqjhdUqmwQP8pSoHgn1TN9E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=salutedevices.com; spf=pass smtp.mailfrom=salutedevices.com; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b=aC1Zn/hJ; arc=none smtp.client-ip=37.18.73.165 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=salutedevices.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=salutedevices.com Received: from p-infra-ksmg-sc-msk01 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id AE8E1100009; Thu, 15 Feb 2024 13:43:09 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru AE8E1100009 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1707993789; bh=JH0whwe9yMPahO4ftK676Nk9OMPAhJpwKYEfE7/kv2M=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version:From; b=aC1Zn/hJKlJFXDVZ+wkACWbtJu26OlgtisJNavzTdaqoCPGYUN4lO/QLRkQCcaURI eE2LcgzjrsLvFgCbQa8xOI8nOqxEYKyzF8kxac1+9Vqmg8XykHBJtZOiSVD3zC/iS2 qlZUAU/Ko7qhuwqRLAsznBaELJtQgTySt+o9C6uhF7CIQRaitc5raOUTuiR1DLPyRN ffacTzCT1Zz4zJ41jbfeMS6iRi2KCSLmtJyrUw8l4y2FYFO3SB008uh4App2wq4tRd S+tcJHTnHMBgHslg4YS8GY0CmRKdF1T4KHcjgaZeDCSeCzCWA8yuHJCSSo9M0LLyHg njHIvT9R09hGw== Received: from smtp.sberdevices.ru (p-i-exch-sc-m02.sberdevices.ru [172.16.192.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Thu, 15 Feb 2024 13:43:09 +0300 (MSK) Received: from p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) by p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 15 Feb 2024 13:43:09 +0300 Received: from p-i-exch-sc-m01.sberdevices.ru ([fe80::6d41:e8f1:b95e:ba1]) by p-i-exch-sc-m01.sberdevices.ru ([fe80::6d41:e8f1:b95e:ba1%7]) with mapi id 15.02.1118.040; Thu, 15 Feb 2024 13:43:09 +0300 From: Alexey Romanov To: Corentin Labbe CC: "neil.armstrong@linaro.org" , "clabbe@baylibre.com" , "herbert@gondor.apana.org.au" , "davem@davemloft.net" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "conor+dt@kernel.org" , "khilman@baylibre.com" , "jbrunet@baylibre.com" , "martin.blumenstingl@googlemail.com" , "vadim.fedorenko@linux.dev" , "linux-crypto@vger.kernel.org" , "linux-amlogic@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , kernel Subject: Re: [PATCH v4 00/20] Support more Amlogic SoC families in crypto driver Thread-Topic: [PATCH v4 00/20] Support more Amlogic SoC families in crypto driver Thread-Index: AQHaXbqRFptCyAwKyUyy1Cn5x5FmZLEHrLEAgANdAYA= Date: Thu, 15 Feb 2024 10:43:09 +0000 Message-ID: <20240215104251.pcqj532ekhq5dfbt@cab-wsm-0029881.sigma.sbrf.ru> References: <20240212135108.549755-1-avromanov@salutedevices.com> In-Reply-To: Accept-Language: ru-RU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="us-ascii" Content-ID: <1F71700A325F53478901685FB02CFC10@sberdevices.ru> Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 183458 [Feb 15 2024] X-KSMG-AntiSpam-Version: 6.1.0.3 X-KSMG-AntiSpam-Envelope-From: avromanov@salutedevices.com X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 7 0.3.7 6d6bf5bd8eea7373134f756a2fd73e9456bb7d1a, {Track_E25351}, {Tracking_from_domain_doesnt_match_to}, smtp.sberdevices.ru:7.1.1,5.0.1;cab-wsm-0029881.sigma.sbrf.ru:7.1.1,5.0.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;salutedevices.com:7.1.1;127.0.0.199:7.1.2, FromAlignment: s X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean X-KSMG-LinksScanning: Clean X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2024/02/15 04:37:00 #23614209 X-KSMG-AntiVirus-Status: Clean, skipped Hello, On Tue, Feb 13, 2024 at 08:21:12AM +0100, Corentin Labbe wrote: > Le Mon, Feb 12, 2024 at 04:50:48PM +0300, Alexey Romanov a 'ecrit : > > Hello! > >=20 > > This patchset expand the funcionality of the Amlogic > > crypto driver by adding support for more SoC families: > > AXG, G12A, G12B, SM1, A1, S4. > >=20 > > Also specify and enable crypto node in device tree > > for reference Amlogic devices. > >=20 > > Tested on AXG, G12A/B, SM1, A1 and S4 devices via > > custom tests [1] and tcrypt module. > >=20 > > --- > >=20 >=20 > I started to test on Lepotato board and added patchs up to "drivers: cry= pto: meson: process more than MAXDESCS descriptors" > booting lead to: Can you please give me your test cases? Which tool are you using or is it something custom? > [ 18.559922] gxl-crypto c883e000.crypto: will run requests pump with re= altime priority > [ 18.562492] gxl-crypto c883e000.crypto: will run requests pump with re= altime priority > [ 18.570328] Unable to handle kernel NULL pointer dereference at virtua= l address 0000000000000028 > [ 18.581135] Mem abort info: > [ 18.581354] ESR =3D 0x0000000096000006 > [ 18.585138] EC =3D 0x25: DABT (current EL), IL =3D 32 bits > [ 18.593005] SET =3D 0, FnV =3D 0 > [ 18.593334] EA =3D 0, S1PTW =3D 0 > [ 18.597329] FSC =3D 0x06: level 2 translation fault > [ 18.604250] Data abort info: > [ 18.604282] ISV =3D 0, ISS =3D 0x00000006, ISS2 =3D 0x00000000 > [ 18.612243] CM =3D 0, WnR =3D 0, TnD =3D 0, TagAccess =3D 0 > [ 18.614552] GCS =3D 0, Overlay =3D 0, DirtyBit =3D 0, Xs =3D 0 > [ 18.624249] user pgtable: 4k pages, 48-bit VAs, pgdp=3D000000007b8ab00= 0 > [ 18.626196] [0000000000000028] pgd=3D080000007b8ac003, p4d=3D080000007= b8ac003, pud=3D080000007b8ad003, pmd=3D0000000000000000 > [ 18.640426] Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP > [ 18.642929] Modules linked in: of_mdio fixed_phy fwnode_mdio sm4_ce(-)= sm4 meson_rng meson_canvas libphy rng_core meson_gxbb_wdt watchdog amlogic= _gxl_crypto(+) ghash_generic gcm xctr xts cts essiv authenc cmac xcbc ccm > [ 18.662164] CPU: 3 PID: 264 Comm: cryptomgr_test Not tainted 6.8.0-rc1= -00052-gf70f2b0814a0 #11 > [ 18.670698] Hardware name: Libre Computer AML-S905X-CC (DT) > [ 18.676220] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYP= E=3D--) > [ 18.683118] pc : meson_get_engine_number+0x2c/0x50 [amlogic_gxl_crypto= ] > [ 18.689674] lr : meson_skencrypt+0x38/0x8c [amlogic_gxl_crypto] > [ 18.695539] sp : ffff800081393790 > [ 18.698816] x29: ffff800081393790 x28: 0000000000000400 x27: ffff80008= 0874a80 > [ 18.705888] x26: ffff800081393830 x25: ffff800081393bd8 x24: ffff00000= 1aaa000 > [ 18.712961] x23: 0000000000000001 x22: 0000000000000000 x21: ffff00000= 11b1c50 > [ 18.720033] x20: ffff00007bac8248 x19: ffff0000011b1c00 x18: fffffffff= fffffff > [ 18.727105] x17: 00000000000001a4 x16: ffff800078edc1f0 x15: ffff80008= 13938e0 > [ 18.734178] x14: ffff800101393bd7 x13: 0000000000000000 x12: 000000000= 0000000 > [ 18.741250] x11: 000000000000021c x10: fffffffff81213e0 x9 : 000000000= 00730d5 > [ 18.748323] x8 : ffff0000011b1ca8 x7 : fefefefefefefefe x6 : fffffc000= 007a302 > [ 18.755395] x5 : ffff800078eb4148 x4 : 0000000000000000 x3 : 000000000= 0000028 > [ 18.762468] x2 : ffff000001aaa040 x1 : 0000000000000000 x0 : 000000000= 0000000 > [ 18.769541] Call trace: > [ 18.771956] meson_get_engine_number+0x2c/0x50 [amlogic_gxl_crypto] > [ 18.778167] crypto_skcipher_encrypt+0xe0/0x124 > [ 18.782651] test_skcipher_vec_cfg+0x2a8/0x6b0 > [ 18.787050] test_skcipher_vec+0x80/0x1c4 > [ 18.791017] alg_test_skcipher+0xbc/0x1fc > [ 18.794985] alg_test+0x140/0x628 > [ 18.798262] cryptomgr_test+0x24/0x44 > [ 18.801885] kthread+0x110/0x114 > [ 18.805076] ret_from_fork+0x10/0x20 > [ 18.808617] Code: 1b008440 d65f03c0 9100a003 f9800071 (885f7c61)=20 > [ 18.814651] ---[ end trace 0000000000000000 ]--- > [ 18.862270] meson8b-dwmac c9410000.ethernet: IRQ eth_wake_irq not foun= d > [ 18.863897] meson8b-dwmac c9410000.ethernet: IRQ eth_lpi not found > [ 18.870349] meson8b-dwmac c9410000.ethernet: PTP uses main clock > [ 18.880548] meson8b-dwmac c9410000.ethernet: User ID: 0x11, Synopsys I= D: 0x37 > [ 18.882403] meson8b-dwmac c9410000.ethernet: DWMAC1000 > [ 18.887926] meson8b-dwmac c9410000.ethernet: DMA HW capability registe= r supported > [ 18.895215] meson8b-dwmac c9410000.ethernet: RX Checksum Offload Engin= e supported > [ 18.902627] meson8b-dwmac c9410000.ethernet: COE Type 2 > [ 18.907756] meson8b-dwmac c9410000.ethernet: TX Checksum insertion sup= ported > [ 18.914750] meson8b-dwmac c9410000.ethernet: Wake-Up On Lan supported > [ 18.921246] meson8b-dwmac c9410000.ethernet: Normal descriptors > [ 18.927017] meson8b-dwmac c9410000.ethernet: Ring mode enabled > [ 18.932782] meson8b-dwmac c9410000.ethernet: Enable RX Mitigation via = HW Watchdog Timer --=20 Thank you, Alexey=