LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Woody Suwalski <woodys@xandros.com>
To: linux-fbdev-devel@lists.sourceforge.net
Cc: Martin Michlmayr <tbm@cyrius.com>,
	Stuart Anderson <anderson@netsweng.com>,
	rmk@arm.linux.org.uk, linux-kernel@vger.kernel.org
Subject: PATCH: cyber2010 framebuffer on ARM Netwinder fix...
Date: Tue, 9 Jan 2007 12:26:55 -0500	[thread overview]
Message-ID: <45A3D05F.7060409@xandros.com> (raw)
In-Reply-To: <20070105152224.GQ15109@deprecation.cyrius.com>

[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]

Martin Michlmayr wrote:
> * Stuart Anderson <anderson@netsweng.com> [2007-01-05 09:40]:
>   
>> shark w/o any changes to the kernel. I dug a bit further, both in the
>> driver, and in the HW spec for the shark, and discovered that the video
>> chip on the shark is connected via the VL bus, not the PCI bus. The
>> shark does have a VL-PCI bridge, but there doesn't seem to be anything
>> connected to the PCI side of it (which matches what lspci says). The
>> function containing the patch in question doesn't appear to even run on
>> the shark (there is a VL version that is #ifdef SHARK'd), so I'd have
>> to say the patch would have not impact on the shark.
>>     
>
> OK, good news.  Thanks for checking.  Woody, can you submit the patch
> (with proper intentation) to linux-fbdev-devel@lists.sourceforge.net
>   

As suggested - I am sending this patch to fbdev-devel....

The Netwinder machines with Cyber2010 crash badly when starting Xserver.
The workaround is to disable pci burst option for this revision of video 
chip.

Thanks, Woody


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: netwinder_cyber2010_burst.patch --]
[-- Type: text/x-patch; name="netwinder_cyber2010_burst.patch", Size: 1271 bytes --]

The Netwinder machines with Cyber2010 crash badly when starting Xserver.
The workaround is to disable pci burst option for this revision of video chip.

Signed-off-by: Woody Suwalski <woodys@xandros.com>

---

--- a/drivers/video/cyber2000fb.c	2006-11-29 16:57:37.000000000 -0500
+++ b/drivers/video/cyber2000fb.c	2007-01-09 12:20:01.000000000 -0500
@@ -1539,16 +1539,24 @@ static int cyberpro_pci_enable_mmio(stru
 	/*
 	 * Allow the CyberPro to accept PCI burst accesses
 	 */
-	val = cyber2000_grphr(EXT_BUS_CTL, cfb);
-	if (!(val & EXT_BUS_CTL_PCIBURST_WRITE)) {
-		printk(KERN_INFO "%s: enabling PCI bursts\n", cfb->fb.fix.id);
-
-		val |= EXT_BUS_CTL_PCIBURST_WRITE;
-
-		if (cfb->id == ID_CYBERPRO_5000)
-			val |= EXT_BUS_CTL_PCIBURST_READ;
-
-		cyber2000_grphw(EXT_BUS_CTL, val, cfb);
+	if (cfb->id == ID_CYBERPRO_2010)
+	{
+		printk(KERN_INFO "%s: NOT enabling PCI bursts\n", cfb->fb.fix.id);
+	}
+	else
+	{
+		val = cyber2000_grphr(EXT_BUS_CTL, cfb);
+		if (!(val & EXT_BUS_CTL_PCIBURST_WRITE)) {
+			printk(KERN_INFO "%s: enabling PCI bursts\n",
+				cfb->fb.fix.id);
+	
+			val |= EXT_BUS_CTL_PCIBURST_WRITE;
+	
+			if (cfb->id == ID_CYBERPRO_5000)
+				val |= EXT_BUS_CTL_PCIBURST_READ;
+	
+			cyber2000_grphw(EXT_BUS_CTL, val, cfb);
+		}
 	}
 
 	return 0;

       reply	other threads:[~2007-01-09 17:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <459D368F.2030204@xandros.com>
     [not found] ` <Pine.LNX.4.64.0701041235351.3796@localhost>
     [not found]   ` <20070104175352.GC15109@deprecation.cyrius.com>
     [not found]     ` <Pine.LNX.4.64.0701050934060.5964@trantor.stuart.netsweng.com>
     [not found]       ` <20070105152224.GQ15109@deprecation.cyrius.com>
2007-01-09 17:26         ` Woody Suwalski [this message]
2007-01-20  0:38           ` Stuart Anderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45A3D05F.7060409@xandros.com \
    --to=woodys@xandros.com \
    --cc=anderson@netsweng.com \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk@arm.linux.org.uk \
    --cc=tbm@cyrius.com \
    --subject='Re: PATCH: cyber2010 framebuffer on ARM Netwinder fix...' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).