stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch "drm/ast: Fix incorrect register check for DRAM width" has been added to the 3.10-stable tree
@ 2016-03-05 19:24 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2016-03-05 19:24 UTC (permalink / raw)
  To: tpearson, airlied, gregkh; +Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

    drm/ast: Fix incorrect register check for DRAM width

to the 3.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-ast-fix-incorrect-register-check-for-dram-width.patch
and it can be found in the queue-3.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From 2d02b8bdba322b527c5f5168ce1ca10c2d982a78 Mon Sep 17 00:00:00 2001
From: Timothy Pearson <tpearson@raptorengineeringinc.com>
Date: Fri, 26 Feb 2016 15:29:32 -0600
Subject: drm/ast: Fix incorrect register check for DRAM width

From: Timothy Pearson <tpearson@raptorengineeringinc.com>

commit 2d02b8bdba322b527c5f5168ce1ca10c2d982a78 upstream.

During DRAM initialization on certain ASpeed devices, an incorrect
bit (bit 10) was checked in the "SDRAM Bus Width Status" register
to determine DRAM width.

Query bit 6 instead in accordance with the Aspeed AST2050 datasheet v1.05.

Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/gpu/drm/ast/ast_main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/gpu/drm/ast/ast_main.c
+++ b/drivers/gpu/drm/ast/ast_main.c
@@ -124,7 +124,7 @@ static int ast_get_dram_info(struct drm_
 	} while (ast_read32(ast, 0x10000) != 0x01);
 	data = ast_read32(ast, 0x10004);
 
-	if (data & 0x400)
+	if (data & 0x40)
 		ast->dram_bus_width = 16;
 	else
 		ast->dram_bus_width = 32;


Patches currently in stable-queue which might be from tpearson@raptorengineeringinc.com are

queue-3.10/drm-ast-fix-incorrect-register-check-for-dram-width.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-05 19:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-05 19:24 Patch "drm/ast: Fix incorrect register check for DRAM width" has been added to the 3.10-stable tree gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).