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] intel_audio_dump problem with GEN5 devices
Date: Tue, 15 Feb 2011 17:41:20 +0000	[thread overview]
Message-ID: <AANLkTik4V-S2xWow4QGCCE3g_B1xuA2vbLErLO533=nW@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 934 bytes --]

Hi!,

When I run the intel_audio_dump tool with my laptop (Core i5 Intel HD
Graphics) seems that it is not correctly fetching the data.

This is a piece of the source, in which the HAS_PCH_SPLIT macro is
called (Line 1197, intel_audio_dump.c)

        if (HAS_PCH_SPLIT(devid) || getenv("HAS_PCH_SPLIT")) {
                intel_check_pch();
                dump_cpt();
        } else if (IS_GEN5(devid))
                dump_ironlake();
        else
                dump_eaglelake();


In the HAS_PCH_SPLIT macro is also checked if the device is GEN5, so
in my case, I will never reach the second statement.
I've checked the output of the dump_ironlake() function, and seems to be ok.

As in other files the HAS_PCH_SPLIT macro is used, I'm not pretty sure
about the best solution here.
I simply checked if it is a GEN6 device instead of using the
HAS_PCH_SPLIT macro.

I have attached the change I made.


Regards,

-- 
Diego Celix

[-- Attachment #2: 0001-intel_audio_dump-Removed-repeated-check-for-GEN5.patch --]
[-- Type: text/x-patch, Size: 887 bytes --]

From 11ecef0c415e20c1b377bf9bb93dcc4b1ab283c0 Mon Sep 17 00:00:00 2001
From: Diego Celix <dcelix@gmail.com>
Date: Tue, 15 Feb 2011 17:17:41 +0000
Subject: [PATCH] intel_audio_dump: Removed repeated check for GEN5

In main(), there is a repeated check for a GEN5 device.
The first one is inside the HAS_PCH_SPLIT macro wich prevents reaching the
correct option.
---
 tools/intel_audio_dump.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c
index ef81b6a..c3204a2 100644
--- a/tools/intel_audio_dump.c
+++ b/tools/intel_audio_dump.c
@@ -1194,7 +1194,7 @@ int main(int argc, char **argv)
 	else
 		intel_get_mmio(pci_dev);
 
-	if (HAS_PCH_SPLIT(devid) || getenv("HAS_PCH_SPLIT")) {
+	if (IS_GEN6(devid) || getenv("HAS_PCH_SPLIT")) {
 		intel_check_pch();
 		dump_cpt();
 	} else if (IS_GEN5(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-15 17:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-15 17:41 Diego Celix [this message]
2011-02-17  7:43 ` [intel-gpu-tools] intel_audio_dump problem with GEN5 devices Zhenyu Wang

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='AANLkTik4V-S2xWow4QGCCE3g_B1xuA2vbLErLO533=nW@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.