Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp923808imm; Fri, 1 Jun 2018 11:59:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLO6bmFVEziKenQdfpie2tXiE3+etPWG+prkuF/FGatvM0abu9uf/+EV7+Yqs7lurVr8ujG X-Received: by 2002:a65:6205:: with SMTP id d5-v6mr9853860pgv.416.1527879576041; Fri, 01 Jun 2018 11:59:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527879576; cv=none; d=google.com; s=arc-20160816; b=pdMBdNgdNq0KVZi0HDfFMa+StmK+F5JyVyWKrb+gyUA7ulFaY9s6j3g0ckTe62fzqh sg/sSf5uKUm2AkD/HI2bVuJdngg2N9K9mi3tXkhqWg1euq4zJKneg3FAuTyLOmykfyE3 YF6DiKtvOF4GOd8Q1vHhzYFzfEarWqkGdNUmxqmw924oRVBy0FlIiHQQJRutsF0MJKcM fMdFEAi/He4DoxxV8vMtkN6NqIfbAKbxcRYrxNGS5uRj2t+vJnvnSRiUrl53u9mzfoE/ guXjQseqqJaiQzfjl4+dk7EOagWV5tWV4LUOss7gVnKYQ2H81Eqm8fv8hKYRwFZyNl0F VpOg== 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:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=Jpe8AC75n+I2SDknU9/SaKSGb/pitx4NGdTWThFMukg=; b=iQA9jZ+pjRr/HRvt7GG5FB1ZIyQkXPiIWtT2eS67StFJAWAKsPyBjUe0cVLtiEOcra ko1h766C1UIH5CrPa/oq7IzbGt5cmRzxghW3W/fauHb0/XBpmv8GFQplKnXLVKDyHfyl K1m9GJF5TOXKwG/owP1qBTvbsvYpmQr52nScXkkNli4s1tf6wVDZJZOFPKAB8ICNUkZZ 5rVDxdjADT1+6DfjiUrjWbRrtl3QwECIoD0y3Xo6e77VCeSPfHLWDFZTqyIjtlgoep1n hYA5bT12ueosFdgPI0Ebp9oKZ2YqOnSGcJXhYkUIETirbGs6SX0MziXIIJyw53ALg10W GmnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=IqRMarIt; dkim=pass header.i=@codeaurora.org header.s=default header.b=E8cSWKmO; 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 j84-v6si40356670pfk.203.2018.06.01.11.59.21; Fri, 01 Jun 2018 11:59:35 -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=@codeaurora.org header.s=default header.b=IqRMarIt; dkim=pass header.i=@codeaurora.org header.s=default header.b=E8cSWKmO; 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 S1753269AbeFAS65 (ORCPT + 99 others); Fri, 1 Jun 2018 14:58:57 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33226 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752572AbeFAS6y (ORCPT ); Fri, 1 Jun 2018 14:58:54 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id EFF036084F; Fri, 1 Jun 2018 18:58:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527879534; bh=CCwyDOlSErjJ7611TezrgPLxKM7+jIvWTIzqOaRHDcI=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=IqRMarItyJFd6Z5Jv9lS5tvfPywZTYsXW0CB8iamaT9d9guhWmD8R1WJXB55moWo9 aTftfrZldIiessVWoQU0ZVvNIu/F3OSJEvgOou7vcv/TMkE21LaYyA1k9Xv03CYefm 8NjSk87xKzkCOQJ4tns/+1Yemb7fj2ue69m5EZac= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.235.228.150] (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1FFB960251; Fri, 1 Jun 2018 18:58:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527879532; bh=CCwyDOlSErjJ7611TezrgPLxKM7+jIvWTIzqOaRHDcI=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=E8cSWKmOpzvm/8OmYEUr3aOi0KtO0i8Ajl0ikM6l8SvM1UNVrhcMwbZ842RFWRkIn 50S8FY1MHj5pJ01GuNuJSd85iWQ/OwPVeWauDkqcwHgzcpSVqoVaIscNbcugDyC+gH ctcVOYWmD785TEw861KMJHtlfNQPNNIYxospGNF4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1FFB960251 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=okaya@codeaurora.org Subject: Re: [PATCH V2] PCI: move early dump functionality from x86 arch into the common code To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, timur@codeaurora.org, Kate Stewart , "open list:DOCUMENTATION" , Petr Tesarik , Ram Pai , Kai-Heng Feng , "H. Peter Anvin" , Boris Ostrovsky , Christoffer Dall , Jonathan Corbet , "maintainer:X86 ARCHITECTURE 32-BIT AND 64-BIT" , Ingo Molnar , David Rientjes , Thymo van Beers , Borislav Petkov , Tom Lendacky , Marc Zyngier , linux-arm-msm@vger.kernel.org, Frederic Weisbecker , Mikulas Patocka , Andy Lutomirski , Bjorn Helgaas , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Juergen Gross , Dou Liyang , "Paul E. McKenney" , Greg Kroah-Hartman , open list , Philippe Ombredanne References: <1527878854-21419-1-git-send-email-okaya@codeaurora.org> <20180601185310.GA175802@bhelgaas-glaptop.roam.corp.google.com> From: Sinan Kaya Message-ID: Date: Fri, 1 Jun 2018 14:58:48 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180601185310.GA175802@bhelgaas-glaptop.roam.corp.google.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 6/1/2018 2:53 PM, Bjorn Helgaas wrote: >> + pci_info(pdev, "pci 0000:%02x:%02x.%d config space:\n", >> + pdev->bus->number, PCI_SLOT(pdev->devfn), >> + PCI_FUNC(pdev->devfn)); > I'm still missing something -- why go to the trouble of pdev->bus->number, > PCI_SLOT(), etc? Isn't the output going to look like this? > > pci 0000:00:00.0: pci 0000:00:00.0 config space: > > In other words, wouldn't the following be enough? > > pci_info(pdev, "config space:\n"); > You are right. The origin print function was pr_info. We don't need that stuff anymore. -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.