aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* Print Ampere+ device_info fields with correct offsets/widthsarchive/bh4-wipJoshua Bakita2023-10-29
| | | | Everything now has been checked against how nvgpu handles it
* Rearrange, fix an off-by-one error, and remove an unused defineJoshua Bakita2023-09-20
| | | | | The code in nvdebug.h has been rearranged to enable an easier merge against the jbakita-wip branch.
* Bug fixes and cleanup for new device_info logicJoshua Bakita2023-09-20
| | | | | | | | | - Update comments to match new structure - Make show() function idempotent - Skip empty table entries without aborting - Include names for new engine types - Add warning log messages for skipped table entries - Remove non-functional runlist file creation logic for Ampere+
* Debugging changes made to restore functionality following refactoring.Benjamin Hadad IV2023-08-19
| | | | | | - Debugged data display errors. - Debugged crash bugs. - Debugged memory issue.
* A variety of changes have been made as part of the code review.Benjamin Hadad IV2023-08-16
| | | | | | - Functions have been consolidated. - Code was clarified and tidied up overall. - Unnecessary elements were removed.
* Refactored various systems and debugged minor issuesBenjamin Hadad IV2023-07-28
| | | | | | | - Added device_info_iter - Merged functions in device_info_procfs.c - Separated device_info data structs by version in nvdebug.h - Fixed issue with device_info runlist ID data
* I have updated the ptop_device_info_t comment in nvdebug.h.Benjamin Hadad IV2023-07-21
|
* Debugged device_info functionalityBenjamin Hadad IV2023-07-19
| | | | | | - Fixed device_info crash bugs - Made further edits to display functionality - Refactored code to enhance readability
* This commit is to update the repo for display during a meeting.Benjamin Hadad IV2023-07-13
| | | | | | | - Added an Ampere version of the device info data. - Added Ampere versions of auxillary functions. - Modified display functions to accommodate Ampere data. - Made other various small modifications.
* Merge branch 'jbakita-wip' of ssh://rtsrv.cs.unc.edu/public/nvdebug into wipBenjamin Hadad IV2023-07-10
|\ | | | | | | I am merging Mr. Bakita's changes (046d7d2) into this repository.
| * Fix addressing, zero-init, and compatibility bugs in a3fe378Joshua Bakita2023-07-03
| | | | | | | | | | | | | | | | | | - Including missing dereference to finish getting the address of the control register range - Add zero-initialization to the proc_ops structure in copat_ops to insure that all intentionally unset fields remain unset - Set .llseek in all the file_operations structures, as recent kernels require this to be explictly set
* | I modified nvdebug.h for Ampere.Benjamin Hadad IV2023-07-03
|/
* Hacky support for Linux 5.6+ and the Jetson AGX OrinJoshua Bakita2023-06-29
| | | | | | | | | | | | | | Works around change in parameters to proc initialization functions via a hacky function which rewrites the layout. This also required making all the struct file_operations writable. Also start reducing dependency on nvgpu headers. Known issues: - Incorrect message printed in log after module is loaded. Unclear if this is because the register detection logic is broken, or if the layout of the data at NV_MC_BOOT_0 has changed. - Not tested
* Fix deinitialization on non-PCIe devicesJoshua Bakita2023-06-28
|
* Include nvgpu headersJoshua Bakita2023-06-28
| | | | | | These are needed to build on NVIDIA's Jetson boards for the time being. Only a couple structs are required, so it should be fairly easy to remove this dependency at some point in the future.
* Quick dump of current state for Ben to review.Joshua Bakita2023-06-22
|
* Comment fixup and abort if runlist is stored in VRAMJoshua Bakita2021-10-03
|
* Add APIs to enable/disable a channel and switch to or preempt a specific TSGJoshua Bakita2021-09-23
| | | | | | | | | | | Adds: - /proc/preempt_tsg which takes a TSG ID - /proc/disable_channel which takes a channel ID - /proc/enable_channel which takes a channel ID - /proc/switch_to_tsg which takes a TSG ID Also significantly expands documentation and structs available in nvdebug.h.
* Include git hash as version number and print startup messageJoshua Bakita2021-09-22
|
* Fix a pre-4.19 bug in seq procfs files and add detailed channel printJoshua Bakita2021-09-22
| | | | | | | | | | - The sequence file infrastructure prior to kernel version 4.19 has a bug in the retry code when the write buffer overflows that causes our private iterator state to be corrupted. Work around this by tracking some info out-of-band. - Now supports including detailed channel status information from channel RAM when printing the runlist. - Adds helper function to probe for and return struct gk20a*.
* Use procfs instead of dmesg to print runlistJoshua Bakita2021-08-26
| | | | | | | `cat /proc/runlist` to print the current runlist. Also break nvdebug.c into nvdebug_entry.c, runlist.c, and runlist_procfs.c.
* Add initial implementationJoshua Bakita2021-08-26
Supports accessing and printing the runlist on the Jetson Xavier to dmesg. May work on other Jetson boards. Currently requires the nvgpu headers from NVIDIA's Linux4Tegra (L4T) source tree.