Skip to content
Snippets Groups Projects
Commit e1ac6ec1 authored by Sergey Senozhatsky's avatar Sergey Senozhatsky Committed by Chromeos LUCI
Browse files

CHROMIUM: media/ipu6: do not underflow power usage counter


ipu_pci_probe() enters with device PM usage counter of 2:
one from driver_probe_device()->pm_runtime_barrier() and
one from pci_device_probe()->__pm_runtime_resume().

Then it drops it down to 0, while the device probing is not
done yet and has a number of fail points. One such scenario
is when FW mapping fails and ipu_pci_probe() hits the error
out path, with PM counter adjusted:

[   29.815181] intel-ipu6 intel-ipu: Runtime PM usage count underflow!

UPSTREAM-TASK=b:149068439
UPSTREAM-TASK=b:149068672
BUG=b:241824013
TEST=boot on redrix and dedede

Signed-off-by: default avatarSergey Senozhatsky <senozhatsky@chromium.org>
Change-Id: I3931039f099f9381691ffcf95084bd3508d43b03
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3820542


Reviewed-by: default avatarRicardo Ribalda <ribalda@chromium.org>
parent 426fd6f2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment