aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorPrarit Bhargava <[email protected]>2017-03-14 07:36:01 -0400
committerHerbert Xu <[email protected]>2017-03-16 17:43:10 +0800
commit69db7009318758769d625b023402161c750f7876 (patch)
tree0ccbbcb2b9d5fa3da121200825b350f3f42066d9 /tools/perf/scripts/python/call-graph-from-postgresql.py
parent7c468447f40645fbf2a033dfdaa92b1957130d50 (diff)
hwrng: amd - Revert managed API changes
After commit 31b2a73c9c5f ("hwrng: amd - Migrate to managed API"), the amd-rng driver uses devres with pci_dev->dev to keep track of resources, but does not actually register a PCI driver. This results in the following issues: 1. The message WARNING: CPU: 2 PID: 621 at drivers/base/dd.c:349 driver_probe_device+0x38c is output when the i2c_amd756 driver loads and attempts to register a PCI driver. The PCI & device subsystems assume that no resources have been registered for the device, and the WARN_ON() triggers since amd-rng has already do so. 2. The driver leaks memory because the driver does not attach to a device. The driver only uses the PCI device as a reference. devm_*() functions will release resources on driver detach, which the amd-rng driver will never do. As a result, 3. The driver cannot be reloaded because there is always a use of the ioport and region after the first load of the driver. Revert the changes made by 31b2a73c9c5f ("hwrng: amd - Migrate to managed API"). Cc: <[email protected]> Signed-off-by: Prarit Bhargava <[email protected]> Fixes: 31b2a73c9c5f ("hwrng: amd - Migrate to managed API"). Cc: Matt Mackall <[email protected]> Cc: Corentin LABBE <[email protected]> Cc: PrasannaKumar Muralidharan <[email protected]> Cc: Wei Yongjun <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions