Re: [PATCH v4 32/32] drm/xe/pci: Report 'cannot re-enable' error using SIGID

Rodrigo Vivi <[email protected]>
Newsgroups org.freedesktop.lists.intel-xe
Message-ID <[email protected]>
On Wed, Aug 12, 2026 at 09:14:48PM +0200, Michal Wajdeczko wrote:
> Report 'cannot re-enable PCI device' error using xe_log() helper.
> 
> Signed-off-by: Michal Wajdeczko <[email protected]>
> Cc: Rodrigo Vivi <[email protected]>
> Cc: Riana Tauro <[email protected]>
> Cc: Aravind Iddamsetty <[email protected]>
> Cc: Mallesh Koujalagi <[email protected]>
> ---
>  drivers/gpu/drm/xe/xe_pci_error.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_pci_error.c b/drivers/gpu/drm/xe/xe_pci_error.c
> index e41af2ac7f23..fb965f52be5e 100644
> --- a/drivers/gpu/drm/xe/xe_pci_error.c
> +++ b/drivers/gpu/drm/xe/xe_pci_error.c
> @@ -7,6 +7,7 @@
>  
>  #include "xe_device.h"
>  #include "xe_gt.h"
> +#include "xe_log.h"
>  #include "xe_pci.h"
>  #include "xe_pm.h"
>  #include "xe_printk.h"
> @@ -90,13 +91,15 @@ static pci_ers_result_t xe_pci_error_slot_reset(struct pci_dev *pdev)
>  {
>  	const struct pci_device_id *ent = pci_match_id(pdev->driver->id_table, pdev);
>  	struct xe_device *xe = pdev_to_xe_device(pdev);
> +	int err;
>  
>  	xe_info(xe, "PCI error: slot reset\n");
>  
>  	pci_restore_state(pdev);
>  
> -	if (pci_enable_device(pdev)) {

this looks IO_BUS more than SW... But that is the change for the patch 3.

This patch here is great.

Reviewed-by: Rodrigo Vivi <[email protected]>

> -		xe_err(xe, "Cannot re-enable PCI device after reset\n");
> +	err = pci_enable_device(pdev);
> +	if (err) {
> +		xe_log_err_fatal(xe, PCI, err, "Cannot re-enable PCI device after reset\n");
>  		return PCI_ERS_RESULT_DISCONNECT;
>  	}
>  
> -- 
> 2.47.1
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.