<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/pci/endpoint/functions, branch linux-4.19.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.19.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.19.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-05-22T08:59:43Z</updated>
<entry>
<title>PCI: endpoint: Fix missing destroy_workqueue()</title>
<updated>2021-05-22T08:59:43Z</updated>
<author>
<name>Yang Yingliang</name>
</author>
<published>2021-03-31T08:40:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fb787dcb30987026d1028cf07e7180060fe81fb1'/>
<id>urn:sha1:fb787dcb30987026d1028cf07e7180060fe81fb1</id>
<content type='text'>
[ Upstream commit acaef7981a218813e3617edb9c01837808de063c ]

Add the missing destroy_workqueue() before return from
pci_epf_test_init() in the error handling case and add
destroy_workqueue() in pci_epf_test_exit().

Link: https://lore.kernel.org/r/20210331084012.2091010-1-yangyingliang@huawei.com
Fixes: 349e7a85b25fa ("PCI: endpoint: functions: Add an EP function to test PCI")
Reported-by: Hulk Robot &lt;hulkci@huawei.com&gt;
Signed-off-by: Yang Yingliang &lt;yangyingliang@huawei.com&gt;
Signed-off-by: Lorenzo Pieralisi &lt;lorenzo.pieralisi@arm.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>PCI: endpoint: functions: Use memcpy_fromio()/memcpy_toio()</title>
<updated>2020-01-27T13:50:23Z</updated>
<author>
<name>Wen Yang</name>
</author>
<published>2019-02-11T09:04:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1dfd97f0b1bd1691fc97900806b024bdc0c9f60b'/>
<id>urn:sha1:1dfd97f0b1bd1691fc97900806b024bdc0c9f60b</id>
<content type='text'>
[ Upstream commit 726dabfde6aa35a4f1508e235ae37edbbf9fbc65 ]

Functions copying from/to IO addresses should use the
memcpy_fromio()/memcpy_toio() API rather than plain memcpy().

Fix the issue detected through the sparse tool.

Fixes: 349e7a85b25f ("PCI: endpoint: functions: Add an EP function to test PCI")
Suggested-by: Kishon Vijay Abraham I &lt;kishon@ti.com&gt;
Signed-off-by: Wen Yang &lt;wen.yang99@zte.com.cn&gt;
[lorenzo.pieralisi@arm.com: updated log]
Signed-off-by: Lorenzo Pieralisi &lt;lorenzo.pieralisi@arm.com&gt;
Acked-by: Kishon Vijay Abraham I &lt;kishon@ti.com&gt;
CC: Lorenzo Pieralisi &lt;lorenzo.pieralisi@arm.com&gt;
CC: Bjorn Helgaas &lt;bhelgaas@google.com&gt;
CC: Gustavo Pimentel &lt;gustavo.pimentel@synopsys.com&gt;
CC: Niklas Cassel &lt;niklas.cassel@axis.com&gt;
CC: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
CC: Cyrille Pitchen &lt;cyrille.pitchen@free-electrons.com&gt;
CC: linux-pci@vger.kernel.org
CC: linux-kernel@vger.kernel.org
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>pci-epf-test/pci_endpoint_test: Add MSI-X support</title>
<updated>2018-07-19T10:46:45Z</updated>
<author>
<name>Gustavo Pimentel</name>
</author>
<published>2018-07-19T08:32:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c2e00e31087e58f6c49b90b4702fc3df4fad6a83'/>
<id>urn:sha1:c2e00e31087e58f6c49b90b4702fc3df4fad6a83</id>
<content type='text'>
Add MSI-X support and update driver documentation accordingly.

Signed-off-by: Gustavo Pimentel &lt;gustavo.pimentel@synopsys.com&gt;
Signed-off-by: Lorenzo Pieralisi &lt;lorenzo.pieralisi@arm.com&gt;
Acked-by: Kishon Vijay Abraham I &lt;kishon@ti.com&gt;
</content>
</entry>
<entry>
<title>pci-epf-test/pci_endpoint_test: Cleanup PCI_ENDPOINT_TEST memspace</title>
<updated>2018-07-19T10:39:44Z</updated>
<author>
<name>Gustavo Pimentel</name>
</author>
<published>2018-07-19T08:32:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e8817de7fbfca407f4f47da050d12b10fece5706'/>
<id>urn:sha1:e8817de7fbfca407f4f47da050d12b10fece5706</id>
<content type='text'>
Cleanup PCI_ENDPOINT_TEST memspace (by moving the interrupt number away
from command section).

Add IRQ_TYPE register to identify the triggered ID interrupt required
for the READ/WRITE/COPY tests and raise IRQ test commands.

Update documentation accordingly.

Signed-off-by: Gustavo Pimentel &lt;gustavo.pimentel@synopsys.com&gt;
Signed-off-by: Lorenzo Pieralisi &lt;lorenzo.pieralisi@arm.com&gt;
Acked-by: Kishon Vijay Abraham I &lt;kishon@ti.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'lorenzo/pci/endpoint'</title>
<updated>2018-06-06T21:10:30Z</updated>
<author>
<name>Bjorn Helgaas</name>
</author>
<published>2018-06-06T21:10:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bf79d7d0997abfab40b421a0360adcc4fdbda0a4'/>
<id>urn:sha1:bf79d7d0997abfab40b421a0360adcc4fdbda0a4</id>
<content type='text'>
  - use usleep() instead of mdelay() in endpoint test (Jia-Ju Bai)

  - add configfs entries for pci_epf_driver device IDs (Kishon Vijay
    Abraham I)

  - clean up pci_endpoint_test driver (Gustavo Pimentel)

* lorenzo/pci/endpoint:
  PCI: endpoint: Create configfs entry for each pci_epf_device_id table entry
  misc: pci_endpoint_test: Use pci_irq_vector function
  PCI: endpoint: functions/pci-epf-test: Replace lower into upper case characters
  misc: pci_endpoint_test: Replace lower into upper case characters
  PCI: endpoint: Replace mdelay with usleep_range() in pci_epf_test_write()
</content>
</entry>
<entry>
<title>PCI: dwc: Add support for EP mode</title>
<updated>2018-05-15T14:51:38Z</updated>
<author>
<name>Gustavo Pimentel</name>
</author>
<published>2018-05-15T14:41:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1d906b22076e12cf6557cf4658defe82c0b5ff1f'/>
<id>urn:sha1:1d906b22076e12cf6557cf4658defe82c0b5ff1f</id>
<content type='text'>
The PCIe controller dual mode is capable of operating in Root Complex
(RC) mode as well as EP mode by configuration option.

Add EP support to the DesignWare driver on top of RC mode support.

Add new property on pci_epc structure which allow to configure
pci_epf_test driver accordingly to the controller specific requirements.

Signed-off-by: Gustavo Pimentel &lt;gustavo.pimentel@synopsys.com&gt;
Signed-off-by: Lorenzo Pieralisi &lt;lorenzo.pieralisi@arm.com&gt;
Acked-by: Kishon Vijay Abraham I &lt;kishon@ti.com&gt;
</content>
</entry>
<entry>
<title>PCI: endpoint: functions/pci-epf-test: Replace lower into upper case characters</title>
<updated>2018-05-15T14:13:10Z</updated>
<author>
<name>Gustavo Pimentel</name>
</author>
<published>2018-05-14T16:56:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=798c0441bec8c4629da9343ca1d057db99e2b895'/>
<id>urn:sha1:798c0441bec8c4629da9343ca1d057db99e2b895</id>
<content type='text'>
Replace all initial lower case character into upper case in comments
and debug printks.

Signed-off-by: Gustavo Pimentel &lt;gustavo.pimentel@synopsys.com&gt;
Signed-off-by: Lorenzo Pieralisi &lt;lorenzo.pieralisi@arm.com&gt;
</content>
</entry>
<entry>
<title>PCI: endpoint: Replace mdelay with usleep_range() in pci_epf_test_write()</title>
<updated>2018-05-08T10:13:42Z</updated>
<author>
<name>Jia-Ju Bai</name>
</author>
<published>2018-04-10T13:04:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9f96b9b7d836a71733f83ba813d9e0c658090c5d'/>
<id>urn:sha1:9f96b9b7d836a71733f83ba813d9e0c658090c5d</id>
<content type='text'>
pci_epf_test_write() is never called in atomic context.

The call chain ending up at pci_epf_test_write() is:
[1] pci_epf_test_write() &lt;- pci_epf_test_cmd_handler()

pci_epf_test_cmd_handler() is set as a parameter of INIT_DELAYED_WORK()
in pci_epf_test_probe().
This function is not called in atomic context.

Despite never getting called from atomic context, pci_epf_test_write()
calls mdelay() to busy wait.

This is not necessary and can be replaced with usleep_range() to
avoid busy waiting.

Signed-off-by: Jia-Ju Bai &lt;baijiaju1990@gmail.com&gt;
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi &lt;lorenzo.pieralisi@arm.com&gt;
Acked-by: Kishon Vijay Abraham I &lt;kishon@ti.com&gt;
</content>
</entry>
<entry>
<title>PCI: endpoint: Make epc-&gt;ops-&gt;clear_bar()/pci_epc_clear_bar() take struct *epf_bar</title>
<updated>2018-04-03T11:38:05Z</updated>
<author>
<name>Niklas Cassel</name>
</author>
<published>2018-03-28T11:50:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=77d08dbdae2e70a446c61f5db763deed5947acf3'/>
<id>urn:sha1:77d08dbdae2e70a446c61f5db763deed5947acf3</id>
<content type='text'>
Make epc-&gt;ops-&gt;clear_bar()/pci_epc_clear_bar() take struct *epf_bar.

This is needed so that epc-&gt;ops-&gt;clear_bar() can clear the BAR pair,
if the BAR is 64-bits wide.

This also makes it possible for pci_epc_clear_bar() to sanity check
the flags.

Signed-off-by: Niklas Cassel &lt;niklas.cassel@axis.com&gt;
Signed-off-by: Lorenzo Pieralisi &lt;lorenzo.pieralisi@arm.com&gt;
Reviewed-by: Gustavo Pimentel &lt;gustavo.pimentel@synopsys.com&gt;
</content>
</entry>
<entry>
<title>PCI: endpoint: Handle 64-bit BARs properly</title>
<updated>2018-04-03T11:38:04Z</updated>
<author>
<name>Niklas Cassel</name>
</author>
<published>2018-03-28T11:50:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fca83058753456528bef62579ae2b50799d7a473'/>
<id>urn:sha1:fca83058753456528bef62579ae2b50799d7a473</id>
<content type='text'>
If a 64-bit BAR was set-up, we need to skip a BAR,
since a 64-bit BAR consists of a BAR pair.

We need to check what BAR width the epc-&gt;ops-&gt;set_bar() specific
implementation actually did set-up, since some drivers, like the
Cadence EP controller, sometimes sets up a 64-bit BAR, even though
a 32-bit BAR was requested.

Signed-off-by: Niklas Cassel &lt;niklas.cassel@axis.com&gt;
Signed-off-by: Lorenzo Pieralisi &lt;lorenzo.pieralisi@arm.com&gt;
Acked-by: Kishon Vijay Abraham I &lt;kishon@ti.com&gt;
</content>
</entry>
</feed>
