usb-core: disable xhci

Code still does not support xhci, disable creation of xhci node, as it
was causing crash in the quiesce path.

Also check if ops pointer is verified before accessing function
pointers during usb_hcd_exit.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
boot: include other aliases

Currently we only boot from " disk" and " cdrom", we can do better by
iterating through the diskN/cdromN aliases created during disk probing.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Avoid veth read/write calls with zero length buffer

This avoids unnecessary libveth-read/write calls in cimod_check_and_install

Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com>
usb-xhci: add xhci support

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
usb-xhci: add xhci host controller support

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
scsi: make-media-alias fix

* disk alias names are not correct
* also drop stack variable in case we overflow max-alias

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
block 0 address in the allocator

PCI window bars sometimes returns 0 as the a start address. This will
be used by the allocator. Devices or Software can take it as null
address.

Mark 0 address as always allocated during initialization.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
boot: add net in default boot order

So if there is no boot order from qemu, nvram, the default
boot order will be to try from "disk" aliases, "cdrom" aliases
and lastly "net" aliases

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
usb-ohci: rewrite done_head processing code

The routine had got complicated and source of few bugs while using in
pci-passthru and js2x

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Fix dprintf macros at various points

Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com>
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Increase veth receive queue size

Since SLOF is poll based, in a high network traffic zone desired packet might be missed
during receiving. Hence increase the receive queue size.

Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com>
Increase virtio-net receive queue size

Since SLOF is poll based, in a high network traffic zone desired packet might be missed
during receiving. Hence increase the receive queue size.

Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com>
Maintain single global packet buffer for tftp

Since they were stack variable, chances are that the buffer pointer is invalid
during data transfer

Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com>
e1000: fix SLOF_dma_map_out arguments

Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com>
ipv4: fix frame overwriting following arp_send_request

Sometimes before ARP request frame is written to the line by qemu, the data gets overwritten
by next outgoing frame (typically tftp request) since both use the same ARP table index for
the frame buffer. This is fixed by copying the next outgoing packet data to a different
buffer instead of writing it to same ARP table index's frame buffer.

Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com>
Add ipv6 support in net-snk

This patch adds support for booting from a IPv6 network. It gets the boot information
(tftp server, boot file name) from DHCPv6 server or can be specified manually using
obp-tftp arguments. To boot from a IPv6 network, type "boot net:ipv6" from the SLOF
prompt. To specify ipaddresses manually, type "boot net:ipv6,<si6addr>,<filename>,<ci6addr>"
from the SLOF prompt.

This patch is based on the IPv6 code written by the former SLOF team.

Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com>
usb-ohci: fix warnings

usb-ohci.c: In function ‘ohci_process_done_head’:
usb-ohci.c:458:4: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘struct ohci_td *’ [-Wformat]
usb-ohci.c:417:20: warning: variable ‘start_frame’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Enable IPv6 support in dns

Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com>
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
virtio: timeout after 5sec

Remove adhoc timer and put 5sec timeout. On a busy host, code hits this.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Increase quiesce tokens array size

16 is too less, push it to 256

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>