[PATCH v3 00/12] video: fbdev: use generic power management
Bartlomiej Zolnierkiewicz
b.zolnierkie at samsung.com
Tue Sep 8 11:37:14 UTC 2020
On 8/19/20 8:56 PM, Vaibhav Gupta wrote:
> Linux Kernel Mentee: Remove Legacy Power Management.
>
> The purpose of this patch series is to upgrade power management in video fbdev
> drivers. This has been done by upgrading .suspend() and .resume() callbacks.
>
> The upgrade makes sure that the involvement of PCI Core does not change the
> order of operations executed in a driver. Thus, does not change its behavior.
>
> In general, drivers with legacy PM, .suspend() and .resume() make use of PCI
> helper functions like pci_enable/disable_device_mem(), pci_set_power_state(),
> pci_save/restore_state(), pci_enable/disable_device(), etc. to complete
> their job.
>
> The conversion requires the removal of those function calls, change the
> callbacks' definition accordingly and make use of dev_pm_ops structure.
>
> All patches are compile-tested only.
>
> Test tools:
> - Compiler: gcc (GCC) 10.1.0
> - allmodconfig build: make -j$(nproc) W=1 all
>
> Vaibhav Gupta (12):
> fbdev: gxfb: use generic power management
> fbdev: lxfb: use generic power management
> fbdev: via-core: use generic power management
> fbdev: aty: use generic power management
> fbdev: aty128fb: use generic power management
> fbdev: nvidia: use generic power management
> fbdev: savagefb: use generic power management
> fbdev: cyber2000fb: use generic power management
> fbdev: i740fb: use generic power management
> fbdev: vt8623fb: use generic power management
> fbdev: s3fb: use generic power management
> fbdev: arkfb: use generic power management
>
> drivers/video/fbdev/arkfb.c | 41 ++++++-------
> drivers/video/fbdev/aty/aty128fb.c | 51 ++++++++++------
> drivers/video/fbdev/aty/atyfb_base.c | 50 ++++++++++-----
> drivers/video/fbdev/cyber2000fb.c | 13 ++--
> drivers/video/fbdev/geode/gxfb.h | 5 --
> drivers/video/fbdev/geode/gxfb_core.c | 36 ++++++-----
> drivers/video/fbdev/geode/lxfb.h | 5 --
> drivers/video/fbdev/geode/lxfb_core.c | 37 +++++------
> drivers/video/fbdev/geode/lxfb_ops.c | 4 --
> drivers/video/fbdev/geode/suspend_gx.c | 4 --
> drivers/video/fbdev/i740fb.c | 40 +++++-------
> drivers/video/fbdev/nvidia/nvidia.c | 64 +++++++++++---------
> drivers/video/fbdev/s3fb.c | 39 +++++-------
> drivers/video/fbdev/savage/savagefb_driver.c | 52 ++++++++++------
> drivers/video/fbdev/via/via-core.c | 39 +++++-------
> drivers/video/fbdev/vt8623fb.c | 41 ++++++-------
> include/linux/via-core.h | 2 -
> 17 files changed, 267 insertions(+), 256 deletions(-)
Applied to drm-misc-next tree, thanks.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
More information about the dri-devel
mailing list