From patchwork Mon Jan 17 04:30:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Miller X-Patchwork-Id: 482931 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0H4TaCk013365 for ; Mon, 17 Jan 2011 04:29:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752065Ab1AQE3g (ORCPT ); Sun, 16 Jan 2011 23:29:36 -0500 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:37821 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752015Ab1AQE3f (ORCPT ); Sun, 16 Jan 2011 23:29:35 -0500 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id 30AE424C087; Sun, 16 Jan 2011 20:30:09 -0800 (PST) Date: Sun, 16 Jan 2011 20:30:09 -0800 (PST) Message-Id: <20110116.203009.28806331.davem@davemloft.net> To: alex.buell@munted.org.uk Cc: linux-fbdev@vger.kernel.org, sparclinux@vger.kernel.org Subject: Re: [PATCH 0/22] Make SVGA oriented FBs work on multi-domain PCI From: David Miller In-Reply-To: <1294875782.13868.20.camel@lithium> References: <20110111.202719.221588364.davem@davemloft.net> <20110111.205103.266092678.davem@davemloft.net> <1294875782.13868.20.camel@lithium> X-Mailer: Mew version 6.3 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 17 Jan 2011 04:29:54 +0000 (UTC) diff --git a/drivers/video/s3fb.c b/drivers/video/s3fb.c index 4b8f215..00152f6 100644 --- a/drivers/video/s3fb.c +++ b/drivers/video/s3fb.c @@ -1053,6 +1053,13 @@ static int __devinit s3_pci_probe(struct pci_dev *dev, const struct pci_device_i vga_wcrt(par->state.vgabase, 0x38, cr38); vga_wcrt(par->state.vgabase, 0x39, cr39); + /* Ensure that the card will respond to legacy VGA memory + * accesses. + */ + regval = vga_r(par->state.vgabase, VGA_MIS_R); + regval |= VGA_MIS_ENB_MEM_ACCESS; + vga_w(par->state.vgabase, VGA_MIS_W, regval); + strcpy(info->fix.id, s3_names [par->chip]); info->fix.mmio_start = 0; info->fix.mmio_len = 0;