Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937668AbdLSL27 (ORCPT ); Tue, 19 Dec 2017 06:28:59 -0500 Received: from mail-bn3nam01on0049.outbound.protection.outlook.com ([104.47.33.49]:59591 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S936739AbdLSL2w (ORCPT ); Tue, 19 Dec 2017 06:28:52 -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: AdN4sp3aDvoTQGI0SxmdlTRAbVFJCgAA808AAAE3PsA= Date: Tue, 19 Dec 2017 11:28:49 +0000 Message-ID: References: <20171219104500.5otagp7m7dqretd2@lakrids.cambridge.arm.com> In-Reply-To: <20171219104500.5otagp7m7dqretd2@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;BLUPR0201MB1506;6:bMGTBcjXxfSpnSW5eby/7gGNe6rzopGutOhUk8hQWOlzuJ2yFf379AQgRBQOJePhR+TBTs8Ur6dEUaqcC22bMcsUe9bkBG0Io4hHi3Sc6+FIw7MPndysusCqZeo9PVWpBELGUJYdAPcFJJ2Oj+QwhYJ2oRiajbvYqr9ykr6QSuRUG/c5YgpwjdZzq2VKEo+otetrDl6KSvlAdMqlsgcJjhnSmpmXFeKvQrVH63zNzqqPgVrzV+5+7qcp6odrlbz3H7mHAYWJAU2n7B8ysKdpHoyrg0S8brpWenFG3eRrOoihwu3iJGdtXomWpLu6FEAm/01XB3DGT8HvR9lh+vkRLyZhXeLcO4tbwk6T4icij4k=;5:yUkB0OLDSVa75ileIox/XdeIi/02JsxLiKjajExMfLpz+qMCou9sFakD1z3bCogCHx/+krrGbc48tev3zfO07NhJKQ8Dieum1w9eb0EsFs+3u5xqqdGI1oONykyi0pFrZNOQAtMvhZiFJODFCErqBexrj5wIb2N0gBOVIJV6esE=;24:AEqzkNZT6Cl8UHd9Y5DiFoRZFNp4ryyuYavvrrnIqQQUDBsZa8Kqb4XOjYXI6weiS2BE/Q6xGFDq/V7WP5631KBRa4DF63lxZbAHG6H5uyA=;7:qsOq42t6PYYnO3MNpLF3aWQ3kYKr5kH/QXx73wlvgB6e+UZQP8Jnt327oSI8wRhks9Ubfh/AjGNg2vVsRyQ7EQJ6XvE2seKpt06MPpNl5cfo7jMJLaUHxV2ForY7H2h9kRz9YQfvW2w/y7RX97YcgFrNo5ViDxF36QyZdiEBTfjD5F+gT6wgX92UGqVUWYzoM45v+9Q5DUQSbleMDeu2I6o+LKKzySDXwmAIVmaE8iU1xQgqz0iGLh5CjLZQuIq6 x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 3c0d44b0-ead3-4190-441f-08d546d3acf8 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);SRVR:BLUPR0201MB1506; x-ms-traffictypediagnostic: BLUPR0201MB1506: 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:(6040450)(2401047)(8121501046)(5005006)(3231023)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123555025)(6072148)(201708071742011);SRVR:BLUPR0201MB1506;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:BLUPR0201MB1506; x-forefront-prvs: 052670E5A4 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(39860400002)(376002)(396003)(346002)(189003)(199004)(2900100001)(7736002)(5660300001)(7416002)(74316002)(33656002)(2950100002)(6916009)(229853002)(59450400001)(77096006)(6506007)(3660700001)(55016002)(3280700002)(55236004)(305945005)(68736007)(6436002)(106356001)(105586002)(8676002)(81156014)(81166006)(86362001)(76176011)(14454004)(8936002)(66066001)(4326008)(9686003)(2906002)(7696005)(6116002)(99286004)(54906003)(316002)(102836003)(3846002)(25786009)(97736004)(6246003)(478600001)(53936002);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR0201MB1506;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: 3c0d44b0-ead3-4190-441f-08d546d3acf8 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Dec 2017 11:28:49.5538 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0201MB1506 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 nfs id vBJBT2UW009539 Content-Length: 949 Lines: 22 Hi, > When Linux is booted on ARM64 platform and an access to peripheral > returns DECERR or SLVERR on AXI. > > In the above error cases how would Linux kernel handle these faults ? > Will it hang/recover ? I believe that on contemporary CPUs these will result in an SError. As SErrors are asynchronous, and (in the absence of RAS extensions) their cause cannot be determined, these are treated as fatal, and the kernel will panic(). Thanks, Mark. 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 ? Regards, Bharat