[PATCH V3 11/16] drm/radeon: Make radeon card usable for Loongson.

2012-06-22 Thread Huacai Chen
On Fri, Jun 22, 2012 at 5:39 PM, Arnaud Patard wrote: > > Hi, > > Huacai Chen writes: > >> 1, Handle io prot correctly for MIPS. >> 2, Define SAREA_MAX as the size of one page. >> 3, Don't use swiotlb on Loongson machines (Loonson need swioitlb, but >> ? ?when use swiotlb, GPU reset occurs at res

[Bug 51344] massive corruption on RV410

2012-06-22 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=51344 --- Comment #2 from Tormod Volden 2012-06-22 11:50:37 PDT --- Created attachment 63359 --> https://bugs.freedesktop.org/attachment.cgi?id=63359 screenshot (no xorg.conf options) -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cg

[Bug 51344] massive corruption on RV410

2012-06-22 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=51344 --- Comment #1 from Tormod Volden 2012-06-22 11:22:39 PDT --- Created attachment 63357 --> https://bugs.freedesktop.org/attachment.cgi?id=63357 dmesg output -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- Y

[Bug 51344] massive corruption on RV410

2012-06-22 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=51344 Tormod Volden changed: What|Removed |Added Summary|massive corruption on RV515 |massive corruption on RV410 -- Configur

[Bug 51344] New: massive corruption on RV515

2012-06-22 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=51344 Bug #: 51344 Summary: massive corruption on RV515 Classification: Unclassified Product: DRI Version: XOrg CVS Platform: x86 (IA32) OS/Version: Linux (All) Status: NEW

[PATCH] DRM: exynos: return NULL if exynos_pages_to_sg fails

2012-06-22 Thread Subash Patel
From: Subash Patel exynos_pages_to_sg() internally calls sg_kmalloc() which can return no pages when the system is under high memory crunch. One such instance is chromeos-install in the chromeos. This patch adds check for the return value of the function in subject to return NULL on failure. Sig

[PATCH] DRM: exynos: return NULL if exynos_pages_to_sg fails

2012-06-22 Thread "Subash Patel (ಸುಭಾಷ್)"
Hi Olof, I will then rework this patch commit message and send it. I will copy Samsung-soc list (dri-devel is already in copy) Regards, Subash On 06/22/2012 05:47 PM, Olof Johansson wrote: > Hi, > > On Fri, Jun 22, 2012 at 5:41 PM, Subash Patel > wrote: > > Fr

Re: [PATCH] DRM: exynos: return NULL if exynos_pages_to_sg fails

2012-06-22 Thread Olof Johansson
Hi, On Fri, Jun 22, 2012 at 5:41 PM, Subash Patel wrote: > From: Subash Patel > > exynos_pages_to_sg() internally calls sg_kmalloc() which can return > no pages when the system is under high memory crunch. One such instance > is chromeos-install in the chromeos. This patch adds check for the re

Re: [PATCH V3 11/16] drm/radeon: Make radeon card usable for Loongson.

2012-06-22 Thread Huacai Chen
On Fri, Jun 22, 2012 at 7:11 PM, Ralf Baechle wrote: > On Fri, Jun 22, 2012 at 06:55:40PM +0800, Huacai Chen wrote: > >> > btw, would it be a good idea to use uncached accelerated instead ? >> I have tried uncached accelerated, there will be random points in the >> monitor, it seems a hw issue...

[PATCH] DRM: exynos: return NULL if exynos_pages_to_sg fails

2012-06-22 Thread Olof Johansson
No BUG/TEST/Change-Id on a public patch, please. Also, I didn't see this posted on neither samsung-soc, nor the dri-devel list? -Olof -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20120622/82943505/attachment.html>

[PATCH] DRM: exynos: return NULL if exynos_pages_to_sg fails

2012-06-22 Thread Subash Patel
From: Subash Patel exynos_pages_to_sg() internally calls sg_kmalloc() which can return no pages when the system is under high memory crunch. One such instance is chromeos-install in the chromeos. This patch adds check for the return value of the function in subject to return NULL on failure. BUG

[PATCH V3 11/16] drm/radeon: Make radeon card usable for Loongson.

2012-06-22 Thread Huacai Chen
On Fri, Jun 22, 2012 at 1:25 PM, Lucas Stach wrote: > Hello Huacai, > > Am Freitag, den 22.06.2012, 11:01 +0800 schrieb Huacai Chen: >> 1, Handle io prot correctly for MIPS. >> 2, Define SAREA_MAX as the size of one page. >> 3, Don't use swiotlb on Loongson machines (Loonson need swioitlb, but >>

[PATCH] lib/scatterlist: do not re-write gfp_flags in __sg_alloc_table

2012-06-22 Thread Mandeep Singh Baines
We are seeing a lot of sg_alloc_table allocation failures using the new drm prime infrastructure. We isolated the cause to code in __sg_alloc_table that was re-writing the gfp_flags. There is a comment in the code that suggest that there is an assumption about the allocation coming from a memory p

[PATCH] lib/scatterlist: do not re-write gfp_flags in __sg_alloc_table

2012-06-22 Thread Mandeep Singh Baines
We are seeing a lot of sg_alloc_table allocation failures using the new drm prime infrastructure. We isolated the cause to code in __sg_alloc_table that was re-writing the gfp_flags. There is a comment in the code that suggest that there is an assumption about the allocation coming from a memory p

[Bug 43448] No native 3D acceleration with Radeon FirePro M7740 (m97 / rv740) -> llvm pipe

2012-06-22 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=43448 Michel D?nzer changed: What|Removed |Added Attachment #62159|0 |1 is obsolete|

[Bug 43448] No native 3D acceleration with Radeon FirePro M7740 (m97 / rv740) -> llvm pipe

2012-06-22 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=43448 Michel D?nzer changed: What|Removed |Added Attachment #62158|0 |1 is obsolete|

[PATCH 4/5] DRM: add i.MX IPUv3 base driver

2012-06-22 Thread Shawn Guo
On Thu, Jun 14, 2012 at 03:43:26PM +0200, Sascha Hauer wrote: ... > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include This seems not needed at all. > +#include > +#in

[PATCH V3 11/16] drm/radeon: Make radeon card usable for Loongson.

2012-06-22 Thread Huacai Chen
On Fri, Jun 22, 2012 at 1:25 PM, Lucas Stach wrote: > Hello Huacai, > > Am Freitag, den 22.06.2012, 11:01 +0800 schrieb Huacai Chen: >> 1, Handle io prot correctly for MIPS. >> 2, Define SAREA_MAX as the size of one page. >> 3, Don't use swiotlb on Loongson machines (Loonson need swioitlb, but >>

[PATCH] mgag200: Fix a memory leak in mgag200fb_create()

2012-06-22 Thread devendra.aaru
On Fri, Jun 22, 2012 at 3:43 AM, Jesper Juhl wrote: > First we allocate memory for 'sysram' with vmalloc() and subsequently > we allocate for 'info' with framebuffer_alloc(). If the second > allocation fails we return -ENOMEM, but neglect to vfree() the memory > we previously allocated for 'sysram

[PATCH 2/5] DRM i.MX: Add parallel display support

2012-06-22 Thread Shawn Guo
On Thu, Jun 14, 2012 at 03:43:24PM +0200, Sascha Hauer wrote: > +static int __devinit imx_pd_probe(struct platform_device *pdev) > +{ > + struct device_node *np = pdev->dev.of_node; > + const u8 *edidp; > + struct imx_parallel_display *imxpd; > + int ret; > + u32 crtcs[2]; It s

[PATCH V3 11/16] drm/radeon: Make radeon card usable for Loongson.

2012-06-22 Thread Ralf Baechle
On Fri, Jun 22, 2012 at 06:55:40PM +0800, Huacai Chen wrote: > > btw, would it be a good idea to use uncached accelerated instead ? > I have tried uncached accelerated, there will be random points in the > monitor, it seems a hw issue... Have you flushed the pages from memory before switching the

[PATCH V3 11/16] drm/radeon: Make radeon card usable for Loongson.

2012-06-22 Thread Ralf Baechle
On Fri, Jun 22, 2012 at 11:39:19AM +0200, Arnaud Patard wrote: > > --- a/drivers/gpu/drm/drm_vm.c > > +++ b/drivers/gpu/drm/drm_vm.c > > @@ -62,7 +62,7 @@ static pgprot_t drm_io_prot(uint32_t map_type, struct > > vm_area_struct *vma) > > tmp = pgprot_writecombine(tmp); > > else >

[Bug 51344] massive corruption on RV410

2012-06-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=51344 --- Comment #2 from Tormod Volden 2012-06-22 11:50:37 PDT --- Created attachment 63359 --> https://bugs.freedesktop.org/attachment.cgi?id=63359 screenshot (no xorg.conf options) -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cg

[PATCH V3 11/16] drm/radeon: Make radeon card usable for Loongson.

2012-06-22 Thread Arnaud Patard (Rtp)
Hi, Huacai Chen writes: > 1, Handle io prot correctly for MIPS. > 2, Define SAREA_MAX as the size of one page. > 3, Don't use swiotlb on Loongson machines (Loonson need swioitlb, but >when use swiotlb, GPU reset occurs at resume from suspend). > > Signed-off-by: Huacai Chen > Signed-off-by

[Bug 51344] massive corruption on RV410

2012-06-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=51344 --- Comment #1 from Tormod Volden 2012-06-22 11:22:39 PDT --- Created attachment 63357 --> https://bugs.freedesktop.org/attachment.cgi?id=63357 dmesg output -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- Y

[Bug 51344] massive corruption on RV410

2012-06-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=51344 Tormod Volden changed: What|Removed |Added Summary|massive corruption on RV515 |massive corruption on RV410 -- Configur

[Bug 51344] New: massive corruption on RV515

2012-06-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=51344 Bug #: 51344 Summary: massive corruption on RV515 Classification: Unclassified Product: DRI Version: XOrg CVS Platform: x86 (IA32) OS/Version: Linux (All) Status: NEW

[PATCH V3 11/16] drm/radeon: Make radeon card usable for Loongson.

2012-06-22 Thread Huacai Chen
1, Handle io prot correctly for MIPS. 2, Define SAREA_MAX as the size of one page. 3, Don't use swiotlb on Loongson machines (Loonson need swioitlb, but when use swiotlb, GPU reset occurs at resume from suspend). Signed-off-by: Huacai Chen Signed-off-by: Hongliang Tao Signed-off-by: Hua Yan

[PATCH] drm/i915: no lvds quirk for Zotac ZDBOX SD ID12/ID13

2012-06-22 Thread Daniel Vetter
On Fri, Jun 22, 2012 at 09:43:07AM +0200, Sjoerd Simons wrote: > This box claims to have an LVDS interface but doesn't > actually have one. > > Signed-off-by: Sjoerd Simons Queued for -next, thanks for the patch. -Daniel -- Daniel Vetter Mail: daniel at ffwll.ch Mobile: +41 (0)79 365 57 48

[PATCH V3 11/16] drm/radeon: Make radeon card usable for Loongson.

2012-06-22 Thread Christian König
Hello Huacai, On 22.06.2012 07:59, Huacai Chen wrote: > On Fri, Jun 22, 2012 at 1:25 PM, Lucas Stach wrote: >> Hello Huacai, >> >> Am Freitag, den 22.06.2012, 11:01 +0800 schrieb Huacai Chen: [SNIP] >>> Signed-off-by: Huacai Chen >>> Signed-off-by: Hongliang Tao >>> Signed-off-by: Hua Yan >>> Re

[PATCH] drm/i915: no lvds quirk for Zotac ZDBOX SD ID12/ID13

2012-06-22 Thread Sjoerd Simons
This box claims to have an LVDS interface but doesn't actually have one. Signed-off-by: Sjoerd Simons --- drivers/gpu/drm/i915/intel_lvds.c |8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index 08eb04c..9393860

[Bug 43448] No native 3D acceleration with Radeon FirePro M7740 (m97 / rv740) -> llvm pipe

2012-06-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=43448 Michel Dänzer changed: What|Removed |Added Attachment #62159|0 |1 is obsolete|

[Bug 43448] No native 3D acceleration with Radeon FirePro M7740 (m97 / rv740) -> llvm pipe

2012-06-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=43448 Michel Dänzer changed: What|Removed |Added Attachment #62158|0 |1 is obsolete|

[Bug 43448] No native 3D acceleration with Radeon FirePro M7740 (m97 / rv740) -> llvm pipe

2012-06-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=43448 Michel Dänzer changed: What|Removed |Added Attachment #62157|0 |1 is obsolete|

[Bug 43448] No native 3D acceleration with Radeon FirePro M7740 (m97 / rv740) -> llvm pipe

2012-06-22 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=43448 Michel D?nzer changed: What|Removed |Added Attachment #62157|0 |1 is obsolete|

[PATCH V3 11/16] drm/radeon: Make radeon card usable for Loongson.

2012-06-22 Thread Lucas Stach
Hello Huacai, Am Freitag, den 22.06.2012, 11:01 +0800 schrieb Huacai Chen: > 1, Handle io prot correctly for MIPS. > 2, Define SAREA_MAX as the size of one page. > 3, Don't use swiotlb on Loongson machines (Loonson need swioitlb, but >when use swiotlb, GPU reset occurs at resume from suspend).

Re: [PATCH V3 11/16] drm/radeon: Make radeon card usable for Loongson.

2012-06-22 Thread Ralf Baechle
On Fri, Jun 22, 2012 at 11:39:19AM +0200, Arnaud Patard wrote: > > --- a/drivers/gpu/drm/drm_vm.c > > +++ b/drivers/gpu/drm/drm_vm.c > > @@ -62,7 +62,7 @@ static pgprot_t drm_io_prot(uint32_t map_type, struct > > vm_area_struct *vma) > > tmp = pgprot_writecombine(tmp); > > else >

Re: [PATCH V3 11/16] drm/radeon: Make radeon card usable for Loongson.

2012-06-22 Thread Ralf Baechle
On Fri, Jun 22, 2012 at 06:55:40PM +0800, Huacai Chen wrote: > > btw, would it be a good idea to use uncached accelerated instead ? > I have tried uncached accelerated, there will be random points in the > monitor, it seems a hw issue... Have you flushed the pages from memory before switching the

Re: [PATCH V3 11/16] drm/radeon: Make radeon card usable for Loongson.

2012-06-22 Thread Huacai Chen
On Fri, Jun 22, 2012 at 5:39 PM, Arnaud Patard wrote: > > Hi, > > Huacai Chen writes: > >> 1, Handle io prot correctly for MIPS. >> 2, Define SAREA_MAX as the size of one page. >> 3, Don't use swiotlb on Loongson machines (Loonson need swioitlb, but >>    when use swiotlb, GPU reset occurs at res

Re: [PATCH V3 11/16] drm/radeon: Make radeon card usable for Loongson.

2012-06-22 Thread Rtp
Hi, Huacai Chen writes: > 1, Handle io prot correctly for MIPS. > 2, Define SAREA_MAX as the size of one page. > 3, Don't use swiotlb on Loongson machines (Loonson need swioitlb, but >when use swiotlb, GPU reset occurs at resume from suspend). > > Signed-off-by: Huacai Chen > Signed-off-by

Re: [PATCH V3 11/16] drm/radeon: Make radeon card usable for Loongson.

2012-06-22 Thread Huacai Chen
On Fri, Jun 22, 2012 at 1:25 PM, Lucas Stach wrote: > Hello Huacai, > > Am Freitag, den 22.06.2012, 11:01 +0800 schrieb Huacai Chen: >> 1, Handle io prot correctly for MIPS. >> 2, Define SAREA_MAX as the size of one page. >> 3, Don't use swiotlb on Loongson machines (Loonson need swioitlb, but >>

Re: [PATCH] mgag200: Fix a memory leak in mgag200fb_create()

2012-06-22 Thread devendra.aaru
On Fri, Jun 22, 2012 at 3:43 AM, Jesper Juhl wrote: > First we allocate memory for 'sysram' with vmalloc() and subsequently > we allocate for 'info' with framebuffer_alloc(). If the second > allocation fails we return -ENOMEM, but neglect to vfree() the memory > we previously allocated for 'sysram

[PATCH] drm/i915: no lvds quirk for Zotac ZDBOX SD ID12/ID13

2012-06-22 Thread Sjoerd Simons
This box claims to have an LVDS interface but doesn't actually have one. Signed-off-by: Sjoerd Simons --- drivers/gpu/drm/i915/intel_lvds.c |8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index 08eb04c..9393860

Re: [PATCH] drm/i915: no lvds quirk for Zotac ZDBOX SD ID12/ID13

2012-06-22 Thread Daniel Vetter
On Fri, Jun 22, 2012 at 09:43:07AM +0200, Sjoerd Simons wrote: > This box claims to have an LVDS interface but doesn't > actually have one. > > Signed-off-by: Sjoerd Simons Queued for -next, thanks for the patch. -Daniel -- Daniel Vetter Mail: dan...@ffwll.ch Mobile: +41 (0)79 365 57 48

Re: [PATCH V3 11/16] drm/radeon: Make radeon card usable for Loongson.

2012-06-22 Thread Christian König
Hello Huacai, On 22.06.2012 07:59, Huacai Chen wrote: On Fri, Jun 22, 2012 at 1:25 PM, Lucas Stach wrote: Hello Huacai, Am Freitag, den 22.06.2012, 11:01 +0800 schrieb Huacai Chen: [SNIP] Signed-off-by: Huacai Chen Signed-off-by: Hongliang Tao Signed-off-by: Hua Yan Reviewed-by: Michel Dän

[PATCH] mgag200: Fix a memory leak in mgag200fb_create()

2012-06-22 Thread Jesper Juhl
First we allocate memory for 'sysram' with vmalloc() and subsequently we allocate for 'info' with framebuffer_alloc(). If the second allocation fails we return -ENOMEM, but neglect to vfree() the memory we previously allocated for 'sysram', thus leaking it. Signed-off-by: Jesper Juhl --- drivers