linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo@qca.qualcomm.com>
To: Michal Kazior <michal.kazior@tieto.com>
Cc: <ath10k@lists.infradead.org>, <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH 2/2] ath10k: split ce initialization and allocation
Date: Wed, 26 Mar 2014 11:22:07 +0200	[thread overview]
Message-ID: <87ppl9z54w.fsf@kamboji.qca.qualcomm.com> (raw)
In-Reply-To: <1395745943-29492-3-git-send-email-michal.kazior@tieto.com> (Michal Kazior's message of "Tue, 25 Mar 2014 12:12:23 +0100")

Michal Kazior <michal.kazior@tieto.com> writes:

> Definitions by which copy engine structure are
> allocated do not change so it doesn't make much
> sense to re-create those structures each time
> device is booted (e.g. due to firmware recovery).
>
> This should decrease chance of memory allocation
> failures.
>
> Reported-By: Avery Pennarun <apenwarr@gmail.com>
> Signed-off-by: Michal Kazior <michal.kazior@tieto.com>

[...]

> --- a/drivers/net/wireless/ath/ath10k/ce.h
> +++ b/drivers/net/wireless/ath/ath10k/ce.h
> @@ -104,7 +104,8 @@ struct ath10k_ce_ring {
>  	void *shadow_base_unaligned;
>  	struct ce_desc *shadow_base;
>  
> -	void **per_transfer_context;
> +	/* keep last */
> +	void *per_transfer_context[0];
>  };

If possible, I would prefer to have changes like this in a separate
patch as it makes easier to review. Or at least mention the change in
the commit log.

> @@ -2018,9 +2029,9 @@ static void ath10k_pci_hif_power_down(struct ath10k *ar)
>  	ath10k_pci_free_early_irq(ar);
>  	ath10k_pci_kill_tasklet(ar);
>  	ath10k_pci_deinit_irq(ar);
> +	ath10k_pci_ce_deinit(ar);
>  	ath10k_pci_warm_reset(ar);
>  
> -	ath10k_pci_ce_deinit(ar);
>  	if (!test_bit(ATH10K_PCI_FEATURE_SOC_POWER_SAVE, ar_pci->features))
>  		ath10k_do_pci_sleep(ar);
>  }

Why this?

-- 
Kalle Valo

  reply	other threads:[~2014-03-26  9:22 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-25 11:12 [PATCH 0/2] ath10k: ce fixes Michal Kazior
2014-03-25 11:12 ` [PATCH 1/2] ath10k: convert pci_alloc_consistent() to dma_alloc_coherent() Michal Kazior
2014-03-25 11:12 ` [PATCH 2/2] ath10k: split ce initialization and allocation Michal Kazior
2014-03-26  9:22   ` Kalle Valo [this message]
2014-03-26 10:05     ` Michal Kazior
2014-03-26 11:13       ` Kalle Valo
2014-03-26 11:19         ` Michal Kazior
2014-03-28  7:34 ` [PATCH v2 0/3] ath10k: ce fixes Michal Kazior
2014-03-28  7:34   ` [PATCH v2 1/3] ath10k: convert pci_alloc_consistent() to dma_alloc_coherent() Michal Kazior
2014-03-28  7:34   ` [PATCH v2 2/3] ath10k: split ce initialization and allocation Michal Kazior
2014-03-28  7:34   ` [PATCH v2 3/3] ath10k: deinit copy engine before resetting Michal Kazior
2014-03-28 12:33   ` [PATCH v2 0/3] ath10k: ce fixes 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=87ppl9z54w.fsf@kamboji.qca.qualcomm.com \
    --to=kvalo@qca.qualcomm.com \
    --cc=ath10k@lists.infradead.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=michal.kazior@tieto.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).