Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3108703rdh; Thu, 28 Sep 2023 02:58:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjGn1tidwJJPsUKsZvm4EAb0ktUcgu9mn7vnk9SM8BOG5kQw3sZfN7l48e5WQStVpxQgH5 X-Received: by 2002:a05:6870:b60b:b0:1b4:4a2e:33f1 with SMTP id cm11-20020a056870b60b00b001b44a2e33f1mr681768oab.29.1695895084991; Thu, 28 Sep 2023 02:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695895084; cv=none; d=google.com; s=arc-20160816; b=Rmf701a53GjqkNn4qCiREWVvQo49liCmbOoEGNXTeBdP5lvzYf46KHNBZrMY2++hdf 4sW0pYJkzEMdbBDN1KgtGeluC1FdIMEsNomcKcvdOAu0zbjJXIb6UL5sS5kg30l5FW6+ yh27ADRbRzEiyGEMGV7UJW5+b8piKUDJFtzWVZplDstTDMn6TJQ3fCKpKmvfngHGeyAI 4gVlPPpk6xIXitPMvJ/+LuQHJvReRXlRqHmvSokol0ec1Zrc0G87Wq23VENFXH0q4265 79dbf7Vr5yRAozFH4MhIgK0q119sBZrL8ZVvj+6gXacdXwwXmspvEZvAap/haYGJsJkM g0fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=t2oxnsVS3R/tww6z0b5UpsExZImUyHB+ImnvXUnCX70=; fh=PceJZ/KGF6ujSpGwn68DXpj5qiXzqwvBM4Q702GUgLM=; b=tMHCOMuK7PmhQ/hmzwUGhUeoN/imWJNnukcmh9PI81xiLweZENbaEbYFZ96x+33PDf AMZPNg7eg3bSyluzu4NfkrwrqWP2DIJKqK1RSfJiFelXIt9ygMcpT3PFTXm+utjCgYu2 bbvgaaBGdNTY2q9JAXmfRz2EPG/2XpOUIJKmWeCcd8u4osMMbvGttHQixqIHVcyG0ZWd HbJMu3hsp7LG2LMmxpyBl2WQDgBjXwG4CxybpXx0j6IQwW4OZtS7sMTOJX4aNBBcDGtW qTRu9B76y3DxXAhASQoFS/vjOw+8AbzSZI49DJUU6da3XkjCnWnOBk5YE/VB/erfysnC ZoXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DcQuR0gU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id r9-20020a634409000000b00563e9d3d78csi18382502pga.422.2023.09.28.02.58.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 02:58:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DcQuR0gU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id F25258194744; Thu, 28 Sep 2023 02:20:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231592AbjI1JUL (ORCPT + 99 others); Thu, 28 Sep 2023 05:20:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231474AbjI1JUG (ORCPT ); Thu, 28 Sep 2023 05:20:06 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89DC28E for ; Thu, 28 Sep 2023 02:20:05 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1222DC433C7; Thu, 28 Sep 2023 09:20:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695892805; bh=BMuxTiku+IlvNWwdHgMDtNzm/glYc+SS1e8AMX4mWDI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DcQuR0gUyWlSbivUkssE/B80V9GssI/Sv70+YozuQ8mwVjvvCppHi6w79RQGWwM0A AXrNFtz6WHErXiRxjmbS+BQomkhMwtD2/nhCPai/v0RdA7qvXrmb7lSGSIJ+bnW7tV 8pblNnvZfW6PVrPPTSmp2phezQQges2ydSBKEzuGMjMoiBm3JFojfdKj7a57M6ewy2 PFm33xdcHFLvd1P/WVYknIwavX2OjMngsTN5Bb/Di45039mGZW0IPE275scvjABXVj IzQMnpIx2IvUpCbGPUgaTZPGbDsUDDoHdCnBFC8X8UuCE1UB/itxbXPGAQAmPFzzZO 4Cyl1INTMbrHw== From: Oded Gabbay To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Tomer Tayar Subject: [PATCH 3/3] accel/habanalabs/gaudi2: perform hard-reset upon PCIe AXI drain event Date: Thu, 28 Sep 2023 12:19:56 +0300 Message-Id: <20230928091956.47762-3-ogabbay@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230928091956.47762-1-ogabbay@kernel.org> References: <20230928091956.47762-1-ogabbay@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 28 Sep 2023 02:20:21 -0700 (PDT) From: Tomer Tayar Non-completed transactions from PCIe towards the device are handled by the AXI drain mechanism. This handling is in the PCIe level, but the transactions are still there in the device consuming some queues entries, and therefore the device must be reset. Modify to perform hard-reset upon PCIe AXI drain events. Signed-off-by: Tomer Tayar Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- .../habanalabs/include/gaudi2/gaudi2_async_ids_map_extended.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/accel/habanalabs/include/gaudi2/gaudi2_async_ids_map_extended.h b/drivers/accel/habanalabs/include/gaudi2/gaudi2_async_ids_map_extended.h index 57e661771b6c..b2dbe1f64430 100644 --- a/drivers/accel/habanalabs/include/gaudi2/gaudi2_async_ids_map_extended.h +++ b/drivers/accel/habanalabs/include/gaudi2/gaudi2_async_ids_map_extended.h @@ -1293,7 +1293,7 @@ static struct gaudi2_async_events_ids_map gaudi2_irq_map_table[] = { .name = "" }, { .fc_id = 631, .cpu_id = 128, .valid = 1, .msg = 0, .reset = EVENT_RESET_TYPE_NONE, .name = "PCIE_P2P_MSIX" }, - { .fc_id = 632, .cpu_id = 129, .valid = 1, .msg = 0, .reset = EVENT_RESET_TYPE_NONE, + { .fc_id = 632, .cpu_id = 129, .valid = 1, .msg = 0, .reset = EVENT_RESET_TYPE_HARD, .name = "PCIE_DRAIN_COMPLETE" }, { .fc_id = 633, .cpu_id = 130, .valid = 1, .msg = 0, .reset = EVENT_RESET_TYPE_NONE, .name = "TPC0_BMON_SPMU" }, -- 2.34.1