From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8374FC433FE for ; Tue, 12 Oct 2021 20:17:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6537560E05 for ; Tue, 12 Oct 2021 20:17:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234419AbhJLUTQ (ORCPT ); Tue, 12 Oct 2021 16:19:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:52146 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231902AbhJLUTN (ORCPT ); Tue, 12 Oct 2021 16:19:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 68C69600CC; Tue, 12 Oct 2021 20:17:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634069830; bh=D7EaG7LVbwEfZ5G5NS2n7FiE+vzvIG3NNkOd6RhJTeY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Rdoxraar9dYXpzP1EqxKJWv1xASLKfo5dvnJKPH/LGLWFdiE9bzpwCtYZURqaQGLZ tT5yFbmnUkIws4SHp04TMnHJf+KbGAp7tNEQnQiwLUlHrs/2dqFme9RmqegUN810uT qe7bcdMEBNYSuzK+9K2hfAOQ1DhowSP3IiSLUdf+PR0hLvV/4pF+k4ky1m9HmPlqcq WFoKcJX+BctuE7E9BdoA2NPXCZdHGPwLDLZLy6FNapPkazXYLOfKq/ZlytUvQwQTSS eSJOpQjQYSJ05iMHA0sLyJMY9YacXIaSc3diCC1Qy1mLKYUkuGhIRZu1BaG1JOHkpg nH2u/62vAFcKw== Date: Tue, 12 Oct 2021 13:17:09 -0700 From: Jakub Kicinski To: Biju Das Cc: "David S. Miller" , Sergey Shtylyov , Sergei Shtylyov , Prabhakar Mahadev Lad , Andrew Lunn , Geert Uytterhoeven , Adam Ford , Yoshihiro Shimoda , "netdev@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org>, Chris Paterson , Biju Das Subject: Re: [PATCH net-next v3 00/14] Add functional support for Gigabit Ethernet driver Message-ID: <20211012131709.0bc11e3e@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20211012163613.30030-1-biju.das.jz@bp.renesas.com> <20211012111920.1f3886b2@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20211012114125.0a9d71ae@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, 12 Oct 2021 18:53:50 +0000 Biju Das wrote: > > > Yes, you are correct. Sergey, suggested use R-Car RX-HW checksum with > > > RCSC/RCPT and But the TOE gives either 0x0 or 0xffff as csum output > > > and feeding this value to skb->csum lead to kernel crash. > > > > That's quite concerning. Do you have any of the > > > > /proc/sys/kernel/panic_on_io_nmi > > /proc/sys/kernel/panic_on_oops > > /proc/sys/kernel/panic_on_rcu_stall > > /proc/sys/kernel/panic_on_unrecovered_nmi > > /proc/sys/kernel/panic_on_warn > > > > knobs set? I'm guessing we hit do_netdev_rx_csum_fault() when the checksum > > is incorrect, but I'm surprised that causes a panic. > > I tested this last week, if I remember correctly It was not panic, > rather do_netdev_rx_csum_fault. I will recheck and will send you the > stack trace next time. Ah, when you say crash you mean a stack trace appears. The machine does not crash? That's fine, we don't need to see the trace.