All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: Alexander Fomichev <fomichev.ru@gmail.com>,
	linuxppc-dev@lists.ozlabs.org
Cc: Christoph Hellwig <hch@lst.de>, linux@yadro.com
Subject: Re: [RFC PATCH] powerpc: fix get_arch_dma_ops() for NTB devices
Date: Wed, 30 Jan 2019 23:58:40 +1100	[thread overview]
Message-ID: <87imy6pain.fsf@concordia.ellerman.id.au> (raw)
In-Reply-To: <20190128133203.mon4a3nkrzijn43g@alfbook-pro.local>

Alexander Fomichev <fomichev.ru@gmail.com> writes:

> get_dma_ops() falls into arch-dependant get_arch_dma_ops(), which
> historically returns NULL on PowerPC. Therefore dma_set_mask() fails.
> This affects Switchtec (and probably other) NTB devices, that they fail
> to initialize.

What's an NTB device?

drivers/ntb I assume?

So it's a PCI device of some sort, but presumably the device you're
calling dma_set_mask() on is an NTB device not a PCI device?

But then it works if you tell it to use the PCI DMA ops?

At the very least the code should be checking for the NTB bus type and
only returning the PCI ops in that specific case, not for all devices.

cheers

  reply	other threads:[~2019-01-30 13:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-28 13:32 [RFC PATCH] powerpc: fix get_arch_dma_ops() for NTB devices Alexander Fomichev
2019-01-30 12:58 ` Michael Ellerman [this message]
2019-02-04  8:17   ` Christoph Hellwig
2019-02-05 11:20     ` Michael Ellerman
2019-02-05 16:13       ` Christoph Hellwig

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=87imy6pain.fsf@concordia.ellerman.id.au \
    --to=mpe@ellerman.id.au \
    --cc=fomichev.ru@gmail.com \
    --cc=hch@lst.de \
    --cc=linux@yadro.com \
    --cc=linuxppc-dev@lists.ozlabs.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.