From: Ville Syrjälä <ville.syrjala(a)linux.intel.com>
Moving the clipped plane coordinates into drm_plane_state has been
discussed a few times, but as no patches seems to have materialized,
I decoded to do it myself. I also added a new helper function
like drm_plane_helper_check_update() that takes a plane state instead.
I converted i915, rockchip, and mediatek over to the new stuff. rockchip
already looked pretty solid, mediatek had some bugs in there that I
hopefully fixed. The rest …
[View More]of the non-x86 drivers seem to entirely lack
any plane clipping code, so I decided that I don't care enough to
write it from scratch. I also converted drm_simple_kms_helper, but
there are no drivers using it so far.
I've only actually tested i915, the rest are just compile tested.
Entire series available here:
git://github.com/vsyrjala/linux.git plane_state_rects
Ville Syrjälä (9):
drm: Warn about negative sizes when calculating scale factor
drm: Store clipped src/dst coordinatee in drm_plane_state
drm/plane-helper: Add drm_plane_helper_check_state()
drm/i915: Use drm_plane_state.{src,dst,visible}
drm/i915: Use drm_plane_helper_check_state()
drm/rockchip: Use drm_plane_state.{src,dst}
drm/rockchip: Use drm_plane_helper_check_state()
drm/mediatek: Use drm_plane_helper_check_state()
drm/simple_kms_helper: Use drm_plane_helper_check_state()
drivers/gpu/drm/drm_plane_helper.c | 136 +++++++++++++++++++++------
drivers/gpu/drm/drm_rect.c | 2 +-
drivers/gpu/drm/drm_simple_kms_helper.c | 27 ++----
drivers/gpu/drm/i915/intel_atomic_plane.c | 18 +---
drivers/gpu/drm/i915/intel_display.c | 140 ++++++++++++++--------------
drivers/gpu/drm/i915/intel_drv.h | 3 -
drivers/gpu/drm/i915/intel_fbc.c | 12 +--
drivers/gpu/drm/i915/intel_pm.c | 60 ++++++------
drivers/gpu/drm/i915/intel_sprite.c | 94 ++++++++++---------
drivers/gpu/drm/mediatek/mtk_drm_plane.c | 72 ++++----------
drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 31 ++----
include/drm/drm_crtc.h | 13 +++
include/drm/drm_plane_helper.h | 5 +
13 files changed, 315 insertions(+), 298 deletions(-)
--
2.7.4
[View Less]
Updated series to fix the regressions introduced into stable
kernels for active Displayport to dual-link DVI converters and
for active Displayport to VGA converters. Also to fix this stuff
better for Linux 4.8.
Patch 1 + 2 are needed to fix the regressions in the stable
kernels. These are meant for easy backporting to all affected
kernels.
Patch 3: A DP helper for parsing sink bpc from DP aux data to
assist drivers if they can't get bpc from EDID.
Patch 4: Make intel kms use patch 3.
Patch …
[View More]5: Make the EDID parser recognize the "DFP1.x compatible TMDS"
bit by which DVI sinks can declare they support at least 8 bpc according
to DFP spec. This one if applied would let me sleep so much better, as
the common special display equipment for neuroscience research, which is
all DVI based atm., sets that bit in its EDID 1.3.
Thanks,
-mario
[View Less]
https://bugs.freedesktop.org/show_bug.cgi?id=97128
Bug ID: 97128
Summary: Kernel hang when running out of memory
Product: DRI
Version: XOrg git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: dri-devel(a)lists.freedesktop.org
Reporter: bas(a)basnieuwenhuizen.nl
If I allocate too much memory I get a kernel hang …
[View More]using the drm-next-4.8 branch
from Alex Deucher. SSH stops working too.
This has been tests by allocating GTT buffers in a loop using the winsys for
the new radv vulkan driver. Just as radeonsi, the winsys has a 3 step
allocation process: 1) allocate the buffer 2) Allocate an address range 3) Map
the buffer to address range.
This hang is a regression. Bisection pointed to the following patch as culprit:
commit 089f16c55baacd5e8ae3745625efa82899b4b217
Author: Christian König <christian.koenig(a)amd.com>
Date: Mon Jun 6 10:17:50 2016 +0200
drm/ttm: cleanup ttm_tt_(unbind|destroy)
ttm_tt_destroy should be the only one unbinding the object.
Reviewed-by: Alex Deucher <alexander.deucher(a)amd.com>
Signed-off-by: Christian König <christian.koenig(a)amd.com>
Signed-off-by: Alex Deucher <alexander.deucher(a)amd.com>
--
You are receiving this mail because:
You are the assignee for the bug.
[View Less]
https://bugzilla.kernel.org/show_bug.cgi?id=36522
--- Comment #18 from Christian Casteyde <casteyde.christian(a)free.fr> ---
See comment #3, #4 and #5.
I think i'm using radeon driver with kms since the only graphic chip I have on
my laptop is a Radeon 6650M (no intel graphic in CPU, has been deactivated by
vendor).
--
You are receiving this mail because:
You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=36522
--- Comment #17 from bastienphilbert(a)gmail.com ---
Can you find out what drm driver you are currently using as all of them link to
the core function that is leaking memory and knowing which drive is doing it
would be very helpful.
--
You are receiving this mail because:
You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=84431
Bug ID: 84431
Summary: Kernel crash when unloading radeon module for
switcheroo card
Product: Drivers
Version: 2.5
Kernel Version: all
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: high
Priority: P1
Component: Video(DRI - non Intel)
Assignee: drivers_video-dri(a)kernel-…
[View More]bugs.osdl.org
Reporter: pali.rohar(a)gmail.com
Regression: No
Created attachment 149991
--> https://bugzilla.kernel.org/attachment.cgi?id=149991&action=edit
Fix crash after rmmod radeon on PX systems.
Calling rmmod radeon on PX system cause kernel crash. Reason is function
vga_switcheroo_init_domain_pm_ops() which setting dev->pm_domain function of
PCI device. When radeon module is unloaded pointer dev->pm_domain is set to
vga_switcheroo function which try to call radeon function (which does not
exists in memory after rmmod radeon). I bet that nouveau has same problem.
I'm attaching simple patch which set dev->pm_domain of PCI device back to NULL
when removing radeon device so vga_switcheroo will not be called.
But I think that proper way for fixing this bug - which is in vga_switcheroo -
should be to add function like "vga_switcheroo_exit_domain_pm_ops()" which will
set pm_domain back to origin value (which is in my case NULL).
With my patch on PX system I can call rmmod radeon, modprobe radeon, rmmod
radeon, ... many times without no crash.
--
You are receiving this mail because:
You are watching the assignee of the bug.
[View Less]
Hi Dave,
A few fixes for amdgpu and ttm for 4.8
- fix a ttm regression caused by the new pipelining code
- fixes for mullins on amdgpu
- updated golden settings for amdgpu
The following changes since commit 1cf915d305b6e1d57db6c35c208016f9747ba3c6:
Merge tag 'imx-drm-fixes-2016-07-27' of git://git.pengutronix.de/git/pza/linux into drm-next (2016-07-30 05:45:30 +1000)
are available in the git repository at:
git://people.freedesktop.org/~agd5f/linux drm-next-4.8
for you to fetch changes …
[View More]up to 34b58355ad1d9987267f071265a7de6c8e00662a:
drm/ttm: Wait for a BO to become idle before unbinding it from GTT (2016-08-05 13:37:02 -0400)
----------------------------------------------------------------
Alex Deucher (2):
drm/amdgpu/gmc7: add missing mullins case
drm/amdgpu/ci: add mullins to default case for smc ucode
Eric Huang (1):
drm/amd/amdgpu: change pptable output format from ASCII to binary
Huang Rui (5):
drm/amdgpu: update golden setting of iceland
drm/amdgpu: update golden setting of carrizo
drm/amdgpu: update golden setting of polaris11
drm/amdgpu: update golden setting of stoney
drm/amdgpu: update golden setting of polaris10
Michel Dänzer (1):
drm/ttm: Wait for a BO to become idle before unbinding it from GTT
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 7 ++-----
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 4 ++--
drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 1 +
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 12 ++++++++----
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 1 +
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 8 ++++++++
drivers/gpu/drm/nouveau/nouveau_bo.c | 4 ++--
drivers/gpu/drm/radeon/radeon_ttm.c | 4 ++--
drivers/gpu/drm/ttm/ttm_bo.c | 3 ++-
drivers/gpu/drm/ttm/ttm_bo_util.c | 10 +++++++++-
include/drm/ttm/ttm_bo_driver.h | 3 ++-
11 files changed, 39 insertions(+), 18 deletions(-)
[View Less]