gpu: drm: fb: Align deferred IO ops helper name for Linux6.6

The FB deferred IO ops helper name is changed in Linux 6.6 with
below mainline kernel change:
---
commit 744d35d3436fbeed9131f6ab717aeb3f775b19c4
Author: Thomas Zimmermann <tzimmermann@suse.de>
Date:   Sat Jul 29 21:26:49 2023 +0200

    fbdev: Align deferred I/O with naming of helpers

---
Use the new macros name.

Bug 4346767

Change-Id: Idc2e2319994fd2ed7040d8d5528a0d6074257420
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3008092
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Laxman Dewangan
2023-11-01 08:43:52 +00:00
committed by mobile promotions
parent abfab2085e
commit 0f76fc5e17
2 changed files with 9 additions and 0 deletions

View File

@@ -55,6 +55,9 @@ subdir-ccflags-y += -DNV_SPLIT_PAGE_POOL_HEADER
# Unexport helpers for fd/handle conversion # Unexport helpers for fd/handle conversion
subdir-ccflags-y += -DNV_UNEXPORT_FD_HANDLE_CONVERSION subdir-ccflags-y += -DNV_UNEXPORT_FD_HANDLE_CONVERSION
# FB Deferred IO helpers name alignment
subdir-ccflags-y += -DNV_FB_DEFERRED_IO_OPS_RENAME
endif endif
ifeq ($(CONFIG_TEGRA_VIRTUALIZATION),y) ifeq ($(CONFIG_TEGRA_VIRTUALIZATION),y)

View File

@@ -215,10 +215,16 @@ static int tegra_fb_mmap(struct fb_info *info, struct vm_area_struct *vma)
} }
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 5, 0) #if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 5, 0)
#if defined(NV_FB_DEFERRED_IO_OPS_RENAME)
FB_GEN_DEFAULT_DEFERRED_IOMEM_OPS(tegra_fb,
drm_fb_helper_damage_range,
drm_fb_helper_damage_area)
#else
FB_GEN_DEFAULT_DEFERRED_IO_OPS(tegra_fb, FB_GEN_DEFAULT_DEFERRED_IO_OPS(tegra_fb,
drm_fb_helper_damage_range, drm_fb_helper_damage_range,
drm_fb_helper_damage_area) drm_fb_helper_damage_area)
#endif #endif
#endif
static const struct fb_ops tegra_fb_ops = { static const struct fb_ops tegra_fb_ops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,