]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 296552,296596,296603,296624,296627: Fixes related to memory windows.
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 4 Nov 2016 19:07:12 +0000 (19:07 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 4 Nov 2016 19:07:12 +0000 (19:07 +0000)
commit29b409263faacb44ecb4853d2cba6ba06ef8a39f
treea0ded76e49c02f2352e54d1df1e9aae37644f652
parentba312402ee7043af499cc91690654bc5320f1295
MFC 296552,296596,296603,296624,296627: Fixes related to memory windows.

296552:
cxgbe(4): Rename regwin_lock to reg_lock.  It is used to protect access
to indirect registers only.

296596:
cxgbe(4): Allow the addr/len pair that is being validated in
validate_mem_range to span multiple memory types.  Update
validate_mt_off_len to use validate_mem_range.

296603:
cxgbe(4): Add general purpose routines that offer safe access to the
chip's memory windows.  Convert existing users of these windows to the
new routines.

296624:
cxgbe(4): Fix bug in r296603.  The memory window needs to be
repositioned if the start address isn't in the window already.  One
of the bounds check used the end address instead.

296627:
cxgbe(4): Improvements to the code that deals with the firmware's log.

- Query the location of the log very early during attach.  Refresh the
  location later after establishing contact with the firmware.
- Save the log's location as a flat address in devlog_params.
- Use a memory window instead of backdoor access to the EDC/MC to read
  the log.

Sponsored by: Chelsio Communications

git-svn-id: svn://svn.freebsd.org/base/stable/10@308305 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/cxgbe/adapter.h
sys/dev/cxgbe/common/common.h
sys/dev/cxgbe/t4_main.c