Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249559
b: refs/heads/master
c: 4b599df
h: refs/heads/master
i:
  249557: 61b3f2c
  249555: 9ba44ef
  249551: 7e18c28
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 11, 2011
1 parent 27f2646 commit 8d7e717
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 72 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 98d796905b5515af30198796088599993530243d
refs/heads/master: 4b599df0ca8c8d4d8530fe2ecb08dd6af56e2c7b
71 changes: 0 additions & 71 deletions trunk/drivers/staging/hv/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,37 +42,6 @@ static int create_gpadl_header(
static void dump_vmbus_channel(struct vmbus_channel *channel);
static void vmbus_setevent(struct vmbus_channel *channel);


#if 0
static void DumpMonitorPage(struct hv_monitor_page *MonitorPage)
{
int i = 0;
int j = 0;

DPRINT_DBG(VMBUS, "monitorPage - %p, trigger state - %d",
MonitorPage, MonitorPage->trigger_state);

for (i = 0; i < 4; i++)
DPRINT_DBG(VMBUS, "trigger group (%d) - %llx", i,
MonitorPage->trigger_group[i].as_uint64);

for (i = 0; i < 4; i++) {
for (j = 0; j < 32; j++) {
DPRINT_DBG(VMBUS, "latency (%d)(%d) - %llx", i, j,
MonitorPage->latency[i][j]);
}
}
for (i = 0; i < 4; i++) {
for (j = 0; j < 32; j++) {
DPRINT_DBG(VMBUS, "param-conn id (%d)(%d) - %d", i, j,
MonitorPage->parameter[i][j].connectionid.asu32);
DPRINT_DBG(VMBUS, "param-flag (%d)(%d) - %d", i, j,
MonitorPage->parameter[i][j].flag_number);
}
}
}
#endif

/*
* vmbus_setevent- Trigger an event notification on the specified
* channel.
Expand All @@ -99,28 +68,6 @@ static void vmbus_setevent(struct vmbus_channel *channel)
}
}

#if 0
static void VmbusChannelClearEvent(struct vmbus_channel *channel)
{
struct hv_monitor_page *monitorPage;

if (Channel->offermsg.monitor_allocated) {
/* Each u32 represents 32 channels */
sync_clear_bit(Channel->offermsg.child_relid & 31,
(unsigned long *)vmbus_connection.send_int_page +
(Channel->offermsg.child_relid >> 5));

monitorPage = (struct hv_monitor_page *)
vmbus_connection.monitor_pages;
monitorPage++; /* Get the child to parent monitor page */

sync_clear_bit(Channel->monitor_bit,
(unsigned long *)&monitorPage->trigger_group
[Channel->monitor_grp].Pending);
}
}

#endif
/*
* vmbus_get_debug_info -Retrieve various channel debug info
*/
Expand Down Expand Up @@ -179,10 +126,6 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size,
unsigned long flags;
int ret, t, err = 0;

/* Aligned to page size */
/* ASSERT(!(SendRingBufferSize & (PAGE_SIZE - 1))); */
/* ASSERT(!(RecvRingBufferSize & (PAGE_SIZE - 1))); */

newchannel->onchannel_callback = onchannelcallback;
newchannel->channel_callback_context = context;

Expand All @@ -193,7 +136,6 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size,
if (!out)
return -ENOMEM;

/* ASSERT(((unsigned long)out & (PAGE_SIZE-1)) == 0); */

in = (void *)((unsigned long)out + send_ringbuffer_size);

Expand Down Expand Up @@ -361,9 +303,6 @@ static int create_gpadl_header(void *kbuffer, u32 size,

int pfnsum, pfncount, pfnleft, pfncurr, pfnsize;

/* ASSERT((kbuffer & (PAGE_SIZE-1)) == 0); */
/* ASSERT((Size & (PAGE_SIZE-1)) == 0); */

pagecount = size >> PAGE_SHIFT;
pfn = virt_to_phys(kbuffer) >> PAGE_SHIFT;

Expand Down Expand Up @@ -695,8 +634,6 @@ int vmbus_sendpacket(struct vmbus_channel *channel, const void *buffer,

dump_vmbus_channel(channel);

/* ASSERT((packetLenAligned - packetLen) < sizeof(u64)); */

/* Setup the descriptor */
desc.type = type; /* VmbusPacketTypeDataInBand; */
desc.flags = flags; /* VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED; */
Expand Down Expand Up @@ -754,8 +691,6 @@ int vmbus_sendpacket_pagebuffer(struct vmbus_channel *channel,
packetlen = descsize + bufferlen;
packetlen_aligned = ALIGN(packetlen, sizeof(u64));

/* ASSERT((packetLenAligned - packetLen) < sizeof(u64)); */

/* Setup the descriptor */
desc.type = VM_PKT_DATA_USING_GPA_DIRECT;
desc.flags = VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED;
Expand Down Expand Up @@ -819,7 +754,6 @@ int vmbus_sendpacket_multipagebuffer(struct vmbus_channel *channel,
packetlen = descsize + bufferlen;
packetlen_aligned = ALIGN(packetlen, sizeof(u64));

/* ASSERT((packetLenAligned - packetLen) < sizeof(u64)); */

/* Setup the descriptor */
desc.type = VM_PKT_DATA_USING_GPA_DIRECT;
Expand Down Expand Up @@ -885,11 +819,8 @@ int vmbus_recvpacket(struct vmbus_channel *channel, void *buffer,
return 0;
}

/* VmbusChannelClearEvent(Channel); */

packetlen = desc.len8 << 3;
userlen = packetlen - (desc.offset8 << 3);
/* ASSERT(userLen > 0); */

*buffer_actual_len = userlen;

Expand Down Expand Up @@ -938,7 +869,6 @@ int vmbus_recvpacket_raw(struct vmbus_channel *channel, void *buffer,
return 0;
}

/* VmbusChannelClearEvent(Channel); */

packetlen = desc.len8 << 3;
userlen = packetlen - (desc.offset8 << 3);
Expand Down Expand Up @@ -970,7 +900,6 @@ EXPORT_SYMBOL_GPL(vmbus_recvpacket_raw);
void vmbus_onchannel_event(struct vmbus_channel *channel)
{
dump_vmbus_channel(channel);
/* ASSERT(Channel->OnChannelCallback); */

channel->onchannel_callback(channel->channel_callback_context);

Expand Down

0 comments on commit 8d7e717

Please sign in to comment.