Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1145112pxv; Fri, 9 Jul 2021 19:26:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqgOO5dz0QlFr66F+Ry/aWz+Y3/48oko8cD9yYvpBgcKuW8EIlVjxe53kBZ+UoG3ivVIi8 X-Received: by 2002:a50:fb96:: with SMTP id e22mr43302562edq.95.1625884007255; Fri, 09 Jul 2021 19:26:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884007; cv=none; d=google.com; s=arc-20160816; b=z6UUhQo4zhoTvA1Ocv6RCvOJlZv8XzgiQ1rFGFagYMrOY08elKmn8XCbJFUkKW9ie2 /GJYASKdwW6ChIB+sH+pHN4EfH14bPe70TN5Kxf3G1C41e2K4L6QFr3qVgLRBxGSmyuu ClaH8M6Ehi4E+YbhbYKdtLqyK6HflwdR65zexBSBdSXDEBmyXS2xbuJF31/85p03Gbw9 noBt11sWZXYQu673swrr64rmOeJYOMwDfP5AqqNgiM/T9g/iXtxNl2brE9S0O3IGRrhi es7Hke3sBXGKgPlwnBauTfJ3X4b94Y8ydr47M7KnMlLpBufRblEvzABBA1HKKVHGPhe/ RtfQ== 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=uFNniuMCs1X7wvjhZvnTTiKZSppw0fQffKBujWOl0Tk=; b=PaUa7SiZVQFh1P/xHBhdQN9UZK5fDopaSsHRLS5VWI/kjc3dgBu6cY5VnQYpW2STLu R+Etd2OxZURvmP5rOsp7qbtzPllxUGFNB0Z+S3ldXYMnku6+50F+ocVs31T1TrDm23AP 7GKd5UieF1EDqzHGwBDmjD0oXDTvjACNLMhaANbZuG18AzkDI5T8xZAWVKsNbhCeyni8 qM55Pci6URzCx5Sp/15Vv/ES+rHnCkKEcgFo5TvTQYqQLdCuZJbMJBTrTAfHSWm4hovz T9FTmMfneLpnP+KJK57Wr9QbLk0yjINKeEu0yAg6q94ZSSx3BHhO14CCGMafsRB+evBq V9uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DkNAftUC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hd33si9349678ejc.706.2021.07.09.19.26.24; Fri, 09 Jul 2021 19:26:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DkNAftUC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233718AbhGJC1o (ORCPT + 99 others); Fri, 9 Jul 2021 22:27:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:42542 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233330AbhGJC0e (ORCPT ); Fri, 9 Jul 2021 22:26:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 886B2613F3; Sat, 10 Jul 2021 02:23:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883825; bh=su+ean6I607AqDEYEzC7zDiFEXsPqEBzUVS+3JxkEHI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DkNAftUCx+Ikk8MEFllkOFPJTDIk1QJvHivkji8mqlovvj/MriAU7VJVIoTk2AmC/ GbAAWgzv91gFWkBQvN6+eDV3f1G7XNj/g9lhWg+iwvAw2Nw49VxsnkZ9HJwzwpQbex bYQWxDoyZJisBIiwJDcb2ZpE3bFLvp4nxKWOPQJ1cLAVJykfwwjB/5+amQHH/Sawl0 h/bKUJdtqDhExxuAke3Gk1rTlpKjwKmCvxRHNDTIqaAs897KicynSLLvhAGT8LwH9h O9tbLV2PcIXQI4bH+7D0aPBSr1TbIG1FOoMkGsFiOkc52/PHwZ8+KdiR/0AxRzn4Cg fdXX+IpCs0zIw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Koby Elbaz , Oded Gabbay , Sasha Levin Subject: [PATCH AUTOSEL 5.12 073/104] habanalabs/gaudi: set the correct cpu_id on MME2_QM failure Date: Fri, 9 Jul 2021 22:21:25 -0400 Message-Id: <20210710022156.3168825-73-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022156.3168825-1-sashal@kernel.org> References: <20210710022156.3168825-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Koby Elbaz [ Upstream commit b92c637c5f5ef7e3e21dbc7bfa7f1999450f3902 ] This fix was applied since there was an incorrect reported CPU ID to GIC such that an error in MME2 QMAN aliased to be an arriving from DMA0_QM. Signed-off-by: Koby Elbaz Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay Signed-off-by: Sasha Levin --- drivers/misc/habanalabs/gaudi/gaudi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/habanalabs/gaudi/gaudi.c b/drivers/misc/habanalabs/gaudi/gaudi.c index ecdedd87f8cc..a03f13aa47f8 100644 --- a/drivers/misc/habanalabs/gaudi/gaudi.c +++ b/drivers/misc/habanalabs/gaudi/gaudi.c @@ -2801,7 +2801,7 @@ static void gaudi_init_mme_qman(struct hl_device *hdev, u32 mme_offset, /* Configure RAZWI IRQ */ mme_id = mme_offset / - (mmMME1_QM_GLBL_CFG0 - mmMME0_QM_GLBL_CFG0); + (mmMME1_QM_GLBL_CFG0 - mmMME0_QM_GLBL_CFG0) / 2; mme_qm_err_cfg = MME_QMAN_GLBL_ERR_CFG_MSG_EN_MASK; if (hdev->stop_on_err) { -- 2.30.2