Skip to content

Commit 5b2eef9

Browse files
committed
Merge branch 'drm-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6
* 'drm-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (390 commits) drm/radeon/kms: disable underscan by default drm/radeon/kms: only enable hdmi features if the monitor supports audio drm: Restore the old_fb upon modeset failure drm/nouveau: fix hwmon device binding radeon: consolidate asic-specific function decls for pre-r600 vga_switcheroo: comparing too few characters in strncmp() drm/radeon/kms: add NI pci ids drm/radeon/kms: don't enable pcie gen2 on NI yet drm/radeon/kms: add radeon_asic struct for NI asics drm/radeon/kms/ni: load default sclk/mclk/vddc at pm init drm/radeon/kms: add ucode loader for NI drm/radeon/kms: add support for DCE5 display LUTs drm/radeon/kms: add ni_reg.h drm/radeon/kms: add bo blit support for NI drm/radeon/kms: always use writeback/events for fences on NI drm/radeon/kms: adjust default clock/vddc tracking for pm on DCE5 drm/radeon/kms: add backend map workaround for barts drm/radeon/kms: fill gpu init for NI asics drm/radeon/kms: add disabled vbios accessor for NI asics drm/radeon/kms: handle NI thermal controller ...
2 parents 8adbf8d + 56bec7c commit 5b2eef9

187 files changed

Lines changed: 24886 additions & 10827 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎drivers/char/agp/agp.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ struct agp_bridge_driver {
120120
void (*agp_destroy_page)(struct page *, int flags);
121121
void (*agp_destroy_pages)(struct agp_memory *);
122122
int (*agp_type_to_mask_type) (struct agp_bridge_data *, int);
123-
void (*chipset_flush)(struct agp_bridge_data *);
124123
};
125124

126125
struct agp_bridge_data {

‎drivers/char/agp/compat_ioctl.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ long compat_agp_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
276276
break;
277277

278278
case AGPIOC_CHIPSET_FLUSH32:
279-
ret_val = agpioc_chipset_flush_wrap(curr_priv);
280279
break;
281280
}
282281

‎drivers/char/agp/compat_ioctl.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,5 @@ void agp_free_memory_wrap(struct agp_memory *memory);
102102
struct agp_memory *agp_allocate_memory_wrap(size_t pg_count, u32 type);
103103
struct agp_memory *agp_find_mem_by_key(int key);
104104
struct agp_client *agp_find_client_by_pid(pid_t id);
105-
int agpioc_chipset_flush_wrap(struct agp_file_private *priv);
106105

107106
#endif /* _AGP_COMPAT_H */

‎drivers/char/agp/frontend.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -957,13 +957,6 @@ static int agpioc_unbind_wrap(struct agp_file_private *priv, void __user *arg)
957957
return agp_unbind_memory(memory);
958958
}
959959

960-
int agpioc_chipset_flush_wrap(struct agp_file_private *priv)
961-
{
962-
DBG("");
963-
agp_flush_chipset(agp_bridge);
964-
return 0;
965-
}
966-
967960
static long agp_ioctl(struct file *file,
968961
unsigned int cmd, unsigned long arg)
969962
{
@@ -1039,7 +1032,6 @@ static long agp_ioctl(struct file *file,
10391032
break;
10401033

10411034
case AGPIOC_CHIPSET_FLUSH:
1042-
ret_val = agpioc_chipset_flush_wrap(curr_priv);
10431035
break;
10441036
}
10451037

‎drivers/char/agp/generic.c‎

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,6 @@ static int agp_get_key(void)
8181
return -1;
8282
}
8383

84-
void agp_flush_chipset(struct agp_bridge_data *bridge)
85-
{
86-
if (bridge->driver->chipset_flush)
87-
bridge->driver->chipset_flush(bridge);
88-
}
89-
EXPORT_SYMBOL(agp_flush_chipset);
90-
9184
/*
9285
* Use kmalloc if possible for the page list. Otherwise fall back to
9386
* vmalloc. This speeds things up and also saves memory for small AGP
@@ -487,26 +480,6 @@ int agp_unbind_memory(struct agp_memory *curr)
487480
}
488481
EXPORT_SYMBOL(agp_unbind_memory);
489482

490-
/**
491-
* agp_rebind_emmory - Rewrite the entire GATT, useful on resume
492-
*/
493-
int agp_rebind_memory(void)
494-
{
495-
struct agp_memory *curr;
496-
int ret_val = 0;
497-
498-
spin_lock(&agp_bridge->mapped_lock);
499-
list_for_each_entry(curr, &agp_bridge->mapped_list, mapped_list) {
500-
ret_val = curr->bridge->driver->insert_memory(curr,
501-
curr->pg_start,
502-
curr->type);
503-
if (ret_val != 0)
504-
break;
505-
}
506-
spin_unlock(&agp_bridge->mapped_lock);
507-
return ret_val;
508-
}
509-
EXPORT_SYMBOL(agp_rebind_memory);
510483

511484
/* End - Routines for handling swapping of agp_memory into the GATT */
512485

‎drivers/char/agp/intel-agp.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -828,14 +828,9 @@ static void __devexit agp_intel_remove(struct pci_dev *pdev)
828828
static int agp_intel_resume(struct pci_dev *pdev)
829829
{
830830
struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
831-
int ret_val;
832831

833832
bridge->driver->configure();
834833

835-
ret_val = agp_rebind_memory();
836-
if (ret_val != 0)
837-
return ret_val;
838-
839834
return 0;
840835
}
841836
#endif

‎drivers/char/agp/intel-agp.h‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,24 @@
7575
#define I810_GMS_DISABLE 0x00000000
7676
#define I810_PGETBL_CTL 0x2020
7777
#define I810_PGETBL_ENABLED 0x00000001
78+
/* Note: PGETBL_CTL2 has a different offset on G33. */
79+
#define I965_PGETBL_CTL2 0x20c4
7880
#define I965_PGETBL_SIZE_MASK 0x0000000e
7981
#define I965_PGETBL_SIZE_512KB (0 << 1)
8082
#define I965_PGETBL_SIZE_256KB (1 << 1)
8183
#define I965_PGETBL_SIZE_128KB (2 << 1)
8284
#define I965_PGETBL_SIZE_1MB (3 << 1)
8385
#define I965_PGETBL_SIZE_2MB (4 << 1)
8486
#define I965_PGETBL_SIZE_1_5MB (5 << 1)
85-
#define G33_PGETBL_SIZE_MASK (3 << 8)
86-
#define G33_PGETBL_SIZE_1M (1 << 8)
87-
#define G33_PGETBL_SIZE_2M (2 << 8)
87+
#define G33_GMCH_SIZE_MASK (3 << 8)
88+
#define G33_GMCH_SIZE_1M (1 << 8)
89+
#define G33_GMCH_SIZE_2M (2 << 8)
90+
#define G4x_GMCH_SIZE_MASK (0xf << 8)
91+
#define G4x_GMCH_SIZE_1M (0x1 << 8)
92+
#define G4x_GMCH_SIZE_2M (0x3 << 8)
93+
#define G4x_GMCH_SIZE_VT_1M (0x9 << 8)
94+
#define G4x_GMCH_SIZE_VT_1_5M (0xa << 8)
95+
#define G4x_GMCH_SIZE_VT_2M (0xc << 8)
8896

8997
#define I810_DRAM_CTL 0x3000
9098
#define I810_DRAM_ROW_0 0x00000001

0 commit comments

Comments
 (0)