| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
This reverts commit 7de0ee34699e297f1f224fce1790c3cd03bc2f32. The
incorrect version of "libpdbg/p8chip.c: release special wakeups for
P8" was applied, the next patch will commit the correct version.
Signed-off-by: Alistair Popple <alistair@popple.id.au>
|
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Tested-by: Rashmica Gupta <rashmica.g@gmail.com>
|
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Tested-by: Rashmica Gupta <rashmica.g@gmail.com>
|
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Tested-by: Rashmica Gupta <rashmica.g@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
1. File 'ccan/short_types/short_types.h' is not used by external interface
and should be used as internal dependency only (ccan directory is not
installed by make script).
2. Extern "C" declaration of API allows us to call libpdbg functions
from C++ modules.
Signed-off-by: Artem Senichev <artemsen@gmail.com>
Signed-off-by: Alistair Popple <alistair@popple.id.au>
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
|
|
| |
This will help add a generic read/write methods for adu class.
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
|
|
|
|
|
|
|
| |
Based on patch from Alistair, some fixes and changes:
- account HILE bit, set/clear MSR_LE
- clear MSR_PR
- don't use raw ramming (clearer this way, not perf critical)
At the moment, must manually stop all threads in the core, and manually
restart them. Can change behaviour depending on what exactly we want
(e.g., sreset all threads may be good for debugging).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This makes a few changes to stop and ram procedure.
First of all, the existing thread_stop procedure is also setting up some
of the ram state. Change that to just do the stop sequence from the
workbook, and move the ram stuff into ram setup and destroy.
The workbook calls for inactive threads being rammed to set a thread
active state before ram mode is exited, in order for GPRs modified by
ramming to avoid getting lost. Currently the code does that in the
stop sequence before ram mode is activated.
The code also currently deasserts the thread active bit after exiting
ram mode, which is not part of the workbook, so this is no longer done.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
|
|
|
|
| |
XXX: have to ensure this still does the right thing on P9
|
|
|
|
|
|
| |
This copies the special wakeup release logic from p9chip.c
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
|
|
|
|
|
|
|
|
|
| |
The workbook recipe is to write SP_STOP once, then poll for status.
Also add a small delay between polling to give a reasonable timeout
and avoid hitting the scom bus hard for no good reason.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
|
| |
|
|
|
|
| |
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
|
|
|
|
|
|
|
|
|
| |
Restores the functionality that allows to set I2C backend
device through command line arguments, it was broken by commit
dacc9b57e4615f125eb1f56d842a64c40abb1408
Signed-off-by: Artem Senichev <artemsen@gmail.com>
Reviewed-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Not all memory can be read with the default ADU block size of 8
bytes. Specifically cache-inhibited access to some MMIO regions such
as PCIe BAR spaces requires 4 byte accesses to avoid check stopping
the machine.
This patch adds library functions to read/write IO memory which takes
a block size argument and two new put/getmemio commands to allow a
specific block size to be specified from the command line.
Signed-off-by: Alistair Popple <alistair@popple.id.au>
Reviewed-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
| |
Signed-off-by: Alistair Popple <alistair@popple.id.au>
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
|
|
| |
The property "chip-id" is not used any more in pdbg.
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
|
|
|
| |
Instead of using two different ways to id various chiplets, consistently
use "index" property.
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
|
|
| |
The kernel uses "%08x" to create a directory in debugfs.
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Rashmica Gupta <rashmica.g@gmail.com>
|
|
|
|
|
|
|
|
|
| |
If none of the expected targets are selected, log an error.
core htm - core target
nest htm - pib target
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
|
|
|
| |
Parsing -l options requires device_node to be set. It is used in
pir_map() to map Linux CPU to proc/core/thread.
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
|
|
|
|
|
|
| |
Even though device tree compatible property can hold multiple strings,
the struct pdbg_target definition can only take a single compatible
string.
Also, rename chtm hw unit to match nhtm.
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
|
| |
Signed-off-by: Alistair Popple <alistair@popple.id.au>
Reviewed-by: Amitay Isaacs <amitay@ozlabs.org>
|
|
|
|
|
|
|
|
|
| |
It's possible that pdbg doesn't have hw units defined for all the nodes
in the device tree. So if we encounter a node without class name ignore
that node while matching path.
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
|
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
|
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
|
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
|
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
|
|
|
|
|
|
|
|
| |
With capability of selecting any target in the device tree, probe output
should display all the nodes with their device tree names.
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
|
|
|
|
|
|
|
|
|
| |
When pdbg is built without "--disable-shared" option, libtool creates
pdbg as a wrapper around lt-pdbg binary. This causes the tests to fail
which try to match the output containing argv[0].
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
|
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Tested-by: Alistair Popple <alistair@popple.id.au>
|
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
|
|
|
|
|
|
|
| |
Drop the old target selection code.
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
|
|
|
|
|
|
|
|
| |
To maintain the compatibility with the old selection where -p selected
processor, add fsi and pib targets with matching index.
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
|
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
|
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
|