From: Michal Kazior <michal.kazior@tieto.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [PATCH 20/20] ath10k: Remove unneeded locks during HTT RX attach
Date: Mon, 29 Apr 2013 10:34:11 +0200 [thread overview]
Message-ID: <517E3083.4000409@tieto.com> (raw)
In-Reply-To: <20862.11247.214965.970445@gargle.gargle.HOWL>
On 29/04/13 10:14, Sujith Manoharan wrote:
> Michal Kazior wrote:
>> I'm not even sure if we should abort right away. We replenish htt rx
>> buffers using GFP_ATOMIC allocation. This can fail under memory pressure
>> more often (then, say, GFP_KERNEL). I wouldn't really consider this as
>> fatal error. Although we could probably have a ath10k_warn/info if the
>> initial allocation doesn't fill everything up. Perhaps we could fail
>> only if the fill_cnt is still 0, or below a defined threshold?
>>
>> We could also try and split the replenishing functions and use
>> GFP_KERNEL allocation during htt rx attach.
>
> We do a bunch of allocations using GFP_ATOMIC after htt_attach().
> Proceeding with initialization at this point seems wrong and programming
> the FW with RX ring configuration via HTT_H2T_MSG_TYPE_RX_RING_CFG even though
> host setup failed is probably incorrect ?
You're right.
> An updated patch:
>
> [PATCH] ath10k: Remove unneeded locks during HTT RX attach
>
> Fix two issues:
>
> * Bail out properly when RX buffer allocation fails at init time.
> * Do not acquire the rx ring lock during attach() since we
> don't rearm the replenish timer.
>
> Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
> ---
Looks good to me now.
-- Pozdrawiam / Best regards, Michal Kazior.
next prev parent reply other threads:[~2013-04-29 8:34 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-28 15:31 [ath9k-devel] [PATCH 01/20] ath10k: Remove duplicate UART init code Sujith Manoharan
2013-04-28 15:31 ` [ath9k-devel] [PATCH 02/20] ath10k: Merge mac.h with core.h Sujith Manoharan
2013-04-30 18:23 ` Kalle Valo
2013-04-30 23:51 ` Sujith Manoharan
2013-05-02 7:41 ` Kalle Valo
2013-05-02 8:38 ` Sujith Manoharan
2013-04-28 15:31 ` [ath9k-devel] [PATCH 03/20] ath10k: Rename HIF callback post_init as init Sujith Manoharan
2013-04-28 15:31 ` [ath9k-devel] [PATCH 04/20] ath10k: Remove "ar" inside WMI structure Sujith Manoharan
2013-04-28 15:31 ` [ath9k-devel] [PATCH 05/20] ath10k: Remove "htc" inside HTT struct Sujith Manoharan
2013-04-28 15:31 ` [ath9k-devel] [PATCH 06/20] ath10k: Move debug routines to debug.c Sujith Manoharan
2013-04-30 18:28 ` Kalle Valo
2013-04-28 15:31 ` [ath9k-devel] [PATCH 07/20] ath10k: Remove void pointers in HTC endpoints Sujith Manoharan
2013-04-28 15:31 ` [ath9k-devel] [PATCH 08/20] ath10k: Use lockless SKB queue routines Sujith Manoharan
2013-04-28 15:31 ` [ath9k-devel] [PATCH 09/20] ath10k: Optimize HTC queue handling Sujith Manoharan
2013-04-28 15:31 ` [ath9k-devel] [PATCH 10/20] ath10k: Remove "credits_used" from SKB CB Sujith Manoharan
2013-04-29 5:45 ` Michal Kazior
2013-04-29 6:02 ` Sujith Manoharan
2013-04-28 15:31 ` [ath9k-devel] [PATCH 11/20] ath10k: Disable credit flow control for EP0 Sujith Manoharan
2013-04-28 15:31 ` [ath9k-devel] [PATCH 12/20] ath10k: Optimize credit allocation Sujith Manoharan
2013-04-28 15:31 ` [ath9k-devel] [PATCH 13/20] ath10k: Remove unused variable in processing credit report Sujith Manoharan
2013-04-28 15:31 ` [ath9k-devel] [PATCH 14/20] ath10k: Print HTC service name Sujith Manoharan
2013-04-28 15:31 ` [ath9k-devel] [PATCH 15/20] ath10k: Fix typo Sujith Manoharan
2013-04-28 15:31 ` [ath9k-devel] [PATCH 16/20] ath10k: Merge txrx.c with HTT Sujith Manoharan
2013-04-28 15:31 ` [ath9k-devel] [PATCH 17/20] ath10k: Use IS_ALIGNED macro to check alignment Sujith Manoharan
2013-04-28 15:31 ` [ath9k-devel] [PATCH 18/20] ath10k: Move htt_rx_ind_get_mpdu_ranges to htt_rx.c Sujith Manoharan
2013-04-29 5:51 ` Michal Kazior
2013-04-29 6:03 ` Sujith Manoharan
2013-04-28 15:31 ` [ath9k-devel] [PATCH 19/20] ath10k: Simplify excessively nested HTT structure layout Sujith Manoharan
2013-04-28 15:31 ` [ath9k-devel] [PATCH 20/20] ath10k: Remove unneeded locks during HTT RX attach Sujith Manoharan
2013-04-29 6:07 ` Michal Kazior
2013-04-29 6:41 ` Sujith Manoharan
2013-04-29 6:48 ` Sujith Manoharan
2013-04-29 7:08 ` Sujith Manoharan
2013-04-29 7:27 ` Michal Kazior
2013-04-29 8:14 ` Sujith Manoharan
2013-04-29 8:34 ` Michal Kazior [this message]
2013-04-29 8:47 ` Sujith Manoharan
2013-04-30 11:43 ` [ath9k-devel] [PATCH 01/20] ath10k: Remove duplicate UART init code Kalle Valo
2013-04-30 13:21 ` Sujith Manoharan
2013-04-30 13:38 ` Kalle Valo
2013-04-30 13:42 ` Sujith Manoharan
2013-04-30 13:55 ` Sujith Manoharan
2013-04-30 14:00 ` Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=517E3083.4000409@tieto.com \
--to=michal.kazior@tieto.com \
--cc=ath9k-devel@lists.ath9k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.