Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2289imj; Fri, 8 Feb 2019 13:44:59 -0800 (PST) X-Google-Smtp-Source: AHgI3IbbEu6rgbc506ne0weYym9ghDp/mTUdR4ibOt5NNaH8qqliFncAAJRtnAVWIla1+xpTKaRo X-Received: by 2002:a17:902:ba8e:: with SMTP id k14mr24694666pls.219.1549662299599; Fri, 08 Feb 2019 13:44:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549662299; cv=none; d=google.com; s=arc-20160816; b=joWQzCIpWHxUTUTpF24mdG739lAw11giZgZO0M7RqNo57RdrXN/CmDWrjbFWgUTrH2 gOY1LsGU9b7UuD4wfBZqN5vyqdabQwyU6esL18kFV6dhwMWKzvXR9R49E8uYKZAu4Snh P2iYDR00h9tOUUGMJ3AhMIT8vbrAeizoyU+bmLLVoon5hCPvpq/z98QJU+ik0x4cQi4w Tw5FfYdN4nPwmpOOk6/obDZWJnh2xED9Q2E5Pp1i30AxMj72b1Lmdh2vNLriLvh9ZnKn llcd0TyNGgMxzQphzsBfHppAIcjeRbdm7PiTvjDHkWulRPmaah/soAXAv65fFIwhVbmT PSzg== 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=yiOz+NW5KpRyEw5np6nYlaqrH7hSUssPYRyoShLG5mE=; b=FbRCzD/iQDMGdPpt3QtlMJzq5ZvUm9D8N/XddDfRDak7e9e10C8ZYAEa0QXZwKe+EA VYT+M1JsiyvJl829qUCT3YA21f1LpUVGjrqhZD8yEPCgsHNQycr1277tzK83PTaASBCP vzNyPxR8653UW1Faxr9uO/2IpYVJxJTZazz2I+YL9AN4tIL/11UK/6q5oyGwMLjlt9Rw wjlizpIbp7xJMS6k7ZvOe8NFNomnhAhHBmfak5eqlBf9+6sjVihoj+kyb0gdlNQ6XDib F4G3sBrFnzhaU8a5XVhb3jSIOSkiNB2+zLqKfzqaLmUXw18z5t6GRNX/800wmpnb0YQL XVOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@eikelenboom.it header.s=20180706 header.b=CeYyz0q1; 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=fail (p=NONE sp=NONE dis=NONE) header.from=eikelenboom.it Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17si3176416pfb.81.2019.02.08.13.44.43; Fri, 08 Feb 2019 13:44:59 -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=fail header.i=@eikelenboom.it header.s=20180706 header.b=CeYyz0q1; 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=fail (p=NONE sp=NONE dis=NONE) header.from=eikelenboom.it Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727458AbfBHVoV (ORCPT + 99 others); Fri, 8 Feb 2019 16:44:21 -0500 Received: from server.eikelenboom.it ([91.121.65.215]:39982 "EHLO server.eikelenboom.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727260AbfBHVoV (ORCPT ); Fri, 8 Feb 2019 16:44:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=eikelenboom.it; s=20180706; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yiOz+NW5KpRyEw5np6nYlaqrH7hSUssPYRyoShLG5mE=; b=CeYyz0q1D6owS2trO+yHRGWrcE aIe2boCTDrCAvwpFZemh4I9L9bVEwVeEpv7Rco9wJIX84I6EdmefY4cHDCKY9tkidzF90FE88TJIt YqC+/xZSBMd7sRNhfpoGxgQNgkIwNfnErUO7vvzmUZV3V9WOZF7Fku7NaCFEOz+VH48o=; Received: from ip4da85049.direct-adsl.nl ([77.168.80.73]:56044 helo=[172.16.1.50]) by server.eikelenboom.it with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1gsDwi-00054t-HS; Fri, 08 Feb 2019 22:44:28 +0100 Subject: Re: Linux 5.0 regression: rtl8169 / kernel BUG at lib/dynamic_queue_limits.c:27! To: Heiner Kallweit , Realtek linux nic maintainers , Eric Dumazet 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> <1265d424-4943-e571-a74b-b1512ebec179@gmail.com> From: Sander Eikelenboom Message-ID: <059e59c6-2264-fd5c-068f-3656e39539c1@eikelenboom.it> Date: Fri, 8 Feb 2019 22:45:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <1265d424-4943-e571-a74b-b1512ebec179@gmail.com> 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 22:22, Heiner Kallweit wrote: > 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? Yep, the box is already quite contented with the Xen VM's and if I remember correctly it occurred while kernel compiling on the host. > If indeed the xmit_more patch causes the issue, I think we have to involve Eric Dumazet > as author of the underlying changes. It could also be the barriers weren't that unneeded as assumed. Since we are almost at RC6 i took the liberty to CC Eric now. BTW am i correct these patches are merely optimizations ? If so and concluding they revert cleanly, perhaps it should be considered at this point in the RC's to revert them for 5.0 and try again for 5.1 ? -- Sander > >> 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. >>>> >>> >> >> >