summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/cnss_prealloc (follow)
Commit message (Collapse)AuthorAge
* wcnss: Fix buffer overflow in wcnss_prealloc_getAnurag Chouhan2018-09-20
| | | | | | | | | | | There is potential integer truncation in the wcnss_prealloc_get api. size_t is 8 byte on x64 platform and "unsigned int" is 4 byte. To avoid this integer truncation, pass size as size_t instead of unsigned int. CRs-Fixed: 2269610 Change-Id: I14b274dd7cad98b55fdce1aaa27783272231afde Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>
* icnss: remove pre-alloc memory leak check in platform driverHardik Kantilal Patel2017-05-02
| | | | | | | | | | | | | | | | | | | The WLAN host driver is allocating the memory from pre-alloc pool during insmod/wlan start up before WLAN driver register and release the pre-alloc memory after driver unregister/remove. The Pre-alloc memory leak check and reset in Icnss platform driver on probe failure and after remove will leads to invalid memory leak stat and dangling pointer for wlan host driver allocated memory from the pre-alloc memory pool. To fix the above issue remove the pre-allaoc memory leak check and pre-alloc memory pool reset from the icnss platform driver and export symbol for the pre-alloc memory leak check and pre-alloc memory pool reset. CRs-Fixed: 2039483 Change-Id: Id9f01c9d2b5184fbb58935eaf11fd21b50b47908 Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
* cnss_prealloc: Remove WARN_ONPrashanth Bhatta2017-04-16
| | | | | | | | | | WARN_ON is unnecessary if pre-alloc table doesn't have any free memory. Remove the WARN_ON as error log is enough to find out missing entry. Change-Id: I5a46e1f259e88d1a19f05195f5d7bb0745d072c3 CRs-fixed: 2030272 Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
* icnss: pre-alloc memory leak check on probe failure and removeHardik Kantilal Patel2017-03-31
| | | | | | | | | After wlan host driver probe failure and driver unload check the memory leak and reset the memory pool. CRs-Fixed: 2027407 Change-Id: Id6e413416ec7ea1d1bf0e69aab7eccb06de753d7 Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
* net: cnss_prealloc: add debugfs entry to check the memory statusSarada Prasanna Garnayak2017-03-31
| | | | | | | | | | | | | | | | | This feature adds support to check the pre allocated memory pool status at runtime. This debugfs entry provide the required information for wlan host driver memory profiling and adds support to debug the pre-alloc memory failure issue. feature: 1. Total amount of pre-alloc memory avail and used in the memory pool. 2. Pre-alloc memory status per slots(used/free). CRs-Fixed: 2027352 Change-Id: I61c51f93dd7462b1fa9c36f6eea3814a6acbdd34 Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org> Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
* cnss_prealloc: Update pre-alloc tablePrashanth Bhatta2017-03-09
| | | | | | | | | Update pre-alloc table with new memory requirement from WLAN functional driver. Change-Id: I2edc8ca0d2361e51f83af405c7d97fba91bf96f5 CRs-fixed: 2017525 Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
* cnss_prealloc: Dump the call stack if there is no memory availableYue Ma2016-03-23
| | | | | | | | Dump the call stack if there is no memory available from the prealloc pool in order to get the source of the memory allocation. Change-Id: I0b523e82638410ea679f1d9d3f4bb56703ed9100 Signed-off-by: Yue Ma <yuem@codeaurora.org>
* net: cnss_prealloc: Add memory for high latency SDIO interfaceSarada Prasanna Garnayak2016-03-23
| | | | | | | | | | | wlan driver transport layer pdev handler needs 128kb pre allocated memory in a single block memory allocation for transmit/receive descriptor initialization in wlan startup for the wlan module with high latency(SDIO) based hardware interface. CRs-Fixed: 978073 Change-Id: I0dbe047a7b64e96bf32470702d1b3e3088bffcf7 Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
* cnss: Update prealloc memory tableYue Ma2016-03-23
| | | | | | | | | The memory size of a slot in the prealloc table should be order of 2, otherwise some memory will be wasted since kernel only allocates contiguous physical memory in pages by order of 2. Change-Id: I762ad490d300f8b622a3ed1f9ccbe2af2d926c49 Signed-off-by: Yue Ma <yuem@codeaurora.org>
* cnss: Fix a boundary check bug in cnss prealloc driverYue Ma2016-03-23
| | | | | | | | | | Currently the driver gives a memory slot only if its size is greater than the memory requested by the caller. This will waste a bigger slot if the memory requested is equal to the slot size. Hence fix it by adding the equal check when a memory slot is requested. Change-Id: Ib48477607e9332c8942894301ead606a31fa3284 Signed-off-by: Yue Ma <yuem@codeaurora.org>
* net: wireless: decouple cnss crypto from cnss memory pre-allocSarada Prasanna Garnayak2016-03-23
| | | | | | | | | | | | | | | The cnss crypto add support for wlan host driver for security Protocol and cipher key generation where cnss memory pre-alloc feature enable wlan driver to use pre allocated memory for its internal usage and release it to back to pre-allocated pool. Decouple cnss crypto from cnss memory pre-alloc and add kernel config flag for this crypto module compilation and update the defocnfig of required targets. CRs-Fixed: 949992 Change-Id: If34819fd76076ba522a9a42ac41fdae1f541f5c8 Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
* net: cnss_prealloc: Add snapshot of cnss prealloc driverYue Ma2016-03-22
This is a snapshot of the cnss prealloc driver and associated files as of msm-3.18 commit: e70ad0cd5efdd9dc91a77dcdac31d6132e1315c1 (Promotion of kernel.lnx. 3.18-151201.) Signed-off-by: Yue Ma <yuem@codeaurora.org>