Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4644019pxk; Wed, 30 Sep 2020 08:10:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwi7E+Ca/VMCplX/As7t684vF05+gOKzi8JSmvbJA2sWELdnKki32riSk53GWYyPEzkEnDf X-Received: by 2002:a17:906:cd0d:: with SMTP id oz13mr3265029ejb.212.1601478610346; Wed, 30 Sep 2020 08:10:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601478610; cv=none; d=google.com; s=arc-20160816; b=cV9+WsxWFEJLWwiOLjDm2QW6tc/L7A6SmKSlni7U9GJ+yWndLnWt5ze00h+RjiX23i HySxFCQUZ/BUsN64gIqE1hN0/98M4DNJb670eYDYoy2LTWPPV3sw7pg87Tr80lQv2cfm Al3U5qti+IPHxftKHx9Q4JQ0Z2j3uG3OoJFpnwCMUKv8W1Yy9uBxtEUiYDOSfzdFb/ND OsuhZG4LfgJ20+tdaZ2XLKLWRWK/lEJWMsXvuSiMO0nat2Yf5LefmAWT4Hbu9szFDtHz lqgIXt+MiPdGP9V59RtRVWbCAe8398nRfJ9Q1XVeQBVRCUFgc3LxvieFuVBiSol1Clid ezPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6QqV+ps2byZU4rC+O9EPuG5NtciAPCEeD4gdtKBD0V8=; b=LsT4QCZhiG1NGAWcFPSVhrk9qRY+o0i76kdvf+RdMPn0j7DDNVRIXrWDVr6ug12Ikd wBXcmZ3lD7XChwtPDV4WcnmdyDZ//3sAlF612c9Ht1KVlSlkNDwPxbjucxlvp4k+W+6h 9tzbxrP8O+yEV7P8ZOmIW7QcsU6gaKOMBxOSTWlKZxzexAc3ggxr2E13TRT0xRRLvWoc 1xwInogsZ1iJUgWpLspbKceho4gcNP9y5y4qZBQtTM5veaiWvvsBcbgmFvX1SordPWG+ 5WEN9OmNunmk6MsjwWwnkFtqaCBKg9kcF4ZR5oH6QyRXfptJ+9T/IiOyno80Z0dM9w/9 zHCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="A/ivvxVa"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do17si972915ejc.502.2020.09.30.08.09.45; Wed, 30 Sep 2020 08:10:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="A/ivvxVa"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728385AbgI3PIM (ORCPT + 99 others); Wed, 30 Sep 2020 11:08:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:33320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725385AbgI3PIL (ORCPT ); Wed, 30 Sep 2020 11:08:11 -0400 Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com [209.85.210.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 17EDB2076B; Wed, 30 Sep 2020 15:08:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601478491; bh=6QqV+ps2byZU4rC+O9EPuG5NtciAPCEeD4gdtKBD0V8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=A/ivvxVa7Lw2T1yu1urk7UClaBhy0Oxhld0Oi/R59aBUlQYOSgRnn3e5XkE6gGSKk rg2DyNJrcQeKFp9HT57WyYGU+Uz+BYjh0JVagdB2kBzeg0MiiUi0Q6mkixYcsdOAH9 6YHijAkeVYgXNQFyX75GqYhfsqet0wuli9JzkKIc= Received: by mail-ot1-f51.google.com with SMTP id n61so2121324ota.10; Wed, 30 Sep 2020 08:08:11 -0700 (PDT) X-Gm-Message-State: AOAM530AwIcolv0SkYZdw+3KUKAC0ufHiKUO5NkhkBWQbRZVDqalSmjg z1aUgZe+OSSkW6S0b50pRkcGc+XSKmwnttXknw== X-Received: by 2002:a9d:6ada:: with SMTP id m26mr1897519otq.192.1601478490346; Wed, 30 Sep 2020 08:08:10 -0700 (PDT) MIME-Version: 1.0 References: <20200929131328.13779-1-Zhiqiang.Hou@nxp.com> <6e6d021b-bc46-63b4-7e84-6ca2c8e631f9@ti.com> In-Reply-To: <6e6d021b-bc46-63b4-7e84-6ca2c8e631f9@ti.com> From: Rob Herring Date: Wed, 30 Sep 2020 10:07:58 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] PCI: layerscape: Change back to the default error response behavior To: Kishon Vijay Abraham I Cc: Zhiqiang Hou , PCI , "linux-kernel@vger.kernel.org" , linux-arm-kernel , Lorenzo Pieralisi , Bjorn Helgaas , Minghuan Lian , Roy Zang , Mingkai Hu , Yang-Leo Li Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 30, 2020 at 8:29 AM Kishon Vijay Abraham I wrote: > > Hi Hou, > > On 29/09/20 6:43 pm, Zhiqiang Hou wrote: > > From: Hou Zhiqiang > > > > In the current error response behavior, it will send a SLVERR response > > to device's internal AXI slave system interface when the PCIe controller > > experiences an erroneous completion (UR, CA and CT) from an external > > completer for its outbound non-posted request, which will result in > > SError and crash the kernel directly. > > This patch change back it to the default behavior to increase the > > robustness of the kernel. In the default behavior, it always sends an > > OKAY response to the internal AXI slave interface when the controller > > gets these erroneous completions. And the AER driver will report and > > try to recover these errors. > > I don't think not forwarding any error interrupts is a good idea. Interrupts would be fine. Abort/SError is not. I think it is pretty clear what the correct behavior is for config accesses. > Maybe > you could disable it while reading configuration space registers > (vendorID and deviceID) and then enable error forwarding back? To add to the locking (or lack of) problems in config accesses? Rob