Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp587246ybl; Thu, 22 Aug 2019 01:36:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzu8j6zSROa/IfMatbswTFiCzJixHn90PlCMMO00AtLjFXpzZay9Lo/Tcc2PZnOv0Xi70Av X-Received: by 2002:a17:902:3003:: with SMTP id u3mr23557229plb.161.1566462991153; Thu, 22 Aug 2019 01:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566462991; cv=none; d=google.com; s=arc-20160816; b=N2gQhg85ooNJsd+frv4z1q2N7WuraLTLWoX02iGRNmbZgWw0fmd71RiggS4p5ZVFgw 6gUFipltFIEc02RvlRAcTjraK0Ghw940xF2n9Cg6/6mdYZTNfQWbTV4nWcHPdaHIcnT7 u94sqUDWPmdSkYbgDPY0pdFXRf1VNQTuJ/Zo4rhlNlXZqGva1g1MD4X5ed6I6q/FIMnN ZKxixL43eQQjhA6j1LLhHfq4bu45NTmrAThuevsa65v8rqcaLBixnYzUKMql7yHdpBop 96D/7LBEQ3u1vUwVrc32COPMKYxKNrnGHMh17Z3gllEQjQwJByiMkTbZ8TrTGKqO2o5g lMtQ== 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:mime-version:user-agent:date:message-id:subject :from:cc:to:dkim-signature; bh=UJ4ndSsA+KlZA68sHmztUkQhSgbwuP+daP+r2iy3R+s=; b=IaCexqK0Ac8ZsLDeZ/7mSNG67XdqlWo81z/XGpu8+AR95vIDZ6/eVswujUo9SFJmIu CYKxBrbLCSBrN/AfzsP1GNqGZcz7rM5L/EBW2tjRQ/D8Bs6u4r+zcy2lY1mmm+yehnI6 ylxpz8KFcvX71xtSwvh5c2/FzH8zPtpUaeMVu1jKZ5I837csTwcf537aq2Sw5jZhMBSu 7pq3y0DhoWurxZe3lCQFD+2onup8B5L73UdDoTJma0KYAurzLVRZxbKBL4+qXRH07dw7 BYj275qHega8VOa+enMbXmS52PcBP89Jk6r8wHvWfqIbAnrFW/+ZUp4owq1jF6W72uUG CtZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=pByGk2q+; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si17752105pfn.41.2019.08.22.01.36.16; Thu, 22 Aug 2019 01:36:31 -0700 (PDT) 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=@googlemail.com header.s=20161025 header.b=pByGk2q+; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731893AbfHVG6I (ORCPT + 99 others); Thu, 22 Aug 2019 02:58:08 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:39366 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731180AbfHVG6H (ORCPT ); Thu, 22 Aug 2019 02:58:07 -0400 Received: by mail-wm1-f66.google.com with SMTP id i63so4558217wmg.4; Wed, 21 Aug 2019 23:58:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=UJ4ndSsA+KlZA68sHmztUkQhSgbwuP+daP+r2iy3R+s=; b=pByGk2q+MG5FW6nVQKR+qe001OsoEpiE8351tEsN5n5vhzG87uX2naEiS724FQsYOz iFL0qPyNEqFmWLzVAgajKk5nDtdFngTAmw6N8fCCzJjyyObJgf/pgG5i2bkm6srgV+XE peddH9hmaBB/1inqGbNZjYtKPdfEjx8D/I0nuB7mCbOtuilQenWeu/KeL/rKUFZAqeax DCFeD2GjUrHbQDKM6Wkz5/N3/JdfLG6G5BaEYCJlCbH/eELiUhUNE3hUiyDHgHALuShP TSBL97HD87Te8LoI2/A30FVdK1m5y/TEOKVBBRjjHb4DI/a2dKkne9kCuxjk86w+v6GO D8MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=UJ4ndSsA+KlZA68sHmztUkQhSgbwuP+daP+r2iy3R+s=; b=GJ/mdLa7sHXcq2bxN9WoyuFv9ORAKSLXb0Ggwbhu0oVcYvIxp28r3mJ6y2m+k06T5p eUUioVWuKF1U+X1LI4s1psRG1ls2B12F9kd2LNHHzN4caGhJ5wkHB+KvMtRsLVXLllpp EgKzfS/TdOTXirPaBOdRKjZfoS0zpq9AD1QS3sgSiVjs0Tw8x9UV6G8k+uA/n+O+Icux mtdu4z93trbfVkB03gNVZq906Zly9ziCrdHy4Jx0H1t1SeR2IzSsAhzlIYFH178r+xVK +usTJnOjx/EWXFlQTgVr2joQ4heTRPKKuw2gaWHm7oe2H3zAqYMT1C/2PAX3ge0VbMnv 8hrQ== X-Gm-Message-State: APjAAAWkf0Njl6OlDYPljL6IvUlmeJO6TEa+2cihwMuSQKnalAMJvXXY kS8muCGpPyYPGmHbmPfFSMw= X-Received: by 2002:a1c:c5c2:: with SMTP id v185mr4553483wmf.161.1566457083649; Wed, 21 Aug 2019 23:58:03 -0700 (PDT) Received: from [192.168.1.20] (host109-153-59-46.range109-153.btcentralplus.com. [109.153.59.46]) by smtp.googlemail.com with ESMTPSA id j20sm56299931wre.65.2019.08.21.23.58.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Aug 2019 23:58:02 -0700 (PDT) To: LKML Cc: vincenzo.frascino@arm.com, tglx@linutronix.de, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-kselftest@vger.kernel.org, catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de, linux@armlinux.org.uk, ralf@linux-mips.org, paul.burton@mips.com, daniel.lezcano@linaro.org, salyzyn@android.com, pcc@google.com, shuah@kernel.org, 0x7f454c46@gmail.com, linux@rasmusvillemoes.dk, huw@codeweavers.com, sthotton@marvell.com, andre.przywara@arm.com From: Chris Clayton Subject: Regression in 5.3-rc1 and later Message-ID: Date: Thu, 22 Aug 2019 07:57:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi everyone, Firstly, apologies to anyone on the long cc list that turns out not to be particularly interested in the following, but you were all marked as cc'd in the commit message below. I've found a problem that isn't present in 5.2 series or 4.19 series kernels, and seems to have arrived in 5.3-rc1. The problem is that if I suspend (to ram) my laptop, on resume 14 minutes or more after suspending, I have no networking functionality. If I resume the laptop after 13 minutes or less, networking works fine. I haven't tried to get finer grained timings between 13 and 14 minutes, but can do if it would help. ifconfig shows that wlan0 is still up and still has its assigned ip address but, for instance, a ping of any other device on my network, fails as does pinging, say, kernel.org. I've tried "downing" the network with (/sbin/ifdown) and unloading the iwlmvm module and then reloading the module and "upping" (/sbin/ifup) the network, but my network is still unusable. I should add that the problem also manifests if I hibernate the laptop, although my testing of this has been minimal. I can do more if required. As I say, the problem first appears in 5.3-rc1, so I've bisected between 5.2.0 and 5.3-rc1 and that concluded with: [chris:~/kernel/linux]$ git bisect good 7ac8707479886c75f353bfb6a8273f423cfccb23 is the first bad commit commit 7ac8707479886c75f353bfb6a8273f423cfccb23 Author: Vincenzo Frascino Date: Fri Jun 21 10:52:49 2019 +0100 x86/vdso: Switch to generic vDSO implementation The x86 vDSO library requires some adaptations to take advantage of the newly introduced generic vDSO library. Introduce the following changes: - Modification of vdso.c to be compliant with the common vdso datapage - Use of lib/vdso for gettimeofday [ tglx: Massaged changelog and cleaned up the function signature formatting ] Signed-off-by: Vincenzo Frascino Signed-off-by: Thomas Gleixner Cc: linux-arch@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-mips@vger.kernel.org Cc: linux-kselftest@vger.kernel.org Cc: Catalin Marinas Cc: Will Deacon Cc: Arnd Bergmann Cc: Russell King Cc: Ralf Baechle Cc: Paul Burton Cc: Daniel Lezcano Cc: Mark Salyzyn Cc: Peter Collingbourne Cc: Shuah Khan Cc: Dmitry Safonov <0x7f454c46@gmail.com> Cc: Rasmus Villemoes Cc: Huw Davies Cc: Shijith Thotton Cc: Andre Przywara Link: https://lkml.kernel.org/r/20190621095252.32307-23-vincenzo.frascino@arm.com arch/x86/Kconfig | 3 + arch/x86/entry/vdso/Makefile | 9 ++ arch/x86/entry/vdso/vclock_gettime.c | 245 ++++--------------------------- arch/x86/entry/vdso/vdsox32.lds.S | 1 + arch/x86/entry/vsyscall/Makefile | 2 - arch/x86/entry/vsyscall/vsyscall_gtod.c | 83 ----------- arch/x86/include/asm/pvclock.h | 2 +- arch/x86/include/asm/vdso/gettimeofday.h | 191 ++++++++++++++++++++++++ arch/x86/include/asm/vdso/vsyscall.h | 44 ++++++ arch/x86/include/asm/vgtod.h | 75 +--------- arch/x86/include/asm/vvar.h | 7 +- arch/x86/kernel/pvclock.c | 1 + 12 files changed, 284 insertions(+), 379 deletions(-) delete mode 100644 arch/x86/entry/vsyscall/vsyscall_gtod.c create mode 100644 arch/x86/include/asm/vdso/gettimeofday.h create mode 100644 arch/x86/include/asm/vdso/vsyscall.h To confirm my bisection was correct, I did a git checkout of 7ac8707479886c75f353bfb6a8273f423cfccb2. As expected, the kernel exhibited the problem I've described. However, a kernel built at the immediately preceding (parent?) commit (bfe801ebe84f42b4666d3f0adde90f504d56e35b) has a working network after a (>= 14minute) suspend/resume cycle. As the module name implies, I'm using wireless networking. The hardware is detected as "Intel(R) Wireless-AC 9260 160MHz, REV=0x324" by iwlwifi. I'm more than happy to provide additional diagnostics (but may need a little hand-holding) and to apply diagnostic or fix patches, but please cc me on any reply as I'm not subscribed to any of the kernel-related mailing lists. Chris