From owner-freebsd-net@FreeBSD.ORG Fri Jan 17 03:49:38 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 73CB45F7 for ; Fri, 17 Jan 2014 03:49:38 +0000 (UTC) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [119.145.14.65]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7A71D187E for ; Fri, 17 Jan 2014 03:49:36 +0000 (UTC) Received: from 172.24.2.119 (EHLO szxeml208-edg.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id BOS67980; Fri, 17 Jan 2014 11:49:27 +0800 (CST) Received: from SZXEML409-HUB.china.huawei.com (10.82.67.136) by szxeml208-edg.china.huawei.com (172.24.2.57) with Microsoft SMTP Server (TLS) id 14.3.158.1; Fri, 17 Jan 2014 11:49:23 +0800 Received: from [127.0.0.1] (10.177.18.231) by szxeml409-hub.china.huawei.com (10.82.67.136) with Microsoft SMTP Server id 14.3.158.1; Fri, 17 Jan 2014 11:49:20 +0800 Message-ID: <52D8A83E.5090201@huawei.com> Date: Fri, 17 Jan 2014 11:49:18 +0800 From: Yang Yingliang User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Luigi Rizzo Subject: BUG_ON triggered by igb driver in latest kernel Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.18.231] X-CFilter-Loop: Reflected Cc: freebsd-net@freebsd.org, dingtianhong@huawei.com X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jan 2014 03:49:38 -0000 Hi, I use netmap with igb card in kernel 3.13-rc7, it triggered a bug_on. The reason is that the patch "diff--igb--30b00--99999" remove the napi_disable() in igb_down(). When netmap calls igb_up()->napi_enable(), a bug_on is triggered. ----------------------------------------------------------------------- Here is the calltrace: PANIC: "kernel BUG at include/linux/netdevice.h:502!" PID: 3200 TASK: ffff880069490410 CPU: 0 COMMAND: "pkt-gen" #0 [ffff880069493a00] machine_kexec at ffffffff81033c1d #1 [ffff880069493a50] crash_kexec at ffffffff810ad5a3 #2 [ffff880069493b20] oops_end at ffffffff81434650 #3 [ffff880069493b50] die at ffffffff81005716 #4 [ffff880069493b80] do_trap at ffffffff814341dc #5 [ffff880069493bd0] do_invalid_op at ffffffff81003540 #6 [ffff880069493c70] invalid_op at ffffffff8143ace8 [exception RIP: igb_up+344] RIP: ffffffffa030ed88 RSP: ffff880069493d28 RFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88007ac22840 RCX: 0000000000000000 RDX: ffff880037fbdc60 RSI: ffff88007ac22840 RDI: 0000000000000002 RBP: ffff880069493d38 R8: 0000000000000000 R9: 0000000000000006 R10: 000000000000000a R11: 0000000000000006 R12: ffff88007ac22000 R13: ffff8800377e7800 R14: ffff88007ac22840 R15: 0000000000000001 ORIG_RAX: ffffffffffffffff CS: 0010 SS: 0018 #7 [ffff880069493d20] igb_up at ffffffffa030ec41 [igb] #8 [ffff880069493d40] igb_netmap_reg at ffffffffa030fa0d [igb] #9 [ffff880069493d80] netmap_do_regif at ffffffffa02d3915 [netmap_lin] #10 [ffff880069493dc0] linux_netmap_ioctl at ffffffffa02d4628 [netmap_lin] #11 [ffff880069493eb0] do_vfs_ioctl at ffffffff81143d84 #12 [ffff880069493f30] sys_ioctl at ffffffff811442a1 #13 [ffff880069493f80] system_call_fastpath at ffffffff81439c62