OSDN Git Service

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)
commit2b55f43f8e477a123bca4ab35351666479bd7b86
tree124be3c4e46e61e4b0ad549b9922b65b894f0242
parent186cd49a4d9ad1a0d4a7371c2d02a05a8ac53a03
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