Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5055691imm; Tue, 9 Oct 2018 09:04:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV628xDGN1gIsQ2Y3w4A4G9UA+pyaKXPtud6FrzrhIvyYGu3xzrOKh7V4TD+Y278df0HjAcJG X-Received: by 2002:a63:700e:: with SMTP id l14-v6mr25492812pgc.359.1539101053083; Tue, 09 Oct 2018 09:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539101053; cv=none; d=google.com; s=arc-20160816; b=mDbtjbpnJZysdTFxTFECax23kblkAa4597ls1GVS6w1hQKN857HepL4XT+5CzsBYRC ExbKz0qdkPac55QklM/2DVfs0hRLY8PNgjP1FrbCTG9igthNLJwuX9FU4nyYbyPafJ78 Tb1T+qto2WU1pmajW3s8Zw1YrGytJN0ilwPca30M2GY68mokh7L4z0jQEf6i/nW/yeG8 cRha8CqeODE1H+k1gaZLXZJPPlhRJnlunt50cYFxKq9ja7rDTSFdFtK19giMxKGvsPhM z8xtYzfesaBEOYnIuJcj0j8bBuqYJA1BgPJ3ub+PpKEMncHNa2JHKir6Y5g5KrqfPi1k Mqyw== 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; bh=y8hlNP7qo3pxKrljxt/jbTCxmtuwCxUnVtyvXCz8T1o=; b=A7m4flZ1zT5gIRvAXHVwW5MJHbkjEwrCpDwRbLLmJq5zrbzbE+2a/FDkGIJI0y9185 3QZJ99CHDMVIcKSiCIrXywGI+ICB8CekZv0mV8Odspyb78GMh2fnQDLXLPRgQG18hvs0 7s7fsIpoFB82jBA/agE+Dp/s/xqRCeiuUCkY73KdylZNkCfeDF3TL4i2YpZAH3QgejrT v3KApwEGn0og9vEjRUzL9z94b9iYWXu+VGhW+9iFRUhGckiunTp8dhw/1CCNZpx1ivmk qwu0HVYgp0T6/Q/JCZgkz46F6T2QhxH2AnOeiirEWJywVP1KlwztfWH+m/8Zqvbpzi3A Dv7w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h28-v6si20121059pgm.67.2018.10.09.09.03.57; Tue, 09 Oct 2018 09:04:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726715AbeJIXVF (ORCPT + 99 others); Tue, 9 Oct 2018 19:21:05 -0400 Received: from foss.arm.com ([217.140.101.70]:40910 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726393AbeJIXVF (ORCPT ); Tue, 9 Oct 2018 19:21:05 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7A89A80D; Tue, 9 Oct 2018 09:03:28 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 4AE4A3F5D3; Tue, 9 Oct 2018 09:03:28 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id A3A561AE0B3B; Tue, 9 Oct 2018 17:03:27 +0100 (BST) Date: Tue, 9 Oct 2018 17:03:27 +0100 From: Will Deacon To: Bjorn Helgaas Cc: Keith Busch , Linux PCI , Bjorn Helgaas , Benjamin Herrenschmidt , Sinan Kaya , Thomas Tai , poza@codeaurora.org, Lukas Wunner , Christoph Hellwig , Mika Westerberg , Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/12] error handling and pciehp maintenance Message-ID: <20181009160327.GE9259@arm.com> References: <20180918235848.26694-1-keith.busch@intel.com> <20181004214015.GK120535@bhelgaas-glaptop.roam.corp.google.com> <20181004221137.GB21834@localhost.localdomain> <20181005173145.GL120535@bhelgaas-glaptop.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181005173145.GL120535@bhelgaas-glaptop.roam.corp.google.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, On Fri, Oct 05, 2018 at 12:31:45PM -0500, Bjorn Helgaas wrote: > [+cc arm64 folks, LKML: This conversation is about this patch: > > https://lore.kernel.org/linux-pci/20180918235848.26694-3-keith.busch@intel.com > > which fixes some PCIe AER error injection bugs, but also makes the error > injector dependent on DYNAMIC_FTRACE_WITH_REGS, which not all arches > support. Note that this question is only about the error *injection* > module used for testing. It doesn't affect AER support itself.] > > On Thu, Oct 04, 2018 at 04:11:37PM -0600, Keith Busch wrote: > > In case this went unnoticed, patch 2's aer_inject using ftrace hooks > > to pci config accessors is really cool and fixes several kernel crashes > > I encountered, but it may not work on every architecture. I'm not sure > > how widely aer_inject is used, so maybe there are no concerns with the > > DYNAMIC_FTRACE_WITH_REGS dependency, but I just want to reemphasize that > > dependency in case there are valid objections. > > Oh, indeed, I hadn't noticed this arch dependency. AFAICT, the new > DYNAMIC_FTRACE_WITH_REGS dependency means aer_inject will work only > on these arches: > > arm # if (!XIP_KERNEL) && !CPU_ENDIAN_BE32 && MMU > powerpc # if PPC64 && CPU_LITTLE_ENDIAN > riscv # ARCH_RV64I only > s390 > x86 > > Notably missing is arm64, which has DYNAMIC_FTRACE but not > DYNAMIC_FTRACE_WITH_REGS. Thanks for the heads-up here. This feature is currently in development for arm64: http://lkml.kernel.org/r/20181001141648.1DBED68BDF@newverein.lst.de but the latest review comments suggest that it's a fair way from ready yet, so I wouldn't hold your breath. Will