Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754961AbdLTKdz (ORCPT ); Wed, 20 Dec 2017 05:33:55 -0500 Received: from mail-sn1nam01on0045.outbound.protection.outlook.com ([104.47.32.45]:36480 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754898AbdLTKdv (ORCPT ); Wed, 20 Dec 2017 05:33:51 -0500 From: Bharat Kumar Gogada To: Mark Rutland CC: "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "catalin.marinas@arm.com" , Will Deacon , "james.morse@arm.com" , "julien.thierry@arm.com" , "punit.agrawal@arm.com" , "tbaicar@codeaurora.org" , "mingo@kernel.org" Subject: RE: Linux Kernel handling AXI DECERR/SLVERR Thread-Topic: Linux Kernel handling AXI DECERR/SLVERR Thread-Index: AdN4sp3aDvoTQGI0SxmdlTRAbVFJCgAA808AAAE3PsAAAKnEAAAvuuMg Date: Wed, 20 Dec 2017 10:33:43 +0000 Message-ID: References: <20171219104500.5otagp7m7dqretd2@lakrids.cambridge.arm.com> <20171219113848.6dpb3fosbznguala@lakrids.cambridge.arm.com> In-Reply-To: <20171219113848.6dpb3fosbznguala@lakrids.cambridge.arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=bharatku@xilinx.com; x-originating-ip: [182.72.145.30] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BLUPR0201MB1505;6:ONvb+ft4UKG1lgpisJOnYcXuNzGSzcGMX2Z5blSQcbxSoUJgSUxMlEOcAtv7TTanLJy5/pIrx/u4RLnNZt2wC6moHRgWGfCtO+liyj8gbwfvi7IOH+UaErVMeuP9M3AygS45IFdHl9VcU1BfNUvuf/NBkj7DWnal+V/CGH2YwU39l9oP44AY558QiBDvdsU098tc71PI48ZRzotKBOqOBdXF7+nHLHWxz7tneQfHZDNZnLBtQCWYVq2gwwpX5hmMJp7CjwFRs+JaXGbQabVghANQMIQrrmvEftYOnk7ltAERK1Y0zszEHPKx2SefuwerVZnH+4iMLMFv0cars66pemFnB5irTH7d0aEANtnBobc=;5:dp4P5odBurNjpsALR8DBtMw87JnK9dAqLCdKXQB+dnNJw2d6pqJLhlmF62BP3ScQNVFCd4GREw+bLkDcnl+V36Tf9K4lK9/kSUDxieAgdOy3yWFENC3eJ/+ZYr0dX7dd9eEDbdnx6+sYaDYS5Wp59702GnZvcCZ046+3oeizE7o=;24:a7vyJGKzQPIRrY7h809ZLU4rnB5VintyLc2B1TnrZRYLZqsQJVfcojeCuxAdIUf3mvFnZar0rnfkO0Ktwk8vaoKbK3bCYaGh3LRCt5BR5a4=;7:5HpYmTsYbDD4wODbCN+Zl5NzhSIYbbVc9UwihHHKwiVeS1886yjBaGdsLjvfex5RuOUHdNblRVMqUE4ZQuLFiP7gHxtIl72nOKjzM/cBV4ICoXcVlcR9KgqMXlGNOdWK4HdOaBMMSCJ9jeg1lg5GefdJr6sbMHaLXUcIFGfZ4tqBIoVGgcldwN4fYw4F2sWLhLaouyJkZfdT5dBYHr9lFdv7biTubK/fmG4cM9xIczqSbIKgrvJ3hEqg1TjcYos9 x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: c4712497-00dd-4d38-56f9-08d5479524e8 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(7168020)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603307)(7153060);SRVR:BLUPR0201MB1505; x-ms-traffictypediagnostic: BLUPR0201MB1505: x-ld-processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231023)(93006095)(93001095)(6055026)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:BLUPR0201MB1505;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:BLUPR0201MB1505; x-forefront-prvs: 0527DFA348 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(366004)(39380400002)(346002)(376002)(39850400004)(24454002)(189003)(199004)(316002)(53936002)(6506007)(68736007)(3280700002)(8936002)(229853002)(33656002)(6116002)(8676002)(3846002)(102836003)(7736002)(105586002)(305945005)(99286004)(86362001)(7696005)(97736004)(74316002)(76176011)(106356001)(55236004)(2906002)(59450400001)(3660700001)(93886005)(2900100001)(9686003)(5660300001)(6436002)(66066001)(77096006)(25786009)(478600001)(7416002)(4326008)(81156014)(81166006)(54906003)(14454004)(2950100002)(6916009)(6246003)(55016002);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR0201MB1505;H:BLUPR0201MB1505.namprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-Network-Message-Id: c4712497-00dd-4d38-56f9-08d5479524e8 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2017 10:33:43.4165 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0201MB1505 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id vBKAY1lQ010379 Content-Length: 1029 Lines: 22 On Tue, Dec 19, 2017 at 11:28:49AM +0000, Bharat Kumar Gogada wrote: > In our case the peripheral returns SLVERR first time and we see the following print but kernel do not hang. > [ 231.484186] Unhandled fault: synchronous external abort > (0x92000210) at 0x0000007f9241f880 Bus error > > And from simulation we know that subsequent access to peripheral > returns OKAY response, however we see subsequent access fail with same > above bus error when we boot Linux. > > Is there a way to handle these synchronous abort gracefully in Linux > or are these fatal ? We don't currently have any mechanism to handle these, though it might be possible for synchronous abort. Since currently there is no mechanism to handle, if once synchronous abort is received from a peripheral, consecutive access will show up same error even peripheral responds with OKAY ? What are the possible ways for handling these ? Do you know why the device is returning SLVERR in this case? There is an error being detected by the device. Bharat