[PATCH v2 12/26] drm/exynos: Split manager/display/subdrv

2013-10-22 Thread Sean Paul
On Tue, Oct 22, 2013 at 10:28 PM, Inki Dae wrote: > 2013/10/22 Sean Paul : >> On Tue, Oct 22, 2013 at 1:30 AM, Inki Dae wrote: >>> >>> -Original Message- From: Sean Paul [mailto:seanpaul at chromium.org] Sent: Tuesday, October 22, 2013 6:18 AM To: Inki Dae Cc: dri

[PATCH v2 12/26] drm/exynos: Split manager/display/subdrv

2013-10-22 Thread Stéphane Marchesin
t? :) It seems that you are outside real point. > >> >> > >> >> > Take a look at exynos_drm_encoder.c in my tree > >> >> > > >> >> > > >> >> > ( > https://github.com/crseanpaul/exynos-drm-next/blob/linux-next-exynos-staging/drivers/gpu/drm/exynos/exynos_drm_encoder.c > ), > >> >> > what does it do that's useful to abstract? All that it does is just > >> >> > call display ops, it's completely useless. The same is true for > >> >> > exynos_drm_connector, it's just dead weight. There is some useful > >> >> > stuff in exynos_drm_crtc for page flipping, that would be better > >> >> > served as a helper library, though. > >> >> > > >> >> >> The abstraction layer you mentioned also means a common spot. > >> >> >> Another one, you patch also makes each sub driver have strongly > >> >> >> dependency > >> >> >> of drm framework. So how we can support existing backlight and lcd > >> >> >> class > >> >> >> based lcd panel drivers if the connector is implemented in each > >> >> >> device > >> >> >> driver later? the drm header files should be included in > >> >> >> drivers/video/backlight/xxx_lcd.c? > >> >> >> > >> >> > > >> >> > drm_bridge or drm_panel seem like good candidates for this. > >> >> > > >> >> > >> >> Yes, exynos_drm_display could be replaced with drm_panel later if the > >> >> drm_panel can be merged to mainline. > >> >> > >> >> > > >> >> >> And, I will introduce a new framework to support existing lcd > panel > >> >> >> drivers > >> >> >> and display bus drivers soon; as of now for Exynos drm, and the > >> >> >> framework is > >> >> >> being tested internally. With this framework, encoder and > connector > >> >> >> will be > >> >> >> created when lcd panel or display bus driver such as eDP is > probed: > >> >> >> it > >> >> >> doesn?t really need to create encoder and connector in advance if > >> >> >> lcd > >> >> >> panel > >> >> >> or display bus driver isn't probed yet. Regardless of crtc, and > >> >> >> encoder > >> >> >> and > >> >> >> connector creation order, when last one is created, crtc and > >> >> >> connector > >> >> >> will > >> >> >> be connected each other. And exynos_drm_display could be > implemented > >> >> >> in > >> >> >> other frameworks if we have common structure for display device > >> >> >> driver. > >> >> >> And > >> >> >> also the framework will support lvds driver according to Linux > >> >> >> device > >> >> >> driver > >> >> >> model. > >> >> >> > >> >> > > >> >> > I don't really follow what you're trying to do here, but I think we > >> >> > should be moving in the direction of fewer abstractions in the > exynos > >> >> > driver, not more :) > >> >> > > >> >> > >> >> Not abstraction layer, just a bridge for connecting crtc and its > >> >> corresponding encoder/connector, and lvds regardless of creation > >> >> order, and for connecting drm connector and other framework based > >> >> display ops such as drm_panel later. > >> >> > >> >> > Sean > >> >> > > >> >> > > >> >> > > >> >> >> Thanks, > >> >> >> Inki Dae > >> >> >> > >> >> >>> Sean > >> >> >>> > >> >> >>> >>> > >> >> >>> >>> > And another one, the patch 6 passes manager object to > >> >> >>> >>> > manager_ops, > >> >> >>> and > >> >> >>> >>> for > >> >> >>> >>> > this, you made the manager object to be set to driver data; > >> >> >>> >>> > platform_set_drvdata(pdev, &manager). That isn't > reasonable. > >> >> >>> Generally, > >> >> >>> >>> > driver_data would point to device driver's context object. > >> >> >>> >>> > > >> >> >>> >>> > >> >> >>> >>> I'm not sure why this isn't reasonable, but it's a moot > point. > >> >> >>> >>> The > >> >> >>> >>> driver data is only used up until we get rid of the pm ops, > it > >> >> >>> >>> needn't > >> >> >>> >>> be set at all once things go through dpms. > >> >> >>> >>> > >> >> >>> >> > >> >> >>> >> Generally, device drivers can call its own internal functions, > >> >> >>> >> and > >> >> >>> >> they > >> >> >>> will > >> >> >>> >> call that functions with ctx. However, if you set manager to > >> >> >>> driver_data > >> >> >>> >> then that functions should be called with manager object and > >> >> >>> >> also > >> >> >>> internally > >> >> >>> >> that functions should get ctx from the manager object. What is > >> >> >>> >> the > >> >> >>> purpose > >> >> >>> >> of manager? Do you think it's reasonable? > >> >> >>> >> > >> >> >>> > > >> >> >>> > So, to avoid setting the manager as the drvdata, we could > >> >> >>> > implement > >> >> >>> > something like fimd_dpms_ctx(ctx, mode) that takes ctx and the > >> >> >>> > manager > >> >> >>> > callback calls it fimd_dpms(mgr, mode) { ctx = mgr->ctx; > >> >> >>> > fimd_dpms_ctx(ctx, mode); }. Alternatively, you can save a > >> >> >>> > pointer > >> >> >>> > to > >> >> >>> > mgr in ctx, but that creates a circular link between the two. > >> >> >>> > IMO, > >> >> >>> > both of those solutions suck :) > >> >> >>> > > >> >> >>> > I'd much rather just set drvdata to the manager and call the > hook > >> >> >>> > directly. Like I said earlier, this is just a temporary step > >> >> >>> > since > >> >> >>> > we > >> >> >>> > remove these pm ops later in the patch series. > >> >> >>> > > >> >> >>> > Sean > >> >> >>> > > >> >> >>> > > >> >> >>> >> Anyway, I'd like to say really sorry about inconvenient again. > >> >> >>> >> So I > >> >> >>> will fix > >> >> >>> >> it. > >> >> >>> >> > >> >> >>> >> Thanks, > >> >> >>> >> Inki Dae > >> >> >>> >> > >> >> >>> >>> Sean > >> >> >>> >>> > >> >> >>> >>> > >> >> >>> >>> > Thanks, > >> >> >>> >>> > Inki Dae > >> >> >>> >>> > > >> >> >>> >> > >> >> >> > >> >> > ___ > >> >> > dri-devel mailing list > >> >> > dri-devel at lists.freedesktop.org > >> >> > http://lists.freedesktop.org/mailman/listinfo/dri-devel > >> >> ___ > >> >> dri-devel mailing list > >> >> dri-devel at lists.freedesktop.org > >> >> http://lists.freedesktop.org/mailman/listinfo/dri-devel > >> > > >> > > >> > > >> > ___ > >> > dri-devel mailing list > >> > dri-devel at lists.freedesktop.org > >> > http://lists.freedesktop.org/mailman/listinfo/dri-devel > >> > > > > > > > > > ___ > > dri-devel mailing list > > dri-devel at lists.freedesktop.org > > http://lists.freedesktop.org/mailman/listinfo/dri-devel > > > -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/4c924e8e/attachment-0001.html>

[RFCv2 11/13] drm: convert crtc to properties/state

2013-10-22 Thread Rob Clark
On Tue, Oct 22, 2013 at 6:27 PM, Matt Roper wrote: > On Mon, Oct 14, 2013 at 01:26:46PM -0400, Rob Clark wrote: >> Break the mutable state of a crtc out into a separate structure >> and use atomic properties mechanism to set crtc attributes. This >> makes it easier to have some helpers for crtc-

[PATCH] drm/radeon: fix definition of WAIT_REG_MEM_OPERATION for CIK

2013-10-22 Thread Marek Olšák
From: Marek Ol??k Signed-off-by: Marek Ol??k --- drivers/gpu/drm/radeon/cikd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/cikd.h b/drivers/gpu/drm/radeon/cikd.h index 203d2a0..cad6e8a 100644 --- a/drivers/gpu/drm/radeon/cikd.h +++ b/drivers/gpu/dr

[PATCH v2 12/26] drm/exynos: Split manager/display/subdrv

2013-10-22 Thread Stéphane Marchesin
; driver later? the drm header files should be included in > >> >> drivers/video/backlight/xxx_lcd.c? > >> >> > >> > > >> > drm_bridge or drm_panel seem like good candidates for this. > >> > > >> > >> Yes, exynos_drm_display could be replaced with drm_panel later if the > >> drm_panel can be merged to mainline. > >> > >> > > >> >> And, I will introduce a new framework to support existing lcd panel > >> >> drivers > >> >> and display bus drivers soon; as of now for Exynos drm, and the > >> >> framework is > >> >> being tested internally. With this framework, encoder and connector > >> >> will be > >> >> created when lcd panel or display bus driver such as eDP is probed: > it > >> >> doesn?t really need to create encoder and connector in advance if lcd > >> >> panel > >> >> or display bus driver isn't probed yet. Regardless of crtc, and > encoder > >> >> and > >> >> connector creation order, when last one is created, crtc and > connector > >> >> will > >> >> be connected each other. And exynos_drm_display could be implemented > in > >> >> other frameworks if we have common structure for display device > driver. > >> >> And > >> >> also the framework will support lvds driver according to Linux device > >> >> driver > >> >> model. > >> >> > >> > > >> > I don't really follow what you're trying to do here, but I think we > >> > should be moving in the direction of fewer abstractions in the exynos > >> > driver, not more :) > >> > > >> > >> Not abstraction layer, just a bridge for connecting crtc and its > >> corresponding encoder/connector, and lvds regardless of creation > >> order, and for connecting drm connector and other framework based > >> display ops such as drm_panel later. > >> > >> > Sean > >> > > >> > > >> > > >> >> Thanks, > >> >> Inki Dae > >> >> > >> >>> Sean > >> >>> > >> >>> >>> > >> >>> >>> > And another one, the patch 6 passes manager object to > >> >>> >>> > manager_ops, > >> >>> and > >> >>> >>> for > >> >>> >>> > this, you made the manager object to be set to driver data; > >> >>> >>> > platform_set_drvdata(pdev, &manager). That isn't reasonable. > >> >>> Generally, > >> >>> >>> > driver_data would point to device driver's context object. > >> >>> >>> > > >> >>> >>> > >> >>> >>> I'm not sure why this isn't reasonable, but it's a moot point. > The > >> >>> >>> driver data is only used up until we get rid of the pm ops, it > >> >>> >>> needn't > >> >>> >>> be set at all once things go through dpms. > >> >>> >>> > >> >>> >> > >> >>> >> Generally, device drivers can call its own internal functions, > and > >> >>> >> they > >> >>> will > >> >>> >> call that functions with ctx. However, if you set manager to > >> >>> driver_data > >> >>> >> then that functions should be called with manager object and also > >> >>> internally > >> >>> >> that functions should get ctx from the manager object. What is > the > >> >>> purpose > >> >>> >> of manager? Do you think it's reasonable? > >> >>> >> > >> >>> > > >> >>> > So, to avoid setting the manager as the drvdata, we could > implement > >> >>> > something like fimd_dpms_ctx(ctx, mode) that takes ctx and the > >> >>> > manager > >> >>> > callback calls it fimd_dpms(mgr, mode) { ctx = mgr->ctx; > >> >>> > fimd_dpms_ctx(ctx, mode); }. Alternatively, you can save a pointer > >> >>> > to > >> >>> > mgr in ctx, but that creates a circular link between the two. IMO, > >> >>> > both of those solutions suck :) > >> >>> > > >> >>> > I'd much rather just set drvdata to the manager and call the hook > >> >>> > directly. Like I said earlier, this is just a temporary step since > >> >>> > we > >> >>> > remove these pm ops later in the patch series. > >> >>> > > >> >>> > Sean > >> >>> > > >> >>> > > >> >>> >> Anyway, I'd like to say really sorry about inconvenient again. > So I > >> >>> will fix > >> >>> >> it. > >> >>> >> > >> >>> >> Thanks, > >> >>> >> Inki Dae > >> >>> >> > >> >>> >>> Sean > >> >>> >>> > >> >>> >>> > >> >>> >>> > Thanks, > >> >>> >>> > Inki Dae > >> >>> >>> > > >> >>> >> > >> >> > >> > ___ > >> > dri-devel mailing list > >> > dri-devel at lists.freedesktop.org > >> > http://lists.freedesktop.org/mailman/listinfo/dri-devel > >> ___ > >> dri-devel mailing list > >> dri-devel at lists.freedesktop.org > >> http://lists.freedesktop.org/mailman/listinfo/dri-devel > > > > > > > > ___ > > dri-devel mailing list > > dri-devel at lists.freedesktop.org > > http://lists.freedesktop.org/mailman/listinfo/dri-devel > > > -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/722b4c30/attachment-0001.html>

[Bug 70687] vgaswitcheroo issues on Linux 3.12

2013-10-22 Thread bugzilla-dae...@freedesktop.org
ext part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/46e9f425/attachment.html>

[PATCH v2 12/26] drm/exynos: Split manager/display/subdrv

2013-10-22 Thread Stéphane Marchesin
also the framework will support lvds driver according to Linux device > driver > >> model. > >> > > > > I don't really follow what you're trying to do here, but I think we > > should be moving in the direction of fewer abstractions in the exynos > > driver, not more :) > > > > Not abstraction layer, just a bridge for connecting crtc and its > corresponding encoder/connector, and lvds regardless of creation > order, and for connecting drm connector and other framework based > display ops such as drm_panel later. > > > Sean > > > > > > > >> Thanks, > >> Inki Dae > >> > >>> Sean > >>> > >>> >>> > >>> >>> > And another one, the patch 6 passes manager object to > manager_ops, > >>> and > >>> >>> for > >>> >>> > this, you made the manager object to be set to driver data; > >>> >>> > platform_set_drvdata(pdev, &manager). That isn't reasonable. > >>> Generally, > >>> >>> > driver_data would point to device driver's context object. > >>> >>> > > >>> >>> > >>> >>> I'm not sure why this isn't reasonable, but it's a moot point. The > >>> >>> driver data is only used up until we get rid of the pm ops, it > needn't > >>> >>> be set at all once things go through dpms. > >>> >>> > >>> >> > >>> >> Generally, device drivers can call its own internal functions, and > they > >>> will > >>> >> call that functions with ctx. However, if you set manager to > >>> driver_data > >>> >> then that functions should be called with manager object and also > >>> internally > >>> >> that functions should get ctx from the manager object. What is the > >>> purpose > >>> >> of manager? Do you think it's reasonable? > >>> >> > >>> > > >>> > So, to avoid setting the manager as the drvdata, we could implement > >>> > something like fimd_dpms_ctx(ctx, mode) that takes ctx and the > manager > >>> > callback calls it fimd_dpms(mgr, mode) { ctx = mgr->ctx; > >>> > fimd_dpms_ctx(ctx, mode); }. Alternatively, you can save a pointer to > >>> > mgr in ctx, but that creates a circular link between the two. IMO, > >>> > both of those solutions suck :) > >>> > > >>> > I'd much rather just set drvdata to the manager and call the hook > >>> > directly. Like I said earlier, this is just a temporary step since we > >>> > remove these pm ops later in the patch series. > >>> > > >>> > Sean > >>> > > >>> > > >>> >> Anyway, I'd like to say really sorry about inconvenient again. So I > >>> will fix > >>> >> it. > >>> >> > >>> >> Thanks, > >>> >> Inki Dae > >>> >> > >>> >>> Sean > >>> >>> > >>> >>> > >>> >>> > Thanks, > >>> >>> > Inki Dae > >>> >>> > > >>> >> > >> > > ___ > > dri-devel mailing list > > dri-devel at lists.freedesktop.org > > http://lists.freedesktop.org/mailman/listinfo/dri-devel > ___ > dri-devel mailing list > dri-devel at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/dri-devel > -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/b05486e4/attachment-0001.html>

[Bug 70779] New: OpenCL hangs with big kernels

2013-10-22 Thread bugzilla-dae...@freedesktop.org
receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/f1e1e066/attachment.html>

[Bug 70778] OpenGL always hangs

2013-10-22 Thread bugzilla-dae...@freedesktop.org
org/archives/dri-devel/attachments/20131022/3d54cf9a/attachment.html>

[PATCH v2 12/26] drm/exynos: Split manager/display/subdrv

2013-10-22 Thread Inki Dae
2013/10/17 Sean Paul : > This patch splits display and manager from subdrv. The result is that > crtc functions can directly call into manager callbacks and encoder > functions can directly call into display callbacks. This will allow > us to remove the exynos_drm_hdmi shim and support mixer/hdmi &

endianness of rlc buffers (SI)

2013-10-22 Thread Alex Deucher
On Tue, Oct 22, 2013 at 7:43 AM, Sylvain BERTRAND wrote: >>> commit 555b1b651acf44bf27ebbb04235d38a8fd2d58dc (drm-fixes-3.12) >>> >>> evergreen.c, SI code path, line 4045 and 4046 shouldn't be swapped? >>> Should cpu_to_le32 be used? >>> >>> Basically, is the endianness enforcement right for the r

[Bug 60879] [radeonsi] X11 can't start with acceleration enabled

2013-10-22 Thread bugzilla-dae...@freedesktop.org
xt part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/14588c31/attachment.html>

[Bug 60879] [radeonsi] X11 can't start with acceleration enabled

2013-10-22 Thread bugzilla-dae...@freedesktop.org
nt was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/86711073/attachment.html>

[Bug 60879] [radeonsi] X11 can't start with acceleration enabled

2013-10-22 Thread bugzilla-dae...@freedesktop.org
els) - OpenCL: small kernels (< 51 words) -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/4fdcfad4/attachment.html>

[Bug 63391] Radeon RS880 doesn't resume from suspend with radeon dpm enabled

2013-10-22 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=63391 --- Comment #7 from Tasev Nikola --- Hi, The 3.12-rc1 kernel is running fine with dpm enabled for more than 7 hours now with 10-15 suspend resume cycles. -- You are receiving this mail because: You are watching the assignee of the bug.

[Bug 69463] RadeonSI : xserver crashes with Segmentation Fault

2013-10-22 Thread bugzilla-dae...@freedesktop.org
are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/b6af2e34/attachment.html>

[Bug 70732] [R9 270X] [mi] EQ overflowing after logging out in Xfce!

2013-10-22 Thread bugzilla-dae...@freedesktop.org
-- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/f050b0ea/attachment-0001.html>

linux-next: manual merge of the drm tree

2013-10-22 Thread Thierry Reding
Today's linux-next merge of the drm tree got conflicts in drivers/gpu/drm/i915/i915_dma.c drivers/gpu/drm/i915/i915_drv.c drivers/gpu/drm/i915/intel_ddi.c drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_dp.c drivers/gpu/drm/i915/intel

[Bug 61941] Random GPU lockups/resets on Mobility Radeon HD 3650 with radeon.dpm=1

2013-10-22 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=61941 --- Comment #8 from Ilya Tumaykin --- I've just noticed that after such lockup if I only restart X server without full reboot of the machine then video playback (mplayer) is unavailable. xvinfo shows this: X-Video Extension version 2.2 screen #0

[Bug 61941] Random GPU lockups/resets on Mobility Radeon HD 3650 with radeon.dpm=1

2013-10-22 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=61941 --- Comment #7 from Ilya Tumaykin --- mclk_ss doesn't help either. Last option is gfx_clock_gating. Will try it next. -- You are receiving this mail because: You are watching the assignee of the bug.

[Bug 70769] XBMC GUI showing artifacts

2013-10-22 Thread bugzilla-dae...@freedesktop.org
-- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/35968015/attachment.html>

[Bug 63997] Artifacts using a HD7480D on a A4-5300 APU

2013-10-22 Thread bugzilla-dae...@freedesktop.org
vel/attachments/20131022/86570312/attachment.html>

[Bug 63997] Artifacts using a HD7480D on a A4-5300 APU

2013-10-22 Thread bugzilla-dae...@freedesktop.org
/Radeon |DRM/Radeon -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/ea175b1e/attachment.html>

[Bug 70732] [R9 270X] [mi] EQ overflowing after logging out in Xfce!

2013-10-22 Thread bugzilla-dae...@freedesktop.org
the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/8d5fbd69/attachment.html>

[Bug 70732] [R9 270X] [mi] EQ overflowing after logging out in Xfce!

2013-10-22 Thread bugzilla-dae...@freedesktop.org
An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/619e732e/attachment-0001.html>

[Bug 70769] New: XBMC GUI showing artifacts

2013-10-22 Thread bugzilla-dae...@freedesktop.org
was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/5cc23c97/attachment.html>

[PATCH v2 7/7] ARM: dts: update hdmiphy dt node for exynos5420

2013-10-22 Thread Rahul Sharma
hdmiphy dt node needs a child node called 'phy-power-control' which represents the PMU register for power controlling the hdmiphy. hdmi driver dt node provides phy property which points to the hdmiphy dt node. Signed-off-by: Rahul Sharma --- arch/arm/boot/dts/exynos5420.dtsi | 14

[PATCH v2 6/7] ARM: dts: update hdmiphy dt node for exynos5250

2013-10-22 Thread Rahul Sharma
hdmiphy dt node needs a child node called 'phy-power-control' which represents the PMU register for power controlling the hdmiphy. hdmi driver dt node provides phy property which points to the hdmiphy dt node. Signed-off-by: Rahul Sharma --- arch/arm/boot/dts/exynos5250-smdk5250.dts |9

[PATCH v2 5/7] exynos/drm: fix ddc i2c device probe failure

2013-10-22 Thread Rahul Sharma
Exynos hdmi ddc is a I2C device and if we register hdmi ddc driver with id_table as NULL, cause failure in probing. id_table field should not be NULL for i2c_driver registeration. Signed-off-by: Rahul Sharma --- drivers/gpu/drm/exynos/exynos_ddc.c |5 + 1 file changed, 5 insertions(+)

[PATCH v2 4/7] drm/exynos: add hdmiphy pmu bit control in hdmiphy drivers

2013-10-22 Thread Rahul Sharma
Before hdmiphy operation like config, start etc, hdmiphy bit in PMU block should be enabled. Earlier this happens in hdmi driver through a dummy "hdmiphy" clock. Pmu bit control is added in both i2c and platform driver for exynos hdmiphy. Signed-off-by: Rahul Sharma --- .../devicetree/bindings/

[PATCH v2 3/7] drm/exynos: add hdmiphy platform driver for exynos5420

2013-10-22 Thread Rahul Sharma
Exynos5420 hdmiphy device is a platform device, unlike predecessor SoCs where it used to be a I2C device. This support is added to the hdmiphy platform driver. Signed-off-by: Rahul Sharma --- drivers/gpu/drm/exynos/Makefile |1 + drivers/gpu/drm/exynos/exynos_hdmi.c

[PATCH v2 2/7] drm/exynos: remove dummy hdmiphy clock

2013-10-22 Thread Rahul Sharma
hdmiphy is a dummy clock which actually controls the PMU bit to enable/disable hdmiphy (before CCF). This clock is cleaned from the hdmi driver. Signed-off-by: Rahul Sharma --- drivers/gpu/drm/exynos/exynos_hdmi.c |8 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/drm/exyn

[PATCH v2 1/7] drm/exynos: move hdmiphy code to hdmiphy i2c driver

2013-10-22 Thread Rahul Sharma
Exynos hdmiphy operations and configs are kept inside the hdmi driver. Hdmiphy related code is very tightly coupled with hdmi IP driver. This patch moves hdmiphy related code to hdmiphy I2C driver which supports hdmiphys which are accessible through i2c control bus for example in exynos4210, exyn

[PATCH v2 0/7] drm/exynos: move hdmiphy related code to hdmiphy driver

2013-10-22 Thread Rahul Sharma
Currently, exynos hdmiphy operations and configs are kept inside the hdmi driver. Hdmiphy related code is very tightly coupled with hdmi IP driver. With these patches, hdmiphy related stuff is moved to hdmiphy i2c driver for exynos4 and exynos5250 socs. hdmi driver, being the phy controller, calls

[RFCv2 11/13] drm: convert crtc to properties/state

2013-10-22 Thread Matt Roper
On Mon, Oct 14, 2013 at 01:26:46PM -0400, Rob Clark wrote: > Break the mutable state of a crtc out into a separate structure > and use atomic properties mechanism to set crtc attributes. This > makes it easier to have some helpers for crtc->set_property() > and for checking for invalid params. Th

[PATCH] nouveau: Fix race with fence signaling

2013-10-22 Thread Jeff Mahoney
There exists a tight race between the call to nouveau_fence_done from nouveau_fence_wait and the call to nouveau_fence_wait_uevent. nouveau_fence_done checks to see if fence->channel is NULL before calling nouveau_fence_wait_uevent, but it's not good enough since the dereference in nouveau_fence_w

[PATCH] drm/radeon: use sw CTS/N values for audio on DCE4+

2013-10-22 Thread Alex Deucher
Use the driver calculated CTS and N values rather than having hardware generate them. This allows us to use the modeline pixel clock rather than the actual pll clock when setting up the dto for audio. Fixes problems with audio playback rate on certain asics if the pll clock does not match the pix

[GIT PULL] Armada DRM support

2013-10-22 Thread Russell King - ARM Linux
On Fri, Oct 18, 2013 at 04:15:57PM +0100, Russell King - ARM Linux wrote: > David, > > Rob Clark has now reviewed this and has given his blessing for it to be > pulled for the coming merge window. > > This adds support for the Armada 510 display subsystem found on the > Marvell Dove devices. Thi

[PATCH v2 12/26] drm/exynos: Split manager/display/subdrv

2013-10-22 Thread Inki Dae
> -Original Message- > From: Sean Paul [mailto:seanpaul at chromium.org] > Sent: Tuesday, October 22, 2013 6:18 AM > To: Inki Dae > Cc: dri-devel; Dave Airlie; Tomasz Figa; St?phane Marchesin > Subject: Re: [PATCH v2 12/26] drm/exynos: Split manager/display/subdrv > > On Mon, Oct 21, 201

[Bug 60879] [radeonsi] X11 can't start with acceleration enabled

2013-10-22 Thread bugzilla-dae...@freedesktop.org
post your Xorg.log. -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/d1cb2a2c/attachment.html>

[Bug 60879] [radeonsi] X11 can't start with acceleration enabled

2013-10-22 Thread bugzilla-dae...@freedesktop.org
s/dri-devel/attachments/20131022/da0e1374/attachment.html>

[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr

2013-10-22 Thread bugzilla-dae...@freedesktop.org
. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/ec3db20b/attachment.html>

[PATCH v2 12/26] drm/exynos: Split manager/display/subdrv

2013-10-22 Thread Inki Dae
> -Original Message- > From: Sean Paul [mailto:seanpaul at chromium.org] > Sent: Monday, October 21, 2013 11:47 PM > To: Inki Dae > Cc: dri-devel; Dave Airlie; Tomasz Figa; St?phane Marchesin > Subject: Re: [PATCH v2 12/26] drm/exynos: Split manager/display/subdrv > > On Thu, Oct 17, 201

endianness of rlc buffers (SI)

2013-10-22 Thread Sylvain BERTRAND
>> commit 555b1b651acf44bf27ebbb04235d38a8fd2d58dc (drm-fixes-3.12) >> >> evergreen.c, SI code path, line 4045 and 4046 shouldn't be swapped? >> Should cpu_to_le32 be used? >> >> Basically, is the endianness enforcement right for the rlc BOs? >> Or is there a bit somewhere to switch the RLC to host

[PATCH] drm: Restrict ioctl size to kernel struct size

2013-10-22 Thread Ville Syrjälä
On Tue, Oct 22, 2013 at 10:38:03AM +0100, Chris Wilson wrote: > Prevent the user from passing in an ioctl command with up to 16,383 > bytes specified for the struct to be allocated and copied, and > instead only allocate enough space to satisfy the kernel. > > Suggested-by: Pavel Roskin > Signed-

[Bug 63101] Hard lockup whel launching games like TF2 on kernels 3.11.5 and 3.12 rc4 and above if radeon.dpm=1 is used

2013-10-22 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=63101 --- Comment #14 from Kertesz Laszlo --- I did some more testing. Turns out that i can get into the game if i set the texture quality to "low". But it still crashes afterwards at some point - usually after ~20 or so minutes. Sometimes io have tons

[PATCH] drm: Restrict ioctl size to kernel struct size

2013-10-22 Thread Pavel Roskin
On Tue, 22 Oct 2013 10:38:03 +0100 Chris Wilson wrote: > Prevent the user from passing in an ioctl command with up to 16,383 > bytes specified for the struct to be allocated and copied, and > instead only allocate enough space to satisfy the kernel. > > Suggested-by: Pavel Roskin > Signed-off-b

[Bug 63391] Radeon RS880 doesn't resume from suspend with radeon dpm enabled

2013-10-22 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=63391 --- Comment #6 from Tasev Nikola --- (In reply to Alex Deucher from comment #3) > (In reply to Tasev Nikola from comment #0) > > It works also fine with kernel 3.11 with dpm enabled. > > Can you bisect? Hi, I remember now that i was using 3-4 d

[Bug 63391] Radeon RS880 doesn't resume from suspend with radeon dpm enabled

2013-10-22 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=63391 --- Comment #5 from Tasev Nikola --- Created attachment 111921 --> https://bugzilla.kernel.org/attachment.cgi?id=111921&action=edit Xorg.0.log 3.11.6 dpm enabled and working ok Xorg.0.log 3.11.6 dpm enabled and working ok -- You are receiving

[Bug 63391] Radeon RS880 doesn't resume from suspend with radeon dpm enabled

2013-10-22 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=63391 --- Comment #4 from Tasev Nikola --- Created attachment 111911 --> https://bugzilla.kernel.org/attachment.cgi?id=111911&action=edit Dmesg 3.11.6 dpm enabled and working ok Dmesg 3.11.6 dpm enabled and working ok -- You are receiving this mail

[PATCH] drm: Restrict ioctl size to kernel struct size

2013-10-22 Thread Chris Wilson
Prevent the user from passing in an ioctl command with up to 16,383 bytes specified for the struct to be allocated and copied, and instead only allocate enough space to satisfy the kernel. Suggested-by: Pavel Roskin Signed-off-by: Chris Wilson Cc: Pavel Roskin Cc: dri-devel at lists.freedesktop

[Bug 69463] RadeonSI : xserver crashes with Segmentation Fault

2013-10-22 Thread bugzilla-dae...@freedesktop.org
-- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/50f43646/attachment-0001.html>

[Bug 69463] RadeonSI : xserver crashes with Segmentation Fault

2013-10-22 Thread bugzilla-dae...@freedesktop.org
ttp://lists.freedesktop.org/archives/dri-devel/attachments/20131022/8d68de84/attachment.html>

[Bug 69463] RadeonSI : xserver crashes with Segmentation Fault

2013-10-22 Thread bugzilla-dae...@freedesktop.org
es/dri-devel/attachments/20131022/548e9073/attachment.html>

linux-next: Tree for Oct 21 (panel-simple.c)

2013-10-22 Thread Thierry Reding
guess it's usually not even visible and possibly not worth bothering about. Thierry -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/cee8a722/attachment.pgp>

[PATCH v2 12/26] drm/exynos: Split manager/display/subdrv

2013-10-22 Thread Sean Paul
On Tue, Oct 22, 2013 at 1:30 AM, Inki Dae wrote: > > >> -Original Message- >> From: Sean Paul [mailto:seanpaul at chromium.org] >> Sent: Tuesday, October 22, 2013 6:18 AM >> To: Inki Dae >> Cc: dri-devel; Dave Airlie; Tomasz Figa; St?phane Marchesin >> Subject: Re: [PATCH v2 12/26] drm/exy

[git pull] drm fixes

2013-10-22 Thread Dave Airlie
Hi Linus, travelling slowed down getting these out, 2 vmwgfx fixes, radeon revert to avoid a regression, i915 fixes, and some ioctl sizing issues fixed with 32 on 64. Dave. The following changes since commit 61e6cfa80de5760bbe406f4e815b7739205754d2: Linux 3.12-rc5 (2013-10-13 15:41:28 -0700

[Bug 60879] [radeonsi] X11 can't start with acceleration enabled

2013-10-22 Thread bugzilla-dae...@freedesktop.org
g this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131022/f7bda638/attachment.html>

[Bug 63391] Radeon RS880 doesn't resume from suspend with radeon dpm enabled

2013-10-22 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=63391 Alex Deucher changed: What|Removed |Added CC||alexdeucher at gmail.com --- Comment #3 fr

[Bug 70732] [R9 270X] [mi] EQ overflowing after logging out in Xfce!

2013-10-22 Thread bugzilla-dae...@freedesktop.org
ttp://lists.freedesktop.org/archives/dri-devel/attachments/20131022/dfa087cf/attachment.html>

[PATCH 0/6] drm/msm: queued up patches for 3.13

2013-10-22 Thread David Brown
On Sun, Oct 20, 2013 at 12:10:53PM -0400, Rob Clark wrote: >Fyi, here are the queued up patches I have so far for 3.13. I'm happy with these changes. You can add a Acked-by: David Brown if you want. David >Rob Clark (6): > drm/msm: prime support > drm/msm: support render nodes > drm/m

endianness of rlc buffers (SI)

2013-10-22 Thread Sylvain BERTRAND
Hi, commit 555b1b651acf44bf27ebbb04235d38a8fd2d58dc (drm-fixes-3.12) evergreen.c, SI code path, line 4045 and 4046 shouldn't be swapped? Should cpu_to_le32 be used? Basically, is the endianness enforcement right for the rlc BOs? Or is there a bit somewhere to switch the RLC to host endianness? O

endianness of rlc buffers (SI)

2013-10-22 Thread Alex Deucher
On Mon, Oct 21, 2013 at 8:26 PM, Sylvain BERTRAND wrote: > Hi, > > commit 555b1b651acf44bf27ebbb04235d38a8fd2d58dc (drm-fixes-3.12) > > evergreen.c, SI code path, line 4045 and 4046 shouldn't be swapped? > Should cpu_to_le32 be used? > > Basically, is the endianness enforcement right for the rlc B

[RFC v2 6/6] drm: zap mmaps for dead devices

2013-10-22 Thread David Herrmann
Once a DRM device is unregistered, user-space must not access any existing mmaps, anymore. As we cannot rely on this, we now zap all of them in drm_dev_unregister(). Any driver which wants to support that needs to protect their fault() and mmap() handlers via drm_dev_get_active(), otherwise users

[RFC v2 5/6] drm: make drm_dev_unregister() immediate

2013-10-22 Thread David Herrmann
Drivers which support unplugging currently use drm_unplug_dev() which waits for all open files to be closed before unregistering a device. All other drivers just immediately unregister the device if unplugged or unloaded, which results in panics if there're pending open files. This patch implement

[RFC v2 4/6] drm: make dev->unplugged reliable

2013-10-22 Thread David Herrmann
If we unplug a DRM device, we currently set dev->unplugged and then wait for all open-files to close. Beside rather subtle race-conditions, the main disadvantage is that most DRM device resources will stay allocated and registered. This means the device cannot be re-used by another driver until all

[RFC v2 3/6] drm: split drm_release()

2013-10-22 Thread David Herrmann
This splits off real file-destruction into drm_close(). drm_release() now calls drm_close() and then takes care of any device-cleanup which isn't strictly related to file-destruction. Besides making the code more readable, this is needed if we want to close open-files during GPU unplug. We could s

[RFC v2 2/6] percpu_rw_semaphore: add percpu_down_read_trylock()

2013-10-22 Thread David Herrmann
This is basically a copy of percpu_down_read() but does not sleep if a writer is already active. Same semantics as classic down_read_trylock(). Signed-off-by: David Herrmann --- include/linux/percpu-rwsem.h | 1 + lib/percpu-rwsem.c | 20 2 files changed, 21 inser

[RFC v2 1/6] percpu_rw_semaphore: export symbols for modules

2013-10-22 Thread David Herrmann
DRM could make great use of percpu-rwsems to track active users and wait for them during hw hotplugging. Export symbols and allow using them in runtime loadable modules. Signed-off-by: David Herrmann --- lib/Makefile | 2 +- lib/percpu-rwsem.c | 7 +++ 2 files changed, 8 insertions(+),

[RFC v2 0/6] DRM revoke support

2013-10-22 Thread David Herrmann
Hi This is the 2nd revision of reliable unplug support for DRM. As revoke support for the generic VFS layer is still not even close to being merged, this fixes the generic DRM layer to handle unplugged devices gracefully. This series fixes the DRM core to track any running f_ops. During device un