Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1501950iob; Thu, 19 May 2022 07:59:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1heDM2g0gD3DDK3RzJBZv0prie+6S8kHiUwaKL5pZc/ZkHQT+BtORZAcgtViunnbInCo3 X-Received: by 2002:a62:7b87:0:b0:518:1665:ef15 with SMTP id w129-20020a627b87000000b005181665ef15mr5381361pfc.84.1652972365662; Thu, 19 May 2022 07:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652972365; cv=none; d=google.com; s=arc-20160816; b=Dt5QO1L7iyJOk68ZeedNgPRZXUYPuYaxng6ranHNNtERz2fmGPSBPRYAVGkMvUifB2 v279bjGKlos2KIcVyEvugX7mCmkdboVkZ30AaKRcs60Icn1pKxVPCx4leGRjLSZc3hfY pc2BPeiEk4cqNIxv/PBYYU9gVYN2MEmyCG7J7aVyeDy2VROs/AqrggxchXosRxEIA60l nH7pEqP+A3PAIw2lee72Zd1PitFXnPDG74K3IpwVDrSmk7saic1HSgcZDjY5wqFV2YjR DB6MTeZ2Dqy7qMhBPN46Sf1p4T5RdvXopC/bBxX9YO8yVjoN1HMudAiiLIiuPS+UkxoC X3fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=h9OtmF/QnBskBXyVSE7sGC2GHmkFioOm7LT2WIKzJbc=; b=KbpPzj7wmOVWqBMt0FvON7IU2ogeNbbNYxE5Kk/4QCQ0I/I3kPUf/GvNfgo9OQa91o 7GrZptALs2JNj0ik1I5gpgo3pBfY4LF4pb7de2c+U8V1VVCr/gCiSMTVbFo4uiOLeX23 XqtitZzHT0i5utYgOO9guIxxoAtMRAyTfhcwUc8JJX45NxVQA8D30vKA4IVirZM9uxBW 0q7cI81+Wbg6E4eRhuAMwjWEqyoGhnepPH0BETGFbwbcvBs2wH1pjBREdaF64YnwW4Th z4RMAUgcNUV0oKWKELlD7KSkRNkjcYoV7HPtQVT2tgk1uzdFlcWLjfBaSwyTvIoMFzh3 Qw1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=KxRcDdAr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mw7-20020a17090b4d0700b001d28b845edcsi6857660pjb.59.2022.05.19.07.59.11; Thu, 19 May 2022 07:59:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=KxRcDdAr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239316AbiESOFP (ORCPT + 99 others); Thu, 19 May 2022 10:05:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237997AbiESOFN (ORCPT ); Thu, 19 May 2022 10:05:13 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 359B14C782; Thu, 19 May 2022 07:05:12 -0700 (PDT) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 4CA1D240003; Thu, 19 May 2022 14:05:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1652969110; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=h9OtmF/QnBskBXyVSE7sGC2GHmkFioOm7LT2WIKzJbc=; b=KxRcDdArQgaY69JxMzMuTdO9NjsAs3aSAQ4kHrk2KgTmGzTtbzNvbCS2T98EvNtc0ehiZy dl4rqa6yhw3/96EV9ALjFM6GuMakI5J3Elciw6omfsikhvUJ78Wnt1yhSkNNNj5Q/OcgYX hBQEVOrY6t+8NuMlY6UINONjqks/PoYDAwGI5wDxyoBJvml8o5oMsPTvgLVVldXgV8OQA8 +5ZDpdZEWPXK7WiSauAnN0BS8A8L0+9OHPGKDYNiuT4sNOtuv+Qr6VfWnQ7m/GKZcObW5m z1PZHu+DN7faJEmrCaiHiY7jYxNbe/0MZOf7lDVsbt2jzFfMSFa0AFbY1pPDDQ== Date: Thu, 19 May 2022 16:03:53 +0200 From: =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= To: Vladimir Oltean Cc: Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven , Magnus Damm , Heiner Kallweit , Russell King , Thomas Petazzoni , Herve Codina , =?UTF-8?B?TWlxdcOobA==?= Raynal , Milan Stevanovic , Jimmy Lalande , Pascal Eberhard , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org, Jean-Pierre Geslin , Phil Edworthy Subject: Re: [PATCH net-next v4 06/12] net: dsa: rzn1-a5psw: add Renesas RZ/N1 advanced 5 port switch driver Message-ID: <20220519160353.12ee7463@fixe.home> In-Reply-To: <20220511093638.kc32n6ldtaqfwupi@skbuf> References: <20220509131900.7840-1-clement.leger@bootlin.com> <20220509131900.7840-7-clement.leger@bootlin.com> <20220509160813.stfqb4c2houmfn2g@skbuf> <20220510103458.381aaee2@xps-bootlin> <20220511093638.kc32n6ldtaqfwupi@skbuf> Organization: Bootlin X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le Wed, 11 May 2022 12:36:38 +0300, Vladimir Oltean a =C3=A9crit : > On Tue, May 10, 2022 at 10:34:58AM +0200, Cl=C3=A9ment L=C3=A9ger wrote: > > > By the way, does this switch pass > > > tools/testing/selftests/drivers/net/dsa/no_forwarding.sh? =20 > >=20 > > Unfortunately, the board I have only has 2 ports availables and thus, I > > can only test one bridge or two separated ports at a time... I *should* > > receive a 4 ports one in a near future but that not yet sure. =20 >=20 > 2 switch ports or 2 ports in total? h1 and h2 can be non-switch ports > (should work with USB-Ethernet adapters etc). Ok, I finally got the tests running. They seems to work for the standalone variant. TEST: Standalone switch ports: Unicast non-IP untagged [ OK ] TEST: Standalone switch ports: Multicast non-IP untagged [ OK ] TEST: Standalone switch ports: Broadcast non-IP untagged [ OK ] TEST: Standalone switch ports: Unicast IPv4 untagged [ OK ] TEST: Standalone switch ports: Multicast IPv4 untagged [ OK ] TEST: Standalone switch ports: Unicast IPv6 untagged [ OK ] TEST: Standalone switch ports: Multicast IPv6 untagged [ OK ] I disabled tests two_bridges and one_bridge_two_pvids since the switch driver does only support 1 bridge and do not have vlan support yet. I also ran ./test_bridge_fdb_stress.sh which did reveal some sleep in spin_lock() issue due to poll_io_timeout() being used. I switch the FDB lock to use a mutex instead of a spinlock. --=20 Cl=C3=A9ment L=C3=A9ger, Embedded Linux and Kernel engineer at Bootlin https://bootlin.com