From patchwork Fri Jul 14 09:46:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 788248 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3x879Y0vS0z9s82 for ; Fri, 14 Jul 2017 19:46:09 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3x879X728nzDqlD for ; Fri, 14 Jul 2017 19:46:08 +1000 (AEST) X-Original-To: slof@lists.ozlabs.org Delivered-To: slof@lists.ozlabs.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3x879S4vGbzDql8 for ; Fri, 14 Jul 2017 19:46:04 +1000 (AEST) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D90967CE03; Fri, 14 Jul 2017 09:46:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com D90967CE03 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=thuth@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com D90967CE03 Received: from thh440s.str.redhat.com (dhcp-200-180.str.redhat.com [10.33.200.180]) by smtp.corp.redhat.com (Postfix) with ESMTP id B17566DAAB; Fri, 14 Jul 2017 09:46:01 +0000 (UTC) From: Thomas Huth To: slof@lists.ozlabs.org Date: Fri, 14 Jul 2017 11:46:01 +0200 Message-Id: <1500025561-15643-1-git-send-email-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Fri, 14 Jul 2017 09:46:03 +0000 (UTC) Subject: [SLOF] [PATCH] pci: Improve the pci-var-out debug function X-BeenThere: slof@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Patches for https://github.com/aik/SLOF" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "SLOF" Print all related variables, using the code from phb-parse-ranges in board-qemu/slof/pci-phb.fs, so that we can easily check all the values from the SLOF prompt, too. Signed-off-by: Thomas Huth --- board-qemu/slof/pci-phb.fs | 9 +-------- slof/fs/pci-scan.fs | 11 ++++++++--- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/board-qemu/slof/pci-phb.fs b/board-qemu/slof/pci-phb.fs index 926efba..06729bc 100644 --- a/board-qemu/slof/pci-phb.fs +++ b/board-qemu/slof/pci-phb.fs @@ -277,14 +277,7 @@ setup-puid THEN phb-debug? IF - ." pci-next-io = " pci-next-io @ . cr - ." pci-max-io = " pci-max-io @ . cr - ." pci-next-mem = " pci-next-mem @ . cr - ." pci-max-mem = " pci-max-mem @ . cr - ." pci-next-mmio = " pci-next-mmio @ . cr - ." pci-max-mmio = " pci-max-mmio @ . cr - ." pci-next-mem64 = " pci-next-mem64 @ . cr - ." pci-max-mem64 = " pci-max-mem64 @ . cr + pci-var-out THEN ; diff --git a/slof/fs/pci-scan.fs b/slof/fs/pci-scan.fs index 9578189..c39707a 100644 --- a/slof/fs/pci-scan.fs +++ b/slof/fs/pci-scan.fs @@ -59,9 +59,14 @@ here 100 allot CONSTANT pci-device-vec \ prints out all relevant pci variables : pci-var-out ( -- ) - s" mem:" type pci-next-mem @ 16 0.r cr - s" mmio:" type pci-next-mmio @ 16 0.r cr - s" io:" type pci-next-io @ 16 0.r cr + ." pci-next-io = " pci-next-io @ 10 0.r cr + ." pci-max-io = " pci-max-io @ 10 0.r cr + ." pci-next-mem = " pci-next-mem @ 10 0.r cr + ." pci-max-mem = " pci-max-mem @ 10 0.r cr + ." pci-next-mmio = " pci-next-mmio @ 10 0.r cr + ." pci-max-mmio = " pci-max-mmio @ 10 0.r cr + ." pci-next-mem64 = " pci-next-mem64 @ 10 0.r cr + ." pci-max-mem64 = " pci-max-mem64 @ 10 0.r cr ;