mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 01:16:18 +00:00
Add more 965 INSTDONE bits.
This shows off the units that are stuck busy in the ut2004 hang.
This commit is contained in:
parent
da2c7f35c7
commit
a18af8ed43
@ -446,6 +446,26 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
#define DMA_FADD_P 0x2078
|
#define DMA_FADD_P 0x2078
|
||||||
#define DMA_FADD_S 0x20d4
|
#define DMA_FADD_S 0x20d4
|
||||||
#define INST_DONE_1 0x207c
|
#define INST_DONE_1 0x207c
|
||||||
|
# define I965_GW_CS_DONE_CR (1 << 19)
|
||||||
|
# define I965_SVSM_CS_DONE_CR (1 << 18)
|
||||||
|
# define I965_SVDW_CS_DONE_CR (1 << 17)
|
||||||
|
# define I965_SVDR_CS_DONE_CR (1 << 16)
|
||||||
|
# define I965_SVRW_CS_DONE_CR (1 << 15)
|
||||||
|
# define I965_SVRR_CS_DONE_CR (1 << 14)
|
||||||
|
# define I965_SVTW_CS_DONE_CR (1 << 13)
|
||||||
|
# define I965_MASM_CS_DONE_CR (1 << 12)
|
||||||
|
# define I965_MASF_CS_DONE_CR (1 << 11)
|
||||||
|
# define I965_MAW_CS_DONE_CR (1 << 10)
|
||||||
|
# define I965_EM1_CS_DONE_CR (1 << 9)
|
||||||
|
# define I965_EM0_CS_DONE_CR (1 << 8)
|
||||||
|
# define I965_UC1_CS_DONE (1 << 7)
|
||||||
|
# define I965_UC0_CS_DONE (1 << 6)
|
||||||
|
# define I965_URB_CS_DONE (1 << 5)
|
||||||
|
# define I965_ISC_CS_DONE (1 << 4)
|
||||||
|
# define I965_CL_CS_DONE (1 << 3)
|
||||||
|
# define I965_GS_CS_DONE (1 << 2)
|
||||||
|
# define I965_VS0_CS_DONE (1 << 1)
|
||||||
|
# define I965_VF_CS_DONE (1 << 0)
|
||||||
|
|
||||||
#define CACHE_MODE_0 0x2120
|
#define CACHE_MODE_0 0x2120
|
||||||
#define CACHE_MODE_1 0x2124
|
#define CACHE_MODE_1 0x2124
|
||||||
|
@ -50,7 +50,7 @@ struct top_bit *top_bits_sorted[MAX_NUM_TOP_BITS];
|
|||||||
|
|
||||||
int num_top_bits;
|
int num_top_bits;
|
||||||
|
|
||||||
uint32_t instdone;
|
static uint32_t instdone, instdone1;
|
||||||
|
|
||||||
static const char *bars[] = {
|
static const char *bars[] = {
|
||||||
" ",
|
" ",
|
||||||
@ -98,6 +98,17 @@ add_instdone_bit(uint32_t bit, char *name)
|
|||||||
num_top_bits++;
|
num_top_bits++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
add_instdone1_bit(uint32_t bit, char *name)
|
||||||
|
{
|
||||||
|
top_bits[num_top_bits].reg = &instdone1;
|
||||||
|
top_bits[num_top_bits].bit = bit;
|
||||||
|
top_bits[num_top_bits].name = name;
|
||||||
|
top_bits[num_top_bits].update = update_idle_bit;
|
||||||
|
top_bits_sorted[num_top_bits] = &top_bits[num_top_bits];
|
||||||
|
num_top_bits++;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_clock(char *name, int clock) {
|
print_clock(char *name, int clock) {
|
||||||
if (clock == -1)
|
if (clock == -1)
|
||||||
@ -247,6 +258,27 @@ int main(int argc, char **argv)
|
|||||||
add_instdone_bit(I965_IC_ROW_0_DONE, "Instruction cache row 0");
|
add_instdone_bit(I965_IC_ROW_0_DONE, "Instruction cache row 0");
|
||||||
add_instdone_bit(I965_IC_ROW_1_DONE, "Instruction cache row 1");
|
add_instdone_bit(I965_IC_ROW_1_DONE, "Instruction cache row 1");
|
||||||
add_instdone_bit(I965_CP_DONE, "Command Processor");
|
add_instdone_bit(I965_CP_DONE, "Command Processor");
|
||||||
|
|
||||||
|
add_instdone1_bit(I965_GW_CS_DONE_CR, "GW CS CR");
|
||||||
|
add_instdone1_bit(I965_SVSM_CS_DONE_CR, "SVSM CS CR");
|
||||||
|
add_instdone1_bit(I965_SVDW_CS_DONE_CR, "SVDW CS CR");
|
||||||
|
add_instdone1_bit(I965_SVDR_CS_DONE_CR, "SVDR CS CR");
|
||||||
|
add_instdone1_bit(I965_SVRW_CS_DONE_CR, "SVRW CS CR");
|
||||||
|
add_instdone1_bit(I965_SVRR_CS_DONE_CR, "SVRR CS CR");
|
||||||
|
add_instdone1_bit(I965_SVTW_CS_DONE_CR, "SVTW CS CR");
|
||||||
|
add_instdone1_bit(I965_MASM_CS_DONE_CR, "MASM CS CR");
|
||||||
|
add_instdone1_bit(I965_MASF_CS_DONE_CR, "MASF CS CR");
|
||||||
|
add_instdone1_bit(I965_MAW_CS_DONE_CR, "MAW CS CR");
|
||||||
|
add_instdone1_bit(I965_EM1_CS_DONE_CR, "EM1 CS CR");
|
||||||
|
add_instdone1_bit(I965_EM0_CS_DONE_CR, "EM0 CS CR");
|
||||||
|
add_instdone1_bit(I965_UC1_CS_DONE, "UC1 CS");
|
||||||
|
add_instdone1_bit(I965_UC0_CS_DONE, "UC0 CS");
|
||||||
|
add_instdone1_bit(I965_URB_CS_DONE, "URB CS");
|
||||||
|
add_instdone1_bit(I965_ISC_CS_DONE, "ISC CS");
|
||||||
|
add_instdone1_bit(I965_CL_CS_DONE, "CL CS");
|
||||||
|
add_instdone1_bit(I965_GS_CS_DONE, "GS CS");
|
||||||
|
add_instdone1_bit(I965_VS0_CS_DONE, "VS0 CS");
|
||||||
|
add_instdone1_bit(I965_VF_CS_DONE, "VF CS");
|
||||||
} else if (IS_9XX(devid)) {
|
} else if (IS_9XX(devid)) {
|
||||||
add_instdone_bit(IDCT_DONE, "IDCT");
|
add_instdone_bit(IDCT_DONE, "IDCT");
|
||||||
add_instdone_bit(IQ_DONE, "IQ");
|
add_instdone_bit(IQ_DONE, "IQ");
|
||||||
@ -290,9 +322,10 @@ int main(int argc, char **argv)
|
|||||||
uint32_t ring_head, ring_tail;
|
uint32_t ring_head, ring_tail;
|
||||||
int ring_full;
|
int ring_full;
|
||||||
|
|
||||||
if (IS_965(devid))
|
if (IS_965(devid)) {
|
||||||
instdone = INREG(INST_DONE_I965);
|
instdone = INREG(INST_DONE_I965);
|
||||||
else
|
instdone1 = INREG(INST_DONE_1);
|
||||||
|
} else
|
||||||
instdone = INREG(INST_DONE);
|
instdone = INREG(INST_DONE);
|
||||||
|
|
||||||
for (j = 0; j < num_top_bits; j++)
|
for (j = 0; j < num_top_bits; j++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user