Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2144203imj; Fri, 8 Feb 2019 13:22:52 -0800 (PST) X-Google-Smtp-Source: AHgI3IYLTbigRHJSJrNIF6VyWhDW4OzMOiJiMDuqeM2z5Bk0Diu9LKe17kV71G4wKfFW64rYZ0w+ X-Received: by 2002:a62:57c4:: with SMTP id i65mr24319845pfj.106.1549660972846; Fri, 08 Feb 2019 13:22:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549660972; cv=none; d=google.com; s=arc-20160816; b=zD/jCYBz4K/GeySbF9VfTMRuzAjyEyUFFin2dkDRscywg7Jw905D9LGrTfQJaVwm8/ CouftaAHSMOM4EPJ2oUW3rzv6tqtWAM7VMvqc86YYvfJqfYUjp5vuuvv5fySQWRR9gTv egXZx/XE928bX2OBM0RmRN9qT4GnXIU+buEKsPWu+MIegMaJzDY+uU1MoowD9qVNpMUh L5zLkptnlU4ItVb/jYtyu9ms1IUeF32JdqoURGkdEG8J34O8G2zvUVe7kZH1gkWsd8/+ DEWPQb+cGdYB8cbZDc+zK3zaVN4N0f8NKn/RfqvdQmmKqF8TMMeoxMDig49gQ2TXmqvU Te/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=uPJg3q8irJFF/WQRRez4A1OwM3Df1mJ/BzvIqwWJ2ew=; b=vmeex6PaXAL13twT6k1nxwRyrg62TBuE1dWc9ZXaOo6fnLT8U3AAHU1kTXJScUaTr/ aJ0NMp5uiXcJbqHOBdHua15VmO5Uype8ivlUXYJnzIB7i1wBhyF5pV5lVog3qG1TyqA2 +xTbfVevNzBRQjDopIqp0bbtD74eQMXii6fL8dAWjbO8ymkkyiyfWu2n+gsGCbmTHcdx MbG5Hvf60Ke0ECwkioNL1MRedHuIhmDj+r2IPdXyHFnC2+DjhlS2khp8x+AVHmhoG3RR Vnuyk0ScruxVTH0EywfHkjvZTjoDXyOVhwmHsPGiHBSWr+AC9bKhVRYNmpgWhY3PS5Pl Cq+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mqJg7oyb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id az11si3139537plb.386.2019.02.08.13.22.37; Fri, 08 Feb 2019 13:22:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mqJg7oyb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727299AbfBHVWY (ORCPT + 99 others); Fri, 8 Feb 2019 16:22:24 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:37917 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726796AbfBHVWY (ORCPT ); Fri, 8 Feb 2019 16:22:24 -0500 Received: by mail-wm1-f68.google.com with SMTP id v26so5530982wmh.3; Fri, 08 Feb 2019 13:22:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=uPJg3q8irJFF/WQRRez4A1OwM3Df1mJ/BzvIqwWJ2ew=; b=mqJg7oybu0SBh0j0gXCRK7tWECYoprFN0JvILwR3nMQ0ogKbW99ZoNDoFSuMpRTZIR c8FYkNnflKF0T1COP77LzzC8nwlQeYyocWN+Y0R11AHZ6+fopnWKRTFi5XsF+hV1r3RQ Iype+1z5Lyu0+lGKn02jJRCkYo/TOIF80QyDVnI4S8p5dLiooUsuKmQBWxmYgYs4cafj wg3veod7jA/yH4GqPQwSpPi/IJrK5a8qz4iR248rcihvaOX6EV4pDkKBxdH4SY9UthEf 1NsO0w46WsVOkdeiN9lAFgQJtVcPaVJvG7ahRzKCNyacMnpyHC24yz5EmQs9OmboQDUt nNqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=uPJg3q8irJFF/WQRRez4A1OwM3Df1mJ/BzvIqwWJ2ew=; b=Dupe5FxASccvGod+IDKj1iQVTShUEfxZl8hZfDy8zx4/bfclXG/sj3UCmP2jQR7P/L AKN1CkjR+YuQYH44TxEAW33oCFAoqD8ZF24H2D9RqDHzcViNUkg6aIgG/aEuO4UPWCpX SwITKngNJOGC3REQy1pFxP4oJcDEtGNe+V0HDaF/shLoQhsTBtLyUGV39cyYpJlfxLAt 62rVcgyBSUWyDqfXTciuA6GnyMyQmkhWaV/8D5HbEYbBKJr6TVqiAgyvkPcBmhn0ZCbd 4vPUJB5xnJI850EmYjYcGfB1eoUIzNgxPOjjg6GcrDwvXAjVBAS2rQGAFg38o8bXqqE+ nysg== X-Gm-Message-State: AHQUAuZqytFaok0J6NKG6hvkP0GlGBkZhn3ykfsvbtAxCW5j+5osye+C HPAt/HqimtFzvcy3aqGFFryBWQmh X-Received: by 2002:adf:b6a1:: with SMTP id j33mr18096803wre.55.1549660941168; Fri, 08 Feb 2019 13:22:21 -0800 (PST) Received: from ?IPv6:2003:ea:8bf1:e200:7cef:f5e9:d82c:bb62? (p200300EA8BF1E2007CEFF5E9D82CBB62.dip0.t-ipconnect.de. [2003:ea:8bf1:e200:7cef:f5e9:d82c:bb62]) by smtp.googlemail.com with ESMTPSA id x3sm4825212wrd.19.2019.02.08.13.22.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Feb 2019 13:22:20 -0800 (PST) Subject: Re: Linux 5.0 regression: rtl8169 / kernel BUG at lib/dynamic_queue_limits.c:27! To: Sander Eikelenboom , Realtek linux nic maintainers Cc: Linus Torvalds , linux-kernel , netdev References: <6c389fde-4c8d-300b-8c3c-300d6105c30a@eikelenboom.it> <0f605e50-56fe-06b5-9b66-6aed89a608ce@gmail.com> <471e550b-c227-22e6-19fd-5f9abd450e5f@eikelenboom.it> From: Heiner Kallweit Message-ID: <1265d424-4943-e571-a74b-b1512ebec179@gmail.com> Date: Fri, 8 Feb 2019 22:22:12 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <471e550b-c227-22e6-19fd-5f9abd450e5f@eikelenboom.it> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08.02.2019 21:55, Sander Eikelenboom wrote: > On 08/02/2019 19:52, Heiner Kallweit wrote: >> On 08.02.2019 19:29, Sander Eikelenboom wrote: >>> L.S., >>> >>> While testing a linux 5.0-rc5 kernel (with some patches on top but they don't seem related) under Xen i the nasty splat below, >>> that I haven encountered with Linux 4.20.x. >>> >>> Unfortunately I haven't got a clear reproducer for this and bisecting could be nasty due to another (networking related) kernel bug. >>> >>> If you need more info, want me to run a debug patch etc., please feel free to ask. >>> >> Thanks for the report. However I see no change in the r8169 driver between >> 4.20 and 5.0 with regard to BQL code. Having said that the root cause could >> be somewhere else. Therefore I'm afraid a bisect will be needed. > > Hmm i did some diging and i think: > bd7153bd83b806bfcc2e79b7a6f43aa653d06ef3 r8169: remove unneeded mmiowb barriers > 2e6eedb4813e34d8d84ac0eb3afb668966f3f356 r8169: make use of xmit_more and __netdev_sent_queue > 620344c43edfa020bbadfd81a144ebe5181fc94f net: core: add __netdev_sent_queue as variant of __netdev_tx_sent_queue > You're right. Thought this was added in 4.20 already. The BQL code pattern I copied from the mlx4 driver and so far I haven't heard about this issue from any user of physical hw. And due to the fact that a lot of mainboards have onboard Realtek network I have quite a few testers out there. Does the issue occur under specific circumstances like very high load? If indeed the xmit_more patch causes the issue, I think we have to involve Eric Dumazet as author of the underlying changes. > would be candidates, which were merged in 5.0. > > I have reverted the first two, see how that works out. > > -- > Sander > Heiner > >>> -- >>> Sander >>> >> Heiner >> >>> >>> [ 6466.554866] kernel BUG at lib/dynamic_queue_limits.c:27! >>> [ 6466.571425] invalid opcode: 0000 [#1] SMP NOPTI >>> [ 6466.585890] CPU: 3 PID: 7057 Comm: as Not tainted 5.0.0-rc5-20190208-thp-net-florian-doflr+ #1 >>> [ 6466.598693] Hardware name: MSI MS-7640/890FXA-GD70 (MS-7640) , BIOS V1.8B1 09/13/2010 >>> [ 6466.611579] RIP: e030:dql_completed+0x126/0x140 >>> [ 6466.624339] Code: 2b 47 54 ba 00 00 00 00 c7 47 54 ff ff ff ff 0f 48 c2 48 8b 15 7b 39 4a 01 48 89 57 58 e9 48 ff ff ff 44 89 c0 e9 40 ff ff ff <0f> 0b 8b 47 50 29 e8 41 0f 48 c3 eb 9f 90 90 90 90 90 90 90 90 90 >>> [ 6466.648130] RSP: e02b:ffff88807d4c3e78 EFLAGS: 00010297 >>> [ 6466.659616] RAX: 0000000000000042 RBX: ffff8880049cf800 RCX: 0000000000000000 >>> [ 6466.672835] RDX: 0000000000000001 RSI: 0000000000000042 RDI: ffff8880049cf8c0 >>> [ 6466.684521] RBP: ffff888077df7260 R08: 0000000000000001 R09: 0000000000000000 >>> [ 6466.696824] R10: 00000000387c2336 R11: 00000000387c2336 R12: 0000000010000000 >>> [ 6466.709953] R13: ffff888077df6898 R14: ffff888077df75c0 R15: 0000000000454677 >>> [ 6466.722165] FS: 00007fd869147200(0000) GS:ffff88807d4c0000(0000) knlGS:0000000000000000 >>> [ 6466.733228] CS: e030 DS: 0000 ES: 0000 CR0: 0000000080050033 >>> [ 6466.746581] CR2: 00007fd867dfd000 CR3: 0000000074884000 CR4: 0000000000000660 >>> [ 6466.758366] Call Trace: >>> [ 6466.768118] >>> [ 6466.778214] rtl8169_poll+0x4f4/0x640 >>> [ 6466.789198] net_rx_action+0x23d/0x370 >>> [ 6466.798467] __do_softirq+0xed/0x229 >>> [ 6466.807039] irq_exit+0xb7/0xc0 >>> [ 6466.815471] xen_evtchn_do_upcall+0x27/0x40 >>> [ 6466.826647] xen_do_hypervisor_callback+0x29/0x40 >>> [ 6466.835902] >>> [ 6466.845361] RIP: e030:xen_hypercall_mmu_update+0xa/0x20 >>> [ 6466.853390] Code: 51 41 53 b8 00 00 00 00 0f 05 41 5b 59 c3 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 51 41 53 b8 01 00 00 00 0f 05 <41> 5b 59 c3 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc >>> [ 6466.874031] RSP: e02b:ffffc90003c0bdd0 EFLAGS: 00000246 >>> [ 6466.883452] RAX: 0000000000000000 RBX: 000000041f83bfe8 RCX: ffffffff8100102a >>> [ 6466.891986] RDX: deadbeefdeadf00d RSI: deadbeefdeadf00d RDI: deadbeefdeadf00d >>> [ 6466.903402] RBP: 0000000000000fe8 R08: 000000000000000b R09: 0000000000000000 >>> [ 6466.911201] R10: deadbeefdeadf00d R11: 0000000000000246 R12: 800000050c346067 >>> [ 6466.918491] R13: ffff8880607c4fe8 R14: ffff888005082800 R15: 0000000000000000 >>> [ 6466.926647] ? xen_hypercall_mmu_update+0xa/0x20 >>> [ 6466.938195] ? xen_set_pte_at+0x78/0xe0 >>> [ 6466.947046] ? __handle_mm_fault+0xc43/0x1060 >>> [ 6466.955772] ? do_mmap+0x44b/0x5b0 >>> [ 6466.964410] ? handle_mm_fault+0xf8/0x200 >>> [ 6466.973290] ? __do_page_fault+0x231/0x4a0 >>> [ 6466.981973] ? page_fault+0x8/0x30 >>> [ 6466.990904] ? page_fault+0x1e/0x30 >>> [ 6466.999585] Modules linked in: >>> [ 6467.007533] ---[ end trace 94bec01608fe4061 ]--- >>> [ 6467.016751] RIP: e030:dql_completed+0x126/0x140 >>> [ 6467.024271] Code: 2b 47 54 ba 00 00 00 00 c7 47 54 ff ff ff ff 0f 48 c2 48 8b 15 7b 39 4a 01 48 89 57 58 e9 48 ff ff ff 44 89 c0 e9 40 ff ff ff <0f> 0b 8b 47 50 29 e8 41 0f 48 c3 eb 9f 90 90 90 90 90 90 90 90 90 >>> [ 6467.039726] RSP: e02b:ffff88807d4c3e78 EFLAGS: 00010297 >>> [ 6467.047243] RAX: 0000000000000042 RBX: ffff8880049cf800 RCX: 0000000000000000 >>> [ 6467.054202] RDX: 0000000000000001 RSI: 0000000000000042 RDI: ffff8880049cf8c0 >>> [ 6467.062000] RBP: ffff888077df7260 R08: 0000000000000001 R09: 0000000000000000 >>> [ 6467.069664] R10: 00000000387c2336 R11: 00000000387c2336 R12: 0000000010000000 >>> [ 6467.077715] R13: ffff888077df6898 R14: ffff888077df75c0 R15: 0000000000454677 >>> [ 6467.084916] FS: 00007fd869147200(0000) GS:ffff88807d4c0000(0000) knlGS:0000000000000000 >>> [ 6467.093352] CS: e030 DS: 0000 ES: 0000 CR0: 0000000080050033 >>> [ 6467.101492] CR2: 00007fd867dfd000 CR3: 0000000074884000 CR4: 0000000000000660 >>> [ 6467.110542] Kernel panic - not syncing: Fatal exception in interrupt >>> [ 6467.118166] Kernel Offset: disabled >>> (XEN) [2019-02-08 18:04:48.854] Hardware Dom0 crashed: rebooting machine in 5 seconds. >>> >> > >