]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: Add mem debugfs entry
authorIdo Yariv <ido@wizery.com>
Tue, 23 Aug 2016 18:44:59 +0000 (14:44 -0400)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 19 Sep 2016 08:29:33 +0000 (11:29 +0300)
commiteb7e3cb1db7b3b1837bd7fa5feb16fd6570fa031
tree124be3c4e46e61e4b0ad549b9922b65b894f0242
parent85ec417a28077ab8743df44ab802e251ac06cf12
iwlwifi: mvm: Add mem debugfs entry

In order to access cached/paged memory, there are a couple of firmware
commands (one for UMAC and one for LMAC) that let the host access memory
and registers indirectly. Since this is done by the firmware on behalf
of the host, even if memory is paged out or cached, the host will
retrieve the memory as the firmware sees it (paged out memory will get
paged in).

Export this mechanism via a debugfs entry for both read and write
access.

WARNING: This mechanism has no protections at all. Invalid addresses may
crash or hang the firmware. Writing to arbitrary memory also comes with
no guarantees.

Signed-off-by: Ido Yariv <idox.yariv@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
drivers/net/wireless/intel/iwlwifi/mvm/fw-api.h