Re: [PATCH] pcie: Add driver for Downstream Port Containment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Keith,

On Tue, Apr 26, 2016 at 02:48:13PM -0600, Keith Busch wrote:
> --- a/drivers/pci/pcie/portdrv.h
> +++ b/drivers/pci/pcie/portdrv.h
> @@ -11,7 +11,7 @@
>  
>  #include <linux/compiler.h>
>  
> -#define PCIE_PORT_DEVICE_MAXSERVICES   4
> +#define PCIE_PORT_DEVICE_MAXSERVICES   5

You're adding a fifth port service yet the name of port service devices
encodes the service type in one nibble, so there's only room for four
service types.

You need to amend your patch to fixup get_descriptor_id() in portdrv.h
as well as dev_set_name() in portdrv_core.c to cope with more than four
service types, as I've done in this commit:

https://github.com/l1k/linux/commit/b688d6e4873ab082e5916b1a993bc1d38c6f4178


You may also want to fixup these small nits in the commit message:

> This adds driver support for root and downstream ports that implement
> the Downstream Port PCI-Express extended capability. DPC is an optional
                     ^
                     Containment
> capability to contained uncorrectable errors below a downstream port.
                ^
                contain
> 
> When a DPC is triggered due to receipt of an uncorrectable error message,
> the DPC driver will schedule removal for all downstream devices as DPC
> capable ports disable downstream links. This may happen concurrently
> with a PCI-e hotplug driver if enabled. After the downstream devices
> are removed, the DPC driver will clear the status and interrupt bits
                                                                      ^
                                                                      and
> the link may retrain for a newly connected device.


Best regards,

Lukas
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux