linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Keith Busch <keith.busch@intel.com>
To: Wang Sheng-Hui <shhuiw@foxmail.com>
Cc: linux-pci <linux-pci@vger.kernel.org>
Subject: Re: ask for help: How to make pcie-dpc detect DPC feature in platform device?
Date: Wed, 7 Dec 2016 15:44:10 -0500	[thread overview]
Message-ID: <20161207204410.GB22478@localhost.localdomain> (raw)
In-Reply-To: <tencent_1274B1EA3B46AD0574878017@qq.com>

On Mon, Oct 17, 2016 at 05:30:00PM -0700, Wang Sheng-Hui wrote:
> Keith,
> 
> Sorry to trouble you.
> 
> I'm making up a driver (DPC supported in the device) for our private SoC system, 
> and the driver is regarded as a platform driver.
> 
> I wonder how can I make the pcie-dpc driver detect my DPC-enabled SOC and tigger
> some action in my platform driver?
> 
> And one more question:
>            How to simulate DPC event in simulation env, e.g QEMU?

Sorry for the late reply. A lot of mailing list messages have been
redirected to my spam folder for some reason.

The pcie-dpc driver, if enabled in your kernel config, automatically
binds to any pcie downstream or root port that has the DPC capability. If
your DPC capable device is not seen as a root or downstream pcie port,
then pcie-dpc won't bind to it.

I don't see why you couldn't emulate the capability in QEMU, but I don't
see it implemented in any of the emulated pcie devices, so you'd have
to get someone to implement it in one of them.

      reply	other threads:[~2016-12-07 20:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-18  0:30 ask for help: How to make pcie-dpc detect DPC feature in platform device? Wang Sheng-Hui
2016-12-07 20:44 ` Keith Busch [this message]

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=20161207204410.GB22478@localhost.localdomain \
    --to=keith.busch@intel.com \
    --cc=linux-pci@vger.kernel.org \
    --cc=shhuiw@foxmail.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).