Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp423751ybv; Wed, 5 Feb 2020 07:56:07 -0800 (PST) X-Google-Smtp-Source: APXvYqzfr43BXIWVRif6ww+IIcPDNRaumPWjFZwq8u8Hbfu+cAS53ssU8njsUMrSn+phhfENPtRD X-Received: by 2002:a9d:51c1:: with SMTP id d1mr25256767oth.136.1580918167610; Wed, 05 Feb 2020 07:56:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580918167; cv=none; d=google.com; s=arc-20160816; b=JhMmPUr5gUWu0ZT8YoxqkdoLabCVPByTiCM1r/4vw8HcoHZ8c0wt/YcyzEzEzmIdIp SEJcT0uwF7eQsORhO1QZvGUCHkYAMGsu084UBlC4GEnteCTfgYUknX8E+vDRjaNxFh/N HfbHyqSHzPzeceXiadRtQ3ruyrTZM+QwKDUBpfXKRXXT6wJNIlOoQBZc4YfFsFSjHujE KS+vg6LStf777CRhWqqZlAjuglvfSAETQGskf8tDb7lciIzqFtWlNXGVxyduA+bIxtGp B1y8rQkU23N6TaB+5852nlGWn4wcqbzmolxpslekNcKovCiohnF4AcC4Z9oaocaU1REA h6sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=38D5H6zWkyahyYYe28XDPgybiJeKYqOpfDcJIda7PSg=; b=H5PekwxCeM6VUW0djPhCNRB10++5AqOslVfgH2mK0bWyRWU6RAppKZlDbWNFx97/2v pXyBjbDvDow+hBH7v8FZcO2KOUneapJEvIqlvbDwbizq8XbHjfNgPACtzBLRN/OG5JCd VAwtn+W1Zbw+1u4hBqqpRgZ6zFAHmEvdHhohOj0kbtKl3TR/XiDHgj1nST7HKKz0rk7s oNlDAGjuhiRzhRe1Kcw3OMOjQKzxT3mh+pB9g7C47QWQBhxTtl14M1YvfVx49evpl4eF i6gOBpsS9oJn3RR1ebBlNWT7ioxQDtONO/AzksnEggoGrcWC9NXv/U8n8joQEhYEVDyi NZTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=izizXlau; 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 p12si13903524otk.173.2020.02.05.07.55.55; Wed, 05 Feb 2020 07:56:07 -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=fail header.i=@gmail.com header.s=20161025 header.b=izizXlau; 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 S1727499AbgBEPy4 (ORCPT + 99 others); Wed, 5 Feb 2020 10:54:56 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:44185 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726334AbgBEPyz (ORCPT ); Wed, 5 Feb 2020 10:54:55 -0500 Received: by mail-pg1-f196.google.com with SMTP id g3so1149352pgs.11 for ; Wed, 05 Feb 2020 07:54:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=38D5H6zWkyahyYYe28XDPgybiJeKYqOpfDcJIda7PSg=; b=izizXlauswXltkNcK1UGa/0OKwNkbo9wHpPZu8kEbejQ358/pdXHPJliIcDrfpi/mX GtfLUwCEBa/8YsmiDtivLpFie/ZIGYzhG0ohD412C9ymXZYcWmpCwGn8kGJoRp+2VvUU dlqMgTK+XE3tLnIt+4BE43qL+KO5SwZoBoWimGmQyoVHKd4LSlrT+72+6PLPnsBu6UE7 +sv8HKG2GC4JKBQvyyI22pZ/SkPtQcOe+mJ29pKyBG4J0ecLwC2LXvRJgoPW44Dk+4VZ ghwjdjKAxaCG7wISY6uFeQMaQlPJdBIuYJLhDTrLGY1zHshe/YRkFiOAapPyATosLEA6 g6IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=38D5H6zWkyahyYYe28XDPgybiJeKYqOpfDcJIda7PSg=; b=IQjM7MVqHs67c8Rrb36GvzrNvWXF5YQd9AEtMH93R9ONwQWsXIGRhNgzjF1z/LcATQ KNcKOmwH3mZ6QVgeMQAX2C07YQ2o7QQ+BIcZ40JBtL86z1j26DZh5n26pXB023CXdimI v+8YA6fj2gP3vyig1D22X5SzvmsYW4x7mgaJ2Tnsj4ci7sVCgBr6YG6IHLpUcXNoQIML 0msQyc5OWJmnay4JfnCLFOA7hYiK77se3BkMl2ZSwGkRBoJObET0ESzi4v9gF17AT1Un BtVYBcx/a2ePxbfTec70nLVlrJwFfp0GN6ePdMMs5AvCCb9vGGeuCBbP49Gj+hpPVcc6 VmNg== X-Gm-Message-State: APjAAAWBslBNy4YuxFrVwd5r8sECpNEhOm2qRkm/bxnlOqkOEbzuXHJw VSWSUouZUt+RIq28YRTGdRM= X-Received: by 2002:a63:a411:: with SMTP id c17mr2034288pgf.450.1580918094540; Wed, 05 Feb 2020 07:54:54 -0800 (PST) Received: from emb-wallaby.amd.com ([165.204.156.251]) by smtp.gmail.com with ESMTPSA id z10sm195678pgz.88.2020.02.05.07.54.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 07:54:54 -0800 (PST) From: Arindam Nath To: Shyam Sundar S K , Jon Mason , Dave Jiang , Allen Hubbe , Jiasen Lin , Sanjay R Mehta Cc: linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org, Arindam Nath Subject: [PATCH 02/15] NTB: clear interrupt status register Date: Wed, 5 Feb 2020 21:24:19 +0530 Message-Id: <92dbbe6f9b6a54a2169207dbff10e1dfa6f9d3b5.1580914232.git.arindam.nath@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The interrupt status register should be cleared by driver once the particular event is handled. The patch fixes this. Signed-off-by: Arindam Nath --- drivers/ntb/hw/amd/ntb_hw_amd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c index 9a60f34a37c2..150e4db11485 100644 --- a/drivers/ntb/hw/amd/ntb_hw_amd.c +++ b/drivers/ntb/hw/amd/ntb_hw_amd.c @@ -550,6 +550,9 @@ static void amd_handle_event(struct amd_ntb_dev *ndev, int vec) dev_info(dev, "event status = 0x%x.\n", status); break; } + + /* Clear the interrupt status */ + writel(status, mmio + AMD_INTSTAT_OFFSET); } static irqreturn_t ndev_interrupt(struct amd_ntb_dev *ndev, int vec) -- 2.17.1