From xfree86-admin@XFree86.Org  Mon Jun 30 16:30:40 2008
Return-Path: <xfree86-admin@XFree86.Org>
X-Original-To: xfree86@e.kevb.net
Delivered-To: xfree86@e.kevb.net
Received: from public.xfree86.org (xf86a.isc.org [204.152.186.177])
	by e.kevb.net (Postfix) with ESMTP id 5E2191040DA3
	for <xfree86@e.kevb.net>; Mon, 30 Jun 2008 16:30:40 -0400 (EDT)
Received: from public.XFree86.Org (localhost [127.0.0.1])
	by public.xfree86.org (Postfix) with ESMTP
	id 937F11DB2C; Mon, 30 Jun 2008 13:30:18 -0700 (PDT)
Received: from mail3.srv.ualberta.ca (smtp.srv.ualberta.ca [129.128.5.19])
	by xfree86.org (8.13.6/8.13.6) with ESMTP id m5UKRZ1o073688
	for <xfree86@xfree86.org>; Mon, 30 Jun 2008 13:27:36 -0700 (PDT)
	(envelope-from tsi@ualberta.ca)
Received: from cluij.ucs.ualberta.ca (cluij.ucs.ualberta.ca [129.128.8.198])
	by mail3.srv.ualberta.ca (8.13.8/8.13.8) with ESMTP id m5UKRTGs021324
	(version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT);
	Mon, 30 Jun 2008 14:27:32 -0600 (MDT)
From: Marc Aurele La France <tsi@ualberta.ca>
To: vishnuvaradan vishnuvaradan <vishnuvaradanr@gmail.com>
Cc: xfree86@xfree86.org
Subject: Re: [XFree86] Debug statements inside xfree video driver ??
In-Reply-To: <440e0a9b0806300920n50852219x47b437b8fa536ee4@mail.gmail.com>
Message-ID: <alpine.WNT.1.10.0806301425080.164@cluij.ucs.ualberta.ca>
References: <440e0a9b0806290821x6650d04lb6299e075a0fedd2@mail.gmail.com> <alpine.WNT.1.10.0806291022490.336@tsi> <440e0a9b0806300920n50852219x47b437b8fa536ee4@mail.gmail.com>
User-Agent: Alpine 1.10 (WNT 962 2008-03-14)
X-X-Sender: tsi@maildrop.srv.ualberta.ca
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Reply-To: xfree86@xfree86.org
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on public.xfree86.org
X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63
X-Spam-Level: 
Sender: xfree86-admin@XFree86.Org
Errors-To: xfree86-admin@XFree86.Org
X-BeenThere: xfree86@XFree86.Org
X-Mailman-Version: 2.0.9
Precedence: bulk
List-Unsubscribe: <http://XFree86.Org/mailman/listinfo/xfree86>,
	<mailto:xfree86-request@XFree86.Org?subject=unsubscribe>
List-Id: XFree86 Debugging Issues <xfree86.XFree86.Org>
List-Post: <mailto:xfree86@XFree86.Org>
List-Help: <mailto:xfree86-request@XFree86.Org?subject=help>
List-Subscribe: <http://XFree86.Org/mailman/listinfo/xfree86>,
	<mailto:xfree86-request@XFree86.Org?subject=subscribe>
List-Archive: <http://XFree86.Org/mailman/private/xfree86/>
Date: Mon, 30 Jun 2008 14:27:29 -0600 (Mountain Daylight Time)

On Mon, 30 Jun 2008, vishnuvaradan vishnuvaradan wrote:
> On Sun, Jun 29, 2008 at 9:54 PM, Marc Aurele La France <tsi@ualberta.ca>
> wrote:
>> On Sun, 29 Jun 2008, vishnuvaradan vishnuvaradan wrote:
>>  Iam trying to integrate the xfree video driver for my PMC graphics card ..

>> while configuring and running the driver access some illegal memory area
>>> and
>>> iam geting oops kernel access bad area..

>>  I need to debug the video driver.. ( reg its IOBASE,mem base etc)

>> I added printf inside the driver but it is not coming in var/log

>>  Please give idea how to add some debug statements(with variable values)
>>> inside the  video  driver such that it will come in var/log ...???

>> The server closes stdout as part of its initialisation.  You could use
>> stderr instead, but it is preferable to use the xf86Msg() family of
>> functions. These are documented in section 18.1 of the DESIGN document.

>>     Still, I could not find where my video driver access bad area.
>    As said earlier iam using the PMC graphics card along with a base board.
>    while integrating the frame buffer driver for the graphics,  based on
> our architecture
>    FOR I/o READ/WRITE ACCESS I should use as
>    outb(val,port) as outb(val, 0xF2000000+port)
>    inb(val,port)   as inb(val, 0xF2000000+ port)

>    I have modified the direct I/O accessing in the xfree in my video driver
> ...
>    Shall i need to modify the same in compiler.h inside
> programs/Xserver/hw/xfree86/common ??

>    I suspect the problem is closely related to I/o issue only....

>    I have attached the log file and the serial port messages for ur
> reference  ..

>   Please shed me some light to solve the issue..

For this architecture, compiler.h offsets all PCI I/O by ioBase, which in 
turn is set by xf86EnableIO() in os-support/linux/lnx_video.c

Marc.

+----------------------------------+----------------------------------+
|  Marc Aurele La France           |  work:   1-780-492-9310          |
|  Academic Information and        |  fax:    1-780-492-1729          |
|    Communications Technologies   |  email:  tsi@ualberta.ca         |
|  352 General Services Building   +----------------------------------+
|  University of Alberta           |                                  |
|  Edmonton, Alberta               |    Standard disclaimers apply    |
|  T6G 2H1                         |                                  |
|  CANADA                          |                                  |
+----------------------------------+----------------------------------+
XFree86 developer and VP.  ATI driver and X server internals.
_______________________________________________
XFree86 mailing list
XFree86@XFree86.Org
http://XFree86.Org/mailman/listinfo/xfree86
