Skip to content

Commit d0b6dc4

Browse files
danvetickle
authored andcommitted
intel-gtt: drop agp scratch page support stuff
intel-gtt.c now handles the scratch page itself, so drop all that was just there to support it. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
1 parent 97ef1bd commit d0b6dc4

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

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

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -124,21 +124,6 @@ static struct _intel_private {
124124
#define IS_IRONLAKE intel_private.driver->is_ironlake
125125

126126
#if USE_PCI_DMA_API
127-
static int intel_agp_map_page(struct page *page, dma_addr_t *ret)
128-
{
129-
*ret = pci_map_page(intel_private.pcidev, page, 0,
130-
PAGE_SIZE, PCI_DMA_BIDIRECTIONAL);
131-
if (pci_dma_mapping_error(intel_private.pcidev, *ret))
132-
return -EINVAL;
133-
return 0;
134-
}
135-
136-
static void intel_agp_unmap_page(struct page *page, dma_addr_t dma)
137-
{
138-
pci_unmap_page(intel_private.pcidev, dma,
139-
PAGE_SIZE, PCI_DMA_BIDIRECTIONAL);
140-
}
141-
142127
static void intel_agp_free_sglist(struct agp_memory *mem)
143128
{
144129
struct sg_table st;
@@ -1447,7 +1432,6 @@ static const struct agp_bridge_driver intel_830_driver = {
14471432
.size_type = FIXED_APER_SIZE,
14481433
.aperture_sizes = intel_fake_agp_sizes,
14491434
.num_aperture_sizes = ARRAY_SIZE(intel_fake_agp_sizes),
1450-
.needs_scratch_page = true,
14511435
.configure = intel_fake_agp_configure,
14521436
.fetch_size = intel_fake_agp_fetch_size,
14531437
.cleanup = intel_gtt_cleanup,
@@ -1474,7 +1458,6 @@ static const struct agp_bridge_driver intel_915_driver = {
14741458
.size_type = FIXED_APER_SIZE,
14751459
.aperture_sizes = intel_fake_agp_sizes,
14761460
.num_aperture_sizes = ARRAY_SIZE(intel_fake_agp_sizes),
1477-
.needs_scratch_page = true,
14781461
.configure = intel_fake_agp_configure,
14791462
.fetch_size = intel_fake_agp_fetch_size,
14801463
.cleanup = intel_gtt_cleanup,
@@ -1495,8 +1478,6 @@ static const struct agp_bridge_driver intel_915_driver = {
14951478
.agp_type_to_mask_type = intel_i830_type_to_mask_type,
14961479
.chipset_flush = intel_i915_chipset_flush,
14971480
#if USE_PCI_DMA_API
1498-
.agp_map_page = intel_agp_map_page,
1499-
.agp_unmap_page = intel_agp_unmap_page,
15001481
.agp_map_memory = intel_agp_map_memory,
15011482
.agp_unmap_memory = intel_agp_unmap_memory,
15021483
#endif
@@ -1507,7 +1488,6 @@ static const struct agp_bridge_driver intel_i965_driver = {
15071488
.size_type = FIXED_APER_SIZE,
15081489
.aperture_sizes = intel_fake_agp_sizes,
15091490
.num_aperture_sizes = ARRAY_SIZE(intel_fake_agp_sizes),
1510-
.needs_scratch_page = true,
15111491
.configure = intel_fake_agp_configure,
15121492
.fetch_size = intel_fake_agp_fetch_size,
15131493
.cleanup = intel_gtt_cleanup,
@@ -1528,8 +1508,6 @@ static const struct agp_bridge_driver intel_i965_driver = {
15281508
.agp_type_to_mask_type = intel_i830_type_to_mask_type,
15291509
.chipset_flush = intel_i915_chipset_flush,
15301510
#if USE_PCI_DMA_API
1531-
.agp_map_page = intel_agp_map_page,
1532-
.agp_unmap_page = intel_agp_unmap_page,
15331511
.agp_map_memory = intel_agp_map_memory,
15341512
.agp_unmap_memory = intel_agp_unmap_memory,
15351513
#endif
@@ -1540,7 +1518,6 @@ static const struct agp_bridge_driver intel_gen6_driver = {
15401518
.size_type = FIXED_APER_SIZE,
15411519
.aperture_sizes = intel_fake_agp_sizes,
15421520
.num_aperture_sizes = ARRAY_SIZE(intel_fake_agp_sizes),
1543-
.needs_scratch_page = true,
15441521
.configure = intel_fake_agp_configure,
15451522
.fetch_size = intel_fake_agp_fetch_size,
15461523
.cleanup = intel_gtt_cleanup,
@@ -1561,8 +1538,6 @@ static const struct agp_bridge_driver intel_gen6_driver = {
15611538
.agp_type_to_mask_type = intel_gen6_type_to_mask_type,
15621539
.chipset_flush = intel_i915_chipset_flush,
15631540
#if USE_PCI_DMA_API
1564-
.agp_map_page = intel_agp_map_page,
1565-
.agp_unmap_page = intel_agp_unmap_page,
15661541
.agp_map_memory = intel_agp_map_memory,
15671542
.agp_unmap_memory = intel_agp_unmap_memory,
15681543
#endif
@@ -1573,7 +1548,6 @@ static const struct agp_bridge_driver intel_g33_driver = {
15731548
.size_type = FIXED_APER_SIZE,
15741549
.aperture_sizes = intel_fake_agp_sizes,
15751550
.num_aperture_sizes = ARRAY_SIZE(intel_fake_agp_sizes),
1576-
.needs_scratch_page = true,
15771551
.configure = intel_fake_agp_configure,
15781552
.fetch_size = intel_fake_agp_fetch_size,
15791553
.cleanup = intel_gtt_cleanup,
@@ -1594,8 +1568,6 @@ static const struct agp_bridge_driver intel_g33_driver = {
15941568
.agp_type_to_mask_type = intel_i830_type_to_mask_type,
15951569
.chipset_flush = intel_i915_chipset_flush,
15961570
#if USE_PCI_DMA_API
1597-
.agp_map_page = intel_agp_map_page,
1598-
.agp_unmap_page = intel_agp_unmap_page,
15991571
.agp_map_memory = intel_agp_map_memory,
16001572
.agp_unmap_memory = intel_agp_unmap_memory,
16011573
#endif

0 commit comments

Comments
 (0)