mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 03:11:11 -04:00
Merge tag 'drm-misc-fixes-2026-04-23' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-fixes
This week in drm-misc-fixes, we have: - A patch to raise the vblank timeout to avoid it on virtual drivers - a state check fix for stm_lvds - a use-after-free fix for dma-buf - a mapping fix for panthor - a device_node reference leak fix for arcgpu - a bridge reference leak fix for dw-mipi-dsi - a sparse warning fix for dma-fence - a kconfig fix for hv - a memory leak fix for nouveau - a fix to duplicate colorop when duplicating states - a panel initialisation order fix for visionox-rm69299 - a fix to prevent an infinite loop for v3d - an overflow fix for nouveau Signed-off-by: Dave Airlie <airlied@redhat.com> From: Maxime Ripard <mripard@redhat.com> Link: https://patch.msgid.link/20260423-realistic-eager-reindeer-4dacf7@houat
This commit is contained in:
13
MAINTAINERS
13
MAINTAINERS
@@ -8607,10 +8607,17 @@ S: Maintained
|
||||
T: git https://gitlab.freedesktop.org/drm/misc/kernel.git
|
||||
F: drivers/gpu/drm/gma500/
|
||||
|
||||
DRM DRIVERS FOR HISILICON
|
||||
M: Xinliang Liu <xinliang.liu@linaro.org>
|
||||
DRM DRIVERS FOR HISILICON HIBMC
|
||||
M: Yongbang Shi <shiyongbang@huawei.com>
|
||||
M: Tian Tao <tiantao6@hisilicon.com>
|
||||
R: Xinwei Kong <kong.kongxinwei@hisilicon.com>
|
||||
L: dri-devel@lists.freedesktop.org
|
||||
S: Maintained
|
||||
T: git https://gitlab.freedesktop.org/drm/misc/kernel.git
|
||||
F: drivers/gpu/drm/hisilicon/hibmc
|
||||
|
||||
DRM DRIVERS FOR HISILICON KIRIN
|
||||
M: Xinliang Liu <xinliang.liu@linaro.org>
|
||||
R: Sumit Semwal <sumit.semwal@linaro.org>
|
||||
R: Yongqin Liu <yongqin.liu@linaro.org>
|
||||
R: John Stultz <jstultz@google.com>
|
||||
@@ -8618,7 +8625,7 @@ L: dri-devel@lists.freedesktop.org
|
||||
S: Maintained
|
||||
T: git https://gitlab.freedesktop.org/drm/misc/kernel.git
|
||||
F: Documentation/devicetree/bindings/display/hisilicon/
|
||||
F: drivers/gpu/drm/hisilicon/
|
||||
F: drivers/gpu/drm/hisilicon/kirin
|
||||
|
||||
DRM DRIVERS FOR LIMA
|
||||
M: Qiang Yu <yuq825@gmail.com>
|
||||
|
||||
@@ -845,9 +845,8 @@ void dma_buf_put(struct dma_buf *dmabuf)
|
||||
if (WARN_ON(!dmabuf || !dmabuf->file))
|
||||
return;
|
||||
|
||||
fput(dmabuf->file);
|
||||
|
||||
DMA_BUF_TRACE(trace_dma_buf_put, dmabuf);
|
||||
fput(dmabuf->file);
|
||||
}
|
||||
EXPORT_SYMBOL_NS_GPL(dma_buf_put, "DMA_BUF");
|
||||
|
||||
|
||||
@@ -1021,8 +1021,8 @@ EXPORT_SYMBOL(dma_fence_set_deadline);
|
||||
*/
|
||||
void dma_fence_describe(struct dma_fence *fence, struct seq_file *seq)
|
||||
{
|
||||
const char __rcu *timeline = "";
|
||||
const char __rcu *driver = "";
|
||||
const char __rcu *timeline = (const char __rcu *)"";
|
||||
const char __rcu *driver = (const char __rcu *)"";
|
||||
const char *signaled = "";
|
||||
|
||||
rcu_read_lock();
|
||||
|
||||
@@ -345,10 +345,14 @@ static int dw_mipi_dsi_host_attach(struct mipi_dsi_host *host,
|
||||
if (pdata->host_ops && pdata->host_ops->attach) {
|
||||
ret = pdata->host_ops->attach(pdata->priv_data, device);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
goto err_remove_bridge;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
err_remove_bridge:
|
||||
drm_bridge_remove(&dsi->bridge);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int dw_mipi_dsi_host_detach(struct mipi_dsi_host *host,
|
||||
|
||||
@@ -540,10 +540,14 @@ static int dw_mipi_dsi2_host_attach(struct mipi_dsi_host *host,
|
||||
if (pdata->host_ops && pdata->host_ops->attach) {
|
||||
ret = pdata->host_ops->attach(pdata->priv_data, device);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
goto err_remove_bridge;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
err_remove_bridge:
|
||||
drm_bridge_remove(&dsi2->bridge);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int dw_mipi_dsi2_host_detach(struct mipi_dsi_host *host,
|
||||
|
||||
@@ -1916,7 +1916,7 @@ drm_atomic_helper_wait_for_vblanks(struct drm_device *dev,
|
||||
ret = wait_event_timeout(*queue,
|
||||
state->crtcs[i].last_vblank_count !=
|
||||
drm_crtc_vblank_count(crtc),
|
||||
msecs_to_jiffies(100));
|
||||
msecs_to_jiffies(1000));
|
||||
|
||||
WARN(!ret, "[CRTC:%d:%s] vblank wait timed out\n",
|
||||
crtc->base.id, crtc->name);
|
||||
@@ -3751,6 +3751,13 @@ drm_atomic_helper_duplicate_state(struct drm_device *dev,
|
||||
err = PTR_ERR(plane_state);
|
||||
goto free;
|
||||
}
|
||||
|
||||
if (plane_state->color_pipeline) {
|
||||
err = drm_atomic_add_affected_colorops(state, plane);
|
||||
if (err)
|
||||
goto free;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
drm_connector_list_iter_begin(dev, &conn_iter);
|
||||
@@ -3856,6 +3863,8 @@ int drm_atomic_helper_commit_duplicated_state(struct drm_atomic_state *state,
|
||||
int i, ret;
|
||||
struct drm_plane *plane;
|
||||
struct drm_plane_state *new_plane_state;
|
||||
struct drm_colorop *colorop;
|
||||
struct drm_colorop_state *new_colorop_state;
|
||||
struct drm_connector *connector;
|
||||
struct drm_connector_state *new_conn_state;
|
||||
struct drm_crtc *crtc;
|
||||
@@ -3863,6 +3872,9 @@ int drm_atomic_helper_commit_duplicated_state(struct drm_atomic_state *state,
|
||||
|
||||
state->acquire_ctx = ctx;
|
||||
|
||||
for_each_new_colorop_in_state(state, colorop, new_colorop_state, i)
|
||||
state->colorops[i].old_state = colorop->state;
|
||||
|
||||
for_each_new_plane_in_state(state, plane, new_plane_state, i)
|
||||
state->planes[i].old_state = plane->state;
|
||||
|
||||
|
||||
@@ -874,7 +874,7 @@ static int nouveau_drm_probe(struct pci_dev *pdev,
|
||||
/* Remove conflicting drivers (vesafb, efifb etc). */
|
||||
ret = aperture_remove_conflicting_pci_devices(pdev, driver_pci.name);
|
||||
if (ret)
|
||||
return ret;
|
||||
goto fail_nvkm;
|
||||
|
||||
pci_set_master(pdev);
|
||||
|
||||
|
||||
@@ -686,7 +686,7 @@ nouveau_gem_pushbuf_reloc_apply(struct nouveau_cli *cli,
|
||||
}
|
||||
nvbo = (void *)(unsigned long)bo[r->reloc_bo_index].user_priv;
|
||||
|
||||
if (unlikely(r->reloc_bo_offset + 4 >
|
||||
if (unlikely((u64)r->reloc_bo_offset + 4 >
|
||||
nvbo->bo.base.size)) {
|
||||
NV_PRINTK(err, cli, "reloc outside of bo\n");
|
||||
ret = -EINVAL;
|
||||
|
||||
@@ -376,6 +376,8 @@ static int visionox_rm69299_probe(struct mipi_dsi_device *dsi)
|
||||
return PTR_ERR(ctx->reset_gpio);
|
||||
}
|
||||
|
||||
ctx->panel.prepare_prev_first = true;
|
||||
|
||||
ctx->panel.backlight = visionox_rm69299_create_backlight(ctx);
|
||||
if (IS_ERR(ctx->panel.backlight))
|
||||
return dev_err_probe(dev, PTR_ERR(ctx->panel.backlight),
|
||||
|
||||
@@ -157,7 +157,7 @@ void panthor_kernel_bo_destroy(struct panthor_kernel_bo *bo)
|
||||
/**
|
||||
* panthor_kernel_bo_create() - Create and map a GEM object to a VM
|
||||
* @ptdev: Device.
|
||||
* @vm: VM to map the GEM to. If NULL, the kernel object is not GPU mapped.
|
||||
* @vm: VM to map the GEM to.
|
||||
* @size: Size of the buffer object.
|
||||
* @bo_flags: Combination of drm_panthor_bo_flags flags.
|
||||
* @vm_map_flags: Combination of drm_panthor_vm_bind_op_flags (only those
|
||||
|
||||
@@ -1638,6 +1638,25 @@ static int panthor_vm_lock_region(struct panthor_vm *vm, u64 start, u64 size)
|
||||
start + size <= vm->locked_region.start + vm->locked_region.size)
|
||||
return 0;
|
||||
|
||||
/* sm_step_remap() may need a locked region that isn't a strict superset
|
||||
* of the original one because of having to extend unmap boundaries beyond
|
||||
* it to deal with partial unmaps of transparent huge pages. What we want
|
||||
* in those cases is to lock the union of both regions. The new region must
|
||||
* always overlap with the original one, because the upper and lower unmap
|
||||
* boundaries in a remap operation can only shift up or down respectively,
|
||||
* but never otherwise.
|
||||
*/
|
||||
if (vm->locked_region.size) {
|
||||
u64 end = max(vm->locked_region.start + vm->locked_region.size,
|
||||
start + size);
|
||||
|
||||
drm_WARN_ON_ONCE(&vm->ptdev->base, (start + size <= vm->locked_region.start) ||
|
||||
(start >= vm->locked_region.start + vm->locked_region.size));
|
||||
|
||||
start = min(start, vm->locked_region.start);
|
||||
size = end - start;
|
||||
}
|
||||
|
||||
mutex_lock(&ptdev->mmu->as.slots_lock);
|
||||
if (vm->as.id >= 0 && size) {
|
||||
/* Lock the region that needs to be updated */
|
||||
|
||||
@@ -897,14 +897,14 @@ static int lvds_connector_atomic_check(struct drm_connector *connector,
|
||||
if (!conn_state)
|
||||
return -EINVAL;
|
||||
|
||||
if (!conn_state->crtc)
|
||||
return 0;
|
||||
|
||||
if (list_empty(&connector->modes)) {
|
||||
drm_dbg(connector->dev, "connector: empty modes list\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (!conn_state->crtc)
|
||||
return -EINVAL;
|
||||
|
||||
panel_mode = list_first_entry(&connector->modes,
|
||||
struct drm_display_mode, head);
|
||||
|
||||
|
||||
@@ -250,7 +250,8 @@ DEFINE_DRM_GEM_DMA_FOPS(arcpgu_drm_ops);
|
||||
static int arcpgu_load(struct arcpgu_drm_private *arcpgu)
|
||||
{
|
||||
struct platform_device *pdev = to_platform_device(arcpgu->drm.dev);
|
||||
struct device_node *encoder_node = NULL, *endpoint_node = NULL;
|
||||
struct device_node *encoder_node __free(device_node) = NULL;
|
||||
struct device_node *endpoint_node = NULL;
|
||||
struct drm_connector *connector = NULL;
|
||||
struct drm_device *drm = &arcpgu->drm;
|
||||
int ret;
|
||||
|
||||
@@ -393,6 +393,11 @@ v3d_get_multisync_submit_deps(struct drm_file *file_priv,
|
||||
if (multisync.pad)
|
||||
return -EINVAL;
|
||||
|
||||
if (!multisync.in_sync_count && !multisync.out_sync_count) {
|
||||
drm_dbg(&v3d->drm, "Empty multisync extension\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
ret = v3d_get_multisync_post_deps(file_priv, se, multisync.out_sync_count,
|
||||
multisync.out_syncs);
|
||||
if (ret)
|
||||
|
||||
@@ -9,7 +9,6 @@ config HYPERV
|
||||
select PARAVIRT
|
||||
select X86_HV_CALLBACK_VECTOR if X86
|
||||
select OF_EARLY_FLATTREE if OF
|
||||
select SYSFB if EFI && !HYPERV_VTL_MODE
|
||||
select IRQ_MSI_LIB if X86
|
||||
help
|
||||
Select this option to run Linux as a Hyper-V client operating
|
||||
@@ -62,6 +61,7 @@ config HYPERV_VMBUS
|
||||
tristate "Microsoft Hyper-V VMBus driver"
|
||||
depends on HYPERV
|
||||
default HYPERV
|
||||
select SYSFB if EFI && !HYPERV_VTL_MODE
|
||||
help
|
||||
Select this option to enable Hyper-V Vmbus driver.
|
||||
|
||||
|
||||
@@ -1089,7 +1089,8 @@ void drm_state_dump(struct drm_device *dev, struct drm_printer *p);
|
||||
for_each_if ((__state)->colorops[__i].ptr && \
|
||||
((colorop) = (__state)->colorops[__i].ptr, \
|
||||
(void)(colorop) /* Only to avoid unused-but-set-variable warning */, \
|
||||
(new_colorop_state) = (__state)->colorops[__i].new_state, 1))
|
||||
(new_colorop_state) = (__state)->colorops[__i].new_state,\
|
||||
(void)(new_colorop_state) /* Only to avoid unused-but-set-variable warning */, 1))
|
||||
|
||||
/**
|
||||
* for_each_oldnew_plane_in_state - iterate over all planes in an atomic update
|
||||
|
||||
Reference in New Issue
Block a user