linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ajay Garg <ajaygargnsit@gmail.com>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: Kishon Vijay Abraham I <kishon@ti.com>,
	linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: No controller seen in /sys/kernel/config/pci_ep/controllers
Date: Thu, 21 Jul 2022 15:54:17 +0530	[thread overview]
Message-ID: <CAHP4M8X67WSLMqe2qQrbODrg5oSLvR5fP4JVN+zeQafHizrOXA@mail.gmail.com> (raw)
In-Reply-To: <20220713181805.GA841376@bhelgaas>

Any pointers please?

Thanks and Regards,
Ajay

On Wed, Jul 13, 2022 at 11:48 PM Bjorn Helgaas <helgaas@kernel.org> wrote:
>
> [+to Kishon, endpoint maintainer, +cc LKML]
>
> On Wed, Jul 13, 2022 at 12:53:06PM +0530, Ajay Garg wrote:
> > Hello everyone.
> >
> > The kernel has been built with :
> >
> > ###################################
> > CONFIG_PCI_ENDPOINT=y
> > CONFIG_PCI_ENDPOINT_CONFIGFS=y
> > CONFIG_PCI_EPF_TEST=y
> > CONFIG_PCI_ENDPOINT_TEST=y
> > ###################################
> >
> >
> > Thereafter, following are seen :
> >
> > ###################################
> > $ sudo mount none /sys/kernel/config/ -t configfs
> > mount: /sys/kernel/config: none already mounted or mount point busy.
> >
> > $ ls -lrth /sys/class/pci_epc/
> > total 0
> >
> > $ ls -lrth /sys/kernel/config
> > total 0
> > drwxr-xr-x 4 root root 0 Jul 13 10:58 pci_ep
> > drwxr-xr-x 2 root root 0 Jul 13 10:58 usb_gadget
> >
> > $ ls -lrth /sys/kernel/config/pci_ep/functions
> > total 0
> > drwxr-xr-x 2 root root 0 Jul 13 10:58 pci_epf_test
> >
> > $ ls -lrth /sys/kernel/config/pci_ep/controllers
> > total 0
> >
> > $
> > ###################################
> >
> > What is being missed?
> >
> > Side Queries : Is the controller that is expected to be listed, a
> > virtual-controller (like the one provided by CONFIG_USB_DUMMY_HCD in
> > case of USB)?
> >
> > Or there must be a real additional controller for pci-endpoint purpose?
> > If yes, then :
> >
> >               * I guess no listing is expected currently, as my machine has just
> >                 one controller (as pci-host).
> >
> >               * Is there a way to have an additional virtual pci-controller?
> >
> >
> > Thanks and Regards,
> > Ajay

  reply	other threads:[~2022-07-21 10:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-13  7:23 No controller seen in /sys/kernel/config/pci_ep/controllers Ajay Garg
2022-07-13 18:18 ` Bjorn Helgaas
2022-07-21 10:24   ` Ajay Garg [this message]
2022-07-21 10:32     ` Kishon Vijay Abraham I
2022-07-21 12:23       ` Ajay Garg

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=CAHP4M8X67WSLMqe2qQrbODrg5oSLvR5fP4JVN+zeQafHizrOXA@mail.gmail.com \
    --to=ajaygargnsit@gmail.com \
    --cc=helgaas@kernel.org \
    --cc=kishon@ti.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.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 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).