HFI1: txreq cache and profiling
This commit is contained in:
@@ -759,7 +759,7 @@ static inline int sdma_txadd_page(
|
||||
struct page *page,
|
||||
unsigned long offset,
|
||||
#else
|
||||
void *virt,
|
||||
dma_addr_t paddr,
|
||||
#endif
|
||||
u16 len)
|
||||
{
|
||||
@@ -789,15 +789,7 @@ static inline int sdma_txadd_page(
|
||||
|
||||
hfi1_cdbg(AIOWRITE, "-");
|
||||
#else
|
||||
if (ihk_mc_pt_virt_to_phys(
|
||||
cpu_local_var(current)->vm->address_space->page_table,
|
||||
virt, &addr) < 0) {
|
||||
/* TODO: shall we make this function fail? *
|
||||
* Handle this error. */
|
||||
kprintf("%s: ERROR: virt_to_phys failed - virt = 0x%lx\n",
|
||||
__FUNCTION__, virt);
|
||||
return -EFAULT;
|
||||
}
|
||||
addr = paddr;
|
||||
#endif
|
||||
/*
|
||||
* XXX: It seems that this is the place where the reference to
|
||||
|
||||
@@ -28,7 +28,7 @@ struct profile_event {
|
||||
* [PROFILE_SYSCALL_MAX,PROFILE_OFFLOAD_MAX) - syscall offloads
|
||||
* [PROFILE_OFFLOAD_MAX,PROFILE_EVENT_MAX) - general events
|
||||
*
|
||||
* XXX: Make sure to fill in prof_event_names in profile.c
|
||||
* XXX: Make sure to fill in profile_event_names in profile.c
|
||||
* for each added profiled event.
|
||||
*/
|
||||
enum profile_event_type {
|
||||
@@ -44,6 +44,11 @@ enum profile_event_type {
|
||||
PROFILE_mmap_anon_no_contig_phys,
|
||||
PROFILE_mmap_regular_file,
|
||||
PROFILE_mmap_device_file,
|
||||
PROFILE_sdma_1,
|
||||
PROFILE_sdma_2,
|
||||
PROFILE_sdma_3,
|
||||
PROFILE_sdma_4,
|
||||
PROFILE_sdma_5,
|
||||
PROFILE_EVENT_MAX /* Should be the last event type */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user