Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1023526ybe; Wed, 4 Sep 2019 11:17:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRswtMLZ89t8XalTQ6QA9U4mGazPnZ8Ghe1p09N2MKl6piwE4ibzJkidBf1HHcWbZsin7Z X-Received: by 2002:a17:90a:fe01:: with SMTP id ck1mr6334661pjb.89.1567621075077; Wed, 04 Sep 2019 11:17:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567621075; cv=none; d=google.com; s=arc-20160816; b=KJqWUl/vcMQFOFtmkklAJKpCPeJPh97/cIuxBS63EkxO4TXFQV2JWslF4Gj/ctTLQo 6EQgxH6KR+52K8yXeum9piTGw5bnJ7pM6R+OmCdriW6wtF9yA488AfxqjFn5/VvKhy5e vN8NAHK4C5bcX/cJK9oyUIaQsgL7kDpwmR70ZZlxXGVPkimTtBoKH4IHJ3XEtaefJOFl aBEqHy/hau7eQVo6Pe9hcsPifaud2c9emik0i0cPW2SziM8TFGnTEcbAId7HpUMVum2r ZOIE3mIK83sfauWbia604Hgrz7RCOy0SrA9YN5C08GP24zFGErvihIxFzkhL4aKgK4YH WFPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DvgkorZNOEnpX36vU98tHKpGaADXaHCPvlxJhXJuBYw=; b=E78GpNye8c/kvrXc6nrI4jl9MldCaZvGO5Yiov2o++zRC90VFSfLaERAH3JK9Vo3Xf qnCMD0NOcmWTiUTn8a2vlegNEA0H6jNmULRY6ZVf7KqK3xkt2kCFRal4dKnX1xq7pgFT HqFszd7cpVo+nrBYoOPUDKwz0uM5TcdS0yqO25DxLjBcnG5Fba+KuF1zeuovfP43YDrO GKIYIMEjE8O8gm1tC2QrvFhuEM2KQo2nLLMCcck4z8yp8nj8a2AxYlPwuv66EfTb5vF3 iBb1CCrIgKU9QOiEGx9EKZU2Pj7tDS+zaYqnayWJiD33/ismnnHq9tlenfUwQkQ3yYSe CokA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TS2b0Pkj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s128si21122219pfb.207.2019.09.04.11.17.39; Wed, 04 Sep 2019 11:17:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TS2b0Pkj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390851AbfIDSOl (ORCPT + 99 others); Wed, 4 Sep 2019 14:14:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:59978 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390835AbfIDSOj (ORCPT ); Wed, 4 Sep 2019 14:14:39 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0E0922087E; Wed, 4 Sep 2019 18:14:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567620878; bh=6dayg8j17W750WERnfhipO/wQb9UhdVbw7Tjj3ZM8X4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TS2b0PkjJ9s8FStdEoCwa2L4uaEvj/RJt4dL0A1wBBh8nAPDx5OCzEg+dd6tMPTf8 o5ij3EZ3GRbooQSxnBFoB1oeVjRQx8nwfm+MYAQI4Bkvh0i4FCtuf0ZA5afksaEp8W dkFgjifRDi0rvaB1bcRp6Rkhqc9Ho1idgCQm+zRI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eddie James , Jeremy Kerr , Benjamin Herrenschmidt , Joel Stanley Subject: [PATCH 5.2 102/143] fsi: scom: Dont abort operations for minor errors Date: Wed, 4 Sep 2019 19:54:05 +0200 Message-Id: <20190904175318.312486687@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190904175314.206239922@linuxfoundation.org> References: <20190904175314.206239922@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eddie James commit 8919dfcb31161fae7d607bbef5247e5e82fd6457 upstream. The scom driver currently fails out of operations if certain system errors are flagged in the status register; system checkstop, special attention, or recoverable error. These errors won't impact the ability of the scom engine to perform operations, so the driver should continue under these conditions. Also, don't do a PIB reset for these conditions, since it won't help. Fixes: 6b293258cded ("fsi: scom: Major overhaul") Signed-off-by: Eddie James Cc: stable Acked-by: Jeremy Kerr Acked-by: Benjamin Herrenschmidt Signed-off-by: Joel Stanley Link: https://lore.kernel.org/r/20190827041249.13381-1-jk@ozlabs.org Signed-off-by: Greg Kroah-Hartman --- drivers/fsi/fsi-scom.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) --- a/drivers/fsi/fsi-scom.c +++ b/drivers/fsi/fsi-scom.c @@ -38,8 +38,7 @@ #define SCOM_STATUS_PIB_RESP_MASK 0x00007000 #define SCOM_STATUS_PIB_RESP_SHIFT 12 -#define SCOM_STATUS_ANY_ERR (SCOM_STATUS_ERR_SUMMARY | \ - SCOM_STATUS_PROTECTION | \ +#define SCOM_STATUS_ANY_ERR (SCOM_STATUS_PROTECTION | \ SCOM_STATUS_PARITY | \ SCOM_STATUS_PIB_ABORT | \ SCOM_STATUS_PIB_RESP_MASK) @@ -251,11 +250,6 @@ static int handle_fsi2pib_status(struct /* Return -EBUSY on PIB abort to force a retry */ if (status & SCOM_STATUS_PIB_ABORT) return -EBUSY; - if (status & SCOM_STATUS_ERR_SUMMARY) { - fsi_device_write(scom->fsi_dev, SCOM_FSI2PIB_RESET_REG, &dummy, - sizeof(uint32_t)); - return -EIO; - } return 0; }