Michael Ellerman | 26 May 03:00 2016
Picon
Gravatar

Re: [v4] powerpc/pci: Assign fixed PHB number based on device-tree properties

On Wed, 2016-05-25 at 10:03 -0300, Guilherme G. Piccoli wrote:
> On 05/25/2016 02:45 AM, Michael Ellerman wrote:
> > 
> > Yeah please increase the bitmap size to 65536. It will only take 8KB of memory,
> > which is negligible.
> 
> Well, since I sent a v6 and you replied there too, I guess we can 
> continue our iterations there - mostly suggestions (all except one) you 
> gave here were implemented in v6.

Yeah sorry, I'm very behind on email :)

cheers

Amir Levy | 23 May 10:48 2016
Picon

[PATCH 0/6] thunderbolt: Introducing Thunderbolt(TM) networking

Thunderbolt(TM) generation 3 provides USB, charging, Display Port and
Thunderbolt connectivity over a single physical port.

Thunderbolt(TM) networking, introduced in these patches, provides the
capability of connecting hosts together by emulating an Ethernet adapter.
It provides the same networking benefits with the advantage of the fast
Thunderbolt medium capabilities.
Thunderbolt(TM) networking is capable of operating in the last position
in the Thunderbolt(TM) device daisy chain.

It is also compatible with Thunderbolt(TM) Networking in OS X and Windows
implementations, and supports both Thunderbolt(TM) generation 2 and 3.

The kernel code operates in coordination with the Thunderbolt(TM)
user-space daemon. Together, they implement full Thunderbolt(TM) networking
functionality.
This implementation runs on ICM (firmware) based 
Thunderbolt(TM) controllers.

Note that the Thunderbolt(TM) Hardware specs have not been published yet and
were partially used for register definitions.

Information
===========
Mailing list:
	thunderbolt-software <at> lists.01.org
	Register at: https://lists.01.org/mailman/listinfo/thunderbolt-software
	Archives at: https://lists.01.org/pipermail/thunderbolt-software/

For additional information about Thunderbolt technology visit:
(Continue reading)

Andrea Gelmini | 21 May 14:15 2016
Picon
Gravatar

[PATCH 0289/1529] Fix typo

Signed-off-by: Andrea Gelmini <andrea.gelmini <at> gelma.net>
---
 arch/x86/pci/common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c
index 8196054..7b6a9d1 100644
--- a/arch/x86/pci/common.c
+++ b/arch/x86/pci/common.c
 <at>  <at>  -133,7 +133,7  <at>  <at>  static void pcibios_fixup_device_resources(struct pci_dev *dev)
 	if (pci_probe & PCI_NOASSIGN_BARS) {
 		/*
 		* If the BIOS did not assign the BAR, zero out the
-		* resource so the kernel doesn't attmept to assign
+		* resource so the kernel doesn't attempt to assign
 		* it later on in pci_assign_unassigned_resources
 		*/
 		for (bar = 0; bar <= PCI_STD_RESOURCE_END; bar++) {
--

-- 
2.8.2.534.g1f66975

Arun SAG | 21 May 03:34 2016
Picon
Gravatar

MacbookPro 11,1 thunderbolt hotplug doesn't work - 4.6.0

Hi,

When i boot the laptop connected to thunderbolt apple display, 
everything works fine. However, if i unplug the display and
re-plug linux doesn't detects the monitor. Seems like a device
hotplug problem

The bug with more description is availble at
https://bugzilla.kernel.org/show_bug.cgi?id=118591

Let me know if you need any more information from me.
Ian Stakenvicius | 20 May 19:31 2016
Picon

[PATCH] Fix lack of exposure of pci_init for LIBPCI_3.0 on pciutils-3.5.0

The changes included in commit ab61451d47514c473953a24aa4f4f816b77
were not sufficient to maintain ABI compatibility with older versions
of libpci.so.3, as pci_init is only exposed under symbol version
LIBPCI_3.5.

This patch uses the code pattern for the versioning of pci_fill_info()
to ensure a pci_init symbol is exposed with LIBPCI_3.0 version.

Bug: http://bugs.gentoo.org/583580
---
 lib/init.c     | 2 ++
 lib/internal.h | 1 +
 2 files changed, 3 insertions(+)

diff --git a/lib/init.c b/lib/init.c
index 9a043ee..c7800e0 100644
--- a/lib/init.c
+++ b/lib/init.c
 <at>  <at>  -214,6 +214,8  <at>  <at>  pci_init_v35(struct pci_access *a)
 }
  STATIC_ALIAS(void pci_init(struct pci_access *a), pci_init_v35(a));
+DEFINE_ALIAS(void pci_init_v30(struct pci_access *a), pci_init_v35);
+SYMBOL_VERSION(pci_init_v30, pci_init <at> LIBPCI_3.0);
 SYMBOL_VERSION(pci_init_v35, pci_init <at>  <at> LIBPCI_3.5);
  void
diff --git a/lib/internal.h b/lib/internal.h
index f2027f8..cbac2a7 100644
--- a/lib/internal.h
+++ b/lib/internal.h
 <at>  <at>  -61,6 +61,7  <at>  <at>  void *pci_malloc(struct pci_access *, int);
(Continue reading)

Gavin Shan | 20 May 08:41 2016
Picon

[PATCH v10 00/18] powerpc/powernv: PCI hotplug support

This series of patches need corresponding changes in firmware side to
fully function. Without the firmware changes, the PCI hotplug driver
won't detect and populate any PCI slots. So the code changes are compatible
to old firmware. The firmware patches can be found from:

   https://patchwork.ozlabs.org/patch/624317/

The series of patches is highlighted as below:

   * In order to create PE during PCI hot plugging, pcibios_setup_bridge()
     which is called to update bridge's window populates the PE, together
     with the associated resources like IO/M32/M64 segments, DMA windows etc.
   * One refcount is maintained by each PE to track the number of PCI devices
     that are associated with the PE. The refcount is increased by one when
     a new PCI device joins the PE. It is decreased by one when a PCI device
     is released (pcibios_release_device()). The PE together with the used
     resources will be destroyed when refcount reaches to 0, meaning no PCI
     device needs the PE any more.
   * If the firmware has capability to support PCI slot and reset functionality,
     the reset required by EEH recovery is routed to firmware. Otherwise, it
     is done in kernel as before.
   * PCI hotplug driver for PowerNV platform. The PCI slots are identified by
     firmware and exposed to kernel through device tree. Firmware provides APIs
     to get presence/power state or set power state from/to PCI slot. The PCI
     slot hotplug state is sychronized with its power state. When user changes
     PCI slot power state from off to on through sysfs file, the PCI devices
     behind the PCI slot will be brought into online. Otherwise, the PCI slot's
     subordinate devices will be removed from the system.

Changelog
(Continue reading)

Martin Mares | 19 May 18:00 2016
Picon

Released pciutils-3.5.0

Hello, world!\n

I have just released pciutils-3.5.0.

From the ChangeLog:

	* New capabilities decoded: Downstream Port Containment,
	  Precision Time Measurement. Thanks to Keith Busch and
	  Jonathan Yong.

	* Domain numbers extended to 31 bits. This will be used by the
	  Linux kernel on some machines in near future.

	* Enhanced allocation regions are now decoded on Linux.

	* The NetBSD back-end supports PCIe extended configuration space.

	* Updated pci.ids to the current snapshot of the database.

				Have a nice fortnight
--

-- 
Martin `MJ' Mares                          <mj <at> ucw.cz>   http://mj.ucw.cz/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
Weather forecast for tonight: dark.
Bjorn Helgaas | 19 May 17:49 2016

[GIT PULL] PCI changes for v4.7

Hi Linus,

Here are the PCI changes I intend for v4.7.

There is a silent conflict that needs to be resolved when you pull this:

  - e3156048346c ("iommu/amd: Fix checking of pci dma aliases"), which is
    already in your tree, added a use of PCI_DEV_FLAGS_DMA_ALIAS_DEVFN.

  - 338c3149a221 ("PCI: Add support for multiple DMA aliases"), which is
    included in this pull request, replaces PCI_DEV_FLAGS_DMA_ALIAS_DEVFN
    with pdev->dma_alias_mask to support multiple aliases.

The conflict resolution I suggest is attached below.  The identical patch
has been in linux-next and was supplied by both Jacek Lawrynowicz and Joerg
Roedel (and probably Stephen as well).

Bjorn

The following changes since commit b2d7a9cd3ff8ec561348267c2ef7d47b2b91e801:

  Revert "PCI: imx6: Add support for active-low reset GPIO" (2016-04-05 16:20:37 -0500)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git tags/pci-v4.7-changes

for you to fetch changes up to e257ef55ce51d7ec399193ee85acda8b8759d930:

  Merge branches 'pci/arm64' and 'pci/host-hv' into next (2016-05-17 14:35:46 -0500)
(Continue reading)

Aaron Sierra | 18 May 16:04 2016

[PATCH] PCI: Add function 1 DMA alias quirk for 88SE9182

We found this quirk reported in the same thread as other Marvell
devices, but no patch resulted:

  https://bugzilla.kernel.org/show_bug.cgi?id=42679#c78

Signed-off-by: Steven Graham <sgraham <at> xes-inc.com>
Signed-off-by: Aaron Sierra <asierra <at> xes-inc.com>
---
 drivers/pci/quirks.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 8e67802..90ac106 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
 <at>  <at>  -3651,6 +3651,9  <at>  <at>  DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MARVELL_EXT, 0x9172,
 /* https://bugzilla.kernel.org/show_bug.cgi?id=42679#c59 */
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MARVELL_EXT, 0x917a,
 			 quirk_dma_func1_alias);
+/* https://bugzilla.kernel.org/show_bug.cgi?id=42679#c78 */
+DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MARVELL_EXT, 0x9182,
+			 quirk_dma_func1_alias);
 /* https://bugzilla.kernel.org/show_bug.cgi?id=42679#c46 */
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MARVELL_EXT, 0x91a0,
 			 quirk_dma_func1_alias);
--

-- 
1.9.1
Arnd Bergmann | 18 May 16:15 2016
Picon
Gravatar

[PATCH] PCI: host-generic: select IRQ_DOMAIN

The generic PCI host controller calls of_irq_parse_and_map_pci
in its IRQ fixup, but that function is only available when
CONFIG_IRQ_DOMAIN is set:

drivers/pci/built-in.o: In function `pci_host_common_probe':
drivers/pci/host/pci-host-common.c:181: undefined reference to `of_irq_parse_and_map_pci'

There is no downside in enabling the domains here, so let's
use a Kconfig select statement to ensure it's always available
to this driver.

Signed-off-by: Arnd Bergmann <arnd <at> arndb.de>
---
 drivers/pci/host/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pci/host/Kconfig b/drivers/pci/host/Kconfig
index 66329b932e29..64734ba070a2 100644
--- a/drivers/pci/host/Kconfig
+++ b/drivers/pci/host/Kconfig
 <at>  <at>  -87,6 +87,7  <at>  <at>  config PCI_HOST_GENERIC
 	bool "Generic PCI host controller"
 	depends on (ARM || ARM64) && OF
 	select PCI_HOST_COMMON
+	select IRQ_DOMAIN
 	help
 	  Say Y here if you want to support a simple generic PCI host
 	  controller, such as the one emulated by kvmtool.
--

-- 
2.7.0
(Continue reading)

Yong, Jonathan | 18 May 09:10 2016
Picon

[PATCH] lspci: test case for PTM

Here are the requested test cases.
Generated against dummy config space with PTM bits.

Yong, Jonathan (1):
  lspci: Add test case for PTM

 tests/cap-ptm-1 | 292 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/cap-ptm-2 | 284 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 576 insertions(+)
 create mode 100755 tests/cap-ptm-1
 create mode 100755 tests/cap-ptm-2

--

-- 
2.7.3


Gmane