linux-stable/drivers/accel/ivpu
Arnd Bergmann 00a614fc35 accel/ivpu: avoid build failure with CONFIG_PM=n
The usage count of struct dev_pm_info is an implementation detail that
is only available if CONFIG_PM is enabled, so printing it in a debug message
causes a build failure in configurations without PM:

In file included from include/linux/device.h:15,
                 from include/linux/pci.h:37,
                 from drivers/accel/ivpu/ivpu_pm.c:8:
drivers/accel/ivpu/ivpu_pm.c: In function 'ivpu_rpm_get_if_active':
drivers/accel/ivpu/ivpu_pm.c:254:51: error: 'struct dev_pm_info' has no member named 'usage_count'
  254 |                  atomic_read(&vdev->drm.dev->power.usage_count));
      |                                                   ^
include/linux/dev_printk.h:129:48: note: in definition of macro 'dev_printk'
  129 |                 _dev_printk(level, dev, fmt, ##__VA_ARGS__);            \
      |                                                ^~~~~~~~~~~
drivers/accel/ivpu/ivpu_drv.h:75:17: note: in expansion of macro 'dev_dbg'
   75 |                 dev_dbg((vdev)->drm.dev, "[%s] " fmt, #type, ##args);          \
      |                 ^~~~~~~
drivers/accel/ivpu/ivpu_pm.c:253:9: note: in expansion of macro 'ivpu_dbg'
  253 |         ivpu_dbg(vdev, RPM, "rpm_get_if_active count %d\n",
      |         ^~~~~~~~

The print message does not seem essential, so the easiest workaround is
to just remove it.

Fixes: c39dc15191 ("accel/ivpu: Read clock rate only if device is up")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231027152633.528490-1-arnd@kernel.org
(cherry picked from commit 1470acbef1)
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
2023-11-15 11:03:49 +01:00
..
ivpu_debugfs.c accel/ivpu: Update debugfs to latest changes in DRM 2023-09-27 13:11:44 +02:00
ivpu_debugfs.h accel/ivpu: Compile ivpu_debugfs.c conditionally 2023-09-27 13:11:51 +02:00
ivpu_drv.c Merge tag 'drm-misc-next-2023-10-27' of git://anongit.freedesktop.org/drm/drm-misc into drm-next 2023-10-31 10:47:50 +10:00
ivpu_drv.h Linux 6.6-rc7 2023-10-23 18:20:06 +10:00
ivpu_fw.c Merge tag 'drm-misc-next-2023-10-27' of git://anongit.freedesktop.org/drm/drm-misc into drm-next 2023-10-31 10:47:50 +10:00
ivpu_fw.h accel/ivpu: Move ivpu_fw_load() to ivpu_fw_init() 2023-09-04 11:01:49 +02:00
ivpu_fw_log.c accel/ivpu: Add ivpu_bo_vaddr() and ivpu_bo_size() 2023-10-12 12:54:51 +02:00
ivpu_fw_log.h accel/ivpu: Add firmware tracing support 2023-07-07 09:33:20 +02:00
ivpu_gem.c accel/ivpu: Add ivpu_bo_vaddr() and ivpu_bo_size() 2023-10-12 12:54:51 +02:00
ivpu_gem.h Revert "accel/ivpu: Use cached buffers for FW loading" 2023-10-19 06:51:51 +02:00
ivpu_hw.h accel/ivpu: Don't enter d0i3 during FLR 2023-10-19 06:48:05 +02:00
ivpu_hw_37xx.c drm for 6.7-rc1 2023-11-01 06:28:35 -10:00
ivpu_hw_37xx_reg.h accel/ivpu: Move MMU register definitions to ivpu_mmu.c 2023-09-04 11:01:53 +02:00
ivpu_hw_40xx.c Merge tag 'drm-misc-next-2023-10-27' of git://anongit.freedesktop.org/drm/drm-misc into drm-next 2023-10-31 10:47:50 +10:00
ivpu_hw_40xx_reg.h accel/ivpu/40xx: Ensure clock resource ownership Ack before Power-Up 2023-09-27 07:40:23 +02:00
ivpu_hw_reg_io.h accel/ivpu: Fix verbose version of REG_POLL macros 2023-10-23 08:57:25 +02:00
ivpu_ipc.c Merge tag 'drm-misc-next-2023-10-27' of git://anongit.freedesktop.org/drm/drm-misc into drm-next 2023-10-31 10:47:50 +10:00
ivpu_ipc.h accel/ivpu: Fix IPC buffer header status field value 2023-03-24 10:52:20 +01:00
ivpu_job.c As usual, lots of singleton and doubleton patches all over the tree and 2023-11-02 20:53:31 -10:00
ivpu_job.h accel/ivpu: Annotate struct ivpu_job with __counted_by 2023-09-28 16:39:08 -07:00
ivpu_jsm_msg.c accel/ivpu: Print IPC type string instead of number 2023-10-23 09:00:28 +02:00
ivpu_jsm_msg.h accel/ivpu: Print IPC type string instead of number 2023-10-23 09:00:28 +02:00
ivpu_mmu.c accel/ivpu: Fix verbose version of REG_POLL macros 2023-10-23 08:57:25 +02:00
ivpu_mmu.h
ivpu_mmu_context.c Linux 6.6-rc7 2023-10-23 18:20:06 +10:00
ivpu_mmu_context.h accel/ivpu: Initialize context with SSID = 1 2023-09-04 11:01:26 +02:00
ivpu_pm.c accel/ivpu: avoid build failure with CONFIG_PM=n 2023-11-15 11:03:49 +01:00
ivpu_pm.h accel/ivpu: Read clock rate only if device is up 2023-10-23 08:59:20 +02:00
Kconfig accel/ivpu: ivpu_ipc needs GENERIC_ALLOCATOR 2023-06-06 14:19:53 +02:00
Makefile accel/ivpu: Compile ivpu_debugfs.c conditionally 2023-09-27 13:11:51 +02:00
vpu_boot_api.h
vpu_jsm_api.h