Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2496690imm; Mon, 24 Sep 2018 05:28:49 -0700 (PDT) X-Google-Smtp-Source: ACcGV61cqOkG5LFoUyaSmlyyi2ARoCXnBZwpBw/564yDtTWmFf1dOa3cyVLfErHZAGG2YV56YhhQ X-Received: by 2002:a63:4860:: with SMTP id x32-v6mr9376458pgk.375.1537792129433; Mon, 24 Sep 2018 05:28:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537792129; cv=none; d=google.com; s=arc-20160816; b=MDMKYPSVWRpN7gxy4TqlEIlH6ewKEUPltIkIeOyQk6ISeYTqPyXGqLL6T9I15a4eia pWPDiZMEG32AOe8/6Sw5qaetDT/tJZQJrApkbKaGQyYgUX8E0TEA3ZZcwpbFSw+LpB4V SXZeeiGJP9pHSI91aOZJopvQcDqe/yMVGtTs4hiq/IXY8fXovubZvd0WxY1v4vRdVWQD udHqrUiJBj8Q7gYezd5jHXWeAe1/tDEf1gL+NQmBXF2DKjfW6BOZSJfO3bc9cMkaysSu +zaC/ZPFzww/CnecgdxcR8iOqWLXKxKQ/DXhSL5us+XHkEtd1nbFYdXMNkTH1R5LpeDb 99Pg== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=m41sPY+rvA2xhHrkMfBmtW0hj8b6STRhtPkVkE363TE=; b=udlDFnFJ4yyruLr95airjqvmqttFlSqC9nymfy00UbEF81tMjaN+lfAE8wj6LTyUdM rDbZUJ6u0GiWEsSIgqYadOjcrTASesawiSLXzekbfsL1B7N2SzfDO28h2/skl4VHLznO VQAawjTT3MFmZRryOZq08X7cLSiPHkDbeEDzx/LvgxJFGH40c1lajMNZRg3NNCs4nI/g s/+ITXSBeasew1qV79vtMgdvzYBOoO6u2RRcrmlL7IgdYv+pwtXHL5/t+dodK39wt28f 54Mo86fHGH6RcuLxjuWDUlCN6J6336+ycJAFozdSm4OfpjkcIcMyx7/buVh+rUB/BiDt ieUg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t23-v6si2981850pgl.618.2018.09.24.05.28.34; Mon, 24 Sep 2018 05:28:49 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733278AbeIXS3U (ORCPT + 99 others); Mon, 24 Sep 2018 14:29:20 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57296 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730233AbeIXS3T (ORCPT ); Mon, 24 Sep 2018 14:29:19 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id BE9FF1018; Mon, 24 Sep 2018 12:27:25 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Will Deacon , Robin Murphy , Miao Zhong , Sasha Levin Subject: [PATCH 4.18 017/235] iommu/arm-smmu-v3: sync the OVACKFLG to PRIQ consumer register Date: Mon, 24 Sep 2018 13:50:03 +0200 Message-Id: <20180924113106.263647018@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113103.999624566@linuxfoundation.org> References: <20180924113103.999624566@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Miao Zhong [ Upstream commit 0d535967ac658966c6ade8f82b5799092f7d5441 ] When PRI queue occurs overflow, driver should update the OVACKFLG to the PRIQ consumer register, otherwise subsequent PRI requests will not be processed. Cc: Will Deacon Cc: Robin Murphy Signed-off-by: Miao Zhong Signed-off-by: Will Deacon Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/iommu/arm-smmu-v3.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/iommu/arm-smmu-v3.c +++ b/drivers/iommu/arm-smmu-v3.c @@ -1302,6 +1302,7 @@ static irqreturn_t arm_smmu_priq_thread( /* Sync our overflow flag, as we believe we're up to speed */ q->cons = Q_OVF(q, q->prod) | Q_WRP(q, q->cons) | Q_IDX(q, q->cons); + writel(q->cons, q->cons_reg); return IRQ_HANDLED; }