summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-04-22Moved repo to gitlabHEADmasterTom St Denis316-546259/+4
https://gitlab.freedesktop.org/tomstdenis/umr Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-04-16add vm_message callback to display VM decoding messagesTom St Denis3-13/+33
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-04-15avoid direct reg read/write access in vram read/writeTom St Denis1-4/+4
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-04-15remove last direct call to umr_access_sram that was missed in the first passTom St Denis1-4/+1
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-04-15replace low level calls to reg read/write with callback callsTom St Denis3-8/+5
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-04-15linux app will initialize memory callbacks to avoid compile time dependency ↵Tom St Denis3-41/+22
on low level implementations Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-04-05tidy up various indentation rulesTom St Denis1-10/+16
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-04-05Case insensitive searching in find_regzamohame1-34/+47
Signed-off-by: zamohame <Zaeem.Mohamed@amd.com>
2019-04-05Add gpu bus to cpu bus translation function to the mem_funcs callbackTom St Denis2-4/+28
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-04-03improve comments on umr_vm_dma_to_phys()Tom St Denis1-2/+7
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-04-03Libumr should be staticJeremy Newton1-1/+1
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
2019-03-29allow discovery without a debugfs 'name' entryTom St Denis1-16/+15
In certain configurations the debugfs file 'name' might not be populated with a device entry if no frame buffer is attached. For instance in headless or A+I setups. In these configurations you can use the syntax umr -i ${instance} -f ${asicname} ... To issue debugfs commands (registers/waves/etc) to a device without 'name' contents. Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-03-29Adding Windows portion of CMake file for asic and ip libMok2-0/+34
Signed-off-by: Mok <Siupak.Mok@amd.com> Reviewed-by: Tom St Denis <tom.stdenis@amd.com>
2019-03-27Const correctness for umr_find_reg_data_by_ipMarcio Andrade2-2/+2
Reviewed-By: Tom St Denis <tom.stdenis@amd.com>
2019-03-26update build instructions for turning off llvm/drmTom St Denis2-4/+4
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-03-26Use CMAKE variables rather than ENV variablesJeremy Newton1-3/+7
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
2019-03-26Fix manpage issuesJeremy Newton1-2/+2
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
2019-03-25ignore reading PM4 streams in --waves if no_disasm is specifiedTom St Denis1-3/+11
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-03-21add sdma 4.2 block and update vega20 to use itTom St Denis10-2/+5597
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-03-20Add option to add rt library to build for EL/CENTOS buildsTom St Denis1-0/+7
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-03-20add ability to disable libDRM dependency at build timeTom St Denis4-0/+28
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-03-20add ability to disable LLVM dependency at build timeTom St Denis4-1/+51
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-03-13update VM documentationTom St Denis1-0/+37
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-03-11apply mem/reg callbacks the first time vram access is performed on xgmi asicsTom St Denis4-0/+51
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-03-08remove comment that was part of debuggingTom St Denis1-1/+0
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-03-08copy a couple of options to xgmi hive asic devicesTom St Denis1-0/+3
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-03-08round vram size up to power of two for xgmi mappingTom St Denis1-1/+9
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-03-08re-factor umr_update() to create umr_update_string()Tom St Denis2-24/+37
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-03-07scan xgmi configuration from sysfsTom St Denis10-81/+101
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-03-05read gtt/vram sizes from sysfs into asic configTom St Denis3-0/+28
Handy info that will also be used for things like proper XGMI support in the future. Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-03-05print out video decode CMD names in ring dumpTom St Denis1-1/+21
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-03-05Add ENGINE_CNTL for vcn10Tom St Denis2-0/+5
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-02-26fix a variety of diagnostics from newer versions of gccTom St Denis8-10/+20
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-02-26fix various bugs that fell out of refactoring the shader codeTom St Denis1-5/+7
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-02-25refactor shader disasmTom St Denis8-123/+262
Move llvm calls to lowlevel directory, followed by renaming various functions and then adding a higher level "to_str" version of the shader disasm call so that the formatted output could be displayed in other UI configurations. The functions were also modified to use a "char ***" pointers to be consistent. Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-02-20add callbacks to redirect system and video ram access (v2)Tom St Denis3-9/+85
(v2): Add opaque pointer and register read/write callbacks Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-02-14fix MEMSPACE decoding for WAIT_REG_MEM PM4 opcodeTom St Denis2-2/+2
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-02-11print correct WAVE_STATUS bits for FAMILY_AITom St Denis1-3/+8
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-02-11refactor umr_scan_wave_data()Tom St Denis1-56/+82
In order to better handle future designs the way we scan waves had to be refactored (also it's cleaner now). Based on a patch by Nicolai Hähnle <nicolai.haehnle@amd.com> submitted to an internal branch. Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-02-11Also print waves that have a fatal_halt condition.Tom St Denis3-7/+8
Based on a patch by Nicolai Hähnle <nicolai.haehnle@amd.com> that was accepted on an internal branch. Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-02-08Change wildcard search to use more regex friendly version of '*' and '?'Tom St Denis3-22/+50
Now the '*' and '?' characters can be used to perform more traditional regex style searches. (minor indentation updates and documentation updates by Tom St Denis) Patch-contributed-by: Marcio Jose Moraes de Andrade <Marcio.Andrade@amd.com> Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-02-07add missing VegaM DIDTom St Denis1-0/+1
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-02-07Add missing vega10 DIDTom St Denis1-0/+1
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-01-24Update and add PM4/SDMA stream opcode decoding documentationTom St Denis4-1/+201
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-01-24Add wildcard register search to the libraryTom St Denis3-1/+147
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-01-21add field for SRBM_WRITE in SDMA APITom St Denis1-0/+1
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-01-19Add SDMA stream decoder APITom St Denis5-2/+723
As well add a few opcodes to the ring decoder side of the SDMA decoder. Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-01-15only print shaders in --waves if the wave is halted as wellTom St Denis1-2/+2
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-01-15add option to enable shader disasm in --waves even if rings are not haltedTom St Denis5-5/+15
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2019-01-15Add MCDisassembler to the library names from LLVMTom St Denis1-0/+1
Fixes linking with shared llvm libraries Reported-by: Nicolai Haehnle <nicolai.haehnle@amd.com> Signed-off-by: Tom St Denis <tom.stdenis@amd.com>