aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-12-09use VERSION file to generate FW versionqemu-slof-20131209Alexey Kardashevskiy2-0/+6
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
2013-12-09cas: remove warningAlexey Kardashevskiy1-1/+1
Since client-architecture-support is not support by the mainline QEMU yet, this warning might be confusing so remove it. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-12-06Add support for loading little endian ELF binaries.Anton Blanchard4-6/+102
We byte swap the entire header in place in elf_check_file. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-12-06Add bswap_{16,32,64}pAnton Blanchard1-0/+18
Add byte swap macros that take a pointer and byte swap in place. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-12-06dhcpv6 and other minor net-snk fixesAvik Sil4-53/+52
Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-12-06Fix missing drop in virtio-fs setup-aliasAvik Sil1-1/+3
Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-12-06Find next available alias nameAvik Sil6-31/+34
This patch generaliazes the device alias name enumeration for all scsi disks, virtio-blk disks and network devices. Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-12-06SLOF does not exit if given 1KB diskNikunj A Dadhania1-2/+11
When passing a 1KB disk, it goes on looping inside the deblocker, ignoring the unability of driver to read from out-of-bound blocks. Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-11-26boot: enable support for bootindexqemu-slof-20131126Alexey Kardashevskiy1-0/+6
QEMU supports a bootindex property for every device in the command line. With the respective support from the QEMU side, this change is enough to make SLOF go through the list and try to boot. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
2013-11-22pci-properties: add properties to enable hotplug for spaprqemu-slof-20131122Michael Roth3-0/+17
drmgr expects ibm,my-drc-index and ibm,loc-code OF properties in the corresponding device tree node to determine whether a pre-populated slot is hotpluggable/unpluggable. This is also stated as a boot-time requirement for DR-capable devices in SPAPR, though it does not specify there how these entries are to be generated. In the case of QEMU, hotpluggable slots are allocated entries based on bus/slotno values, so we can determine these entries statically at boot-time, rather than relying on RTAS calls as we would during OS-driven configuration. Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2013-11-18e1000: remember node handleqemu-slof-20131118Nikunj A Dadhania1-0/+2
While netbooting with yaboot, code was failing at dma-map-out. Remember my-handle and store for further reference, which is needed for dma-map-out during close. yaboot for some reason does not set the current-node while calling close. Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-11-18Increase quiesce tokens array sizeNikunj A Dadhania1-1/+1
16 is too less, push it to 256 Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-11-18virtio: timeout after 5secNikunj A Dadhania3-12/+20
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>
2013-11-18Enable IPv6 support in dnsAvik Sil5-43/+94
Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-11-17usb-ohci: fix warningsNikunj A Dadhania1-3/+2
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>
2013-11-17Add ipv6 support in net-snkAvik Sil14-53/+2191
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>
2013-11-17ipv4: fix frame overwriting following arp_send_requestAvik Sil1-7/+22
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>
2013-11-17e1000: fix SLOF_dma_map_out argumentsAvik Sil1-1/+1
Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com>
2013-11-17Maintain single global packet buffer for tftpAvik Sil1-14/+10
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>
2013-11-17Increase virtio-net receive queue sizeAvik Sil1-1/+1
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>
2013-11-17Increase veth receive queue sizeAvik Sil1-1/+1
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>
2013-11-16Fix dprintf macros at various pointsNikunj A Dadhania9-10/+10
Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-11-15usb-ohci: rewrite done_head processing codeNikunj A Dadhania1-55/+59
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>
2013-11-15boot: add net in default boot orderNikunj A Dadhania1-0/+1
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>
2013-11-15block 0 address in the allocatorNikunj A Dadhania1-0/+5
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>
2013-11-15scsi: make-media-alias fixNikunj A Dadhania1-5/+9
* 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>
2013-11-15usb-xhci: add xhci host controller supportNikunj A Dadhania5-9/+1454
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-11-15usb-xhci: add xhci supportNikunj A Dadhania10-7/+250
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-11-15Avoid veth read/write calls with zero length bufferAvik Sil1-2/+10
This avoids unnecessary libveth-read/write calls in cimod_check_and_install Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com>
2013-10-17boot: include other aliasesNikunj A Dadhania1-6/+18
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>
2013-10-15usb-core: disable xhciNikunj A Dadhania2-5/+5
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>
2013-10-15client-architecture-support: fix wrong version readqemu-slof-20131015Alexey Kardashevskiy1-1/+1
This fixed size of reading the version (which is actually 32bit), this removes confusing "cas not implemented" message from the guest. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> --- Changes: v2: * replaced w@ (16 bit) with l@ (32 bit)
2013-10-15client-architecture-support: fix redundant stack dropAlexey Kardashevskiy1-1/+1
This removes dropping allocated memory buffer off the stack in the case when no change to the tree was generated by QEMU. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
2013-10-09Update device tree returned by CAS hypercallqemu-slof-20131009listNikunj A Dadhania2-9/+71
Add device tree parsing code and setting properties. Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-10-09fdt: introduce fdt-initNikunj A Dadhania1-6/+13
Current fdt.fs takes device-tree start address from fdt-start, this needs to be made generic for parsing device tree at later point Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-10-09Add ibm,client-architecture-support methodNikunj A Dadhania6-1/+44
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-10-04Kernel parameter passed from qemu commandline ignoredNikunj A Dadhania1-4/+4
Commit ec5c9e8b (Use root.fs on qemu as well) would set the bootargs/bootpath to null string even in case when the /chosen node exist, the /chosen and boot property were populated during fdt parsing so do not change in case its already set. Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-10-04Allow more than one client to open net devices simultaneouslyAvik Sil4-9/+9
When multiple clients are active simultaneously, they might open network devices that is already opened by other clients. This results in failure to transfer packets since obp-tftp package is not instantiated on each open. This patch resolves it by instantiating obp-tftp on each open. Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-10-04ci: add missing close in else conditionNikunj A Dadhania1-0/+2
The code in close for calling quiesce looks if there is stdin and checks whether is being closed. That condition was being used to call quiesce. So in case when the ihandle is not that of stdin, close-dev was missing. Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-10-04Add GPT supportAvik Sil1-10/+106
Add support for booting from a GPT partitioned disk. Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-10-04pci: fix interrupt-map for bridgesAlexey Kardashevskiy1-10/+19
The previous scheme always put 0 as a parent slot#. However it is not always the case and QEMU's PCI bridge does not support putting device at slot#0 as it claims SHPC support for hotplug. This modifies the interrups map to let the linux guest resolve XICS global interrupt number correctly. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-10-04usb-ohci: preserve the toggleCarry bit in EDNikunj A Dadhania1-1/+2
Endpoint descriptors toggleCarry bit needs to be preserved when using DataToggle bit in transfer descriptor is set to 0. Also zero the bulk_curr_ed Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-10-04usb-ohci: done_head processing fixesNikunj A Dadhania2-36/+42
Return error code like STALL back, so it can be handled effectively. Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-10-04usb-ohci: update init and rationalize timingsNikunj A Dadhania2-13/+17
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-10-04usb-msc: handle stall and other fixesNikunj A Dadhania3-4/+29
* Add Reset Recovery procedure * Zero cbw and csw memory everytime * Add delays during cbw, data and csw stage * Increment tag after every command Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-10-04scsi: make probe more error resilientNikunj A Dadhania3-13/+36
* Some usb devices do not like report-luns, assume it as single lun device and move further. * Make inquiry of the device first for 36bytes and then determine what is the additional size to read. Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-10-04usb-core: Add CLEAR FEATURE apiNikunj A Dadhania2-0/+22
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-10-04Implement range allocatorNikunj A Dadhania7-21/+321
Use the allocator with dma-map-in so it does not create duplicate TCE entries. Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-10-04Remove bcm57xx network driver as moduleAvik Sil11-3989/+1
The driver has been moved to libbcm Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-10-04Remove e1000 network driver as moduleAvik Sil7-1211/+2
The driver has been moved to libe1k Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>