History log of /freebsd/sys/dev/firewire/fwohci_pci.c (Results 126 – 150 of 153)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# fa4b32fa 03-Jul-2003 Warner Losh <imp@FreeBSD.org>

All current uses of pci_set_powerstate are bogus, at least in theory.
However, they are presently necessary due to bigger bogusness in the
pci bus layer not doing the right thing on suspend/resume or

All current uses of pci_set_powerstate are bogus, at least in theory.
However, they are presently necessary due to bigger bogusness in the
pci bus layer not doing the right thing on suspend/resume or on
initial device probe. This is exactly the sort of thing that the
BURN_BRIDGES option was invented for. Mark all of them as
BURN_BRIDGES. As soon as I have the powerstate stuff properly
integrated into the pci bus code, I intend to remove all these
workarounds.

show more ...


# f6b1c44d 01-Jul-2003 Scott Long <scottl@FreeBSD.org>

Mega busdma API commit.

Add two new arguments to bus_dma_tag_create(): lockfunc and lockfuncarg.
Lockfunc allows a driver to provide a function for managing its locking
semantics while using busdma.

Mega busdma API commit.

Add two new arguments to bus_dma_tag_create(): lockfunc and lockfuncarg.
Lockfunc allows a driver to provide a function for managing its locking
semantics while using busdma. At the moment, this is used for the
asynchronous busdma_swi and callback mechanism. Two lockfunc implementations
are provided: busdma_lock_mutex() performs standard mutex operations on the
mutex that is specified from lockfuncarg. dftl_lock() is a panic
implementation and is defaulted to when NULL, NULL are passed to
bus_dma_tag_create(). The only time that NULL, NULL should ever be used is
when the driver ensures that bus_dmamap_load() will not be deferred.
Drivers that do not provide their own locking can pass
busdma_lock_mutex,&Giant args in order to preserve the former behaviour.

sparc64 and powerpc do not provide real busdma_swi functions, so this is
largely a noop on those platforms. The busdma_swi on is64 is not properly
locked yet, so warnings will be emitted on this platform when busdma
callback deferrals happen.

If anyone gets panics or warnings from dflt_lock() being called, please
let me know right away.

Reviewed by: tmm, gibbs

show more ...


# 170e7a20 30-Jun-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Include file clean up.


# 630529ad 28-Jun-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Fix several problems related to resume:
- Initialize fc->status to process bus reset correctly after resume.
- Initialize AT ring buffer pointer.
- Requeue stdma to stfree for active IR buffer.
- Sto

Fix several problems related to resume:
- Initialize fc->status to process bus reset correctly after resume.
- Initialize AT ring buffer pointer.
- Requeue stdma to stfree for active IR buffer.
- Stop DMA before suspend for safe.
- Set powerstate after resume.

show more ...


# 740b10aa 27-Jun-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

- Use fwohci_poll() instead of fwohci_intr() to process the first bus reest.
- Wait 2 cycles before starting the process for fast machines.


Revision tags: release/5.1.0_cvs, release/5.1.0
# 3be95df6 04-Jun-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Add id for TI's 1394b link chip.


# 8fd36d4a 24-Apr-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Add some IEEE 1394 OHCI chips.

Partially submitted by: Tetsuya Ryuchi <ryuchi@ryuchi.org>
PR: misc/51336


# 77ee030b 17-Apr-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

MFp4(simokawa_firewire):
Many internal structure changes for the FireWire driver.

- Compute CRC in CROM parsing.
- Add support for configuration ROM build.
- Simplify dummy buffer handling.
- busdm

MFp4(simokawa_firewire):
Many internal structure changes for the FireWire driver.

- Compute CRC in CROM parsing.
- Add support for configuration ROM build.
- Simplify dummy buffer handling.
- busdma conversion
- Use swi_taskqueue_giant for -current. Mark the interrupt routine as MPSAFE.
- AR buffer handling.
Don't reallocate AR buffer but just recycle it.
Don't malloc and copy per packet in fwohci_arcv().
Pass packet to fw_rcv() using iovec.
Application must prepare receiving buffer in advance.
- Change fw_bind API so that application should pre-allocate xfer structure.
- Add fw_xfer_unload() for recycling struct fw_xfer.
- Add post_busreset hook
- Remove unused 'sub' and 'act_type' in struct fw_xfer.
- Remove npacket from struct fw_bulkxfer.
- Don't call back handlers in fwochi_arcv() if the packet has
not drained in AT queue
- Make firewire works on big endian platform.
- Use native endian for packet header and remove unnecessary ntohX/htonX.
- Remove FWXFERQ_PACKET mode. We don't use it anymore.
- Remove unnecessary restriction of FWSTMAXCHUNK.
- Don't set root node for phy config packet if the root node is
not cycle master capable but set myself for root node.
We should be the root node after next bus reset.

Spotted by: Yoshihiro Tabira <tabira@scd.mei.co.jp>
- Improve self id handling

Tested on: i386, sparc64 and i386 with forced bounce buffer

show more ...


Revision tags: release/4.8.0_cvs, release/4.8.0
# a84fda13 24-Mar-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Safe PCI configuration.
- Clear PCIM_CMD_MWRICEN:
some chips seem to have problem with write invalidate.
clearing this bit fixes SBP timeout problem.

Tested by: Michael Reifenberger <Michael.Reife

Safe PCI configuration.
- Clear PCIM_CMD_MWRICEN:
some chips seem to have problem with write invalidate.
clearing this bit fixes SBP timeout problem.

Tested by: Michael Reifenberger <Michael.Reifenberger@Plaut.de>

- Set PCIM_CMD_SERRESPEN and PCIM_CMD_PERRESPEN
- Moderate value for latency timer.

show more ...


# 69f034da 18-Feb-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Use pci_get_devid().


# 12f2a295 18-Feb-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Add 'uPD72871/2 IEEE1394 1-Chip OHCI Host Controller'.


# 66117323 15-Feb-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Protect calling fwohci_intr() with splfw() for 4-stable.


# c26f4c71 14-Feb-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Clear the bus reset event flag as soon as possible after
the initialization has completed to start transactions even when
interrupt is disabled during the boot process.


# 5166f1df 01-Feb-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Define new malloc type M_FW and use it.


# 64cf5240 31-Jan-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

SBP related changes.
- Issue LOGOUT command on detach and shutdown.
- Rename some functions.


Revision tags: release/5.0.0_cvs, release/5.0.0
# bda19384 05-Jan-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Syntax fix in fwohci_pci_suspend().


# d6105b60 04-Jan-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

- Replace printf() with device_printf().
- Separate fc->dev (i.e. fwohci0) and fc->bdev (i.e. firewire0).
- Remove unused firewirebusreg.h.
- Reduce size of descriptor block for asynchronous transmit

- Replace printf() with device_printf().
- Separate fc->dev (i.e. fwohci0) and fc->bdev (i.e. firewire0).
- Remove unused firewirebusreg.h.
- Reduce size of descriptor block for asynchronous transmit and
check the number of descriptor when copying from mbuf.
- Skip mbuf whose length is zero. NFS seems passing such mbuf and
some chips generates unrecoverable error.

show more ...


# 9339321d 04-Jan-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

- Propagate suspend/resume to child devices.
- Restore pci config registers after resume.
- Reinitialize and start rx buffers after resume.
- Don't reallocate memory in fwohci_db_init() if the dbch i

- Propagate suspend/resume to child devices.
- Restore pci config registers after resume.
- Reinitialize and start rx buffers after resume.
- Don't reallocate memory in fwohci_db_init() if the dbch is
already initialized.
- Fix typo.
- Some clean up.

show more ...


# d0fd7bc6 01-Jan-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Experimental support for suspend/resume, not finished yet.


# 1f2361f8 01-Jan-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

- Retry phy access when the wait-loop count is exhausted.
- Free allocated memory when detaching.
- Detect contigmalloc failure.


# 78953135 31-Dec-2002 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Fix and add several device IDs.


# ee126d67 26-Dec-2002 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Cosmetic change. s/Firewire/FireWire/.


# 17c3d42c 06-Dec-2002 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Reduce and improve debug messages.

Approved by: re


# 5e2a411f 12-Nov-2002 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Add a prototype for suspend/resume.


# aeeb2287 06-Nov-2002 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

- Let the PCI code try to route interrupt in -current
- Print warning in -stable.


1234567