[PATCH] ttm_get_pages() will OOPS with highmem allocation

2012-11-13 Thread Jonathan Morton
Reposting from this kernel bug: https://bugzilla.kernel.org/show_bug.cgi?id=50241 I've tested the patch and it solves a highly repeatable OOPS with the CedarView driver that I'm porting. >From 3552913d3a1c2d3c4ce158e91dc18cd12b522cb2 Mon Sep 17 00:00:00 2001 From: Yakui Zhao Date: Tue, 7 Feb 20

Re: [PATCH v8 2/6] video: add of helper for videomode

2012-11-13 Thread Mitch Bradley
On 11/13/2012 7:51 AM, Thierry Reding wrote: > On Tue, Nov 13, 2012 at 10:46:53AM -0700, Stephen Warren wrote: >> On 11/13/2012 04:08 AM, Thierry Reding wrote: >>> On Mon, Nov 12, 2012 at 04:37:02PM +0100, Steffen Trumtrar wrote: This adds support for reading display timings from DT or/and >>>

[patch] vmwgfx: return an -EFAULT if copy_to_user() fails

2012-11-13 Thread Thomas Hellstrom
On 11/12/2012 12:07 PM, Dan Carpenter wrote: > copy_to_user() returns the number of bytes remaining to be copied, but > we want to return a negative error code here. I fixed a couple of these > last year, but I missed this one. > > Signed-off-by: Dan Carpenter > --- > I think there were only thre

[PATCH] ttm_get_pages() will OOPS with highmem allocation

2012-11-13 Thread Jonathan Morton
Reposting from this kernel bug: https://bugzilla.kernel.org/show_bug.cgi?id=50241 I've tested the patch and it solves a highly repeatable OOPS with the CedarView driver that I'm porting.

[PATCH v8 2/6] video: add of helper for videomode

2012-11-13 Thread Thierry Reding
. This binding is only about defining display modes. Are any of the clocks that you're referring to relevant to the actual display modes? 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/20121113/d48af126/attachment.pgp>

[Bug 42672] Nouveau. Screen corruption and occasional gpu lockup

2012-11-13 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=42672 cucullus changed: What|Removed |Added Component|Video(DRI - non Intel) |Video(Other) Platform|All

[Bug 41971] [kms] Muxless radeon takes 20 seconds to fetch rom

2012-11-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=41971 Mike Lothian changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[PATCH v8 2/6] video: add of helper for videomode

2012-11-13 Thread Thierry Reding
quot; should be two words in the description of the property. The property name is fine. 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/20121113/11e8f325/attachment.pgp>

Re: [PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Mark Zhang
On 11/14/2012 01:37 AM, Stephen Warren wrote: > On 11/13/2012 12:15 AM, Mark Zhang wrote: >> On 11/13/2012 05:55 AM, Thierry Reding wrote: >>> This commit adds a KMS driver for the Tegra20 SoC. This includes basic >>> support for host1x and the two display controllers found on the Tegra20 >>> SoC.

[PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Mark Zhang
On 11/13/2012 05:54 PM, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Tue, Nov 13, 2012 at 05:49:28PM +0800, Mark Zhang wrote: >> On 11/13/2012 05:37 PM, Thierry Reding wrote: Old Signed by an unknown key >>> >>> On Tue, Nov 13, 2012 at 04:49:24PM +0800, Mark Zhang wrote:

[PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Mark Zhang
On 11/13/2012 05:37 PM, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Tue, Nov 13, 2012 at 04:49:24PM +0800, Mark Zhang wrote: >> On 11/13/2012 03:48 PM, Thierry Reding wrote: Old Signed by an unknown key >>> >>> On Tue, Nov 13, 2012 at 03:15:47PM +0800, Mark Zhang wrote:

[PATCH] drm/omap: Fix usage of IS_ERR_OR_NULL and PTR_ERR

2012-11-13 Thread Rob Clark
On Tue, Nov 13, 2012 at 3:41 PM, Andy Gross wrote: > Return PTR_ERR(-ENOMEM) if dmm_txn_init cannot allocate a > refill engine. > > Signed-off-by: Andy Gross Signed-off-by: Rob Clark > --- > drivers/staging/omapdrm/omap_dmm_tiler.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-)

[PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Mark Zhang
On 11/13/2012 03:48 PM, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Tue, Nov 13, 2012 at 03:15:47PM +0800, Mark Zhang wrote: >> On 11/13/2012 05:55 AM, Thierry Reding wrote: >>> This commit adds a KMS driver for the Tegra20 SoC. This includes basic >>> support for host1x and the

[PATCH 1/1] media: Entities with sink pads must have at least one enabled link

2012-11-13 Thread Sakari Ailus
Hi all, Comments would be appreciated, either positive or negative. The omap3isp driver does the same check itself currently, but I think this is more generic than that. Thanks. On Fri, Oct 26, 2012 at 10:46:17PM +0300, Sakari Ailus wrote: > If an entity has sink pads, at least one of them must

Suspend regression on 3.7-rc with nouveau

2012-11-13 Thread Herton Ronaldo Krzesinski
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121113/760f390d/attachment-0001.obj>

[Bug 56139] [bisected] kernel 3.7.0-rc1 breaks 6950 (boot/grub2 and suspend/resume) (CAYMAN)

2012-11-13 Thread bugzilla-dae...@freedesktop.org
.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff; > h=81ee8fb6b52ec69eeed37fe7943446af1dccecc5 Your explanations are appreciated, but that kills another idea. By the way, pictures and videos are coming, my camera had no power yesterday and I had to charge it during last night. -- 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/20121113/7565bff4/attachment.html>

[PATCH] drm/omap: Fix usage of IS_ERR_OR_NULL and PTR_ERR

2012-11-13 Thread Andy Gross
Return PTR_ERR(-ENOMEM) if dmm_txn_init cannot allocate a refill engine. Signed-off-by: Andy Gross --- drivers/staging/omapdrm/omap_dmm_tiler.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/omapdrm/omap_dmm_tiler.c b/drivers/staging/omapdrm/omap_dmm_t

[PATCH v2 2/2] drm: tegra: Add HDMI support

2012-11-13 Thread Mark Zhang
The patch is OK. Acknowledged. Thanks. Mark On 11/13/2012 05:55 AM, Thierry Reding wrote: > This commit adds support for the HDMI output on the Tegra20 SoC. Only > one such output is available, but it can be driven by either of the two > display controllers. > > A lot of work on this patch has be

Re: [PATCH] drm/omap: Fix usage of IS_ERR_OR_NULL and PTR_ERR

2012-11-13 Thread Rob Clark
On Tue, Nov 13, 2012 at 3:41 PM, Andy Gross wrote: > Return PTR_ERR(-ENOMEM) if dmm_txn_init cannot allocate a > refill engine. > > Signed-off-by: Andy Gross Signed-off-by: Rob Clark > --- > drivers/staging/omapdrm/omap_dmm_tiler.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-)

[Bug 50521] New: nouveau_acpi call _DSM with wrong parameter

2012-11-13 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=50521 Summary: nouveau_acpi call _DSM with wrong parameter Product: Drivers Version: 2.5 Kernel Version: 2.6.38 Platform: All OS/Version: Linux Tree: Mainline Status: NEW

[PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Mark Zhang
On 11/13/2012 05:55 AM, Thierry Reding wrote: > This commit adds a KMS driver for the Tegra20 SoC. This includes basic > support for host1x and the two display controllers found on the Tegra20 > SoC. Each display controller can drive a separate RGB/LVDS output. > > Signed-off-by: Thierry Reding >

[Bug 56139] [bisected] kernel 3.7.0-rc1 breaks 6950 (boot/grub2 and suspend/resume) (CAYMAN)

2012-11-13 Thread bugzilla-dae...@freedesktop.org
ble flicker it causes. [1]: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=81ee8fb6b52ec69eeed37fe7943446af1dccecc5 -- 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/20121113/6933e94e/attachment.html>

[Bug 56918] [R350] Black labels on MapsGL

2012-11-13 Thread bugzilla-dae...@freedesktop.org
output again: MESA_GLSL=dump RADEON_DEBUG=fp,vp firefox &>mapsgl.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/2012111

[Bug 56966] [r300g, bisected] multiple piglit tests crash in r300_draw_arrays_immediate

2012-11-13 Thread bugzilla-dae...@freedesktop.org
ttp://lists.freedesktop.org/archives/dri-devel/attachments/20121113/1189828e/attachment.html>

[PATCH v8 6/6] drm_modes: add of_videomode helpers

2012-11-13 Thread Steffen Trumtrar
On Tue, Nov 13, 2012 at 12:35:18PM +0100, Thierry Reding wrote: > On Mon, Nov 12, 2012 at 04:37:06PM +0100, Steffen Trumtrar wrote: > [...] > > +#if IS_ENABLED(CONFIG_OF_VIDEOMODE) > > +static void dump_drm_displaymode(struct drm_display_mode *m) > > +{ > > + pr_debug("drm_displaymode = %d %d %d

[PATCH v8 3/6] fbmon: add videomode helpers

2012-11-13 Thread Steffen Trumtrar
On Tue, Nov 13, 2012 at 12:22:58PM +0100, Thierry Reding wrote: > On Mon, Nov 12, 2012 at 04:37:03PM +0100, Steffen Trumtrar wrote: > [...] > > +#if IS_ENABLED(CONFIG_VIDEOMODE) > > +int videomode_to_fb_videomode(struct videomode *vm, struct fb_videomode > > *fbmode) > > The other helpers are nam

[PATCH v8 1/6] video: add display_timing and videomode

2012-11-13 Thread Steffen Trumtrar
On Tue, Nov 13, 2012 at 11:41:59AM +0100, Thierry Reding wrote: > On Mon, Nov 12, 2012 at 04:37:01PM +0100, Steffen Trumtrar wrote: > [...] > > diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig > > index d08d799..2a23b18 100644 > > --- a/drivers/video/Kconfig > > +++ b/drivers/video/Kconfi

[PATCH v8 2/6] video: add of helper for videomode

2012-11-13 Thread Steffen Trumtrar
On Mon, Nov 12, 2012 at 01:40:12PM -0700, Stephen Warren wrote: > On 11/12/2012 08:37 AM, Steffen Trumtrar wrote: > > This adds support for reading display timings from DT or/and convert one of > > those > > timings to a videomode. > > The of_display_timing implementation supports multiple childre

[PATCH] drm/omap: Fix usage of IS_ERR_OR_NULL and PTR_ERR

2012-11-13 Thread Andy Gross
Return PTR_ERR(-ENOMEM) if dmm_txn_init cannot allocate a refill engine. Signed-off-by: Andy Gross --- drivers/staging/omapdrm/omap_dmm_tiler.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/omapdrm/omap_dmm_tiler.c b/drivers/staging/omapdrm/omap_dmm_t

[Bug 43741] /sys/class/backlight/ is empty with AMD (ATI) Radeon HD 4350

2012-11-13 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=43741 Alex Deucher changed: What|Removed |Added CC||alexdeucher at gmail.com --- Comment #

Re: [patch] vmwgfx: return an -EFAULT if copy_to_user() fails

2012-11-13 Thread Thomas Hellstrom
On 11/12/2012 12:07 PM, Dan Carpenter wrote: copy_to_user() returns the number of bytes remaining to be copied, but we want to return a negative error code here. I fixed a couple of these last year, but I missed this one. Signed-off-by: Dan Carpenter --- I think there were only three copy_to/f

[PATCH v8 6/6] drm_modes: add of_videomode helpers

2012-11-13 Thread Thierry Reding
or protection. 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/20121113/bcee2be1/attachment-0001.pgp>

[PATCH v8 5/6] drm_modes: add videomode helpers

2012-11-13 Thread Thierry Reding
protection or a dummy. 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/20121113/260da76b/attachment.pgp>

[PATCH v8 4/6] fbmon: add of_videomode helpers

2012-11-13 Thread Thierry Reding
L: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121113/8bde62b3/attachment.pgp>

[PATCH v8 3/6] fbmon: add videomode helpers

2012-11-13 Thread Thierry Reding
rb); > extern unsigned char *fb_ddc_read(struct i2c_adapter *adapter); > > +extern int videomode_to_fb_videomode(struct videomode *vm, struct > fb_videomode *fbmode); > + Should you provide a dummy in the !CONFIG_VIDEOMODE case? 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/20121113/741e0dec/attachment.pgp>

[Bug 42672] Nouveau. Screen corruption and occasional gpu lockup

2012-11-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=42672 cucullus changed: What|Removed |Added Component|Video(DRI - non Intel) |Video(Other) Platform|All

[PATCH v8 2/6] video: add of helper for videomode

2012-11-13 Thread Thierry Reding
nux/of_videomode.h b/include/linux/of_videomode.h [...] > + > +int of_get_videomode(struct device_node *np, struct videomode *vm, int > index); > +#endif /* __LINUX_OF_VIDEOMODE_H */ There should be a blank line between the last two lines I think. 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/20121113/37c83f90/attachment.pgp>

[PATCH v8 2/6] video: add of helper for videomode

2012-11-13 Thread Steffen Trumtrar
On Mon, Nov 12, 2012 at 11:00:37PM +0400, Alexey Klimov wrote: > Hello Steffen, > > On Mon, Nov 12, 2012 at 7:37 PM, Steffen Trumtrar > wrote: > > This adds support for reading display timings from DT or/and convert one of > > those > > timings to a videomode. > > The of_display_timing implement

[PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Terje Bergström
On 12.11.2012 23:55, Thierry Reding wrote: > This commit adds a KMS driver for the Tegra20 SoC. This includes basic > support for host1x and the two display controllers found on the Tegra20 > SoC. Each display controller can drive a separate RGB/LVDS output. I have tested this with further patches

[PATCH v8 1/6] video: add display_timing and videomode

2012-11-13 Thread Thierry Reding
ion no longer exists. 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/20121113/77365d7c/attachment.pgp>

[PATCH] ARM: add get_user() support for 8 byte types

2012-11-13 Thread Russell King - ARM Linux
On Tue, Nov 13, 2012 at 09:11:09AM +, Arnd Bergmann wrote: > On Tuesday 13 November 2012, Rob Clark wrote: > > right, that is what I was worried about.. but what about something > > along the lines of: > > > > case 8: { \ > >

Re: [PATCH v8 2/6] video: add of helper for videomode

2012-11-13 Thread Thierry Reding
On Tue, Nov 13, 2012 at 08:13:31AM -1000, Mitch Bradley wrote: > On 11/13/2012 7:51 AM, Thierry Reding wrote: > > On Tue, Nov 13, 2012 at 10:46:53AM -0700, Stephen Warren wrote: > >> On 11/13/2012 04:08 AM, Thierry Reding wrote: > >>> On Mon, Nov 12, 2012 at 04:37:02PM +0100, Steffen Trumtrar wrote

[PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Thierry Reding
output_init() into a tegra_output_parse() that does the DT parsing and tegra_output_init() that actually initializes the output. I'll try to implement something like that for the next version. 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/20121113/a904773f/attachment.pgp>

[PATCH] ARM: add get_user() support for 8 byte types

2012-11-13 Thread Russell King - ARM Linux
On Mon, Nov 12, 2012 at 06:31:50PM -0600, Rob Clark wrote: > right, that is what I was worried about.. but what about something > along the lines of: > > case 8: { \ > if (sizeof(x) < 8)

[PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Thierry Reding
and > >>>> function "host1x_remove_drm_client" and free the drm client just here. > >>>> It's useless after host1x clients registered themselves. > >>> > >>> The list is used to properly remove all clients and resources when the > >>> module is unloaded. Granted, this code isn't executed if you don't build > >>> the driver as a loadable module, but it should still be a supported use- > >>> case. > >>> > >> > >> My opinion is, after registration is completed, host1x_drm_client is > >> useless, host1x_client is enough for follow-up operations. > >> I still don't get how this is related with building the driver into the > >> kernel or as a kernel module, so if something I misunderstood, please > >> let me know it. Thanks. > > > > I can take another look at this and see if it can be further simplified. > > This was actually a rather tricky part to get right, so I'm naturally a > > bit hesitant to touch it. > > > > Okay. I recall I did some changes on this part about 3 month ago in a > patch named "drm: Add T30 support - host1x". So maybe you can know what > I mean by reading that patch. Yes, I remember the patch. Unfortunately the result of applying that patch was that unloading the module no longer worked properly. 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/20121113/4df40f6c/attachment-0001.pgp>

[PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Thierry Reding
to Mark, this is enabled in the Tegra default configuration in a later patch. 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/20121113/8ccec6e1/attachment.pgp>

[PATCH v8 2/6] video: add of helper for videomode

2012-11-13 Thread Stephen Warren
On 11/13/2012 04:08 AM, Thierry Reding wrote: > On Mon, Nov 12, 2012 at 04:37:02PM +0100, Steffen Trumtrar wrote: >> This adds support for reading display timings from DT or/and >> convert one of those timings to a videomode. The >> of_display_timing implementation supports multiple children where

[PATCH v2 0/2] NVIDIA Tegra DRM driver

2012-11-13 Thread Stephen Warren
On 11/12/2012 11:47 PM, Thierry Reding wrote: > On Mon, Nov 12, 2012 at 05:17:18PM -0700, Stephen Warren wrote: >> On 11/12/2012 02:55 PM, Thierry Reding wrote: >>> This second version of this patch series addresses all the >>> comments received so far. Most notably it takes advantage of >>> the de

[PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Stephen Warren
On 11/13/2012 02:37 AM, Thierry Reding wrote: > On Tue, Nov 13, 2012 at 04:49:24PM +0800, Mark Zhang wrote: >> On 11/13/2012 03:48 PM, Thierry Reding wrote: >>> * PGP Signed by an unknown key >>> >>> On Tue, Nov 13, 2012 at 03:15:47PM +0800, Mark Zhang wrote: On 11/13/2012 05:55 AM, Thierry R

[PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Thierry Reding
selves. > > > > The list is used to properly remove all clients and resources when the > > module is unloaded. Granted, this code isn't executed if you don't build > > the driver as a loadable module, but it should still be a supported use- > > case. > > > > My opinion is, after registration is completed, host1x_drm_client is > useless, host1x_client is enough for follow-up operations. > I still don't get how this is related with building the driver into the > kernel or as a kernel module, so if something I misunderstood, please > let me know it. Thanks. I can take another look at this and see if it can be further simplified. This was actually a rather tricky part to get right, so I'm naturally a bit hesitant to touch it. 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/20121113/5ba741de/attachment.pgp>

[PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Stephen Warren
On 11/13/2012 12:15 AM, Mark Zhang wrote: > On 11/13/2012 05:55 AM, Thierry Reding wrote: >> This commit adds a KMS driver for the Tegra20 SoC. This includes basic >> support for host1x and the two display controllers found on the Tegra20 >> SoC. Each display controller can drive a separate RGB/LVD

[PATCH 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Terje Bergström
On 13.11.2012 10:03, Thierry Reding wrote: > That should be fixed with v2 I posted a few hours ago. That's true. > Yes, Tegra30 support will follow in a separate patch. As for IOMMU > support it should eventually be made completely transparent, but I'm not > opposed to adding a patch with explici

[PATCH 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Terje Bergström
On 09.11.2012 15:59, Thierry Reding wrote: > This commit adds a KMS driver for the Tegra20 SoC. This includes basic > support for host1x and the two display controllers found on the Tegra20 > SoC. Each display controller can drive a separate RGB/LVDS output. Thanks Thierry for the hard work. I not

Suspend regression on 3.7-rc with nouveau

2012-11-13 Thread Herton Ronaldo Krzesinski
Hi, since 3.7-rc1 I'm unable to suspend my "Optimus" based laptop, suspend aborts, this is the relevant log snippet with debugging enabled up to tracing in nouveau: [ 65.941744] nouveau [ DRM] suspending fbcon... [ 65.941746] nouveau [ DRM] suspending display... [ 65.942108] nouve

Re: [PATCH v8 2/6] video: add of helper for videomode

2012-11-13 Thread Thierry Reding
On Tue, Nov 13, 2012 at 10:46:53AM -0700, Stephen Warren wrote: > On 11/13/2012 04:08 AM, Thierry Reding wrote: > > On Mon, Nov 12, 2012 at 04:37:02PM +0100, Steffen Trumtrar wrote: > >> This adds support for reading display timings from DT or/and > >> convert one of those timings to a videomode. T

Re: [PATCH v8 2/6] video: add of helper for videomode

2012-11-13 Thread Stephen Warren
On 11/13/2012 04:08 AM, Thierry Reding wrote: > On Mon, Nov 12, 2012 at 04:37:02PM +0100, Steffen Trumtrar wrote: >> This adds support for reading display timings from DT or/and >> convert one of those timings to a videomode. The >> of_display_timing implementation supports multiple children where

Re: [PATCH v2 0/2] NVIDIA Tegra DRM driver

2012-11-13 Thread Stephen Warren
On 11/12/2012 11:47 PM, Thierry Reding wrote: > On Mon, Nov 12, 2012 at 05:17:18PM -0700, Stephen Warren wrote: >> On 11/12/2012 02:55 PM, Thierry Reding wrote: >>> This second version of this patch series addresses all the >>> comments received so far. Most notably it takes advantage of >>> the de

Re: [PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Stephen Warren
On 11/13/2012 02:37 AM, Thierry Reding wrote: > On Tue, Nov 13, 2012 at 04:49:24PM +0800, Mark Zhang wrote: >> On 11/13/2012 03:48 PM, Thierry Reding wrote: >>> * PGP Signed by an unknown key >>> >>> On Tue, Nov 13, 2012 at 03:15:47PM +0800, Mark Zhang wrote: On 11/13/2012 05:55 AM, Thierry R

Re: [PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Stephen Warren
On 11/13/2012 12:15 AM, Mark Zhang wrote: > On 11/13/2012 05:55 AM, Thierry Reding wrote: >> This commit adds a KMS driver for the Tegra20 SoC. This includes basic >> support for host1x and the two display controllers found on the Tegra20 >> SoC. Each display controller can drive a separate RGB/LVD

[PATCH v8 2/6] video: add of helper for videomode

2012-11-13 Thread Steffen Trumtrar
Hi! On Mon, Nov 12, 2012 at 07:58:40PM +0100, Sascha Hauer wrote: > Hi Steffen, > > You lose memory in several places: > > On Mon, Nov 12, 2012 at 04:37:02PM +0100, Steffen Trumtrar wrote: > > +static struct display_timing *of_get_display_timing(struct device_node *np) > > +{ > > + struct disp

[PATCH] ARM: add get_user() support for 8 byte types

2012-11-13 Thread Arnd Bergmann
On Tuesday 13 November 2012, Rob Clark wrote: > right, that is what I was worried about.. but what about something > along the lines of: > > case 8: { \ > if (sizeof(x) < 8) \ >

[PATCH 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Thierry Reding
adding a patch with explicit IOMMU support back in if it turns out that it can't be done transparently. Thierry -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: not available URL: <http:/

[PATCH] ARM: add get_user() support for 8 byte types

2012-11-13 Thread Rob Clark
From: Rob Clark A new atomic modeset/pageflip ioctl being developed in DRM requires get_user() to work for 64bit types (in addition to just put_user()). v1: original v2: pass correct size to check_uaccess, and better handling of narrowing double word read with __get_user_xb() (Russell King's

[PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Thierry Reding
return PTR_ERR(rgb->clk); > > + > > + rgb->clk_parent = devm_clk_get(dc->dev, "parent"); > > + if (IS_ERR_OR_NULL(rgb->clk_parent)) > > + return PTR_ERR(rgb->clk_parent); > > + > > + err = clk_set_parent(rgb->clk, rgb->clk_parent); > > + if (err < 0) { > > + dev_err(dc->dev, "failed to set parent clock: %d\n", err); > > + return err; > > + } > > Okay, seems this works with the "CLK_DUPLICATE" in tegra20_clocks_data.c. > I think the purpose of all these is to make sure the dc has a correct > parent clock. Hm... But I feel this may bring confusing to do dc clock > settings in a drm output component. How do you think this would be confusing? 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/20121113/1a92e597/attachment.pgp>

[PATCH v8 2/6] video: add of helper for videomode

2012-11-13 Thread Mitch Bradley
On 11/13/2012 7:51 AM, Thierry Reding wrote: > On Tue, Nov 13, 2012 at 10:46:53AM -0700, Stephen Warren wrote: >> On 11/13/2012 04:08 AM, Thierry Reding wrote: >>> On Mon, Nov 12, 2012 at 04:37:02PM +0100, Steffen Trumtrar wrote: This adds support for reading display timings from DT or/and >>>

[PATCH v2 0/2] NVIDIA Tegra DRM driver

2012-11-13 Thread Thierry Reding
set, does it apply to the rest of the patch as well? That is, can I add it to patch 1? 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/20121113/c3dee8fc/attachment-0001.pgp>

[Bug 56139] [bisected] kernel 3.7.0-rc1 breaks 6950 (boot/grub2 and suspend/resume) (CAYMAN)

2012-11-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=56139 --- Comment #30 from Alexandre Demers --- (In reply to comment #29) > (In reply to comment #28) > > Alex, a simple question: you said bit 0 in EVERGREEN_CRTC_CONTROL stops the > > CRTC sync. With the culprit commit, when is it set? I mean, I had

[Bug 43741] /sys/class/backlight/ is empty with AMD (ATI) Radeon HD 4350

2012-11-13 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=43741 Zhang Rui changed: What|Removed |Added CC||rui.zhang at intel.com Component|Po

[Bug 50521] New: nouveau_acpi call _DSM with wrong parameter

2012-11-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=50521 Summary: nouveau_acpi call _DSM with wrong parameter Product: Drivers Version: 2.5 Kernel Version: 2.6.38 Platform: All OS/Version: Linux Tree: Mainline Status: NEW

[Bug 56139] [bisected] kernel 3.7.0-rc1 breaks 6950 (boot/grub2 and suspend/resume) (CAYMAN)

2012-11-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=56139 --- Comment #29 from Alex Deucher --- (In reply to comment #28) > Alex, a simple question: you said bit 0 in EVERGREEN_CRTC_CONTROL stops the > CRTC sync. With the culprit commit, when is it set? I mean, I had a quick > look in the driver's code

[Bug 56918] [R350] Black labels on MapsGL

2012-11-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=56918 --- Comment #5 from Tom Stellard --- There are two failing shaders here. The first shader fails with too many instructions. It looks like we could get it to pass if we had a Common Subexpression Elimination optimization. The second shader fail

Re: [PATCH 1/1] media: Entities with sink pads must have at least one enabled link

2012-11-13 Thread Sakari Ailus
Hi all, Comments would be appreciated, either positive or negative. The omap3isp driver does the same check itself currently, but I think this is more generic than that. Thanks. On Fri, Oct 26, 2012 at 10:46:17PM +0300, Sakari Ailus wrote: > If an entity has sink pads, at least one of them must

[PATCH] ARM: add get_user() support for 8 byte types

2012-11-13 Thread Rob Clark
From: Rob Clark A new atomic modeset/pageflip ioctl being developed in DRM requires get_user() to work for 64bit types (in addition to just put_user()). v1: original v2: pass correct size to check_uaccess, and better handling of narrowing double word read with __get_user_xb() (Russell King's

[Bug 56966] [r300g, bisected] multiple piglit tests crash in r300_draw_arrays_immediate

2012-11-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=56966 Marek Olšák changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [PATCH] ARM: add get_user() support for 8 byte types

2012-11-13 Thread Russell King - ARM Linux
On Tue, Nov 13, 2012 at 09:11:09AM +, Arnd Bergmann wrote: > On Tuesday 13 November 2012, Rob Clark wrote: > > right, that is what I was worried about.. but what about something > > along the lines of: > > > > case 8: { \ > >

Re: [PATCH] ARM: add get_user() support for 8 byte types

2012-11-13 Thread Russell King - ARM Linux
On Mon, Nov 12, 2012 at 06:31:50PM -0600, Rob Clark wrote: > right, that is what I was worried about.. but what about something > along the lines of: > > case 8: { \ > if (sizeof(x) < 8)

Re: [PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Terje Bergström
On 12.11.2012 23:55, Thierry Reding wrote: > This commit adds a KMS driver for the Tegra20 SoC. This includes basic > support for host1x and the two display controllers found on the Tegra20 > SoC. Each display controller can drive a separate RGB/LVDS output. I have tested this with further patches

Re: [PATCH 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Terje Bergström
On 13.11.2012 10:03, Thierry Reding wrote: > That should be fixed with v2 I posted a few hours ago. That's true. > Yes, Tegra30 support will follow in a separate patch. As for IOMMU > support it should eventually be made completely transparent, but I'm not > opposed to adding a patch with explici

Re: [PATCH 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Terje Bergström
On 09.11.2012 15:59, Thierry Reding wrote: > This commit adds a KMS driver for the Tegra20 SoC. This includes basic > support for host1x and the two display controllers found on the Tegra20 > SoC. Each display controller can drive a separate RGB/LVDS output. Thanks Thierry for the hard work. I not

Re: [PATCH v8 6/6] drm_modes: add of_videomode helpers

2012-11-13 Thread Steffen Trumtrar
On Tue, Nov 13, 2012 at 12:35:18PM +0100, Thierry Reding wrote: > On Mon, Nov 12, 2012 at 04:37:06PM +0100, Steffen Trumtrar wrote: > [...] > > +#if IS_ENABLED(CONFIG_OF_VIDEOMODE) > > +static void dump_drm_displaymode(struct drm_display_mode *m) > > +{ > > + pr_debug("drm_displaymode = %d %d %d

Re: [PATCH v8 3/6] fbmon: add videomode helpers

2012-11-13 Thread Steffen Trumtrar
On Tue, Nov 13, 2012 at 12:22:58PM +0100, Thierry Reding wrote: > On Mon, Nov 12, 2012 at 04:37:03PM +0100, Steffen Trumtrar wrote: > [...] > > +#if IS_ENABLED(CONFIG_VIDEOMODE) > > +int videomode_to_fb_videomode(struct videomode *vm, struct fb_videomode > > *fbmode) > > The other helpers are nam

[Bug 43741] /sys/class/backlight/ is empty with AMD (ATI) Radeon HD 4350

2012-11-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=43741 Alex Deucher changed: What|Removed |Added CC||alexdeuc...@gmail.com --- Comment #5 f

Re: [PATCH v8 1/6] video: add display_timing and videomode

2012-11-13 Thread Steffen Trumtrar
On Tue, Nov 13, 2012 at 11:41:59AM +0100, Thierry Reding wrote: > On Mon, Nov 12, 2012 at 04:37:01PM +0100, Steffen Trumtrar wrote: > [...] > > diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig > > index d08d799..2a23b18 100644 > > --- a/drivers/video/Kconfig > > +++ b/drivers/video/Kconfi

Re: [PATCH v8 2/6] video: add of helper for videomode

2012-11-13 Thread Steffen Trumtrar
On Mon, Nov 12, 2012 at 01:40:12PM -0700, Stephen Warren wrote: > On 11/12/2012 08:37 AM, Steffen Trumtrar wrote: > > This adds support for reading display timings from DT or/and convert one of > > those > > timings to a videomode. > > The of_display_timing implementation supports multiple childre

Re: [PATCH v8 6/6] drm_modes: add of_videomode helpers

2012-11-13 Thread Thierry Reding
On Mon, Nov 12, 2012 at 04:37:06PM +0100, Steffen Trumtrar wrote: [...] > +#if IS_ENABLED(CONFIG_OF_VIDEOMODE) > +static void dump_drm_displaymode(struct drm_display_mode *m) > +{ > + pr_debug("drm_displaymode = %d %d %d %d %d %d %d %d %d\n", > + m->hdisplay, m->hsync_start, m->hsy

Re: [PATCH v8 5/6] drm_modes: add videomode helpers

2012-11-13 Thread Thierry Reding
On Mon, Nov 12, 2012 at 04:37:05PM +0100, Steffen Trumtrar wrote: [...] > diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c [...] > +#if IS_ENABLED(CONFIG_VIDEOMODE) > +int videomode_to_display_mode(struct videomode *vm, struct drm_display_mode > *dmode) This one as well may

Re: [PATCH v8 4/6] fbmon: add of_videomode helpers

2012-11-13 Thread Thierry Reding
On Mon, Nov 12, 2012 at 04:37:04PM +0100, Steffen Trumtrar wrote: [...] > diff --git a/include/linux/fb.h b/include/linux/fb.h [...] > +extern int of_get_fb_videomode(struct device_node *np, struct fb_videomode > *fb, int index); Similarily this should get a dummy for the !CONFIG_OF_VIDEOMODE cas

Re: [PATCH v8 3/6] fbmon: add videomode helpers

2012-11-13 Thread Thierry Reding
On Mon, Nov 12, 2012 at 04:37:03PM +0100, Steffen Trumtrar wrote: [...] > +#if IS_ENABLED(CONFIG_VIDEOMODE) > +int videomode_to_fb_videomode(struct videomode *vm, struct fb_videomode > *fbmode) The other helpers are named _from_(), maybe this should follow that example for consistency? > +{ > +

Re: [PATCH v8 2/6] video: add of helper for videomode

2012-11-13 Thread Thierry Reding
On Mon, Nov 12, 2012 at 04:37:02PM +0100, Steffen Trumtrar wrote: > This adds support for reading display timings from DT or/and convert one of > those > timings to a videomode. > The of_display_timing implementation supports multiple children where each > property can have up to 3 values. All chi

Re: [PATCH v8 2/6] video: add of helper for videomode

2012-11-13 Thread Steffen Trumtrar
On Mon, Nov 12, 2012 at 11:00:37PM +0400, Alexey Klimov wrote: > Hello Steffen, > > On Mon, Nov 12, 2012 at 7:37 PM, Steffen Trumtrar > wrote: > > This adds support for reading display timings from DT or/and convert one of > > those > > timings to a videomode. > > The of_display_timing implement

Re: [PATCH v8 1/6] video: add display_timing and videomode

2012-11-13 Thread Thierry Reding
On Mon, Nov 12, 2012 at 04:37:01PM +0100, Steffen Trumtrar wrote: [...] > diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig > index d08d799..2a23b18 100644 > --- a/drivers/video/Kconfig > +++ b/drivers/video/Kconfig > @@ -33,6 +33,12 @@ config VIDEO_OUTPUT_CONTROL > This framework

Re: [PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Thierry Reding
On Tue, Nov 13, 2012 at 08:48:22AM +0100, Thierry Reding wrote: > On Tue, Nov 13, 2012 at 03:15:47PM +0800, Mark Zhang wrote: > > On 11/13/2012 05:55 AM, Thierry Reding wrote: [...] > > > +int tegra_output_init(struct drm_device *drm, struct tegra_output > > > *output) > > > +{ > > > + int c

Re: [PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Mark Zhang
On 11/13/2012 05:54 PM, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Tue, Nov 13, 2012 at 05:49:28PM +0800, Mark Zhang wrote: >> On 11/13/2012 05:37 PM, Thierry Reding wrote: Old Signed by an unknown key >>> >>> On Tue, Nov 13, 2012 at 04:49:24PM +0800, Mark Zhang wrote:

Re: [PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Thierry Reding
On Tue, Nov 13, 2012 at 05:49:28PM +0800, Mark Zhang wrote: > On 11/13/2012 05:37 PM, Thierry Reding wrote: > > * PGP Signed by an unknown key > > > > On Tue, Nov 13, 2012 at 04:49:24PM +0800, Mark Zhang wrote: > >> On 11/13/2012 03:48 PM, Thierry Reding wrote: > Old Signed by an unknown key

Re: [PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Mark Zhang
On 11/13/2012 05:37 PM, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Tue, Nov 13, 2012 at 04:49:24PM +0800, Mark Zhang wrote: >> On 11/13/2012 03:48 PM, Thierry Reding wrote: Old Signed by an unknown key >>> >>> On Tue, Nov 13, 2012 at 03:15:47PM +0800, Mark Zhang wrote:

Re: [PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Thierry Reding
On Tue, Nov 13, 2012 at 11:45:55AM +0200, Terje Bergström wrote: > On 12.11.2012 23:55, Thierry Reding wrote: > > This commit adds a KMS driver for the Tegra20 SoC. This includes basic > > support for host1x and the two display controllers found on the Tegra20 > > SoC. Each display controller can d

Re: [PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Thierry Reding
On Tue, Nov 13, 2012 at 04:49:24PM +0800, Mark Zhang wrote: > On 11/13/2012 03:48 PM, Thierry Reding wrote: > > * PGP Signed by an unknown key > > > > On Tue, Nov 13, 2012 at 03:15:47PM +0800, Mark Zhang wrote: > >> On 11/13/2012 05:55 AM, Thierry Reding wrote: > >>> This commit adds a KMS driver

Re: [PATCH] ARM: add get_user() support for 8 byte types

2012-11-13 Thread Arnd Bergmann
On Tuesday 13 November 2012, Rob Clark wrote: > right, that is what I was worried about.. but what about something > along the lines of: > > case 8: { \ > if (sizeof(x) < 8) \ >

Re: [PATCH v2 1/2] drm: Add NVIDIA Tegra20 support

2012-11-13 Thread Mark Zhang
On 11/13/2012 03:48 PM, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Tue, Nov 13, 2012 at 03:15:47PM +0800, Mark Zhang wrote: >> On 11/13/2012 05:55 AM, Thierry Reding wrote: >>> This commit adds a KMS driver for the Tegra20 SoC. This includes basic >>> support for host1x and the

Re: [PATCH v8 2/6] video: add of helper for videomode

2012-11-13 Thread Steffen Trumtrar
Hi! On Mon, Nov 12, 2012 at 07:58:40PM +0100, Sascha Hauer wrote: > Hi Steffen, > > You lose memory in several places: > > On Mon, Nov 12, 2012 at 04:37:02PM +0100, Steffen Trumtrar wrote: > > +static struct display_timing *of_get_display_timing(struct device_node *np) > > +{ > > + struct disp

  1   2   >