All of lore.kernel.org
 help / color / mirror / Atom feed
From: Diego Celix <dcelix@gmail.com>
To: intel-gfx <intel-gfx@lists.freedesktop.org>
Subject: [intel-gpu-tools][PATCH] Correct identification of the GEN5 chips on the IS_9XX() define
Date: Mon, 14 Feb 2011 15:44:51 +0000	[thread overview]
Message-ID: <AANLkTi=aUXnVRQ7ZT-Z6Z1HgT-15pMqY7YzuHAd6sV7g@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1347 bytes --]

Hi,

I've been trying to find the main cause because I got the following error:

Couldn't map MMIO region: No such file or directory

It happens when I execute some of the tools of the package.
I've realized that the mmio_bar was not correctly set (inside the
intel_get_mmio() function).

This patch changes one of the repeated checks for GEN4 in the IS_9XX macro,
to check for GEN5 instead.



>From 62d5a29c9484e989a41f591a403bf9e6c5a8f81e Mon Sep 17 00:00:00 2001
From: Diego Celix <dcelix@gmail.com>
Date: Mon, 14 Feb 2011 15:21:53 +0000
Subject: [PATCH] lib/intel_chipset: GEN5 fix

This fixes the correct identification of the GEN5 chipsets inside the
IS_9XX() #define. Fixes the following error:
Couldn't map MMIO region: No such file or directory
Provided on each call of the intel_get_mmio function.
---
 lib/intel_chipset.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index 48c441d..754bdd3 100755
--- a/lib/intel_chipset.h
+++ b/lib/intel_chipset.h
@@ -141,7 +141,7 @@

 #define IS_9XX(devid)        (IS_GEN3(devid) || \
                  IS_GEN4(devid) || \
-                 IS_GEN4(devid) || \
+                 IS_GEN5(devid) || \
                  IS_GEN6(devid))

 #define IS_INTEL(devid)        (IS_GEN2(devid) || \
-- 
1.7.3.4



Regards,

-- 
Diego Celix

[-- Attachment #1.2: Type: text/html, Size: 1584 bytes --]

[-- Attachment #2: 0001-lib-intel_chipset-GEN5-fix.patch --]
[-- Type: text/x-patch, Size: 865 bytes --]

From 62d5a29c9484e989a41f591a403bf9e6c5a8f81e Mon Sep 17 00:00:00 2001
From: Diego Celix <dcelix@gmail.com>
Date: Mon, 14 Feb 2011 15:21:53 +0000
Subject: [PATCH] lib/intel_chipset: GEN5 fix

This fixes the correct identification of the GEN5 chipsets inside the
IS_9XX() #define. Fixes the following error:
Couldn't map MMIO region: No such file or directory
Provided on each call of the intel_get_mmio function.
---
 lib/intel_chipset.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index 48c441d..754bdd3 100755
--- a/lib/intel_chipset.h
+++ b/lib/intel_chipset.h
@@ -141,7 +141,7 @@
 
 #define IS_9XX(devid)		(IS_GEN3(devid) || \
 				 IS_GEN4(devid) || \
-				 IS_GEN4(devid) || \
+				 IS_GEN5(devid) || \
 				 IS_GEN6(devid))
 
 #define IS_INTEL(devid)		(IS_GEN2(devid) || \
-- 
1.7.3.4


[-- Attachment #3: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

             reply	other threads:[~2011-02-14 15:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-14 15:44 Diego Celix [this message]
2011-02-14 15:59 ` [intel-gpu-tools][PATCH] Correct identification of the GEN5 chips on the IS_9XX() define Chris Wilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTi=aUXnVRQ7ZT-Z6Z1HgT-15pMqY7YzuHAd6sV7g@mail.gmail.com' \
    --to=dcelix@gmail.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.