linux/drivers/accel/ivpu
Arnd Bergmann 17ab1ea679 accel/ivpu: PM: remove broken ivpu_dbg() statements
When CONFIG_PM is disabled, the driver fails to build:

drivers/accel/ivpu/ivpu_pm.c: In function 'ivpu_rpm_get':
drivers/accel/ivpu/ivpu_pm.c:240:84: error: 'struct dev_pm_info' has no member named 'usage_count'
  240 |         ivpu_dbg(vdev, RPM, "rpm_get count %d\n", atomic_read(&vdev->drm.dev->power.usage_count));
      |                                                                                    ^
include/linux/dynamic_debug.h:223:29: note: in definition of macro '__dynamic_func_call_cls'
  223 |                 func(&id, ##__VA_ARGS__);                       \
      |                             ^~~~~~~~~~~
include/linux/dynamic_debug.h:249:9: note: in expansion of macro '_dynamic_func_call_cls'
  249 |         _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:272:9: note: in expansion of macro '_dynamic_func_call'
  272 |         _dynamic_func_call(fmt, __dynamic_dev_dbg,              \
      |         ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:155:9: note: in expansion of macro 'dynamic_dev_dbg'
  155 |         dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
      |         ^~~~~~~~~~~~~~~
drivers/accel/ivpu/ivpu_drv.h:65:17: note: in expansion of macro 'dev_dbg'
   65 |                 dev_dbg((vdev)->drm.dev, "[%s] " fmt, #type, ##args);          \
      |                 ^~~~~~~
drivers/accel/ivpu/ivpu_pm.c:240:9: note: in expansion of macro 'ivpu_dbg'
  240 |         ivpu_dbg(vdev, RPM, "rpm_get count %d\n", atomic_read(&vdev->drm.dev->power.usage_count));
      |         ^~~~~~~~

It would be possible to rework these statements to only conditionally print
the reference counter, or to make the driver depend on CONFIG_PM, but my
impression is that these are not actually needed at all if the driver generally
works, or they could be put back when required. Just remove all four of these
to make the driver build in all configurations.

Fixes: 852be13f3b ("accel/ivpu: Add PM support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230126163804.3648051-1-arnd@kernel.org
2023-01-27 10:48:40 +01:00
..
ivpu_drv.c accel/ivpu: Add PM support 2023-01-19 11:12:08 +01:00
ivpu_drv.h accel/ivpu: Add PM support 2023-01-19 11:12:08 +01:00
ivpu_fw.c accel/ivpu: Add PM support 2023-01-19 11:12:08 +01:00
ivpu_fw.h accel/ivpu: Implement firmware parsing and booting 2023-01-19 11:11:53 +01:00
ivpu_gem.c accel/ivpu: Add command buffer submission logic 2023-01-19 11:12:00 +01:00
ivpu_gem.h accel/ivpu: Add command buffer submission logic 2023-01-19 11:12:00 +01:00
ivpu_hw_mtl_reg.h
ivpu_hw_mtl.c accel/ivpu: Fix spelling mistake "tansition" -> "transition" 2023-01-25 15:15:39 +01:00
ivpu_hw_reg_io.h
ivpu_hw.h
ivpu_ipc.c accel/ivpu: Add PM support 2023-01-19 11:12:08 +01:00
ivpu_ipc.h accel/ivpu: Add IPC driver and JSM messages 2023-01-19 11:11:45 +01:00
ivpu_job.c accel/ivpu: Add PM support 2023-01-19 11:12:08 +01:00
ivpu_job.h accel/ivpu: Add command buffer submission logic 2023-01-19 11:12:00 +01:00
ivpu_jsm_msg.c accel/ivpu: Add IPC driver and JSM messages 2023-01-19 11:11:45 +01:00
ivpu_jsm_msg.h accel/ivpu: Add IPC driver and JSM messages 2023-01-19 11:11:45 +01:00
ivpu_mmu_context.c
ivpu_mmu_context.h
ivpu_mmu.c accel/ivpu: Add PM support 2023-01-19 11:12:08 +01:00
ivpu_mmu.h
ivpu_pm.c accel/ivpu: PM: remove broken ivpu_dbg() statements 2023-01-27 10:48:40 +01:00
ivpu_pm.h accel/ivpu: Add PM support 2023-01-19 11:12:08 +01:00
Kconfig
Makefile accel/ivpu: Add PM support 2023-01-19 11:12:08 +01:00
TODO
vpu_boot_api.h accel/ivpu: Implement firmware parsing and booting 2023-01-19 11:11:53 +01:00
vpu_jsm_api.h accel/ivpu: Add IPC driver and JSM messages 2023-01-19 11:11:45 +01:00