On pe, 2016-10-07 at 10:46 +0100, Chris Wilson wrote: > +/* Per-page copy function for the shmem pwrite fastpath. > + * Flushes invalid cachelines before writing to the target if > + * needs_clflush_before is set and flushes out any written cachelines after > + * writing if needs_clflush is set. > + */ > static int > -i915_gem_shmem_pwrite(struct drm_device *dev, > - struct drm_i915_gem_object *obj, > - struct drm_i915_gem_pwrite *args, > - struct drm_file *file) > +shmem_pwrite(struct page *page, int offset, int len, char __user *user_data, > + bool page_do_bit17_swizzling, > + bool needs_clflush_before, > + bool needs_clflush_after) I remember having complaints of two bool arguments in same func. Could these tree be fixed while mangling the code otherwise too? Or as a follow-up. > +static int > +i915_gem_shmem_pwrite(struct drm_i915_gem_object *obj, > + const struct drm_i915_gem_pwrite *args) > +{ > + void __user *user_data; > + u64 remain; > + unsigned int obj_do_bit17_swizzling; > + unsigned int partial_cacheline_write; partial_cacheline_mask might be more descriptive? Reviewed-by: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx