| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
- Reorder detach so that ether_ifdetach() is called first. This removes
the race that ATE_FLAG_DETACHING closed, so that flag can be removed.
- Trim a duplicate clearing of IFF_DRV_RUNNING.
Reviewed by: imp
|
|
|
|
| |
the assignments to if_timer.
|
| |
|
|
|
|
|
|
|
|
|
| |
will initialize the FIFO memory correctly on attach. Before
that this values was intialized in only in at91_usart_bus_attach
which is called after the uart(4) memory allocation happens.
Approved by: re (kib)
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
| |
DPCPU area was not properly mapped into kernel VA space, which caused page
fault on the first DPCPU access. This patch fixes the problem by mapping DPCPU
area into kernel VA space.
Submitted by: Michal Hajduk, Piotr Ziecik
Reviewed by: cognet, stas
Approved by: re (kib)
Obtained from: Semihalf
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
IF_ADDR_UNLOCK() across network device drivers when accessing the
per-interface multicast address list, if_multiaddrs. This will
allow us to change the locking strategy without affecting our driver
programming interface or binary interface.
For two wireless drivers, remove unnecessary locking, since they
don't actually access the multicast address list.
Approved by: re (kib)
MFC after: 6 weeks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Modules and kernel code alike may use DPCPU_DEFINE(),
DPCPU_GET(), DPCPU_SET(), etc. akin to the statically defined
PCPU_*. Requires only one extra instruction more than PCPU_* and is
virtually the same as __thread for builtin and much faster for shared
objects. DPCPU variables can be initialized when defined.
- Modules are supported by relocating the module's per-cpu linker set
over space reserved in the kernel. Modules may fail to load if there
is insufficient space available.
- Track space available for modules with a one-off extent allocator.
Free may block for memory to allocate space for an extent.
Reviewed by: jhb, rwatson, kan, sam, grehan, marius, marcel, stas
|
|
|
|
|
|
|
| |
no functional changes should result
Reviewed by: imp, current@
Approved by: jhb (mentor)
|
|
|
|
| |
net behavior.
|
|
|
|
|
|
|
|
|
| |
the implementation can guarantee forward progress in the event of
a stuck interrupt or interrupt storm. This is especially critical
for fast interrupt handlers, as they can cause a hard hang in that
case. When first called, arm_get_next_irq() is passed -1.
Obtained from: Juniper Networks, Inc.
|
|
|
|
| |
drivers/functionality and then some.
|
| |
|
| |
|
|
|
|
| |
Reviewed by: imp
|
|
|
|
|
|
| |
name
Reviewed by: imp
|
|
|
|
|
|
| |
in the previous commit.
- Use device_printf instead of printf.
- Put all printfs in the interrupt handler under bootverbose.
|
|
|
|
|
|
|
| |
registers contents.
- Use memory barriers to preserve the order of buffer space operations.
This might be needed if we'll ever use this driver on architectures
where ordering is not guaranteed.
|
|
|
|
|
| |
- Release memory and DMA resources on stop.
- Unload the associated DMA maps after transmit is complete.
|
| |
|
|
|
|
|
| |
- Do not enable multicast hash lookup if no multicast addresses
were configured or if promisc mode is enabled.
|
|
|
|
|
| |
new ate_rxfilter function to set requested parameters. Use this function
on parameters change rather than reinitializing the chip.
|
| |
|
|
|
|
|
|
|
| |
operates in the common memory mode and use polling mode to control
the status of operations as I don't have any board with interrupt
line routed yet. I'll add the GPIO interrupt driven mode as soon
as I get one.
|
|
|
|
|
|
|
|
| |
at91_udp.c does not exist anymore, it is now replaced by at91dci in
src/sys/dev/usb/controller. Also remove the ohci_atmelarm.c because it is also
included in src/sys/conf/files
Submitted by: Sylvestre Gallon
|
|
|
|
|
|
| |
usb stack rather than with the rest of the processor support code.
Not sure that's a good idea, as we were moving away from it, but this
fixes the build in the mean time so we can have that discussion.
|
|
|
|
|
| |
need the bouncing, so save a few copies in that case. Also convert
4-bit code selection to using it.
|
|
|
|
|
|
| |
rather than a fixed 512... This fixes the mount root problem on at91.
Prior to the SD card reorg, all data transfers were 512 bytes, so we
didn't notice.
|
|
|
|
|
|
| |
the serial port class when we set the devclass since it is now
no-longer a compile time constant. Eliminate the pci include, as it
isn't relevant or necessary.
|
| |
|
| |
|
|
|
|
|
|
| |
time constant. This allows us to potentially change it at runtime or
autodetect it early in the boot (the latter being much more likely to
have a good outcome).
|
|
|
|
|
|
|
|
|
|
| |
o Only set 4-bit caps on those boards that have 4-bit caps (this means that
because we don't set wire4 yet, this forces us to always use 1-bit bus).
o Don't test wire4 when setting up the bus width, since bad things will
happen if we do.
# This likely won't fix the busted at91 sd card support, but these are
# needful changes for correctness.
|
|
|
|
|
|
| |
can be unpredictable.
PR: arm/128987
|
|
|
|
|
|
| |
PR: arm/128891
Submitted by: Pavel Pankov <pankov_p@mail.ru>
Approved by: kib (mentor)
|
|
|
|
|
|
|
| |
previous commit. This include file was required by the
first version of the patch.
Approved by: kib (mentor, implicit)
|
|
|
|
|
|
|
|
|
|
|
| |
contents.
- It is possible to override the dynamic configuration by using
AT91C_MAIN_CLOCK option in kernel config.
PR: arm/128961 (based on)
Submitted by: Bjorn Konig <bkoenig@alpha-tierchen.de>
Reviewed by: imp
Approved by: kib (mentor, implicit)
|
|
|
|
|
| |
routines have been split out. Remove it. This leaves only one
instance of it in the tree that will be going away soon.
|
|
|
|
|
| |
TSC4370 config file wasn't committed to this tree, so I don't know if
my changes will work on it or not.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Copy kb920x_machdep.c to at91_machdep.c
o Move board_init to new board_kb920x.c
o rename ramsize to at91_ramsize and make it accessible to board_* files.
o Delete files.kb920x. We can do this selection with the new boards.
o Add a stub for the tsc4370 board init, which will be added in
a future commit.
o Add new 'devices' at91_board_kb920x and at91_board_tsc4370. More are
needed and will be added in future commits.
Reviewed by: stass, cognet
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
to the change.
|
|
|
|
| |
really meant in those places.
|
|
|
|
|
| |
better or worse. Ok'd by folks that have additional copyrights to the
files in cases where there's joint authorship.
|
|
|
|
|
|
| |
PR: arm/128959
Submitted by: Bjorn Konig <bkoenig@alpha-tierchen.de>
Approved by: kib (mentor)
|
|
|
|
|
|
|
|
|
| |
sdhci supports up to 65535 blocks transfers, at91_mci - one block.
Enable multiblock operations disabled before to follow at91_mci driver
limitations.
Reviewed by: imp@
|
|
|
|
|
|
| |
Reviewed by: cognet
Approved by: kib (mentor, implicit)
MFC after: 1 week
|
|
|
|
|
|
| |
Reviewed by: cognet
Approved by: kib (mentor, implicit)
MFC after: 3 days
|