All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Michal Kazior <michal.kazior@tieto.com>,
	Adrian Chadd <adrian@freebsd.org>
Cc: Rajkumar Manoharan <rmanohar@codeaurora.org>,
	"Manoharan, Rajkumar" <rmanohar@qti.qualcomm.com>,
	"ath10k@lists.infradead.org" <ath10k@lists.infradead.org>,
	"Valo, Kalle" <kvalo@qca.qualcomm.com>,
	Sebastian Gottschall <s.gottschall@dd-wrt.com>,
	"nbd@nbd.name" <nbd@nbd.name>
Subject: Re: [PATCH] ath10k: fix system hang at qca99x0 probe on x86 platform
Date: Wed, 20 Jul 2016 09:48:22 -0700	[thread overview]
Message-ID: <578FAB56.1030606@candelatech.com> (raw)
In-Reply-To: <CA+BoTQ=ehuXpcJUOeSscLKzX9T=hZyp5i2G9GoxTVX=LAg_4hA@mail.gmail.com>



On 07/19/2016 11:05 PM, Michal Kazior wrote:
> On 20 July 2016 at 07:44, Adrian Chadd <adrian@freebsd.org> wrote:
>> Hi,
>>
>> dma coherent doesn't /have/ to mean "low 32 bits". It's just supposed
>> to mean "try really hard to use uncached memory on platforms that
>> support it."
>
> Good point. Maybe it does on x86, or at least some machines.
>
> @Ben: Can you verify if that's the case for you? Can you see what
> address ranges hostmem chunks get with and without the GFP_DMA32 (and
> maybe compare it against a revert to compare to dma-coherent as well)?

You just want a printk("%p", foo); for the chunks returned with and without
this flag?

>
>
>> The ath10k hardware (at least what I've played with thus far) is all
>> 32 bit DMA hardware, not 64 bit, so it can't be handed 64 bit memory -
>> contiguous or otherwise.
>>
>> So, if dma coherent on linux means 32 bit only physmem, great.
>>
>> Now, it also turns out that various platforms that say they do
>> coherent memory these days do "mostly coherent", and you still need
>> some flush/sync ops..
>
> Yeah, but since the device has it's own CPU and RAM it has to have a
> way to distinguish local and host memory in some way using these 32
> bits, no? (think about firmware generating local 802.11 frames vs
> pushing frames coming from host driver)

Host memory cannot be accessed directly I think, at least not by normal
code.  Firmware uses some low level 'ce' type logic to handle that I think?

In 10.4 firmware, check out the code-swap code, for instance, or the
rate-ctrl swap logic in 10.1 or higher?

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

  parent reply	other threads:[~2016-07-20 16:54 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-14  6:17 [PATCH] ath10k: fix system hang at qca99x0 probe on x86 platform Rajkumar Manoharan
2016-06-14  6:17 ` Rajkumar Manoharan
2016-06-29 13:55 ` Sebastian Gottschall
2016-06-29 14:04 ` Sebastian Gottschall
2016-06-29 14:10   ` Sebastian Gottschall
2016-06-29 16:35     ` Manoharan, Rajkumar
2016-06-29 16:58       ` Sebastian Gottschall
2016-06-30  7:09       ` Michal Kazior
2016-07-19 15:25         ` Manoharan, Rajkumar
2016-07-19 16:13           ` Adrian Chadd
2016-07-19 16:53             ` Ben Greear
2016-07-19 17:00               ` Adrian Chadd
2016-07-20  5:38               ` Michal Kazior
2016-07-20  5:44                 ` Adrian Chadd
2016-07-20  6:05                   ` Michal Kazior
2016-07-20  6:11                     ` Adrian Chadd
2016-07-20  6:27                       ` Michal Kazior
2016-07-20  8:49                         ` Sebastian Gottschall
2016-07-20  8:51                         ` rx rate issue Sebastian Gottschall
2016-07-20 10:23                           ` Michal Kazior
2016-07-20 10:50                             ` Sebastian Gottschall
2016-07-20 11:03                               ` Michal Kazior
2016-07-20 11:10                                 ` Sebastian Gottschall
2016-07-20 11:32                                   ` Michal Kazior
2016-07-20 11:12                                 ` Sebastian Gottschall
2016-07-20 16:42                                   ` Ben Greear
2016-07-20 16:50                                     ` Sebastian Gottschall
2016-07-25 14:37                               ` 9984 issues Sebastian Gottschall
2016-07-25 14:43                                 ` Ben Greear
2016-07-25 15:09                                   ` Sebastian Gottschall
2016-07-25 16:03                                     ` Adrian Chadd
2016-07-25 16:31                                       ` Sebastian Gottschall
2016-07-25 17:22                                         ` Adrian Chadd
2016-07-26  1:11                                           ` Sebastian Gottschall
2016-07-26  2:26                                             ` Ben Greear
2016-07-26  2:40                                               ` Sebastian Gottschall
2016-07-26  9:31                                               ` 9984 issues solution Sebastian Gottschall
2016-07-26 10:27                                                 ` Michal Kazior
     [not found]                                       ` <d5410503-fd51-5076-82 ,36-c296346f5d7f@dd-wrt.com>
     [not found]                                         ` <BAY176-W27264163A549F6C69777EFB60D0@phx.gbl>
2016-07-26  3:06                                           ` Not able to capture qos data packets - QCA988x sudheer thota
2016-07-26  6:21                                             ` Michal Kazior
2016-07-26 11:53                                               ` sudheer thota
     [not found]                                                 ` <BAY176-W426C633D2FC24792734487B90F0@phx.gbl>
2016-07-27  6:51                                                   ` RIFS packets missing on ath10k monitor sudheer thota
2016-07-20 17:02                         ` [PATCH] ath10k: fix system hang at qca99x0 probe on x86 platform Adrian Chadd
2016-09-26 16:53                           ` [PATCH] ath10k: fix system hang at qca99x0 probe on x86 platform (DMA32 issue) Ben Greear
2016-09-26 16:53                             ` Ben Greear
2016-07-20 16:48                     ` Ben Greear [this message]
2016-07-20  5:36           ` [PATCH] ath10k: fix system hang at qca99x0 probe on x86 platform Michal Kazior
2016-07-20 16:52             ` Ben Greear
2016-07-22 22:43 ` Ben Greear
2016-07-22 22:43   ` Ben Greear
2016-07-23  9:11   ` Sebastian Gottschall
2016-07-23  9:11     ` Sebastian Gottschall
2016-07-23  9:45     ` Manoharan, Rajkumar
2016-07-23  9:45       ` Manoharan, Rajkumar
2016-07-23 21:55     ` Ben Greear
2016-07-23 21:55       ` Ben Greear

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=578FAB56.1030606@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=adrian@freebsd.org \
    --cc=ath10k@lists.infradead.org \
    --cc=kvalo@qca.qualcomm.com \
    --cc=michal.kazior@tieto.com \
    --cc=nbd@nbd.name \
    --cc=rmanohar@codeaurora.org \
    --cc=rmanohar@qti.qualcomm.com \
    --cc=s.gottschall@dd-wrt.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 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.