Skip to content

Enable no_cache in driver_data

[email protected] lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 3 repliesIn review
  2. v23 patches 10 repliesSuperseded

Changes in v3 from the cover letter

- Add a platform device to enable PM support in test driver
- Add a debugfs device to enable driver data cache testing
- Fix a logic error so driver_data can be able to cache
- Add two test cases for caching and non-caching
- Rebase to Luis R. Rodriguez's 20170605-driver-data branch

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3firmware_class: move NO_CACHE from private to driver_data_req_paramsdrivers/base/firmware_class-dbg.c drivers/base/firmware_class.c include/linux/driver_data.h+127 -113 replies
2/3iwlwifi: use DRIVER_DATA_REQ_NO_CACHE for driver_datadrivers/net/wireless/intel/iwlwifi/iwl-drv.c+2 -00 replies
3/3test: add no_cache to driver_data load testerlib/test_driver_data.c tools/testing/selftests/firmware/driver_data.sh+154 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCHv3 0/3] Enable no_cache in driver_data

From: Yi Li <[email protected]>

Changes in v3:

- Add a platform device to enable PM support in test driver
- Add a debugfs device to enable driver data cache testing
- Fix a logic error so driver_data can be able to cache
- Add two test cases for caching and non-caching
- Rebase to Luis R. Rodriguez's 20170605-driver-data branch

Changes in v2:

- Rebase to Luis R. Rodriguez's 20170501-driver-data-try2 branch
- Expose DRIVER_DATA_REQ_NO_CACHE flag to public driver_data_req_params structure, so upper drivers can ask driver_data driver to bypass the internal caching mechanism. This will be used for streaming and other drivers maintains their own caching like iwlwifi.
- Add self test cases.

Yi Li (3):
firmware_class: move NO_CACHE from private to driver_data_req_params
iwlwifi: use DRIVER_DATA_REQ_NO_CACHE for driver_data
test: add no_cache to driver_data load tester

 drivers/base/firmware_class-dbg.c               | 108 ++++++++++++++++++++++++
 drivers/base/firmware_class.c                   |  26 +++---
 drivers/net/wireless/intel/iwlwifi/iwl-drv.c    |   2 +
 include/linux/driver_data.h                     |   4 +
 lib/test_driver_data.c                          |  97 ++++++++++++++++++---
 tools/testing/selftests/firmware/driver_data.sh |  69 +++++++++++++++
 6 files changed, 285 insertions(+), 21 deletions(-)
 create mode 100644 drivers/base/firmware_class-dbg.c
Signature · 1 line
2.7.4