[PATCH v2 02/12] ath11k: allocate dst ring descriptors from cacheable memory

Peter Oh peter.oh at eero.com
Wed Aug 25 11:45:55 PDT 2021


On 8/25/21 2:37 AM, P Praneesh wrote:
> @@ -292,6 +315,11 @@ int ath11k_dp_srng_setup(struct ath11k_base *ab, struct dp_srng *ring,
>   		return -EINVAL;
>   	}
>   
> +	if (cached && ab->hw_params.alloc_cacheable_memory) {
> +		params.flags |= HAL_SRNG_FLAGS_CACHED;
> +		ring->cached = 1;
> +	}

"&& ab->hw_params.alloc_cacheable_memory" is redundant check.

Thanks,
Peter




More information about the ath11k mailing list