Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp579459pxj; Wed, 2 Jun 2021 06:31:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzURfhLkWWBL9bjbhcBs+0wirgvegSwyL2DnID+1OoqHaBZdPXwIPwnho2Nmnelbl/zpflZ X-Received: by 2002:a17:907:7ba8:: with SMTP id ne40mr13357564ejc.209.1622640712082; Wed, 02 Jun 2021 06:31:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622640712; cv=none; d=google.com; s=arc-20160816; b=fmFQDZp2M77ScMS8sbjZYFgqBjxzpD2/LJ9I3o3FkoxxWDr/MgPKseSudHaatxQxjI 4ncqsiXKaqIoY/nj/x7q0387IEOmd+rQIgZ0mKsopJtIBhuqpvBbxOLUfzmoPiH2iWY1 rA2j3BteWQourB9pSacof5LpCkizjHHSnkHXLquK5EUu+M0hHHJ30sVnkvVwSxmFdD0K tcVS44y55fXPHHrq8g++YOdmXcBN04yjvvFJiq+brGb4yhjxi95fbfJLh55itlY/1mzV p+DBnd/4BX6A0SX5qClxqz1si45Wqb6zcvMb1sCrNzjqfEhboNX5YbdIUgyTZ9h7Oy5q 90ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=bHeXkbF7PvwsXcWBA66Xyay/weKYecQSlLwIvV/2OEo=; b=SLvBjryy+5oNitVVzchdxbULyEjhOyHefm3GS30zuYrA4utJv9EDMwDxP/MUqMWHtx 4LIX2Q6N4YlqmAR9Kry57HBzilRrVWNCOM/qd5JhosCkNnMSR6WZ3nxG3ckqPVQfywOt GWZj9XxupX2rZWrq5gMWQx8uzwQJDeUJk8afppirsScwbFgRtW3giT22BD7VQZYg4+MI 9OB2y1tUwfpFi8nPp2ctDgqpZYUZYiNyIOJwpPAEF6+ug2T3+1/43MEwhFDj/zU2aUxL vebEmnoIYSusUpNGqdZUr4bXsHwkXGbgPmOkbfhZGP/qcyBoQtycFimWeuDE4WPleIOE HG4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=XBwGzzC1; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=nonIEzU5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si21406842ejp.119.2021.06.02.06.31.29; Wed, 02 Jun 2021 06:31:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=XBwGzzC1; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=nonIEzU5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229801AbhFBNaJ (ORCPT + 99 others); Wed, 2 Jun 2021 09:30:09 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:34211 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbhFBNaI (ORCPT ); Wed, 2 Jun 2021 09:30:08 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 75A235C005A; Wed, 2 Jun 2021 09:28:25 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 02 Jun 2021 09:28:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=fm3; bh=b HeXkbF7PvwsXcWBA66Xyay/weKYecQSlLwIvV/2OEo=; b=XBwGzzC1ogFFij2Os 22qeO5mo4QKEoCwlNnOPqtF3wMkTRN0Ob89TWEN1psfO0PINwHc3qPGnzUH1ZbME rW1ZRm4TgPyq9luKq1n59SGCBmgv2O/pAJo5x9AEI2mRg1jkUYDW950Da8abWW0j EHJ6WDqn1+VYhMNT+RI3DHg/5/XzYp3I+keEaDe1zbsSm2RLY4wG2itUksfgRlqc ZjR3vyzgKQZ1MpF8WsexxcdBznOO598XywMZmDZdSOD9z6LMwQ581zCR6dFWvw4V x23L+yl6C5chOQTGR/v5MPlWWmHVEiQp6wgbebBJtri/qQw3BhRIkPHLUzO0GrXN l3g6w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=bHeXkbF7PvwsXcWBA66Xyay/weKYecQSlLwIvV/2O Eo=; b=nonIEzU560WGMqfwElLCUueaHtt2kZZFdj5MzSU3a2c+L+XeDgh+Oxcja EynLVUVFKDRI9dMKchxHHCAvuly/gbRhcuN5QnBYE4gDqc67iWmI195gTEGpu/hY FWHVCg3DiTnSas8V07UslxyD1hmd0CDlbLlAhiK+eWvbkSh7Z/20KSh1+xVXIWZ7 s+n8C0WyCKppw8Gn5ZjTeZLNnNKcXNESwaAUSY4Wcd016nLF+bRnGoF5vFASyVIS Jde3fDq8n8h0btgYy8+EEMyRg06C82GYLo+YcRXtPH2b7/5bPLEJokdnVXnhkosa 6FVtqtuJaqB0/hA8HrGj4XjUUmVWA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeljedgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtugfgjgesthhqredttddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpefgjeettdejgffgffdvteeutdehtdehgeehueetkeefgefhtdetjeekledu gedvudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Jun 2021 09:28:24 -0400 (EDT) Date: Wed, 2 Jun 2021 15:28:22 +0200 From: Maxime Ripard To: nicolas saenz julienne Cc: Florian Fainelli , Doug Berger , bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: Kernel Panic in skb_release_data using genet Message-ID: <20210602132822.5hw4yynjgoomcfbg@gilmour> References: <20210524130147.7xv6ih2e3apu2zvu@gilmour> <20210524151329.5ummh4dfui6syme3@gilmour> <1482eff4-c5f4-66d9-237c-55a096ae2eb4@gmail.com> <6caa98e7-28ba-520c-f0cc-ee1219305c17@gmail.com> <20210528163219.x6yn44aimvdxlp6j@gilmour> <77d412b4-cdd6-ea86-d7fd-adb3af8970d9@gmail.com> <9e99ade5-ebfc-133e-ac61-1aba07ca80a2@gmail.com> <483c73edf02fa0139aae2b81e797534817655ea0.camel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <483c73edf02fa0139aae2b81e797534817655ea0.camel@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 01, 2021 at 11:33:18AM +0200, nicolas saenz julienne wrote: > On Mon, 2021-05-31 at 19:36 -0700, Florian Fainelli wrote: > > > That is also how I boot my Pi4 at home, and I suspect you are right, = if > > > the VPU does not shut down GENET's DMA, and leaves buffer addresses in > > > the on-chip descriptors that point to an address space that is managed > > > totally differently by Linux, then we can have a serious problem and > > > create some memory corruption when the ring is being reclaimed. I will > > > run a few experiments to test that theory and there may be a solution > > > using the SW_INIT reset controller to have a big reset of the control= ler > > > before handing it over to the Linux driver. > >=20 > > Adding a WARN_ON(reg & DMA_EN) in bcmgenet_dma_disable() has not shown > > that the TX or RX DMA have been left running during the hand over from > > the VPU to the kernel. I checked out drm-misc-next-2021-05-17 to reduce > > as much as possible the differences between your set-up and my set-up > > but so far have not been able to reproduce the crash in booting from NFS > > repeatedly, I will try again. >=20 > FWIW I can reproduce the error too. That said it's rather hard to reprodu= ce, > something in the order of 1 failure every 20 tries. Yeah, it looks like it's only from a cold boot and comes in "bursts", where you would get like 5 in a row and be done with it for a while. Maxime