From 094f02c568fb2096a93b30adf291f82e0b87bbce Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Wed, 5 Jan 2005 14:34:12 +0000 Subject: Fixed the DMA buffer age test. Should fix occasional "soft" lockups. Bumped patch level and driver date. --- shared-core/savage_drv.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shared-core/savage_drv.h b/shared-core/savage_drv.h index f5d732af..1ed6ee9e 100644 --- a/shared-core/savage_drv.h +++ b/shared-core/savage_drv.h @@ -30,11 +30,11 @@ #define DRIVER_NAME "savage" #define DRIVER_DESC "Savage3D/MX/IX, Savage4, SuperSavage, Twister, ProSavage[DDR]" -#define DRIVER_DATE "20050101" +#define DRIVER_DATE "20050105" #define DRIVER_MAJOR 2 #define DRIVER_MINOR 0 -#define DRIVER_PATCHLEVEL 0 +#define DRIVER_PATCHLEVEL 1 typedef struct drm_savage_age { uint16_t event; @@ -456,7 +456,7 @@ extern void savage_reclaim_buffers(drm_device_t *dev, DRMFILE filp); #define TEST_AGE( age, e, w ) \ ( (age)->wrap+1 < (w) || \ - ( (age)->wrap+1 == (w) && (e) < 0x7fff ) || \ - (age)->event < (uint16_t)(e) ) + ( (age)->wrap+1 == (w) && (e) <= dev_priv->event_counter ) || \ + (age)->event <= (e) ) #endif /* __SAVAGE_DRV_H__ */ -- cgit v1.2.3