Skip to content

Commit f050a8a

Browse files
danvetickle
authored andcommitted
agp: kill agp_flush_chipset and corresponding ioctl
The intel drm calls the chipset functions now directly. Userspace never called the corresponding ioctl, hence it can be killed, too. Cc: Dave Airlie <airlied@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
1 parent 4af72e2 commit f050a8a

7 files changed

Lines changed: 0 additions & 25 deletions

File tree

‎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 & 7 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

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -984,11 +984,6 @@ static int intel_fake_agp_remove_entries(struct agp_memory *mem,
984984
return 0;
985985
}
986986

987-
static void intel_fake_agp_chipset_flush(struct agp_bridge_data *bridge)
988-
{
989-
intel_private.driver->chipset_flush();
990-
}
991-
992987
static struct agp_memory *intel_fake_agp_alloc_by_type(size_t pg_count,
993988
int type)
994989
{
@@ -1222,7 +1217,6 @@ static const struct agp_bridge_driver intel_fake_agp_driver = {
12221217
.agp_alloc_pages = agp_generic_alloc_pages,
12231218
.agp_destroy_page = agp_generic_destroy_page,
12241219
.agp_destroy_pages = agp_generic_destroy_pages,
1225-
.chipset_flush = intel_fake_agp_chipset_flush,
12261220
};
12271221

12281222
static const struct intel_gtt_driver i81x_gtt_driver = {

‎include/linux/agp_backend.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,5 @@ extern int agp_rebind_memory(void);
106106
extern void agp_enable(struct agp_bridge_data *, u32);
107107
extern struct agp_bridge_data *agp_backend_acquire(struct pci_dev *);
108108
extern void agp_backend_release(struct agp_bridge_data *);
109-
extern void agp_flush_chipset(struct agp_bridge_data *);
110109

111110
#endif /* _AGP_BACKEND_H */

0 commit comments

Comments
 (0)