960-0011-ath10k-limit-pci-buffer-size.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --- a/ath10k-5.10/pci.c
  2. +++ b/ath10k-5.10/pci.c
  3. @@ -131,7 +131,11 @@ static const struct ce_attr pci_host_ce_
  4. .flags = CE_ATTR_FLAGS,
  5. .src_nentries = 0,
  6. .src_sz_max = 2048,
  7. +#ifndef CONFIG_ATH10K_SMALLBUFFERS
  8. .dest_nentries = 512,
  9. +#else
  10. + .dest_nentries = 128,
  11. +#endif
  12. .recv_cb = ath10k_pci_htt_htc_rx_cb,
  13. },
  14. @@ -140,7 +144,11 @@ static const struct ce_attr pci_host_ce_
  15. .flags = CE_ATTR_FLAGS,
  16. .src_nentries = 0,
  17. .src_sz_max = 2048,
  18. +#ifndef CONFIG_ATH10K_SMALLBUFFERS
  19. .dest_nentries = 128,
  20. +#else
  21. + .dest_nentries = 64,
  22. +#endif
  23. .recv_cb = ath10k_pci_htc_rx_cb,
  24. },
  25. @@ -167,7 +175,11 @@ static const struct ce_attr pci_host_ce_
  26. .flags = CE_ATTR_FLAGS,
  27. .src_nentries = 0,
  28. .src_sz_max = 512,
  29. +#ifndef CONFIG_ATH10K_SMALLBUFFERS
  30. .dest_nentries = 512,
  31. +#else
  32. + .dest_nentries = 128,
  33. +#endif
  34. .recv_cb = ath10k_pci_htt_rx_cb,
  35. },
  36. @@ -192,7 +204,11 @@ static const struct ce_attr pci_host_ce_
  37. .flags = CE_ATTR_FLAGS,
  38. .src_nentries = 0,
  39. .src_sz_max = 2048,
  40. +#ifndef CONFIG_ATH10K_SMALLBUFFERS
  41. .dest_nentries = 128,
  42. +#else
  43. + .dest_nentries = 96,
  44. +#endif
  45. .recv_cb = ath10k_pci_pktlog_rx_cb,
  46. },