Messages in this thread | | | Date | Mon, 17 Nov 2014 17:53:48 +0100 | From | Joerg Roedel <> | Subject | Re: [PATCH 1/2] mm: export find_extend_vma and handle_mm_fault for driver use |
| |
On Wed, Nov 12, 2014 at 02:07:41PM -0800, Jesse Barnes wrote: > I wonder if we need a new "device_task_struct" or > "coprocessor_task_struct" or something to wrap some simple stuff on > non-CPU devices. They could be sub-classed by drivers that needed > additional driver specific data.
Yes, I think something like a device_task_struct may be needed at some point. It could be used in some generic code for task scheduling and management on the devices too. The KFD driver already implements a scheduler and stuff, maybe some of this code can be generalized to be useable by other drivers and a common userspace interface (at least to some degree).
Joerg
| |