diff options
| author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2018-01-05 18:57:59 -0500 |
|---|---|---|
| committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2018-01-15 12:29:29 -0500 |
| commit | a4b24c7560ba64c3c54d8f90ee033a6f0565f8d3 (patch) | |
| tree | 7e702e463226973154bdd126f8d61f964865bd3b /include/linux | |
| parent | b26210cda63564a7478486faaea713f6ea965633 (diff) | |
remoteproc: Cache resource table size
We don't re-read the resource table during a recovery, so it is possible
in the recovery path that the resource table has a different size than
cached_table. Store the original size of cached_table to avoid these
getting out of sync.
Reviewed-By: Loic Pallardy <loic.pallardy@st.com>
Tested-By: Loic Pallardy <loic.pallardy@st.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/remoteproc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h index 6f1d8e025c81..6fdc62e29d6f 100644 --- a/include/linux/remoteproc.h +++ b/include/linux/remoteproc.h | |||
| @@ -410,6 +410,7 @@ enum rproc_crash_type { | |||
| 410 | * @max_notifyid: largest allocated notify id. | 410 | * @max_notifyid: largest allocated notify id. |
| 411 | * @table_ptr: pointer to the resource table in effect | 411 | * @table_ptr: pointer to the resource table in effect |
| 412 | * @cached_table: copy of the resource table | 412 | * @cached_table: copy of the resource table |
| 413 | * @table_sz: size of @cached_table | ||
| 413 | * @has_iommu: flag to indicate if remote processor is behind an MMU | 414 | * @has_iommu: flag to indicate if remote processor is behind an MMU |
| 414 | */ | 415 | */ |
| 415 | struct rproc { | 416 | struct rproc { |
| @@ -440,6 +441,7 @@ struct rproc { | |||
| 440 | int max_notifyid; | 441 | int max_notifyid; |
| 441 | struct resource_table *table_ptr; | 442 | struct resource_table *table_ptr; |
| 442 | struct resource_table *cached_table; | 443 | struct resource_table *cached_table; |
| 444 | size_t table_sz; | ||
| 443 | bool has_iommu; | 445 | bool has_iommu; |
| 444 | bool auto_boot; | 446 | bool auto_boot; |
| 445 | }; | 447 | }; |
