[PATCH v3 2/2] fbdev: hyperv_fb: Allow graceful removal of framebuffer

2025-03-01 Thread Saurabh Sengar
ion of framebuffer with devm_register_framebuffer. Fixes: 68a2d20b79b1 ("drivers/video: add Hyper-V Synthetic Video Frame Buffer Driver") Signed-off-by: Saurabh Sengar --- [V3] - using simplified hvfb_putmem() drivers/video/fbdev/hyperv_fb.c | 20 +++- 1 file changed, 15

[PATCH v3 1/2] fbdev: hyperv_fb: Simplify hvfb_putmem

2025-03-01 Thread Saurabh Sengar
The device object required in 'hvfb_release_phymem' function for 'dma_free_coherent' can also be obtained from the 'info' pointer, making 'hdev' parameter in 'hvfb_putmem' redundant. Remove the unnecessary 'hdev' argument from 'hvfb_

[PATCH v3 0/2] fbdev: hyperv_fb: framebuffer release cleanup

2025-03-01 Thread Saurabh Sengar
cleanup of hvfb_putmem() - Use the simplified hvfb_putmem() Saurabh Sengar (2): fbdev: hyperv_fb: Simplify hvfb_putmem fbdev: hyperv_fb: Allow graceful removal of framebuffer drivers/video/fbdev/hyperv_fb.c | 30 -- 1 file changed, 20 insertions(+), 10 deletions

[PATCH v2] fbdev: hyperv_fb: Allow graceful removal of framebuffer

2025-02-25 Thread Saurabh Sengar
ion of framebuffer with devm_register_framebuffer. Fixes: 68a2d20b79b1 ("drivers/video: add Hyper-V Synthetic Video Frame Buffer Driver") Signed-off-by: Saurabh Sengar --- V2 : Move hvfb_putmem into destroy() drivers/video/fbdev/hyperv_fb.c | 28 ++-- 1 file change

[PATCH] fbdev: hyperv_fb: Allow graceful removal of framebuffer

2025-02-15 Thread Saurabh Sengar
r with devm_register_framebuffer. Fixes: 68a2d20b79b1 ("drivers/video: add Hyper-V Synthetic Video Frame Buffer Driver") Signed-off-by: Saurabh Sengar --- drivers/video/fbdev/hyperv_fb.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/video/fbdev/hyper

[PATCH] drm/hyperv: Don't overwrite dirt_needed value set by host

2022-09-12 Thread Saurabh Sengar
default value for dirt_needed is changed to false as it's allocated by kzalloc which is similar to legacy hyperv_fb driver. Signed-off-by: Saurabh Sengar --- drivers/gpu/drm/hyperv/hyperv_drm_drv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/hyperv/hyperv_drm_drv

[PATCH] drm/hyperv: Add ratelimit on error message

2022-09-09 Thread Saurabh Sengar
diagnosability. Signed-off-by: Saurabh Sengar --- drivers/gpu/drm/hyperv/hyperv_drm_proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/hyperv/hyperv_drm_proto.c b/drivers/gpu/drm/hyperv/hyperv_drm_proto.c index 76a182a..013a782 100644 --- a/drivers/gpu/drm

[PATCH] drm/hyperv: Don't rely on screen_info.lfb_base for Gen1 VMs

2022-09-09 Thread Saurabh Sengar
useful. For Gen1 VMs, it should always be possible to get framebuffer conflict removed using PCI device instead. Fixes: a0ab5abced55 ("drm/hyperv : Removing the restruction of VRAM allocation with PCI bar size") Signed-off-by: Saurabh Sengar --- drivers/gpu/dr

[PATCH v2] drm/hyperv : Removing the restruction of VRAM allocation with PCI bar size

2022-05-21 Thread Saurabh Sengar
resolution to be restricted to 64 MB size, and with recent conclusion on fbdev issue its concluded to have similar allocation strategy for both Gen1 and Gen2. This patch unifies the Gen1 and Gen2 vram allocation strategy. Signed-off-by: Saurabh Sengar Reviewed-by: Deepak Rawat --- drivers/gpu

[PATCH] drm/hyperv : Removing the restruction of VRAM allocation with PCI bar size

2022-05-20 Thread Saurabh Sengar
resolution to be restricted to 64 MB size, and with recent conclusion on fbdev issue its concluded to have similar allocation strategy for both Gen1 and Gen2. This patch unifies the Gen1 and Gen2 vram allocation strategy. Signed-off-by: Saurabh Sengar --- FBdev patch Ref : https://lore.kernel.org

[PATCH] video: hyperv_fb: Allow resolutions with size > 64 MB for Gen1

2022-04-27 Thread Saurabh Sengar
emory shouldn't be limited by PCI bar size. Signed-off-by: Saurabh Sengar --- drivers/video/fbdev/hyperv_fb.c | 19 +-- 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/drivers/video/fbdev/hyperv_fb.c b/drivers/video/fbdev/hyperv_fb.c index c8e0ea2..58c304a 100644 ---

[PATCH v4] drm/hyperv: Add error message for fb size greater than allocated

2022-04-11 Thread Saurabh Sengar
Add error message when the size of requested framebuffer is more than the allocated size by vmbus mmio region for framebuffer Signed-off-by: Saurabh Sengar --- v3 -> v4 : * Shorter error message * Alignment match for open parenthesis * Added -> Add (typo fix in

[PATCH v3] drm/hyperv: Added error message for fb size greater than allocated

2022-04-10 Thread Saurabh Sengar
Added error message when the size of requested framebuffer is more than the allocated size by vmbus mmio region for framebuffer Signed-off-by: Saurabh Sengar --- v2 -> v3 : then -> than (typo fix) drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 5 - 1 file changed, 4 insertions

[PATCH] drm/hyperv: Added error message for fb size greater then allocated

2022-04-07 Thread Saurabh Sengar
From: saurabh Added error message when the size of requested framebuffer is more then the allocated size by vmbus mmio region for framebuffer Signed-off-by: saurabh --- drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/g

[PATCH v2] drm/hyperv: Added error message for fb size greater then allocated

2022-04-07 Thread Saurabh Sengar
Added error message when the size of requested framebuffer is more then the allocated size by vmbus mmio region for framebuffer Signed-off-by: Saurabh Sengar --- v1 -> v2 : Corrected Sign-off drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 5 - 1 file changed, 4 insertions(+), 1 delet

[PATCH] drm: adding SDI to drm_connector_enum_list

2017-07-26 Thread Saurabh Sengar
adding SDI to drm connector list Signed-off-by: Saurabh Sengar --- drivers/gpu/drm/drm_connector.c | 1 + include/uapi/drm/drm_mode.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index 2db7fb5..ea48ddb 100644 --- a

drm/edid: api to register cea modes if no edid supported

2017-07-14 Thread Saurabh Sengar
. Signed-off-by: Saurabh Sengar --- drivers/gpu/drm/drm_edid.c | 48 ++ include/drm/drm_edid.h | 2 ++ 2 files changed, 50 insertions(+) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index ec77bd3..08cfd9d 100644 --- a/drivers/gpu

[PATCH] gpu: host1x: mipi: Added missing mutex_unlock

2015-12-07 Thread Saurabh Sengar
In case of error too function should return after releasing the mutex Signed-off-by: Saurabh Sengar --- drivers/gpu/host1x/mipi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/host1x/mipi.c b/drivers/gpu/host1x/mipi.c index 52a6fd2..6e559a9 100644 --- a/drivers/gpu/host1x

[PATCH] drm: msm: dsi: Added missing mutex_unlock

2015-12-07 Thread Saurabh Sengar
in case of failed to get iova, function was returning without releasing the mutex. Added it. Signed-off-by: Saurabh Sengar --- drivers/gpu/drm/msm/dsi/dsi_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi

[PATCH] drm/nouveau/abi16: add missing mutex_unlock()

2015-11-09 Thread Saurabh Sengar
adding missing mutex_unlock() Signed-off-by: Saurabh Sengar --- drivers/gpu/drm/nouveau/nouveau_abi16.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_abi16.c b/drivers/gpu/drm/nouveau/nouveau_abi16.c index d336c22..280bd8e 100644