linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Claudio Ciccani <klan@users.sf.net>
To: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: radeonfb and newer radeons (Patch)
Date: Sun, 23 Jul 2006 11:59:13 +0200	[thread overview]
Message-ID: <44C34871.6080201@users.sf.net> (raw)
In-Reply-To: <Pine.LNX.4.62.0607221919040.23027@pademelon.sonytel.be>

Geert Uytterhoeven wrote:
> On Sat, 22 Jul 2006, Claudio Ciccani wrote:
>> the attached patch fixes some issues with R300 based chipsets and
>> adds support for a number of new devices (mostly X800/X850).
>> It also enlarges the mmio size to 0x8000 because many 3d registers
>> of the R300 are located after offset 0x4000 and we need them for
>> DirectFB (DRI needs too).
>> The patch applies to linux-2.6.18-rc2, hope there have not been changes
>> in the meanwhile.
> 
>> --- linux-2.6.18-rc2/drivers/video/aty/radeon_accel.c	2006-01-03 04:21:10.000000000 +0100
>> +++ /usr/src/linux-2.6.18-rc2/drivers/video/aty/radeon_accel.c	2006-07-22 12:49:43.000000000 +0200
>> @@ -203,9 +203,7 @@
>>  	host_path_cntl = INREG(HOST_PATH_CNTL);
>>  	rbbm_soft_reset = INREG(RBBM_SOFT_RESET);
>>  
>> -	if (rinfo->family == CHIP_FAMILY_R300 ||
>> -	    rinfo->family == CHIP_FAMILY_R350 ||
>> -	    rinfo->family == CHIP_FAMILY_RV350) {
>> +	if (IS_R300_VARIANT(rinfo)) {
>>  		u32 tmp;
>>  
>>  		OUTREG(RBBM_SOFT_RESET, (rbbm_soft_reset |
>> @@ -241,9 +239,7 @@
>>  	INREG(HOST_PATH_CNTL);
>>  	OUTREG(HOST_PATH_CNTL, host_path_cntl);
>>  
>> -	if (rinfo->family != CHIP_FAMILY_R300 ||
>                           ^^                  ^^
>> -	    rinfo->family != CHIP_FAMILY_R350 ||
>                           ^^                  ^^
>> -	    rinfo->family != CHIP_FAMILY_RV350)
>                           ^^
>> +	if (IS_R300_VARIANT(rinfo))
>             ^^
> These trigger a warning in my head...

If you have a look to the code from xorg, you will see this is right.
Indeed the previous code was REALLY wrong, because the condition returns
always true (while it should return true for R300 based chipsets).



-- 
Regards,
     Claudio Ciccani

klan@users.sf.net
http://directfb.org
http://sf.net/projects/php-directfb

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

      reply	other threads:[~2006-07-23  9:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-22 15:04 radeonfb and newer radeons (Patch) Claudio Ciccani
2006-07-22 17:20 ` Geert Uytterhoeven
2006-07-23  9:59   ` Claudio Ciccani [this message]

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=44C34871.6080201@users.sf.net \
    --to=klan@users.sf.net \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).