From patchwork Wed Jun 10 10:41:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Wood X-Patchwork-Id: 6578511 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CC624C0020 for ; Wed, 10 Jun 2015 10:41:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DDD6C203A5 for ; Wed, 10 Jun 2015 10:41:10 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 41A04205E3 for ; Wed, 10 Jun 2015 10:41:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 79ADC6E882; Wed, 10 Jun 2015 03:41:07 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 59ACB6E882 for ; Wed, 10 Jun 2015 03:41:06 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 10 Jun 2015 03:41:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,586,1427785200"; d="scan'208";a="708493399" Received: from pistachio.isw.intel.com ([10.237.224.32]) by orsmga001.jf.intel.com with ESMTP; 10 Jun 2015 03:41:06 -0700 From: Thomas Wood To: intel-gfx@lists.freedesktop.org Date: Wed, 10 Jun 2015 11:41:03 +0100 Message-Id: <1433932863-4933-1-git-send-email-thomas.wood@intel.com> X-Mailer: git-send-email 2.4.2 Organization: Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ Cc: Jani Nikula Subject: [Intel-gfx] [PATCH i-g-t] tools: print a warning for tools replaced by intel_reg X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Cc: Jani Nikula Signed-off-by: Thomas Wood --- tools/intel_iosf_sb_read.c | 3 +++ tools/intel_iosf_sb_write.c | 3 +++ tools/intel_reg_dumper.c | 3 +++ tools/intel_reg_read.c | 3 +++ tools/intel_reg_snapshot.c | 4 ++++ tools/intel_reg_write.c | 3 +++ tools/intel_vga_read.c | 3 +++ tools/intel_vga_write.c | 3 +++ 8 files changed, 25 insertions(+) diff --git a/tools/intel_iosf_sb_read.c b/tools/intel_iosf_sb_read.c index f188cda..097b0b8 100644 --- a/tools/intel_iosf_sb_read.c +++ b/tools/intel_iosf_sb_read.c @@ -94,6 +94,9 @@ int main(int argc, char *argv[]) int i, nregs, count = 1, reg_stride; const char *name; + fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by" + " intel_reg.\n", argv[0]); + if (!IS_VALLEYVIEW(dev->device_id) && !IS_CHERRYVIEW(dev->device_id)) { usage(argv[0]); diff --git a/tools/intel_iosf_sb_write.c b/tools/intel_iosf_sb_write.c index eb6700d..a091a0d 100644 --- a/tools/intel_iosf_sb_write.c +++ b/tools/intel_iosf_sb_write.c @@ -89,6 +89,9 @@ int main(int argc, char** argv) int i, nregs; const char *name; + fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by" + " intel_reg.\n", argv[0]); + if (!IS_VALLEYVIEW(dev->device_id) && !IS_CHERRYVIEW(dev->device_id)) { usage(argv[0]); diff --git a/tools/intel_reg_dumper.c b/tools/intel_reg_dumper.c index 3d32005..f9b4d06 100644 --- a/tools/intel_reg_dumper.c +++ b/tools/intel_reg_dumper.c @@ -2931,6 +2931,9 @@ int main(int argc, char** argv) char *file = NULL, *reg_name = NULL; uint32_t reg_val, power_well; + fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by" + " intel_reg.\n", argv[0]); + while ((opt = getopt(argc, argv, "d:h")) != -1) { switch (opt) { case 'd': diff --git a/tools/intel_reg_read.c b/tools/intel_reg_read.c index 46fa664..39671ff 100644 --- a/tools/intel_reg_read.c +++ b/tools/intel_reg_read.c @@ -74,6 +74,9 @@ int main(int argc, char** argv) int decode_bits = 0; int dwords = 1; + fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by" + " intel_reg.\n", argv[0]); + while ((ch = getopt(argc, argv, "dfhc:")) != -1) { switch(ch) { case 'd': diff --git a/tools/intel_reg_snapshot.c b/tools/intel_reg_snapshot.c index 50dafd6..8b097e6 100644 --- a/tools/intel_reg_snapshot.c +++ b/tools/intel_reg_snapshot.c @@ -26,6 +26,7 @@ #include #include +#include #include "intel_io.h" #include "intel_chipset.h" @@ -36,6 +37,9 @@ int main(int argc, char** argv) int mmio_bar; int ret; + fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by" + " intel_reg.\n", argv[0]); + pci_dev = intel_get_pci_device(); devid = pci_dev->device_id; intel_mmio_use_pci_bar(pci_dev); diff --git a/tools/intel_reg_write.c b/tools/intel_reg_write.c index b0ddffe..127519c 100644 --- a/tools/intel_reg_write.c +++ b/tools/intel_reg_write.c @@ -36,6 +36,9 @@ int main(int argc, char** argv) { uint32_t reg, value; + fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by" + " intel_reg.\n", argv[0]); + if (argc < 3) { printf("Usage: %s addr value\n", argv[0]); printf(" WARNING: This is dangerous to you and your system's health.\n"); diff --git a/tools/intel_vga_read.c b/tools/intel_vga_read.c index ea50705..8305fb8 100644 --- a/tools/intel_vga_read.c +++ b/tools/intel_vga_read.c @@ -57,6 +57,9 @@ int main(int argc, char *argv[]) int i, ch; const char *cmdname = argv[0]; + fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by" + " intel_reg.\n", argv[0]); + while ((ch = getopt(argc, argv, "m")) != -1) { switch(ch) { case 'm': diff --git a/tools/intel_vga_write.c b/tools/intel_vga_write.c index 8215962..cb1ed98 100644 --- a/tools/intel_vga_write.c +++ b/tools/intel_vga_write.c @@ -57,6 +57,9 @@ int main(int argc, char *argv[]) int ch; const char *cmdname = argv[0]; + fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by" + " intel_reg.\n", argv[0]); + while ((ch = getopt(argc, argv, "m")) != -1) { switch(ch) { case 'm':