The patch titled intel-agp: Fix i830 mask variable that changed with G33 support has been added to the -mm tree. Its filename is intel-agp-fix-i830-mask-variable-that-changed-with-g33-support.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: intel-agp: Fix i830 mask variable that changed with G33 support From: Dave Airlie <airlied@xxxxxxxx> The mask on i830 should be 0x70 always, later chips 0xF0 should be okay. Signed-off-by: Dave Airlie <airlied@xxxxxxxx> Cc: Wang Zhenyu <zhenyu.z.wang@xxxxxxxxx> Cc: Michael Haas <laga@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/char/agp/agp.h | 3 ++- drivers/char/agp/intel-agp.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff -puN drivers/char/agp/agp.h~intel-agp-fix-i830-mask-variable-that-changed-with-g33-support drivers/char/agp/agp.h --- a/drivers/char/agp/agp.h~intel-agp-fix-i830-mask-variable-that-changed-with-g33-support +++ a/drivers/char/agp/agp.h @@ -176,7 +176,7 @@ struct agp_bridge_data { #define I830_GMCH_MEM_MASK 0x1 #define I830_GMCH_MEM_64M 0x1 #define I830_GMCH_MEM_128M 0 -#define I830_GMCH_GMS_MASK 0xF0 +#define I830_GMCH_GMS_MASK 0x70 #define I830_GMCH_GMS_DISABLED 0x00 #define I830_GMCH_GMS_LOCAL 0x10 #define I830_GMCH_GMS_STOLEN_512 0x20 @@ -190,6 +190,7 @@ struct agp_bridge_data { #define INTEL_I830_ERRSTS 0x92 /* Intel 855GM/852GM registers */ +#define I855_GMCH_GMS_MASK 0xF0 #define I855_GMCH_GMS_STOLEN_0M 0x0 #define I855_GMCH_GMS_STOLEN_1M (0x1 << 4) #define I855_GMCH_GMS_STOLEN_4M (0x2 << 4) diff -puN drivers/char/agp/intel-agp.c~intel-agp-fix-i830-mask-variable-that-changed-with-g33-support drivers/char/agp/intel-agp.c --- a/drivers/char/agp/intel-agp.c~intel-agp-fix-i830-mask-variable-that-changed-with-g33-support +++ a/drivers/char/agp/intel-agp.c @@ -511,7 +511,7 @@ static void intel_i830_init_gtt_entries( */ if (IS_G33) size = 0; - switch (gmch_ctrl & I830_GMCH_GMS_MASK) { + switch (gmch_ctrl & I855_GMCH_GMS_MASK) { case I855_GMCH_GMS_STOLEN_1M: gtt_entries = MB(1) - KB(size); break; _ Patches currently in -mm which might be from airlied@xxxxxxxx are intel_agp-fix-stolen-mem-range-on-g33.patch intel_agp-fix-gtt-map-size-on-g33.patch intel-agp-fix-i830-mask-variable-that-changed-with-g33-support.patch working-3d-dri-intel-agpko-resume-for-i815-chip.patch fix-use-after-free--double-free-bug-in-amd_create_gatt_pages--amd_free_gatt_pages.patch git-drm.patch drm-via-invalid-device-ids-removal.patch convert-ill-defined-log2-to-ilog2.patch use-helpers-to-obtain-task-pid-in-printks-drm-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html