summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-01-30devdraw: get rid of softscreen==0xa110c hack and make attachscreen() return ↵cinap_lenrek
Memdata* all screen implementations use a Memimage* internally for the framebuffer, so we can return a shared reference to its Memdata structure in attachscreen() instead of a framebuffer data pointer. this eleminates the softscreen == 0xa110c hack as we always use shared Memdata* now.
2019-01-30bcm: list devswap only once in devtab arraycinap_lenrek
2019-01-28devdraw: simplify drawgen()cinap_lenrek
2019-01-27devip: tcp: Don't respond to FIN-less ACKs during TIME-WAIT (thanks Barret ↵cinap_lenrek
Rhoden) Under the normal close sequence, when we receive a FIN|ACK, we enter TIME-WAIT and respond to that LAST-ACK with an ACK. Our TCP stack would send an ACK in response to *any* ACK, which included FIN|ACK but also included regular ACKs. (Or PSH|ACKs, which is what we were actually getting/sending). That was more ACKs than is necessary and results in an endless ACK storm if we were under the simultaneous close sequence. In that scenario, both sides of a connection are in TIME-WAIT. Both sides receive FIN|ACK, and both respond with an ACK. Then both sides receive *those* ACKs, and respond again. This continues until the TIME-WAIT wait period elapses and each side's TCP timers (in the Plan 9 / Akaros case) shut down. The fix for this is to only respond to a FIN|ACK when we are in TIME-WAIT.
2019-01-24dhcpd(8), ndb(6): group related ndb attributes togethercinap_lenrek
2019-01-24ip/dhcpd: remove undocumented dhcpgroup mechanism, group related ndb ↵cinap_lenrek
attributes together
2019-01-23troff: fix -ms mug (thanks aksr)cinap_lenrek
Executing .KS after .1C exhibits a bug. Instead on the next page, the text between .KS and .KE is shown at the bottom of the page (where footnote would be). To reproduce the bug: http://sprunge.us/xyCUX7 The bug can be fixed by changing two lines in tmac.s: if \\n(NX<1 .bp\} to if \\n(NX<=1 .bp\} and if \\n(NX<1 'bp\} to if \\n(NX<=1 'bp\}
2019-01-23dhcpd(8), ndb(6): update documentation (thanks k0ga)cinap_lenrek
2019-01-23ip/dhcpd: send vendor ndb attribute if available (thanks k0ga)cinap_lenrek
At this moment plan9 is using vendorinfo to communicate some specific plan9 parameters, but there are some boards that use this attribute to set specific values. This patch allows netbooting of these boards using ndb attributes instead of hard coded solutions in dhcpd(1). Vendor attribute is used for that purpose because it is also used for the same purpose in bootp.
2019-01-23ip/dhcpd: add rootserverip read in lookupip() (thanks k0ga)cinap_lenrek
Lookupip() was already reading rootpath, but it didn't read the address of the rootserver. As they are very related it makes sense to read them at the same time. This patch also fixes a typo, where vendorclass was used instead of vendor, resulting that vendor ndb attribute was never used.
2019-01-23ip/dhcpd: change swap to rootserver (thanks k0ga)cinap_lenrek
2019-01-22devtls: remove static "already" flag in tlsinit(). this function is only run ↵cinap_lenrek
once.
2019-01-22devswap: simplify, don't panic when writing swapfile failscinap_lenrek
always start the pager kproc in swapinit(), simplifying kickpager(). allow zero conf.nswap and conf.nswppo. avoid allocating the reference map and iolist arrays in that case. use ulong for ioptr and iolist indices. don't panic when writing pages out to the swapfile fails. just requeue the page in the io transaction list so we will try again next time executeio() is run or just free the page when the swap reference was dropped. remove unused pagersummary() function.
2019-01-22pc64: properly handle faulterror in faultamd64()cinap_lenrek
replicate what faulterror() would have done with up->nerrlab == 0, that is, terminate the process.
2019-01-22upas/fs: remove unused function pop3logAlex Musolino
2019-01-20mergeaiju
2019-01-20rc: clear out redirections on "rfork F" (RFCFDG)cinap_lenrek
rfork F closes all file descriptors, so we have to invalidate the redirections as they are now refering to closed files. not doing so causes the wrong file descriptors being closed later on as the fd numbers get reused.
2019-01-20dtracy: fix &&aiju
2019-01-13ether82563: fix bugus FCA write and link detection for i217cinap_lenrek
the FCA registers 0x28, 0x2C have been reassigned to to FEXTNVM on i217, i218 and i219 so add Fnofca flag and avoid writing the registers. make link detection more robust on i217 by delaying the phy status read after link status change by 150ms. we'd otherwise get a "phy wedged" (power saving state?) and not update the link status until the next link change.
2019-01-12ether82563: work arround spurious jumbo packets on i217 (thanks k0ga)cinap_lenrek
i217 appears to receive spurious jumbo frame and then stops receiving completely. reducing the mtu to 2k as a work arround for now.
2019-01-12/sys/lib/plumb/basic: make plumbing page bookmarks work with relative paths ↵cinap_lenrek
(thanks Tobias Heinicke)
2019-01-12ether82563: use 9018 byte mtu from datasheet for i217, i218, i219cinap_lenrek
2019-01-12mergecinap_lenrek
2019-01-12ether82563, ether82598, etherx550: round rbsz to multiple of 1Kcinap_lenrek
the max packet size is configured in 1K increments on these chips, which can result in the card receiving a 10K packet but the driver having only allocated 9.5K of buffer. this actually caued pool corruption with i210, i217, i218, i219, i350. for 82598 and x550, we explicitely round rbsz to avoid similar bugs in the future, even tho the Rbsz constant was already a multiple of 1K and is not affected by the bug.
2019-01-08torrent: avoid trying to fetch blocks past fileqwx
2019-01-04pc, pc64: properly track dependencies for mem.h on autogenerated ↵cinap_lenrek
apbootstrap.h and reboot.h targets
2019-01-02upas/fs: don't put messages on the lru that cannot be uncachedcinap_lenrek
the lru is there to track least recently used messages so we can evict them from the cache and refetch them again on demand. for pop3 mailbox, which doesnt provide fetch routine, the messages should never be put on the freelist.
2019-01-02upas/fs: include mkupas in mkfile last to get default targetcinap_lenrek
2018-12-31upas/fs: fix infinite loop in putcache (again)Alex Musolino
The previous attempt to fix this problem (see changesets b32199e0f90a and 00ae79a6ba50) caused all calls to cachefree to free the cached message contents in addition to updating the LRU list. This causes problems for the POP3 driver since it provides no fetch function; once a message is evicted from the LRU cache, its contents is lost. This time we fix cachefree to always update the LRU list but only free the cached message contents if the driver provides a fetch function or the force flag is set.
2018-12-28rsa(8): add example for tinc(8) (thanks k0ga, qwx)cinap_lenrek
2018-12-28dtracy: fix conditional branch generationaiju
2018-12-26remove function prototype that leaked into last commitBurnZeZ
2018-12-26tcs: clean up old port code, and avoid writing 0 to stdoutBurnZeZ
2018-12-26mk: fix closing random fd from uninitialized stack variable (thanks BurnZeZ, ↵cinap_lenrek
mycroftiv) mycroftiv → this is practically "500 mile email" territory - the "6 letter mk bug"
2018-12-24nusb/disk: revert previous attempts and just not issue capacity command when ↵cinap_lenrek
theres no media present
2018-12-23Make the check work.Ori Bernstein
Embarrassing.
2018-12-24nusb/disk: implement 64 bit lba read/write commands (16 byte commands)cinap_lenrek
untested.
2018-12-24nusb/disk: fix typo "("cinap_lenrek
2018-12-23Don't unnecessarily unstall devices.Ori Bernstein
Some SD card readers are slow to unstall. We try to unstall them in a loop if there's no SD card in there, but they're not stalled. They're happily reporting that there's no SD card in them by giving back the appropriate error code. Skipping the unstall speeds up the retry loop, cutting the time spent attaching the USB device at boot from multiple minutes to nearly instant.
2018-12-24dossrv: cleanupcinap_lenrek
2018-12-23dossrv: make GLONG() return ulong, handle getsect() error in dostat()cinap_lenrek
2018-12-23etherx550: add intel 10GB ethernet controlller x550 driver (thanks joe9)cinap_lenrek
2018-12-23ether82598: fix multicast filter (thanks aiju, joe9)cinap_lenrek
2018-12-22dossrv: use 64 bit vlong for sectorscinap_lenrek
2018-12-15dtracy: avoid pointer to integer truncation warning on amd64cinap_lenrek
2018-12-15fplot: fix operator associativityaiju
2018-12-13fplot: add min/max operatorsaiju
2018-12-13dtracy: get rid of DTName struct, support more than three parts in a probe ↵aiju
name, wildcard matching
2018-12-13pc(1): reference counting bugaiju
2018-12-13mergeAlex Musolino