Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp890089ybb; Wed, 25 Mar 2020 11:32:36 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsVNEdMV2tbVZZlUCwMzmBoT2t83pjge4/BlGn74l75A3l7y6fNFVp2+conocztu2L102kc X-Received: by 2002:aca:fcd8:: with SMTP id a207mr3662369oii.56.1585161156315; Wed, 25 Mar 2020 11:32:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585161156; cv=none; d=google.com; s=arc-20160816; b=GowX0DyS+1rZtA8yRamBbh0Dn/ZiMjfjn3P1R8Z0MtAtMnG/k9m2N9k51M/4mrX5Bc vgCArIP5kvBhVLtcHIB2MqvKnn3QMitTrJIE7mg381WEcleO6dhp/ha5F/Wb2uwMA6Dc ykBpT/1K1pR8EkZzR979VGsGzmqfaaHY24ORC1LFoAITSP9YGEijaG3HUPz6IHyglcwe ONQrtunyStnVDpVyodeWoDemiAE85kYiZYO7f14LP+q8iWPkACw3Uvhgy4snYriVGYFv VsnJvMd20Jqt+0Jwj86wONsrJA2OWPiq9316HmgsoZKgyAS7BpmkMIo182lu5bsHXx0O ThoQ== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=OGhje/9qbCbOFJBxIB3gOZdGirYJHm7EiYZV/hPXDcA=; b=fChxa/fiutiJe5pqXXRUDGMuQFLCm/Kb9+tTthxMEioWe4ewFvlNG2ZlS0MR3uTeaC /LiJiXMQYV2QIvyVHgwQKWNjnwfvF+4Hu02UsKxsbv5MgxpOWt+VEYMHLF9dG5PSkkTC 8SDEIicl39eEIwL39FtPKixbvQyPm9yglza2S16f0tlTnXO4gL4UazE2f6RqpdUte0iS 5+VVxtMGYj1JimaQPUku8C1WXJMa9JT6kmwSVj103hoSYl+x+InS4C4fAuGn0Gj9tg2w Wpkx1zjVB8xKr7F6EJ61OxtTfyZETZ2Q4GTBgSEjHe9ikQeqVCw700hEm/bbF1JVhEh5 SvGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=h0cTdrgx; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o63si141920oih.74.2020.03.25.11.31.55; Wed, 25 Mar 2020 11:32:36 -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=@kernel.org header.s=default header.b=h0cTdrgx; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727909AbgCYSbd (ORCPT + 99 others); Wed, 25 Mar 2020 14:31:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:47288 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727027AbgCYSbc (ORCPT ); Wed, 25 Mar 2020 14:31:32 -0400 Received: from localhost (mobile-166-175-186-165.mycingular.net [166.175.186.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7C139206F6; Wed, 25 Mar 2020 18:31:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585161091; bh=bUVzSI9dzv00tGiSCBQcCwFyz4bKHFbg5OdnpsNxay4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=h0cTdrgxgbuEC6eoNOaOOybXnUDCfcYCPmFkWZMT5fV+WWIsosBg2gcMRsqPu196e eAq/f8XS+n/3PCkoxNPz3nTxiYdLNZXmrUOdEE9ldsb0mawD2TybHiD4mES7vhrdbF P0Hw2X8id1hiGHCFyR5jyxW/RxrP8s3NBHQWfHpM= Date: Wed, 25 Mar 2020 13:31:29 -0500 From: Bjorn Helgaas To: Shiju Jose Cc: "linux-acpi@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "rjw@rjwysocki.net" , "lenb@kernel.org" , "bp@alien8.de" , "james.morse@arm.com" , "tony.luck@intel.com" , "gregkh@linuxfoundation.org" , "zhangliguang@linux.alibaba.com" , "tglx@linutronix.de" , Linuxarm , Jonathan Cameron , tanxiaofei , yangyicong Subject: Re: [PATCH v5 0/2] ACPI: APEI: Add support to notify the vendor specific HW errors Message-ID: <20200325183129.GA29158@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <84a30116698a49cda1e8b580ee35ce1f@huawei.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 25, 2020 at 04:27:15PM +0000, Shiju Jose wrote: > >-----Original Message----- > >From: Bjorn Helgaas [mailto:helgaas@kernel.org] > >3) drivers/pci/controller/pcie-hisi-error.c should be next to > >drivers/pci/controller/dwc/pcie-hisi.c, shouldn't it? > > Our hip PCIe controller doesn't use DWC ip. Ah, I was assuming this pcie-hisi-error.c driver was for the same device claimed by pcie-hisi.c. Error drivers like this will have some device-specific knowledge (e.g., which registers to dump), but I guess they'll always be used with the generic acpi/pci_root.c driver, right? It looks like this driver has little or nothing to do with the PCI core directly. It does include drivers/pci/pci.h, but I'm not sure it really needs it. Maybe drivers/pci/controller/ is the best place for it, but I'm not sure. It's a little confusing because it's not really like the other things there. There are some vaguely similar things in drivers/acpi/apei/ and drivers/acpi/nfit/. And of course there are .acpi_match_table uses all over the drivers/ tree. Maybe we need a new subdirectory under drivers/pci? drivers/pci/controller/apei/? Any thoughts, Rafael? Bjorn