PCI-Express AER implemetation: aer howto document
Subsystems (2)
PATCH 1/5 PCI-Express AER implemetation: aer howto document
Here are the updated patches. Thank Greg, Andi Kleen, Linas Vepstas and Arjan for their comments.
The new howto document consists of overview, user guide and developer guide. I also add more pointers to pci-error-recovery.txt.
The patches could be applied to 2.6.18-rc3 cleanly.
From: Zhang, Yanmin <[email protected]>
PCI-Express AER (Advanced Error Reporting) provides more robust error reporting. The series of patches enable kernel support to AER.
The initial patches were written by Tom Long Nguyen. I ported them to the kernel 2.6.17. Many thanks to Rajesh Shah and Narayanan Chandramouli for their great review comments and testing help.
Patch 1 consists of the pciaer-howto.txt document.
---
Documentation/pcieaer-howto.txt +253 -0
@@ -0,0 +1,253 @@ + The PCI Express Advanced Error Reporting Driver Guide HOWTO + T. Long Nguyen <[email protected]> + Yanmin Zhang <[email protected]> + 07/29/2006 + + +1. Overview + +1.1 About this guide + +This guide describes the basics of the PCI Express Advanced Error +Reporting (AER) driver and provides information on how to use it, as +well as how to enable the drivers of endpoint devices to conform with +PCI Express AER driver. + +1.2 Copyright © Intel Corporation 2006. + +1.3 What is the PCI Express AER Driver? + +PCI Express error signaling can occur on the PCI Express link itself +or on behalf of transactions initiated on the link. PCI Express +defines two error reporting paradigms: the baseline capability and +the Advanced Error Reporting capability. The baseline capability is +required of all PCI Express components providing a minimum defined +set of error reporting requirements. Advanced Error Reporting +capability is implemented with a PCI Express advanced error reporting +extended capability structure providing more robust error reporting. + +The PCI Express AER driver provides the infrastructure to support PCI +Express Advanced Error Reporting capability. The PCI Express AER +driver provides three basic functions: + +- Gathers the comprehensive error information if errors occurred. +- Reports error to the users. +- Performs error recovery actions. + +AER driver only attaches root ports which support PCI-Express AER +capability. + + +2. User Guide + +2.1 Include the PCI Express AER Root Driver into the Linux Kernel + +The PCI Express AER Root driver is a Root Port service driver attached +to the PCI Express Port Bus driver. If a user wants to use it, the driver +has to be compiled. Option CONFIG_PCIEAER supports this capability. It +depends on CONFIG_PCIEPORTBUS, so pls. set CONFIG_PCIEPORTBUS=y and +CONFIG_PCIEAER = y. + +2.2 Load PCI Express AER Root Driver +There is a case where a system has AER support in BIOS. Enabling the AER +Root driver and having AER support in BIOS may result unpredictable +behavior. To avoid this conflict, a successful load of the AER Root driver +requires ACPI _OSC support in the BIOS to allow the AER Root driver to +request for native control of AER. See the PCI FW 3.0 Specification for +details regarding OSC usage. Currently, lots of firmwares don't provide +_OSC support while they use PCI Express. To support such firmwares, +forceload, a parameter of type bool, could enable AER to continue to +be initiated although firmwares have no _OSC support. To enable the +walkaround, pls. add aerdriver.forceload=y to kernel boot parameter line +when booting kernel. Note that forceload=n by default. + +2.3 AER error output +When a PCI-E AER error is captured, an error message will be outputed to +console. If it's a correctable error, it is outputed as a warning. +Otherwise, it is printed as an error. So users could choose different +log level to filter out correctable error messages. + +Below shows an example. ++------ PCI-Express Device Error -----+ +Error Severity : Uncorrected (Fatal) +PCIE Bus Error type : Transaction Layer +Unsupported Request : First +Requester ID : 0500 +VendorID=8086h, DeviceID=0329h, Bus=05h, Device=00h, Function=00h +TLB Header: +04000001 00200a03 05010000 00050100 + +In the example, 'Requester ID' means the ID of the device who sends +the error message to root port. Pls. refer to pci express specs for +other fields. + + +3. Developer Guide + +To enable AER aware support requires a software driver to configure +the AER capability structure within its device and to provide callbacks. + +To support AER better, developers need understand how AER does work +firstly. + +PCI Express errors are classified into two types: correctable errors +and uncorrectable errors. This classification is based on the impacts +of those errors, which may result in degraded performance or function +failure. + +Correctable errors pose no impacts on the functionality of the +interface. The PCI Express protocol can recover without any software +intervention or any loss of data. These errors are detected and +corrected by hardware. Unlike correctable errors, uncorrectable +errors impact functionality of the interface. Uncorrectable errors +can cause a particular transaction or a particular PCI Express link +to be unreliable. Depending on those error conditions, uncorrectable +errors are further classified into non-fatal errors and fatal errors. +Non-fatal errors cause the particular transaction to be unreliable, +but the PCI Express link itself is fully functional. Fatal errors, on +the other hand, cause the link to be unreliable. + +When AER is enabled, a PCI Express device will automatically send an +error message to the PCIE root port above it when the device captures +an error. The Root Port, upon receiving an error reporting message, +internally processes and logs the error message in its PCI Express +capability structure. Error information being logged includes storing +the error reporting agent's requestor ID into the Error Source +Identification Registers and setting the error bits of the Root Error +Status Register accordingly. If AER error reporting is enabled in Root +Error Command Register, the Root Port generates an interrupt if an +error is detected. + +Note that the errors as described above are related to the PCI Express +hierarchy and links. These errors do not include any device specific +errors because device specific errors will still get sent directly to +the device driver. + +3.1 Configure the AER capability structure + +AER aware drivers of PCI Express component need change the device +control registers to enable AER. They also could change AER registers, +including mask and severity registers. Helper function +pci_enable_pcie_error_reporting could be used to enable AER. See +section 3.3. + +3.2. Provide callbacks + +3.2.1 callback reset_link to reset pci express link + +This callback is used to reset the pci express physical link when a +fatal error happens. The root port aer service driver provides a +default reset_link function, but different upstream ports might +have different specifications to reset pci express link, so all +upstream ports should provide their own reset_link functions. + +In struct pcie_port_service_driver, a new pointer, reset_link, is +added. + +pci_ers_result_t (*reset_link) (struct pci_dev *dev); + +Section 3.2.2.2 provides more detailed info on when to call +reset_link. + +3.2.2 PCI error-recovery callbacks + +The PCI Express AER Root driver uses error callbacks to coordinate +with downstream device drivers associated with a hierarchy in question +when performing error recovery actions. + +Data struct pci_driver has a pointer, err_handler, to point to +pci_error_handlers who consists of a couple of callback function +pointers. AER driver follows the rules defined in +pci-error-recovery.txt except pci express specific parts (e.g. +reset_link). Pls. refer to pci-error-recovery.txt for detailed +definitions of the callbacks. + +Below sections specify when to call the error callback functions. + +3.2.2.1 Correctable errors + +Correctable errors pose no impacts on the functionality of +the interface. The PCI Express protocol can recover without any +software intervention or any loss of data. These errors do not +require any recovery actions. The AER driver clears the device's +correctable error status register accordingly and logs these errors. + +3.2.2.2 Non-correctable (non-fatal and fatal) errors + +If an error message indicates a non-fatal error, performing link reset +at upstream is not required. The AER driver calls error_detected(dev, +pci_channel_io_normal) to all drivers associated within a hierarchy in +question. for example, +EndPoint<==>DownstreamPort B<==>UpstreamPort A<==>RootPort. +If Upstream port A captures an AER error, the hierarchy consists of +Downstream port B and EndPoint. + +A driver may return PCI_ERS_RESULT_CAN_RECOVER, +PCI_ERS_RESULT_DISCONNECT, or PCI_ERS_RESULT_NEED_RESET, depending on +whether it can recover or the AER driver calls mmio_enabled as next. + +If an error message indicates a fatal error, kernel will broadcast +error_detected(dev, pci_channel_io_frozen) to all drivers within +a hierarchy in question. Then, performing link reset at upstream is +necessary. As different kinds of devices might use different approaches +to reset link, AER port service driver is required to provide the +function to reset link. Firstly, kernel looks for if the upstream +component has an aer driver. If it has, kernel uses the reset_link +callback of the aer driver. If the upstream component has no aer driver +and the port is downstream port, we will use the aer driver of the +root port who reports the AER error. As for upstream ports, +they should provide their own aer service drivers with reset_link +function. If error_detected returns PCI_ERS_RESULT_CAN_RECOVER and +reset_link returns PCI_ERS_RESULT_RECOVERED, the error handling goes +to mmio_enabled. + +3.3 helper functions + +3.3.1 int pci_find_aer_capability(struct pci_dev *dev); +pci_find_aer_capability locates the PCI Express AER capability +in the device configuration space. If the device doesn't support +PCI-Express AER, the function returns 0. + +3.3.2 int pci_enable_pcie_error_reporting(struct pci_dev *dev); +pci_enable_pcie_error_reporting enables the device to send error +messages to root port when an error is detected. Note that devices +don't enable the error reporting by default, so device drivers need +call this function to enable it. + +3.3.3 int pci_disable_pcie_error_reporting(struct pci_dev *dev); +pci_disable_pcie_error_reporting disables the device to send error +messages to root port when an error is detected. + +3.3.4 int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev); +pci_cleanup_aer_uncorrect_error_status cleanups the uncorrectable +error status register. + +3.4 Frequent Asked Questions + +Q: What happens if a PCI Express device driver does not provide an +error recovery handler (pci_driver->err_handler is equal to NULL)? + +A: The devices attached with the driver won't be recovered. If the +error is fatal, kernel will print out warning messages. Please refer +to section 3 for more information. + +Q: What happens if an upstream port service driver does not provide +callback reset_link? + +A: Fatal error recovery will fail if the errors are reported by the +upstream ports who are attached by the service driver. + +Q: How does this infrastructure deal with driver that is not PCI +Express aware? + +A: This infrastructure calls the error callback functions of the +driver when an error happens. But if the driver is not aware of +PCI Express, the device might not report its own errors to root +port. + +Q: What modifications will that driver need to make it compatible +with the PCI Express AER Root driver? + +A: It could call the helper functions to enable AER in devices and +cleanup uncorrectable status register. Pls. refer to section 3.3. +
Re: [PATCH 2/5] PCI-Express AER implemetation: Add new defines to pci_regs.h
Although Greg already accepted the second patch into his testing tree, I still resend it to keep the patch integrity.
From: Zhang, Yanmin <[email protected]>
Patch 2 adds new defines of PCI-Express AER registers and their bits into file include/linux/pci_regs.h.
---
include/linux/pci_regs.h +16 -0
@@ -421,7 +421,23 @@#define PCI_ERR_CAP_ECRC_CHKE 0x00000100/* ECRC Check Enable */ #define PCI_ERR_HEADER_LOG 28/* Header Log Register (16 bytes) */ #define PCI_ERR_ROOT_COMMAND 44/* Root Error Command */ +/* Correctable Err Reporting Enable */ +#define PCI_ERR_ROOT_CMD_COR_EN 0x00000001 +/* Non-fatal Err Reporting Enable */ +#define PCI_ERR_ROOT_CMD_NONFATAL_EN 0x00000002 +/* Fatal Err Reporting Enable */ +#define PCI_ERR_ROOT_CMD_FATAL_EN 0x00000004#define PCI_ERR_ROOT_STATUS 48 +#define PCI_ERR_ROOT_COR_RCV 0x00000001/* ERR_COR Received */ +/* Multi ERR_COR Received */ +#define PCI_ERR_ROOT_MULTI_COR_RCV 0x00000002 +/* ERR_FATAL/NONFATAL Recevied */ +#define PCI_ERR_ROOT_UNCOR_RCV 0x00000004 +/* Multi ERR_FATAL/NONFATAL Recevied */ +#define PCI_ERR_ROOT_MULTI_UNCOR_RCV 0x00000008 +#define PCI_ERR_ROOT_FIRST_FATAL 0x00000010/* First Fatal */ +#define PCI_ERR_ROOT_NONFATAL_RCV 0x00000020/* Non-Fatal Received */ +#define PCI_ERR_ROOT_FATAL_RCV 0x00000040/* Fatal Received */ #define PCI_ERR_ROOT_COR_SRC 52#define PCI_ERR_ROOT_SRC 54
Re: [PATCH 3/5] PCI-Express AER implemetation: export pcie_port_bus_type
From: Zhang, Yanmin <[email protected]>
Patch 3 exports pcie_port_bus_type.
---
drivers/pci/pcie/portdrv_bus.c +3 -0
@@ -76,3 +76,6 @@ static int pcie_port_bus_resume(struct d driver->resume (pciedev);return 0 ; } + +EXPORT_SYMBOL (pcie_port_bus_type); +
Re: [PATCH 4/5] PCI-Express AER implemetation: AER core and aerdriver
From: Zhang, Yanmin <[email protected]>
Patch 4 implements the core part of PCI-Express AER and aerdrv port service driver.
When a root port service device is probed, the aerdrv will call request_irq to register irq handler for AER error interrupt.
When a device sends an PCI-Express error message to the root port, the root port will trigger an interrupt, by either MSI or IO-APIC, then kernel would run the irq handler. The handler collects root error status register and schedules a work. The work will call the core part to process the error based on its type (Correctable/non-fatal/fatal).
As for Correctable errors, the patch chooses to just clear the correctable error status register of the device.
As for the non-fatal error, the patch follows generic PCI error handler rules to call the error callback functions of the endpoint's driver. If the device is a bridge, the patch chooses to broadcast the error to downstream devices.
As for the fatal error, the patch resets the pci-express link and follows generic PCI error handler rules to call the error callback functions of the endpoint's driver. If the device is a bridge, the patch chooses to broadcast the error to downstream devices.
---
drivers/pci/pcie/aer/aerdrv_acpi.c +68 -0
@@ -0,0 +1,68 @@ +/* +* Access ACPI _OSC method +* +* Copyright (C) 2006 Intel Corp. +* Tom Long Nguyen ([email protected]) +* Zhang Yanmin ([email protected]) +* +*/ + +#include <linux/module.h> +#include <linux/pci.h> +#include <linux/kernel.h> +#include <linux/errno.h> +#include <linux/pm.h> +#include <linux/suspend.h> +#include <linux/acpi.h> +#include <linux/pci-acpi.h> +#include <linux/delay.h> +#include "aerdrv.h" + +/** +* aer_osc_setup - run ACPI _OSC method +* +* Return: +* Zero if success. Nonzero for otherwise. +* +* Invoked when PCIE bus loads AER service driver. To avoid conflict with +* BIOS AER support requires BIOS to yield AER control to OS native driver. +**/ +int aer_osc_setup (struct pci_dev *dev) +{ +int retval =OSC_METHOD_RUN_SUCCESS ; +acpi_status status; +acpi_handle handle =DEVICE_ACPI_HANDLE (&dev->dev); +struct pci_dev *pdev = dev; +struct pci_bus *parent; + +while (!handle) { +if (!pdev || !pdev->bus->parent) +break ; + parent = pdev->bus->parent; +if (!parent->self) +/* Parent must be a host bridge */ + handle =acpi_get_pci_rootbridge_handle ( +pci_domain_nr (parent), + parent->number); +else + handle =DEVICE_ACPI_HANDLE ( + &(parent->self->dev)); + pdev = parent->self; + } + +if (!handle) +return OSC_METHOD_NOT_SUPPORTED ; + +pci_osc_support_set (OSC_EXT_PCI_CONFIG_SUPPORT ); + status =pci_osc_control_set (handle,OSC_PCI_EXPRESS_AER_CONTROL | +OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL ); +if (ACPI_FAILURE (status)) { +if (status ==AE_SUPPORT ) + retval =OSC_METHOD_NOT_SUPPORTED ; +else + retval =OSC_METHOD_RUN_FAILURE ; + } + +return retval; +} +
drivers/pci/pcie/aer/aerdrv_core.c +757 -0
757 lines not on this page · raw message
include/linux/aer.h +24 -0
@@ -0,0 +1,24 @@ +/* +* Copyright (C) 2006 Intel Corp. +* Tom Long Nguyen ([email protected]) +* Zhang Yanmin ([email protected]) +*/ + +#ifndef _AER_H_ +#define _AER_H_ + +#if defined(CONFIG_PCIEAER ) +/* pci-e port driver needs this function to enable aer */ +extern int pci_enable_pcie_error_reporting (struct pci_dev *dev); +extern int pci_find_aer_capability (struct pci_dev *dev); +extern int pci_disable_pcie_error_reporting (struct pci_dev *dev); +extern int pci_cleanup_aer_uncorrect_error_status (struct pci_dev *dev); +#else +#define pci_enable_pcie_error_reporting (dev) do { } while (0) +#define pci_find_aer_capability (dev) do { } while (0) +#define pci_disable_pcie_error_reporting (dev) do { } while (0) +#define pci_cleanup_aer_uncorrect_error_status (dev) do { } while (0) +#endif + +#endif //_AER_H_ +
include/linux/pcieport_if.h +6 -0
@@ -61,6 +61,12 @@ struct pcie_port_service_driver {void (*remove) (struct pcie_device *dev);int (*suspend) (struct pcie_device *dev,pm_message_t state);int (*resume) (struct pcie_device *dev); + +/* Service Error Recovery Handler */ +struct pci_error_handlers *err_handler; + +/* Link Reset Capability - AER service driver specific */ +pci_ers_result_t (*reset_link) (struct pci_dev *dev);const struct pcie_port_service_id *id_table;struct device_driver driver;
drivers/pci/pcie/aer/aerdrv.h +135 -0
135 lines not on this page · raw message
drivers/pci/pcie/aer/aerdrv.c +346 -0
346 lines not on this page · raw message
drivers/pci/pcie/aer/Kconfig +12 -0
@@ -0,0 +1,12 @@ +# +# PCI Express Root Port Device AER Configuration +# + +config PCIEAER + boolean "Root Port Advanced Error Reporting support" + depends on PCIEPORTBUS + default y + help + This enables PCI Express Root Port Advanced Error Reporting + (AER) driver support. Error reporting messages sent to Root + Port will be handled by PCI Express AER driver.
drivers/pci/pcie/aer/Makefile +10 -0
@@ -0,0 +1,10 @@ +# +# Makefile for PCI-Express Root Port Advanced Error Reporting Driver +# + +obj-$(CONFIG_PCIEAER) += aerdriver.o +aerdrv_acpi-$(CONFIG_ACPI) += aerdrv_acpi.o + +aerdriver-objs := aerdrv_errprint.o aerdrv_core.o aerdrv.o +aerdriver-objs += $(aerdrv_acpi-y) +
drivers/pci/pcie/Kconfig +1 -0
@@ -34,3 +34,4 @@ config HOTPLUG_PCI_PCIE_POLL_EVENT_MODE When in doubt, say N. +source "drivers/pci/pcie/aer/Kconfig"
drivers/pci/pcie/Makefile +3 -0
@@ -5,3 +5,6 @@ pcieportdrv-y := portdrv_core.o portdrv_pci.o portdrv_bus.o obj-$(CONFIG_PCIEPORTBUS) += pcieportdrv.o + +# Build PCI Express AER if needed +obj-$(CONFIG_PCIEAER) += aer/
drivers/pci/pcie/aer/aerdrv_errprint.c +248 -0
248 lines not on this page · raw message
Re: [PATCH 5/5] PCI-Express AER implemetation: pcie_portdrv error handler
From: Zhang, Yanmin <[email protected]>
Patch 5 implements error handlers for pcie_portdrv.
---
drivers/pci/pcie/portdrv_pci.c +153 -0
@@ -14,8 +14,10 @@#include <linux/init.h> #include <linux/slab.h> #include <linux/pcieport_if.h> +#include <linux/aer.h> #include "portdrv.h" +#include "aer/aerdrv.h" /* * Version Information
@@ -76,6 +78,10 @@ static int __devinit pcie_portdrv_probeif (pcie_port_device_register (dev))return -ENOMEM ; +pcie_portdrv_save_config (dev); + +pci_enable_pcie_error_reporting (dev); +return 0 ; }
@@ -102,6 +108,144 @@ static int pcie_portdrv_resume (struct p }#endif +static int error_detected_iter (struct device *device,void *data) +{ +struct pcie_device *pcie_device; +struct pcie_port_service_driver *driver; +struct aer_broadcast_data *result_data; +pci_ers_result_t status; + + result_data = (struct aer_broadcast_data *) data; + +if (device->bus == &pcie_port_bus_type && device->driver) { + driver =to_service_driver (device->driver); +if (!driver || + !driver->err_handler || + !driver->err_handler->error_detected) +return 0 ; + + pcie_device =to_pcie_device (device); + +/* Forward error detected message to service drivers */ + status = driver->err_handler->error_detected ( + pcie_device->port, + result_data->state); + result_data->result = +merge_result (result_data->result, status); + } + +return 0 ; +} + +static pci_ers_result_t pcie_portdrv_error_detected (struct pci_dev *dev, +enum pci_channel_state error) +{ +struct aer_broadcast_data result_data = + {error,PCI_ERS_RESULT_CAN_RECOVER }; + +device_for_each_child (&dev->dev, &result_data, error_detected_iter); + +return result_data.result; +} + +static int mmio_enabled_iter (struct device *device,void *data) +{ +struct pcie_device *pcie_device; +struct pcie_port_service_driver *driver; +pci_ers_result_t status, *result; + + result = (pci_ers_result_t *) data; + +if (device->bus == &pcie_port_bus_type && device->driver) { + driver =to_service_driver (device->driver); +if (driver && + driver->err_handler && + driver->err_handler->mmio_enabled) { + pcie_device =to_pcie_device (device); + +/* Forward error message to service drivers */ + status = driver->err_handler->mmio_enabled ( + pcie_device->port); + *result =merge_result (*result, status); + } + } + +return 0 ; +} + +static pci_ers_result_t pcie_portdrv_mmio_enabled (struct pci_dev *dev) +{ +pci_ers_result_t status =PCI_ERS_RESULT_RECOVERED ; + +device_for_each_child (&dev->dev, &status, mmio_enabled_iter); +return status; +} + +static int slot_reset_iter (struct device *device,void *data) +{ +struct pcie_device *pcie_device; +struct pcie_port_service_driver *driver; +pci_ers_result_t status, *result; + + result = (pci_ers_result_t *) data; + +if (device->bus == &pcie_port_bus_type && device->driver) { + driver =to_service_driver (device->driver); +if (driver && + driver->err_handler && + driver->err_handler->slot_reset) { + pcie_device =to_pcie_device (device); + +/* Forward error message to service drivers */ + status = driver->err_handler->slot_reset ( + pcie_device->port); + *result =merge_result (*result, status); + } + } + +return 0 ; +} + +static pci_ers_result_t pcie_portdrv_slot_reset (struct pci_dev *dev) +{ +pci_ers_result_t status; + +/* If fatal, restore cfg space for possible link reset at upstream */ +if (dev->error_state == pci_channel_io_frozen) { +pcie_portdrv_restore_config (dev); +pci_enable_pcie_error_reporting (dev); + } + +device_for_each_child (&dev->dev, &status, slot_reset_iter); + +return status; +} + +static int resume_iter (struct device *device,void *data) +{ +struct pcie_device *pcie_device; +struct pcie_port_service_driver *driver; + +if (device->bus == &pcie_port_bus_type && device->driver) { + driver =to_service_driver (device->driver); +if (driver && + driver->err_handler && + driver->err_handler->resume) { + pcie_device =to_pcie_device (device); + +/* Forward error message to service drivers */ + driver->err_handler->resume (pcie_device->port); + } + } + +return 0 ; +} + +static void pcie_portdrv_err_resume (struct pci_dev *dev) +{ +device_for_each_child (&dev->dev,NULL , resume_iter); +} +/* * LINUX Device Driver Model */
@@ -112,6 +256,13 @@ static const struct pci_device_id port_p };MODULE_DEVICE_TABLE (pci, port_pci_ids); +static struct pci_error_handlers pcie_portdrv_err_handler = { + .error_detected = pcie_portdrv_error_detected, + .mmio_enabled = pcie_portdrv_mmio_enabled, + .slot_reset = pcie_portdrv_slot_reset, + .resume = pcie_portdrv_err_resume, +}; +static struct pci_driver pcie_portdrv = { .name = (char *)device_name, .id_table = &port_pci_ids[0 ],
@@ -123,6 +274,8 @@ static struct pci_driver pcie_portdrv = .suspend = pcie_portdrv_suspend, .resume = pcie_portdrv_resume,#endif /* PM */ + + .err_handler = &pcie_portdrv_err_handler, };static int __init pcie_portdrv_init (void )
Re: [PATCH 2/5] PCI-Express AER implemetation: Add new defines to pci_regs.h
In reply to Zhang, YanminQuoted 2 lines · Yanmin
Although Greg already accepted the second patch into his testing tree, I still resend it to keep the patch integrity.
Why? This is already in 2.6.18-rc3.
Please redo the whole series against 2.6.18-rc3, not 2.6.17, otherwise it's a pain to forward port...
thanks,
greg k-h
Re: [PATCH 2/5] PCI-Express AER implemetation: Add new defines to pci_regs.h
Quoted 5 lines · Greg KH
Quoted 2 lines · Yanmin
Although Greg already accepted the second patch into his testing tree, I still resend it to keep the patch integrity.
Why? This is already in 2.6.18-rc3.
I checked 2.6.18-rc3 and it doesn't include the patch of pci_regs.h.
Quoted 3 lines
Please redo the whole series against 2.6.18-rc3, not 2.6.17, otherwise it's a pain to forward port...
The patches could be applied to 2.6.18-rc3 cleanly. There is no any confliction and I tested them under 2.6.18-rc3.
Is it necessary to rebase to 2.6.18-rc3?
Thanks,
Yanmin
Re: [PATCH 2/5] PCI-Express AER implemetation: Add new defines to pci_regs.h
Quoted 7 lines · Yanmin
Quoted 5 lines · Greg KH
Quoted 2 lines · Yanmin
Although Greg already accepted the second patch into his testing tree, I still resend it to keep the patch integrity.
Why? This is already in 2.6.18-rc3.
I checked 2.6.18-rc3 and it doesn't include the patch of
pci_regs.h.
I just looked, and it is there. Look at git commit 6f0312fd7e0e6f96fd847b0b2e1e0d2d2e8ef89d to see it.
Quoted 4 lines
Quoted 2 lines
Please redo the whole series against 2.6.18-rc3, not 2.6.17, otherwise it's a pain to forward port...
The patches could be applied to 2.6.18-rc3 cleanly. There is no any confliction and I tested them under 2.6.18-rc3.
Based on the above statement, I'm not so sure I believe that :)
Quoted 1 line
Is it necessary to rebase to 2.6.18-rc3?
You should at least regenerate them, yes.
thanks,
greg k-h
Re: [PATCH 2/5] PCI-Express AER implemetation: Add new defines to pci_regs.h
Quoted 11 lines · Greg KH
Quoted 7 lines · Yanmin
Quoted 5 lines · Greg KH
Quoted 2 lines · Yanmin
Although Greg already accepted the second patch into his testing tree, I still resend it to keep the patch integrity.
Why? This is already in 2.6.18-rc3.
I checked 2.6.18-rc3 and it doesn't include the patch of
pci_regs.h.I just looked, and it is there. Look at git commit
6f0312fd7e0e6f96fd847b0b2e1e0d2d2e8ef89dto see it.
I downloaded 2.6.18-rc3 tarball from http://www.kernel.org directly. Perhaps you mean the git tree, not 2.6.18-rc3?
Quoted 11 lines
Quoted 5 lines
Quoted 3 lines
Please redo the whole series against 2.6.18-rc3, not 2.6.17, otherwise it's a pain to forward port...
The patches could be applied to 2.6.18-rc3 cleanly. There is no any confliction and I tested them under 2.6.18-rc3.
Based on the above statement, I'm not so sure I believe that :)
Quoted 1 line
Is it necessary to rebase to 2.6.18-rc3?
You should at least regenerate them, yes.
I couldn't get git tree, but I could rebase my patches against 2.6.18-rc3, and delete the pci_reg patch. Is it ok for you?
Thanks,
Yanmin