Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1559456

Re: [PATCH 16/37] PCI: endpoint: Introduce configfs entry for configuring EP functions

From Kishon Vijay Abraham I <kishon@ti.com>
Newsgroups linux.kernel
Subject Re: [PATCH 16/37] PCI: endpoint: Introduce configfs entry for configuring EP functions
Date 2017-01-16 07:10 +0100
Message-ID <t08Ep-4DX-13@gated-at.bofh.it> (permalink)
References <sYKNQ-2Nu-3@gated-at.bofh.it> <sYKNR-2Nu-39@gated-at.bofh.it> <sZesy-460-41@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Christoph,

On Friday 13 January 2017 11:36 PM, Christoph Hellwig wrote:
> Hi Kishon,
> 
> a couple comments on the configfs layout based on my experiments with
> your previous drop to implement a NVMe device using it.

Thanks for trying it out!
> 
> I don't think most of these configfs files should be present here, as
> they are properties of the implemented PCIe devices.  E.g. for my
> NVMe device they will be sort of hardcoded most of the time, as they
> would be for other devices that would always have a fixed vendor/device/
> class ID, cacheline size, etc.

Actually not all devices have hardcoded headers. E.g the platform I'm using
doesn't have hardcoded headers and it can be configured based on the function
the user would like to use. If the devices are hardcoded, then using configfs
can be skipped altogether. In such cases, APIs like pci_epf_create() can
directly be used by the drivers instead of going via configfs.

Thanks
Kishon

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 16/37] PCI: endpoint: Introduce configfs entry for configuring EP functions Kishon Vijay Abraham I <kishon@ti.com> - 2017-01-12 11:30 +0100
  Re: [PATCH 16/37] PCI: endpoint: Introduce configfs entry for  configuring EP functions Christoph Hellwig <hch@infradead.org> - 2017-01-13 19:10 +0100
    Re: [PATCH 16/37] PCI: endpoint: Introduce configfs entry for  configuring EP functions Kishon Vijay Abraham I <kishon@ti.com> - 2017-01-16 07:10 +0100
      Re: [PATCH 16/37] PCI: endpoint: Introduce configfs entry for  configuring EP functions Christoph Hellwig <hch@infradead.org> - 2017-01-16 17:00 +0100

csiph-web