Commit Graph

  • 35ee7e4479 Ensure that empty e820 regions are skipped even at the end of the memory map. (We achieve this by setting CF on the last entry if it is zero-length; this avoids the need to look ahead to see at each entry if the *next* entry would be both the last entry and zero-length). Michael Brown 2007-10-10 20:12:25 +01:00
  • e445c2c07c Ensure that empty e820 regions are skipped even at the end of the memory map. (We achieve this by setting CF on the last entry if it is zero-length; this avoids the need to look ahead to see at each entry if the *next* entry would be both the last entry and zero-length). Michael Brown 2007-10-10 20:12:25 +01:00
  • 8069598a99 Add a missing PCI ID that is tested as working. Michael Brown 2007-10-10 02:07:18 +01:00
  • 9ac0377fbb Force a netdevice poll in net_tx() before attempting to transmit packet, to work around the problem whereby small TX rings get backed up because we haven't yet poll()ed for TX completions. Michael Brown 2007-10-04 14:46:56 +01:00
  • 2303c45d65 Force a netdevice poll in net_tx() before attempting to transmit packet, to work around the problem whereby small TX rings get backed up because we haven't yet poll()ed for TX completions. Michael Brown 2007-10-04 14:46:56 +01:00
  • 56550e400e Redefine bzimage_exec_context::mem_limit to be the highest permissible byte, rather than the number of permissible bytes (i.e. subtract one from the value under the previous definition to get the value under the new definition). Michael Brown 2007-09-28 01:23:06 +01:00
  • 14fb6ba189 Quick and very dirty hack to get r8169 driver working again, prior to any rewrite. Michael Brown 2007-09-26 17:58:51 +01:00
  • ed5ff61790 Standardise DBG_PRINTF()->DBG(), and remove custom definitions for DBG_PRINTF() and assert(). Michael Brown 2007-09-26 17:38:36 +01:00
  • 881dd8e102 Switch rm_ss and rm_sp back to being words; it'll make it less confusing to read the code. Michael Brown 2007-09-25 20:16:32 +01:00
  • 42d96bcb07 Don't use the "rep ss movsb" trick to copy the RM stack to the PM stack; it breaks vmxassist. Michael Brown 2007-09-25 20:14:20 +01:00
  • 0ed066bc50 rm_ss, rm_sp, and pm_esp don't need to be accessed from anywhere outside of librm.S. Michael Brown 2007-09-25 19:20:38 +01:00
  • b8a8eea850 Minor refactoring to eliminate duplication. Michael Brown 2007-09-25 19:06:38 +01:00
  • dec325fe43 Use full protected mode for access to high memory within prefix, to work around limitations in real-mode virtualisation support on Intel VT-capable chips. Michael Brown 2007-09-25 18:01:15 +01:00
  • a7eee64506 Added more verbose memory-map debugging. Michael Brown 2007-09-21 18:27:51 +01:00
  • 0979e674bb Added more verbose memory-map debugging. Michael Brown 2007-09-21 18:27:51 +01:00
  • 44461b1854 Merge branch 'master' into 3leaf-delivery Michael Brown 2007-09-21 01:27:03 +01:00
  • 1e677b2024 Merge branch 'master' of rom.etherboot.org:/pub/scm/gpxe Michael Brown 2007-09-21 01:26:06 +01:00
  • 5793dbe96f Infinband requires longer link-layer addresses and headers than Ethernet. Michael Brown 2007-09-21 01:23:57 +01:00
  • 2ee76d0c93 Added defines for Infiniband files (which can't be committed to the main tree yet, but reserving the error numbers now avoids problems later). Michael Brown 2007-09-21 01:19:04 +01:00
  • 1af346b531 Minor debug message improvement. Michael Brown 2007-09-17 18:57:32 +01:00
  • af303db75d Use RFC4390 whenever hardware address exceeds 16 bytes; this allows us to construct DHCP packets suitable for Infiniband. Michael Brown 2007-09-13 01:53:04 +01:00
  • 9c264faa0c Add const attribute to byte-swapping functions Michael Brown 2007-09-15 18:44:35 +01:00
  • 7e3527a658 Don't get stuck in an infinite loop on negative integers! Michael Brown 2007-09-16 17:39:29 +01:00
  • db124b1255 Add fls() for non-constant values. Michael Brown 2007-09-16 17:36:40 +01:00
  • f09173326c Moved iobuf.h assertions outside the static inline functions, so that the assert message's file and line number gives some clue as to the real location of the problem. Michael Brown 2007-09-17 18:38:04 +01:00
  • 0f60150c44 Reverted driver/net/mlx_ipoib to clean master state Michael Brown 2007-09-18 07:07:04 +01:00
  • 148055dd79 Merge branch 'master' into 3leaf-rewrite Michael Brown 2007-09-18 07:03:57 +01:00
  • 30717896f5 IB can't afford many RX buffers, because the MTU is so large. Reduce the TCP window to compensate. Michael Brown 2007-09-18 07:02:41 +01:00
  • 2f23881856 Added arbel.c Michael Brown 2007-09-18 06:37:22 +01:00
  • 95498fa038 Remove the last remaining visible hack. Michael Brown 2007-09-18 06:26:31 +01:00
  • 982e4dd101 Separated out to a clean new drivers/infiniband directory. Michael Brown 2007-09-18 06:06:55 +01:00
  • a5ec029d24 First version that works with SELF_INIT! Michael Brown 2007-09-18 05:46:49 +01:00
  • 8423b0b109 Gets most of the way through initialisation. Michael Brown 2007-09-18 05:39:34 +01:00
  • def5ae9127 Added sw2hw_mpt Michael Brown 2007-09-18 04:45:55 +01:00
  • da014080f9 INIT_HCA block now matches. Michael Brown 2007-09-18 04:20:41 +01:00
  • 57bf8d9905 Seems to get through the ICM mapping process Michael Brown 2007-09-18 03:58:59 +01:00
  • 4ea6223f5a ICM allocation code in place; about to start test-and-compare runs. Michael Brown 2007-09-18 02:57:49 +01:00
  • f20cd6f721 ICM allocation code *should* now be complete. Michael Brown 2007-09-18 02:05:25 +01:00
  • af88f60228 Started with the ICM partitioning code. Michael Brown 2007-09-18 01:49:39 +01:00
  • c818d47e25 Restructured bits of initialisation (not testable at present) Michael Brown 2007-09-17 22:25:46 +01:00
  • dc3165b746 Starting the firmware directly now works. Michael Brown 2007-09-17 21:59:41 +01:00
  • 0f62bcaa77 Start migrating the remaining initialisation steps. Michael Brown 2007-09-17 21:14:09 +01:00
  • f3fcb53faf Don't use the mailboxless version of the HW2SW_CQ command; it seems to crash the machine. Michael Brown 2007-09-17 19:47:19 +01:00
  • 12b4cb964b Removed more hacks, and adjusted number of queue entries for likely usage. Michael Brown 2007-09-17 19:17:55 +01:00
  • 11541b1e01 Remove hacks, and fix leaving the multicast GID. Michael Brown 2007-09-17 19:12:06 +01:00
  • 267a4483ab Added an almost obscene amount of debugging and assertion code while tracking down a bug that turned out to be a free_iob() used where I needed a netdev_tx_complete(). This left the freed I/O buffer on the net device's TX list, with bad, bad consequences later. Michael Brown 2007-09-17 19:01:10 +01:00
  • 387a1a8556 Minor debug message improvement. Michael Brown 2007-09-17 18:57:32 +01:00
  • 2c56ede6f8 Moved iobuf.h assertions outside the static inline functions, so that the assert message's file and line number gives some clue as to the real location of the problem. Michael Brown 2007-09-17 18:38:04 +01:00
  • bdac591726 Some interesting packet corruption happening now. Michael Brown 2007-09-17 13:31:13 +01:00
  • 2ed1acb9e9 Broadcast GID is now calculated by IPoIB layer. Michael Brown 2007-09-17 11:50:25 +01:00
  • 32a7bbb1e3 Cleaned up some debug messages. Michael Brown 2007-09-17 10:56:21 +01:00
  • ab191e45db Unicasts seem to be working. :) Michael Brown 2007-09-17 10:39:30 +01:00
  • 2209090120 Dead code disabling Michael Brown 2007-09-17 08:41:06 +01:00
  • b3d3814c17 Obtains a response to the get path record! Michael Brown 2007-09-17 08:36:56 +01:00
  • e05a8cd4de Use pkey table access to determine broadcast GID directly. Michael Brown 2007-09-17 06:35:21 +01:00
  • f6f1f2b7bb Prepare for adding a metadata queue to IPoIB Michael Brown 2007-09-17 06:12:33 +01:00
  • 440e7926fb Dead code removal Michael Brown 2007-09-17 05:12:47 +01:00
  • 4e78a53cf2 IPoIB code separated out to ipoib.c. Michael Brown 2007-09-17 05:04:58 +01:00
  • 67836430e6 Read port GID directly using MAD IFC. Michael Brown 2007-09-17 02:54:15 +01:00
  • 3c6a6bdc5d Multicast join now works. Michael Brown 2007-09-17 00:24:44 +01:00
  • 96d0c75c00 Now transmits packets on our own allocated IPoIB queue pair. :) Michael Brown 2007-09-16 22:53:57 +01:00
  • 4ddb6570f8 Almost working with own-queue allocation. Michael Brown 2007-09-16 22:47:45 +01:00
  • 7e85f0d296 create_qp() and destroy_qp() now written (but not tested). Michael Brown 2007-09-16 20:54:21 +01:00
  • 251cc84ed6 Started implementing create_qp() and destroy_qp(). Michael Brown 2007-09-16 19:03:24 +01:00
  • 83a6cc8c9b Don't get stuck in an infinite loop on negative integers! Michael Brown 2007-09-16 17:39:29 +01:00
  • 6d15a193aa Add fls() for non-constant values. Michael Brown 2007-09-16 17:36:40 +01:00
  • b21d4ca21e Revert to dev_priv/owner_priv scheme, rather than container_of; it makes it easier to put the generic allocation code into infiniband.c Michael Brown 2007-09-16 17:25:15 +01:00
  • e238bb1e43 destroy_cq() now implemented (not tested). Michael Brown 2007-09-16 14:39:51 +01:00
  • 18edcf6634 create_cq() implemented (but not tested). Michael Brown 2007-09-16 14:18:17 +01:00
  • 725a574042 Match doorbell layout to expected usage. Michael Brown 2007-09-16 13:10:15 +01:00
  • 5a43293c38 Started to add code for CQ creation Michael Brown 2007-09-16 12:52:58 +01:00
  • 156b409ccc Rearrange data structures to maximise embedding (and hence minimise the number of separate allocations that need to be done). Michael Brown 2007-09-16 04:02:20 +01:00
  • 791f992657 Command interface now reasonably friendly. Michael Brown 2007-09-16 03:13:25 +01:00
  • bf9bd93856 First (working) draft of command interface. Michael Brown 2007-09-16 01:44:57 +01:00
  • baa885ee8e Kill off more dead code. Michael Brown 2007-09-15 23:36:41 +01:00
  • 37fc40bc8c post_recv() now works, and we can pass data on the IPoIB queue pair using entirely our own code. Michael Brown 2007-09-15 23:33:25 +01:00
  • 838b972cd3 Kill off some dead code Michael Brown 2007-09-15 21:26:14 +01:00
  • 31b82ea1dd Hack up IB structures at start-of-day, instead of on each use. Michael Brown 2007-09-15 21:23:34 +01:00
  • 8deef093d9 Direct polling of TX completion queue now works. Michael Brown 2007-09-15 20:58:29 +01:00
  • 687afdcdd9 Add const attribute to byte-swapping functions Michael Brown 2007-09-15 18:44:35 +01:00
  • 6a791649f0 Updated MLX_* accessor macros to use implicit type information. Michael Brown 2007-09-15 18:44:09 +01:00
  • a3a91fedc1 Started added poll_cq() verb. Michael Brown 2007-09-15 15:40:35 +01:00
  • 37a036bd48 Map the whole of physical memory Michael Brown 2007-09-15 03:22:04 +01:00
  • 970951666f arbel_post_send() has been observed to transmit a packet! Michael Brown 2007-09-15 02:53:05 +01:00
  • 8b27da9de1 Gets a response out of the hardware. (An error completion, to be precise.) Michael Brown 2007-09-15 01:35:07 +01:00
  • 21d4ab3ce2 Prefix arbel-specific functions etc. with arbel_ Michael Brown 2007-09-15 00:27:09 +01:00
  • 38a73b55c4 Now at least compiles Michael Brown 2007-09-15 00:19:38 +01:00
  • 9d08b7c692 Starting to introduce an Infiniband device abstraction Michael Brown 2007-09-14 20:29:44 +01:00
  • 75fbc96f75 Remove some dead code Michael Brown 2007-09-14 11:23:06 +01:00
  • 08e8dfd801 Now handling TX completions in our poll loop. Michael Brown 2007-09-14 11:10:25 +01:00
  • e69863b5fb Proof-of-concept to manually parse completion event Michael Brown 2007-09-14 10:18:09 +01:00
  • e9df4f691e Add EX_FLD_BE() Michael Brown 2007-09-14 10:17:29 +01:00
  • da23e8d287 Start constructing a generic poll() routine. Michael Brown 2007-09-13 17:47:14 +01:00
  • 30a19c3f1c Can now both send and receive packets. LL header format not yet fixed; still using a quick hack-up just to be able to pass through data. Michael Brown 2007-09-13 14:43:12 +01:00
  • 99411e36da Added netdev_priv() to ease Linux driver compatibility. Michael Brown 2007-09-13 13:34:38 +01:00
  • eecf71e4a0 Removed file checked in accidentally Michael Brown 2007-09-13 12:57:25 +01:00
  • 03c90e183f Dump received packet, including GRH. Michael Brown 2007-09-13 03:15:27 +01:00
  • 7e4e5af462 Use RFC4390 whenever hardware address exceeds 16 bytes; this allows us to construct DHCP packets suitable for Infiniband. Michael Brown 2007-09-13 01:53:04 +01:00
  • 771455653b Bugfix: DHCP message type should be a one-byte option... (d'oh) Michael Brown 2007-09-13 01:13:57 +01:00
  • 9e32e8e513 Now sends IP packets correctly. Michael Brown 2007-09-13 01:14:56 +01:00