From patchwork Sat May 13 09:47:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shameerali Kolothum Thodi X-Patchwork-Id: 99741 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp700115qge; Sat, 13 May 2017 02:52:02 -0700 (PDT) X-Received: by 10.84.218.142 with SMTP id r14mr11294451pli.69.1494669122026; Sat, 13 May 2017 02:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494669122; cv=none; d=google.com; s=arc-20160816; b=nIsTMlbSlOObov62c/ZbRIM/ZhGKN+Fbrb3HHvVDWD+/nR2Enu4CHipK5rbxt2/NRz mH38MaMksmVyEXoisETI/mS5qBzlN8JUWcxjjEE3XqYOsJmrlcuy0HQKNVNmjkeG1Z84 GMm8iHr0SVskrD62CyQnLu/YMOfb24GQsLWSbSoCeP1osGD2ORHNGBX12jPpwjy5B3sh u/6liXpec2ikUlR6OBCZU8BFmDt8p4/n0nNkamC00Atfx+Up4rcxQ1h4Xdceid5La2iu qfyFUq1eO+N7ox84O/Kpd0MnQUuQzdjSVd/3d+4GtekoJ6fEUPd5oDaRq1Sruksd01+3 DLQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=5TfyYPs9jHgOQnozKW6oE6K3m2T+hQXZGtXKHA4i8bc=; b=fDS7w3paQe7Q0j3ah8AnY2RcNGUe033Z4jMKrujQIsd4xIBV6oKw6DaHJBNORaTkXp LnNaKYAlvTm/pHlpYpVJInyR8/JenrJZLlezA122g52kU3Tme5WRsIxSpQ8Fwr5Tyujp UZlT65rEK8n73Fwc0jueiC44NB/2JoOmZ/VTYfhZA6jmzRSP+IsbIJBW9525OaKZgw7b RZS9i17Iy/i76naCs1/EzzEvL3psMQqNjEeqvjAA2pb+XTc3FZR/u+BC9QZ1OAsQG7pu bwEAkhMwxz1vgRnjdCuN1zSBrl1YKLv+7ulIjaTdDCfQABPuAHqA5ue3OSBFuFql4Yub /ACg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-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 h124si5469766pgc.306.2017.05.13.02.52.01; Sat, 13 May 2017 02:52:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750935AbdEMJv7 (ORCPT + 8 others); Sat, 13 May 2017 05:51:59 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:5943 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750822AbdEMJv6 (ORCPT ); Sat, 13 May 2017 05:51:58 -0400 Received: from 172.30.72.54 (EHLO DGGEML404-HUB.china.huawei.com) ([172.30.72.54]) by dggrg03-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id ANM88404; Sat, 13 May 2017 17:51:24 +0800 (CST) Received: from S00345302A-PC.china.huawei.com (10.47.91.84) by DGGEML404-HUB.china.huawei.com (10.3.17.39) with Microsoft SMTP Server id 14.3.301.0; Sat, 13 May 2017 17:50:50 +0800 From: shameer To: , , , , CC: , , , , , , , , , , shameer Subject: [RFC v1 1/7] iommu/arm-smmu-v3: Add erratum framework structures Date: Sat, 13 May 2017 10:47:25 +0100 Message-ID: <20170513094731.3676-2-shameerali.kolothum.thodi@huawei.com> X-Mailer: git-send-email 2.12.0.windows.1 In-Reply-To: <20170513094731.3676-1-shameerali.kolothum.thodi@huawei.com> References: <20170513094731.3676-1-shameerali.kolothum.thodi@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.47.91.84] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090204.5916D71C.00C1, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: dbfd88f445e4ab76c6cdf856346cc25a Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org This is to introduce an erratum framework to smmu driver similar to the one in arm_arch_timer code. Signed-off-by: shameer --- drivers/iommu/arm-smmu-v3.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c index bbd46ef..a166590 100644 --- a/drivers/iommu/arm-smmu-v3.c +++ b/drivers/iommu/arm-smmu-v3.c @@ -660,6 +660,20 @@ static struct arm_smmu_option_prop arm_smmu_options[] = { { 0, NULL}, }; +enum smmu_erratum_match_type { + se_match_dt, +}; + +struct smmu_erratum_workaround { + enum smmu_erratum_match_type match_type; + const void *id; /* Indicate the Erratum ID */ + const char *desc_str; +}; + +static const struct smmu_erratum_workaround smmu_workarounds[] = { + +}; + static struct arm_smmu_domain *to_smmu_domain(struct iommu_domain *dom) { return container_of(dom, struct arm_smmu_domain, domain);