diff options
| author | Mikko Perttunen <mperttunen@nvidia.com> | 2026-06-09 17:09:18 +0900 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2026-07-16 20:29:02 +0200 |
| commit | 254290869fd234b85119c48dbb98efa5fcd41a31 (patch) | |
| tree | 09ac5306bf727049c5b9774c00bad41f126ab92c /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 7a39b9856acccc8e9b05845ca2bf62494fcd3dfa (diff) | |
gpu: host1x: Avoid double device_add when clients already present
host1x_device_add looks through the idle clients list to populate
subdevs, and any matches entries are moved from the subdevs list
to the active list. If all subdevs are populated, device_add will
be called on the device. The secondary "subdevs list empty" check
will then incorrectly again call device_add.
However, this would require a convoluted scenario since clients don't
typically end up on the idle clients list.
Fix by checking whether the device was already added before adding
again.
Fixes: fab823d82ee5 ("gpu: host1x: Allow loading tegra-drm without enabled engines")
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patch.msgid.link/20260609-b4-host1x-small-fixes-a-v1-2-7c1131c0b3ad@nvidia.com
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
