Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3849781pxv; Mon, 19 Jul 2021 10:12:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbQDvhKDuDAbthTuFiRf42bKpimqzjLTY9nOlWulnWDvPrvNToP/GsyPVg7FEqowPtR4A+ X-Received: by 2002:a17:906:718c:: with SMTP id h12mr27472173ejk.6.1626714759056; Mon, 19 Jul 2021 10:12:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626714759; cv=none; d=google.com; s=arc-20160816; b=G2TpbRF0x1nanmW+EoF5KBhsOeiApLcH1W+HDMDwa5uQ6rRuy/qBiOEB2HDb15JknN L6omDUCuPChYMzohQ63+dXH+TBsPoF/25F6+tkY9Qd7f/yEQTuGCE5R1XW3j+cbx1jAT E/evIqEV5/YMNYwgLfX9yTJGbB9YDDj98Ebi3aa8lQN+SkDI6X+379R7A8iMopqYmS+Y I71tFZhJTe6IobMRVrbRqZ/A0/JSHQbKwtE1620cYubiiyXmF0f9PddxTwi7gJWTkUpZ kzVXrL7YrCyrsBTBgfOGADZ3wDNIz2HirvHntfzZTo70cETI7wCxPPMsUTW8C1pDDe2z yE2Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kGG4zpiVwlIJMSpdIScoR2b02FfQjhOLde4iq4Q6s94=; b=hayLpukUyfY72AxdTSBFPgE1jGSMGzBpRXlBrqNg6v/rUQgn3vkdc1bHNXWwH5CErz pvXoQxQ29XNj5eiwbu54iV1nolaM4c7/yLJzg+ac35z3OsevzDwIR6lfU0iGnJbej9yg Qm+Mp8cH217xLPaYKBcCy8wRDj+q7itWrSOvHfMVQx8RTKU7FIXE5K6i9b0cHkvB6EiV 6L90BkDBomwfq8s5SdXIxyYZbBfF9k6Jk7I/FT/ABssh1LgiMf8u1eEfM1rAEH1dEhSH 63Zgwmuh9BIGjWB45PltYvb9NJGCRSyl4T4S1RJ0gNbFoPZ5QywSl2Cn8/9EcV/RfYyz l+qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rD7QZC3+; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si22169776ejw.652.2021.07.19.10.12.16; Mon, 19 Jul 2021 10:12:39 -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=@linuxfoundation.org header.s=korg header.b=rD7QZC3+; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346550AbhGSQ1O (ORCPT + 99 others); Mon, 19 Jul 2021 12:27:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:49168 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346580AbhGSPOx (ORCPT ); Mon, 19 Jul 2021 11:14:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 914A26121F; Mon, 19 Jul 2021 15:55:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626710120; bh=VYStZb8e9404AHNAgWv6sOmTs8wZRmv5JCZj+OUVclk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rD7QZC3+lp/aWp3pXhnGF2kAFERBKUDMAojoL0rLUXAtgHPD//ssSiGjQA+MumzMM uBix3l9cUMdy3Q1Ay2Fdcw0Q4GTqvXSAxoIXOnvfY7LekwAuTgZ2S2Gj1nyzl6pIP8 Q5ccGxqLe0Z3iNve/1uYQn8KHFWqs1uLGdZ/uqc0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Koby Elbaz , Oded Gabbay , Sasha Levin Subject: [PATCH 5.10 085/243] habanalabs/gaudi: set the correct cpu_id on MME2_QM failure Date: Mon, 19 Jul 2021 16:51:54 +0200 Message-Id: <20210719144943.640071847@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144940.904087935@linuxfoundation.org> References: <20210719144940.904087935@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 68f661aca3ff..044b2ae196f9 100644 --- a/drivers/misc/habanalabs/gaudi/gaudi.c +++ b/drivers/misc/habanalabs/gaudi/gaudi.c @@ -2164,7 +2164,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