addition to mach64.diff
Hello James,
here two additions from me,
first, one more define in include/video/mach64.h
second, improvements in code, tested with mach64 Mobility on my ARMADA.
P.S. Changes proposed by BenH are not here, wait_for_idle on the end of each accelerated function, causes a freeze by me ;-(
include/video/mach64.h +1 -0
@@ -669,6 +669,7 @@/* Mach64 engine bit constants - these are typically ORed together */ /* BUS_CNTL register constants */ +#define BUS_APER_REG_DIS 0x00000010#define BUS_FIFO_ERR_ACK 0x00200000#define BUS_HOST_ERR_ACK 0x00800000
drivers/video/aty/atyfb.h +1 -0
@@ -168,6 +168,7 @@ struct atyfb_par {#define M64F_LT_SLEEP 0x00040000#define M64F_XL_DLL 0x00080000#define M64F_MFB_FORCE_4 0x00100000 +#define M64F_NO_HW_TRIPLE 0x00200000/* * Register access
drivers/video/aty/atyfb_base.c +80 -99
345 lines not on this page · raw message
drivers/video/aty/mach64_accel.c +21 -21
90 lines not on this page · raw message
drivers/video/aty/mach64_ct.c +5 -6
@@ -477,18 +477,17 @@ int __init aty_init_pll_ct(const struct pll->ct.dsp_loop_latency = (dsp_config &DSP_LOOP_LATENCY ) >>16 ;#if 0 FIXME: is it relevant for us? - if ((!dsp_on_off && (Chip < ATI_CHIP_264GTPRO)) || + if ((!dsp_on_off && !M64_HAS(RESET_3D)) || ((dsp_on_off == vga_dsp_on_off) && (!dsp_config || !((dsp_config ^ vga_dsp_config) & DSP_XCLKS_PER_QW)))) { - if (ATIDivide(GetBits(vga_dsp_on_off, VGA_DSP_OFF), - GetBits(vga_dsp_config, VGA_DSP_XCLKS_PER_QW), 5, 1) > 24) + vga_dsp_on_off &=VGA_DSP_OFF ; + vga_dsp_config &=VGA_DSP_XCLKS_PER_QW ; +if (ATIDivide (vga_dsp_on_off, vga_dsp_config,5 ,1 ) >24 ) pll->ct.fifo_size =32 ;else pll->ct.fifo_size =24 ; }#endif - /* end BIOS */ -/* Exit if the user does not want us to tamper with the clock rates of her chip. */ if (par->mclk_per ==0 ) {
@@ -549,7 +548,7 @@ int __init aty_init_pll_ct(const struct* The chip clock is not equal to the memory clock. * Therefore we will use sclk to clock the chip. */ - pll->ct.pll_gen_cntl |= (6 <<4 );/* mclk == sclk*/ + pll->ct.pll_gen_cntl |= (6 <<4 );/* mclk == sclk */ q = par->ref_clk_per * pll->ct.pll_ref_div *4 / par->mclk_per;if (q <16 *8 || q >255 *8 ) {
Quoted 10 lines · Alexander Kern
Hello James,
here two additions from me,
first, one more define in
include/video/mach64.hsecond, improvements in code, tested with mach64 Mobility on my ARMADA.
P.S. Changes proposed by BenH are not here,wait_for_idleon the end of each accelerated function, causes a freeze by me ;-(
Depends where you put it, you mustn't put it in the call done just before feeding the fifo in imageblt of course, I got bitten by that same mistake at first.
Note that we really shouldn't have to do that anyway. There is something wrong causing the problem, though I haven't figured out what at this point.
Ben
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
I tested your patch. Works fine for me. I will included it in BK.
Quoted 11 lines · Alexander Kern
Hello James,
here two additions from me,
first, one more define in
include/video/mach64.hsecond, improvements in code, tested with mach64 Mobility on my ARMADA.
P.S. Changes proposed by BenH are not here,wait_for_idleon the end of each accelerated function, causes a freeze by me ;-(
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click