]> 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)
commitf88527d0ea60375d3a2b7383eae37913c5a1f99d
tree124be3c4e46e61e4b0ad549b9922b65b894f0242
parentcefce9c01b401434eca80de0fd0690343a440eb8
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