From patchwork Mon Mar 28 18:57:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Radha Mohan X-Patchwork-Id: 8680231 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5B66A9F30C for ; Mon, 28 Mar 2016 19:08:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6769F20279 for ; Mon, 28 Mar 2016 19:08:16 +0000 (UTC) Received: from bombadil.infradead.org (unknown [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9BB9420253 for ; Mon, 28 Mar 2016 19:08:15 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1akcMk-00059p-PT; Mon, 28 Mar 2016 18:58:18 +0000 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1akcMh-00054q-Vp for linux-arm-kernel@lists.infradead.org; Mon, 28 Mar 2016 18:58:16 +0000 Received: by mail-qk0-x241.google.com with SMTP id e124so15338899qkc.3 for ; Mon, 28 Mar 2016 11:57:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=aCE2rQ/cEcqKhNkT2jba9Xdyfkmf1NcojiWFUyIo7v4=; b=TdM5KW7Z1euJf8k0cEPzccq/eDf2kJFkBlen2XHKs++iFGHst9j9HIpwQovj4avl6+ M+mpUwodqwyvAkAqvGT9cQwQkJFpII0maYc60WfAbdP7PPry6poQmuZKYIJtP4GMoriR WH+rOzD+31ZZ1kteiFbsKEo92GEBqHuUymQ7wj+ySSqsLv3n58m5RH1v1t9QVa6i0rBy V1+tqQRZFsr3fXVd7qRG2DPJi+A/ExRt2hpqYcMMUvr+2acxj9RjmaelpCGsXhNugQl/ W/v5Bam29sBLCD1K28z9g57eLxfct15KSRrJAQ6lozOOm6/N6tIRjYwhkI5jRNuH0vaz HB8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=aCE2rQ/cEcqKhNkT2jba9Xdyfkmf1NcojiWFUyIo7v4=; b=GFWIKXg15y+F9wYHCRonTvWMIQcTia1sLgSJ7mcJDA2CPMPG2syla3fc1QJa6TMoYQ xKETLTxj4Ol92jKdsVXPXQSraS6rGFT5bnczlW8jpsl6wWkk0G0L7I9GRVXB8/gfps+Y qZVAt13AsLK+8GJhC4C/7dMuX8ce5KfkOhhgqzHBIdrmRxQChgmxzaDjefPQLQCspThU nmAOufhgxKDhEC9YnmVAu66+fHTk074j0f5+be6bLlAAyk82lfGPTgVH8pE1o8b3L3wK v3nD6g0a4Cv20i3HHyzKzLbMigzSzVyBSLJHQa4fhvFOrkENsfmkwYb7f6pQVYVTI0kQ w06Q== X-Gm-Message-State: AD7BkJICgKtfyu2PBJP0K4cU+WlbSOma7H12iOzHfZrPZ2KqMaV/kjHAXOYg/kTyhblKYLM1t2qED9IwNjThtA== MIME-Version: 1.0 X-Received: by 10.129.116.193 with SMTP id p184mr4308666ywc.95.1459191474448; Mon, 28 Mar 2016 11:57:54 -0700 (PDT) Received: by 10.37.107.70 with HTTP; Mon, 28 Mar 2016 11:57:54 -0700 (PDT) In-Reply-To: <4F6594C9-35E6-415B-B022-D78827C659C0@caviumnetworks.com> References: <1457128569-13878-1-git-send-email-tchalamarla@caviumnetworks.com> <44D97D2C-5114-4FCD-AE3E-9404391FD449@caviumnetworks.com> <20160324175127.GA29365@arm.com> <4F6594C9-35E6-415B-B022-D78827C659C0@caviumnetworks.com> Date: Mon, 28 Mar 2016 11:57:54 -0700 Message-ID: Subject: Re: [PATCH V4] iommu/arm-smmu-v2: Workaround for ThunderX errata#27704 From: Radha Mohan To: "Chalamarla, Tirumalesh" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160328_115816_124808_305CC478 X-CRM114-Status: GOOD ( 13.00 ) X-Spam-Score: -2.5 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "mark.rutland@arm.com" , "robin.murphy@arm.com" , Will Deacon , "iommu@lists.linux-foundation.org" , "Akula, Geethasowjanya" , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RDNS_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Thu, Mar 24, 2016 at 11:29 AM, Chalamarla, Tirumalesh wrote: > Thanks. > > > > > On 3/24/16, 10:51 AM, "Will Deacon" wrote: > >>On Thu, Mar 24, 2016 at 05:36:39PM +0000, Chalamarla, Tirumalesh wrote: >>> Do you want me to resend it with path version number change? >> >>Shouldn't be any need. I've queued this locally, and will push out when >>I update my repo after the merge window. >> Minor change that affects the kernel compilation. I think it makes sense to resubmit the patch. list_add(&smmu->list, &arm_smmu_devices); >>Will > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 6ed7c3e..4aca5c1 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -1834,8 +1834,8 @@ static int arm_smmu_device_dt_probe(struct platform_device *pdev) * asid/vmid space. */ if (of_device_is_compatible(dev->of_node, "cavium,smmu-v2")) { - smmu->cavium_id_base = atomic_read(cavium_smmu_context_count); - atomic_add(smmu->num_context_banks, cavium_smmu_context_count); + smmu->cavium_id_base = atomic_read(&cavium_smmu_context_count); + atomic_add(smmu->num_context_banks, &cavium_smmu_context_count); }