Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp695637imu; Sat, 17 Nov 2018 07:43:39 -0800 (PST) X-Google-Smtp-Source: AJdET5djqcTyWef94ljaLz8YtEuAFvha93hSucoSWm+qy/VTuFFm6sGaHDIrSuZ0jKIcZ2qkgqWN X-Received: by 2002:a17:902:3181:: with SMTP id x1-v6mr15377012plb.240.1542469419080; Sat, 17 Nov 2018 07:43:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542469419; cv=none; d=google.com; s=arc-20160816; b=GYNEAxpZOyh9VqZGMbY9kKkGaPT97BVNPLwyDFfo3WSgbJJB1hVj+nMd10gkDdX6ye HBCMe8VjS85cD+NEdH06jJFuCS6Nn7OCQtjEZYKPWMn8iLTpZJF9RDaM3fNn3Z9xBXix gUjR4+MpzbCJCXjdJu7A+h3KCRRTUDtaKq3Jux9tf9fuYDrmP0CplEe07CANtoipgwaJ /AJFPpJtcFATcxD4rnCXgjcQ5lrbvHk5r5XaVLFeZnn3HbBLrxWpewgAflPfFiCEVc+d A28gSdQ7fQ/uS/EHeKHtJW54uw/9nPDEKA7SnMsyuBGgZZN60nJ0/Ovlol2SeOenumHt fkKA== 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:cc:to:subject :message-id:date:from:mime-version:dkim-signature; bh=dhHt+/pAn8gqsUa/fUYyDgEHHH91NFoOBCQ0tbAYAkI=; b=FD6Ykp2SirKB1hiiOmmVfzcnygX3FaNzGJhS3K5FrHjmMVkZc7T9ityvRInMZ8qEo6 gY3kJua3Z5CD+qxigvGitEschUQHhJIV/W+yZO5rJad7k5gjRiZeavUcInvIOAyQ6zNB dAwEqR2+JclGcNvn02WZVWEKX36m09YDtUpKeGEHEezuDAeeIawo5SEy7yDMNE9Z338E pF3SgLqcBXFrYYX7kloCsvmfKlqwonfwnKA81k6yR3wlGgfEXt7fkJ8ElvDZz+aEisot Oghbtf4gKAixVoVO9pVqIfSc60ZCj+QQV0dD4A8/bdq+out7sIR9DVPeKTugQOLplvZt NaUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AldZqVFa; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d14si6371718pgi.158.2018.11.17.07.43.24; Sat, 17 Nov 2018 07:43:39 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=AldZqVFa; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726630AbeKRB6d (ORCPT + 99 others); Sat, 17 Nov 2018 20:58:33 -0500 Received: from mail-vs1-f65.google.com ([209.85.217.65]:35421 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726113AbeKRB6d (ORCPT ); Sat, 17 Nov 2018 20:58:33 -0500 Received: by mail-vs1-f65.google.com with SMTP id e7so15473238vsc.2 for ; Sat, 17 Nov 2018 07:41:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc :content-transfer-encoding; bh=dhHt+/pAn8gqsUa/fUYyDgEHHH91NFoOBCQ0tbAYAkI=; b=AldZqVFadKX3ltdceyDzJmpdwkSYIsWeEvxuj4z0RJgPklGttWSxgpRyE4sfuZMWnn KFTVkqZ9mR6lYd/DXp5gmVvOKSzvZ3qweETcdvT3maNwNYYrFgy8hy0+U8aYxujzao3W BdehdQF2F4tVnvr9lmjRhONcA8ia8Zol7yJTcOyKjT4P0cuxIwYcTMfLadZ0NRMa2ye1 aMhNF+j/ChjIMJ4phE1KytZOwOI+vG9CSZLlXZenfMldq/T6wtYbFZNXc9vU7QHexNg9 7GthLBmUbLg/pxMZVWw05Jx2AUurIYWnMqSIhDOTxARKTupCbaxSTmLVkhE3hDXUAEKb ugww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc :content-transfer-encoding; bh=dhHt+/pAn8gqsUa/fUYyDgEHHH91NFoOBCQ0tbAYAkI=; b=PYmNKo4cmo9YGdNQeelhD9Ybg9jt8n0nQbyDlDDhSRHGpFaI1+SP41UeXym1ax5Yxp fwjMq6QUMWGTAiTmLJKDnNw6EIx0IWwj24wFEyrbuYBvbf6nVdSreU7ze6d9u2CkgBGh 6F6XJeLnZYPt5gFVPrvMsCvnPGtINOR02BDwjackqya1ZvJjkL3KZN3YqK8SIErDEA/t CjHnxEDwwYoG1MznmxcFkbEhuoZwf3K8ciglvQyFYu3FONlHeYJFPtiRlwLQ7pbtH942 DQairMqrwr7viUk8JPDGJUVnGEVCy35AEz+MBc752RRw2tJaGLwuWZeKL9ogXHtUWirp +wXA== X-Gm-Message-State: AGRZ1gKKK8j9O3Te/GklrJl61mR56zdZeKXPuatc/xqbDLAWZT+I6UsP CIXGIDuc8HjxcQ0EbDK/nxpKChGXNs9AigWLQ35png== X-Received: by 2002:a67:ad0b:: with SMTP id t11mr6219860vsl.170.1542469290559; Sat, 17 Nov 2018 07:41:30 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a67:4401:0:0:0:0:0 with HTTP; Sat, 17 Nov 2018 07:41:29 -0800 (PST) From: gengdongjiu Date: Sat, 17 Nov 2018 23:41:29 +0800 Message-ID: Subject: Resend: How to handle the SMMU RAS Error in the kernel To: robin.murphy@arm.com, James Morse , arm-mail-list Cc: xuqiang36@huawei.com, Linux Kernel Mailing List , gengdongjiu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi robin/will/James In the current kernel, it only handles three kinds of error, which is memory error, PCIE device and ARM process. But now the SMMU already support the RAS, how to handle the SMMU RAS error in the kernel? I check the UEFI_SPEC_2.7, the ACPI's CPER have the IOMMU type, but it seems the IOMMU type only are specific to AMD=E2=80=99s IOMMU specification= , not have the ARM=E2=80=99s IOMMU section type, can we reuse this IOMMU sect= ion type for the ARM SMMU? N.2.11.3 IOMMU specific DMAr Error Section Type: {0x036F84E1, 0x7F37, 0x428c, {0xA7, 0x9E, 0x57, 0x5F, 0xDF, 0xAA, 0x84, 0xEC}} All fields in this error record are specific to AMD=E2=80=99s IOMMU specification. This error section has a fixed size.