Cleanup several nits in the driver's init code. Also move constant
data into the RO data segment. No functional changes.
Tested on mgag200 HW.
v2:
* update changelog (Sam)
Thomas Zimmermann (4):
drm/mgag200: Don't pass flags to drm_dev_register()
drm/mgag200: Inline mgag200_device_init()
drm/mgag200: Extract device type and flags in mgag200_pci_probe()
drm/mgag200: Constify LUT for programming bpp
drivers/gpu/drm/mgag200/mgag200_drv.c | 62 +++++++++++++-------------
drivers/gpu/…
[View More]drm/mgag200/mgag200_drv.h | 14 ------
drivers/gpu/drm/mgag200/mgag200_mode.c | 16 +++----
3 files changed, 36 insertions(+), 56 deletions(-)
--
2.32.0
[View Less]
Cleanup several nits in the driver's init code. Also move constant
data into the RO data segment. No functional changes.
Tested on mgag200 HW.
Thomas Zimmermann (4):
drm/mgag200: Don't pass flags to drm_dev_register()
drm/mgag200: Inline mgag200_device_init()
drm/mgag200: Extract device type and flags in mgag200_pci_probe()
drm/mgag200: Constify LUT for programming bpp
drivers/gpu/drm/mgag200/mgag200_drv.c | 62 +++++++++++++-------------
drivers/gpu/drm/mgag200/mgag200_drv.h | 14 …
[View More]------
drivers/gpu/drm/mgag200/mgag200_mode.c | 16 +++----
3 files changed, 36 insertions(+), 56 deletions(-)
base-commit: 67f5a18128770817e4218a9e496d2bf5047c51e8
--
2.32.0
[View Less]
Hi Dave and Daniel,
Here goes drm-intel-next-fixes-2021-06-29:
The biggest fix is the restoration of mmap ioctl for gen12 integrated parts
which lack was breaking ADL-P with media stack.
Besides that a small selftest fix and a theoretical overflow on
i915->pipe_to_crtc_mapping.
Thanks,
Rodrigo.
The following changes since commit 1bd8a7dc28c1c410f1ceefae1f2a97c06d1a67c2:
Merge tag 'exynos-drm-next-for-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-…
[View More]next (2021-06-11 14:19:12 +1000)
are available in the Git repository at:
git://anongit.freedesktop.org/drm/drm-intel tags/drm-intel-next-fixes-2021-06-29
for you to fetch changes up to c90c4c6574f3feaf2203b5671db1907a1e15c653:
drm/i915: Reinstate the mmap ioctl for some platforms (2021-06-28 07:43:56 -0400)
----------------------------------------------------------------
The biggest fix is the restoration of mmap ioctl for gen12 integrated parts
which lack was breaking ADL-P with media stack.
Besides that a small selftest fix and a theoretical overflow on
i915->pipe_to_crtc_mapping.
----------------------------------------------------------------
Chris Wilson (1):
drm/i915/selftests: Reorder tasklet_disable vs local_bh_disable
Jani Nikula (1):
drm/i915/dsc: abstract helpers to get bigjoiner primary/secondary crtc
Thomas Hellström (1):
drm/i915: Reinstate the mmap ioctl for some platforms
drivers/gpu/drm/i915/display/intel_display.c | 7 ++-
drivers/gpu/drm/i915/display/intel_display_types.h | 8 ++++
drivers/gpu/drm/i915/display/intel_vdsc.c | 40 +++++++++++-----
drivers/gpu/drm/i915/display/intel_vdsc.h | 1 +
drivers/gpu/drm/i915/gem/i915_gem_mman.c | 7 +--
drivers/gpu/drm/i915/gt/selftest_execlists.c | 55 +++++++++++++---------
6 files changed, 76 insertions(+), 42 deletions(-)
[View Less]
Free transfer and compression buffers on device removal instead of at
DRM device removal time. This ensures that the usual 2x8MB buffers are
released when the device is unplugged and not kept around should
userspace keep the DRM device fd open.
At least Ubuntu 20.04 doesn't release the DRM device on unplug.
The damage_lock mutex is not destroyed because it is used outside the
drm_dev_enter/exit block in gud_pipe_update(). AFAICT it's possible for
an open fbdev descriptor to trigger a commit …
[View More]after the USB device is gone.
v2: Don't destroy damage_lock
Reviewed-by: Linus Walleij <linus.walleij(a)linaro.org>
Signed-off-by: Noralf Trønnes <noralf(a)tronnes.org>
---
drivers/gpu/drm/gud/gud_drv.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/gud/gud_drv.c b/drivers/gpu/drm/gud/gud_drv.c
index e8b672dc9832..45427c73587f 100644
--- a/drivers/gpu/drm/gud/gud_drv.c
+++ b/drivers/gpu/drm/gud/gud_drv.c
@@ -394,14 +394,15 @@ static const struct drm_driver gud_drm_driver = {
.minor = 0,
};
-static void gud_free_buffers_and_mutex(struct drm_device *drm, void *unused)
+static void gud_free_buffers_and_mutex(void *data)
{
- struct gud_device *gdrm = to_gud_device(drm);
+ struct gud_device *gdrm = data;
vfree(gdrm->compress_buf);
+ gdrm->compress_buf = NULL;
kfree(gdrm->bulk_buf);
+ gdrm->bulk_buf = NULL;
mutex_destroy(&gdrm->ctrl_lock);
- mutex_destroy(&gdrm->damage_lock);
}
static int gud_probe(struct usb_interface *intf, const struct usb_device_id *id)
@@ -455,7 +456,7 @@ static int gud_probe(struct usb_interface *intf, const struct usb_device_id *id)
INIT_WORK(&gdrm->work, gud_flush_work);
gud_clear_damage(gdrm);
- ret = drmm_add_action_or_reset(drm, gud_free_buffers_and_mutex, NULL);
+ ret = devm_add_action(dev, gud_free_buffers_and_mutex, gdrm);
if (ret)
return ret;
--
2.23.0
[View Less]