Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp526415ybf; Sat, 29 Feb 2020 09:04:50 -0800 (PST) X-Google-Smtp-Source: APXvYqyBGzkrHivS0VEQGSc4QSEJXuK2txPviThwmwMlUm9KKDyOe3I1gpPcbT4HfbDT4F+p6L7k X-Received: by 2002:a9d:7999:: with SMTP id h25mr7438337otm.347.1582995890838; Sat, 29 Feb 2020 09:04:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582995890; cv=none; d=google.com; s=arc-20160816; b=OFdht9jduy0+5gR6Dqsz2RyLbLuDmfnw34zacPEPVkiCcsT18rfN+/3ZFl2BIkStjK 9yEggBAqj1/qyW/EnYQHqSmah9FPDSkgvFp2O3tSm1KNSNyvqjgG3k6jvBYiyMrIANYm YVVWNO3gxv6sWE9j+5Fj5+2Juj+e1NXIHjfhK/HCiRg4tHC8nRIZsyBHpH/mvCV/3lG+ asTbS5JFLv5h147IdiQhuV2tMFp06T74ESSM4GyzVapGw+khKyopj47fkZucdrygGDeK CgbcfbdN+PMcHFkU7EPpDsJTZBwJGkrgJtUe/HuGhRKnMvNAAlrfHdv6q4PQLmJ6L17A 0sAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VJa4/ENqUUcyzQ50adGWhHo++94I/SPwFtIFyNEIG/M=; b=SsxV6roYjmk2kNurg36J8XKugxby6Na2VdbuwfVjEQvbOSw4Fq0on56WkCvPRKCBWR IH+xLXQkX6EFuAfzTkskM+1HD21EOQMwlVDFfEv763SL8KVdTfPyWHfNu9BGvERCV9gX 67w8nsnLk/4kI3AlS2dAqvUbOqoz2l66Z+Pql+GvPkv6B5mtVpTlRSxxTScZ08urY9Q/ Ydqe++GyIXnTjpy1XhlGoKBAGnpukv7BeUOb/h7IU61UjGA8GgS32HtOQyptpFE/FxAM OpZJxk7FA7w0UbBqSKQgqT45SpFRKc4OFeWWH+2TUHnSqJiWAZXk4KJc+NVHpAAPic+G 3bbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=WuGamnAl; 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=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j65si3436698otc.308.2020.02.29.09.04.39; Sat, 29 Feb 2020 09:04:50 -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 (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=WuGamnAl; 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=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727210AbgB2RDo (ORCPT + 99 others); Sat, 29 Feb 2020 12:03:44 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:45952 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727168AbgB2RDn (ORCPT ); Sat, 29 Feb 2020 12:03:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding: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=VJa4/ENqUUcyzQ50adGWhHo++94I/SPwFtIFyNEIG/M=; b=WuGamnAlOyuSYmTPlM/hnFV3Y 1IRzG/u5tcAan1mpj9ClDlUoxpvpfnYNsNO5Gh1YPhynX7JwAlSR233K+fmlM6xUzbnLP82u9nNuG uJEFbtIPC5pghl/ddLd7vKTmeq5KHptLRAaAOHo1M77aGGLrAQT3ltKd7Vd7DfYw/eowQozBB2/lZ WBASy0BUaKINZQHan6rUE098SKz/odQWVVLQ91+EwJmc5p6bvRNrvUTt0MhapgkZHO1/SfJn2/Loc fGumiPlir8nJUR4QT+TH5RrkB3UePEIhw2UmlPY2zZZDZn8ZfmW/aQ1zACfMfRmlPKQiQ9rG+XxCw rnqWtOcqQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:58578) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1j85WW-0002dX-Gr; Sat, 29 Feb 2020 17:03:32 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1j85WS-00037o-IM; Sat, 29 Feb 2020 17:03:28 +0000 Date: Sat, 29 Feb 2020 17:03:28 +0000 From: Russell King - ARM Linux admin To: "Theodore Y. Ts'o" Cc: Olof Johansson , Jon Nettleton , Andreas Dilger , "mark.rutland@arm.com" , Lorenzo Pieralisi , "arnd@arndb.de" , "m.karthikeyan@mobiveil.co.in" , "linux-pci@vger.kernel.org" , "Z.q. Hou" , "l.subrahmanya@mobiveil.co.in" , "will.deacon@arm.com" , "linux-kernel@vger.kernel.org" , Leo Li , "M.h. Lian" , Xiaowei Bao , "catalin.marinas@arm.com" , "bhelgaas@google.com" , "andrew.murray@arm.com" , "shawnguo@kernel.org" , Mingkai Hu , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCHv9 00/12] PCI: Recode Mobiveil driver and add PCIe Gen4 driver for NXP Layerscape SoCs Message-ID: <20200229170328.GD25745@shell.armlinux.org.uk> References: <20200110153347.GA29372@e121166-lin.cambridge.arm.com> <20200210152257.GD25745@shell.armlinux.org.uk> <20200229095550.GX25745@shell.armlinux.org.uk> <20200229110456.GY25745@shell.armlinux.org.uk> <20200229151907.GA7378@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200229151907.GA7378@mit.edu> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 29, 2020 at 10:19:07AM -0500, Theodore Y. Ts'o wrote: > On Sat, Feb 29, 2020 at 11:04:56AM +0000, Russell King - ARM Linux admin wrote: > > Could it be a race condition, or some problem that's specific to the > > ARM64 kernel that's provoking this corruption? > > Since I got brought in mid-way through this discussion, can someone > summarize the vital details of the bughunt? What kernel version is > involved, and is this a regression? If so, what's the last version of > the kernel where you didn't have a problem on this hardware? It's a new platform, I've run most 5.x kernels on it, but only recently have I had a NVMe. Currently running a 5.5 based kernel (for which I have to patch in support for the platform), and I've no idea if it is a regression or not. > Can you trigger this failure reliably? No - the very first time I ended up with a corrupted ext4 fs was on the 8th February, and at that time it was put down to the NVMe not being power-off safe: the machine had crashed sometime over night, resulting in a section of my network going offline (due to a pause frame storm). So, I powered it down from crashed state - and from what people tell me, NVMe _may_ keep blocks unwritten to safe media for a considerable time. I never bothered to investigate it because the explanation seemed reasonable, and manually running e2fsck fixed the filesystem. The system was then booted back into using the NVMe rootfs, and continued to do so without apparent issue until the 21st Feb, when I cleanly shut it down, and powered it off. During the time it was running, it likely saw many reboots of the 5.5 kernel. I powered it back on yesterday morning, and this morning it found the fs corruption while trying to do a logrotate. As I say in my last email, I suspect it isn't an ext4 bug, but either a locking implementation issue, coherency issue, or interconnect issue. The 4k block with the affected inode looks perfectly reasonable with the only exception that the checksum is incorrect for that one inode - and other inodes stored in the same 4k block were modified afterwards. It suggests to me that the writes to update the two 16-bit words containing the checksum were somehow lost for this particular inode. > Unfortunately, while I'm regularly running xfstests on x86_64 on a > Google Compute Engine VM, I'm not doing any runs on arm64. I can > certainly build an arm-64. > > There's a test-appliance designed to be run on ARM64 here[1]. > > [1] https://kernel.org/pub/linux/kernel/people/tytso/kvm-xfstests/xfstests-amd64.tar.xz The filename seems to say "amd64" not "arm64" ? > which is a Debian chroot, designed to be run via android-xfstests[2], but > if you unpack it, it should be possible to enter the chroot and > trigger the xfstests run manually on any arm64 system. > > [2] https://thunk.org/android-xfstests > > Does anyone know if kernel CI is running xfstests regularly? I don't know... -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up