Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1149045pxv; Fri, 9 Jul 2021 19:34:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyF8r3mRdIENiBMwYMmq3eUcc9itHctjfFyTCXfvN4Jh88L+Q9xJ/8qT5gFQaAR5J+R8WRL X-Received: by 2002:aa7:cd9a:: with SMTP id x26mr50870234edv.185.1625884497047; Fri, 09 Jul 2021 19:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884497; cv=none; d=google.com; s=arc-20160816; b=LVSB0sDbPMcp/cyedVgCsvZqL9I9H7u6H5C35IKDF/yA52S1vQ/aXSY10XmnNHoYw9 PnTThMxLK4fyODsDRFuCqF7w77SIY+LbyHzg7/3ZthgeskuFoT0b+6piTQX1SpK5OgbX ZiOuGHn8MNNVrgb6HEfqKhrY437IRYz2zCSJkGL74+rSD7tHbfVlohNeC6cqeSu+zLD8 gkwTBhrrI97yWEFh7DOZjE6kr07JW54aQylKaHTfIZ01sQDHoSIgQzd8mlmtPQUW2i4F EqITMkx34JHoFS0NFZMrrkqQGCcabJqsCnCjtCLFvLw1If8WRMBv1LDhsh+0wfbe+8Sv 95tA== 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=kGG4zpiVwlIJMSpdIScoR2b02FfQjhOLde4iq4Q6s94=; b=wcHW1xg9X1s/zYdl8uKrV+LqE1fTrSQ8QFsPcTwUBS1aaZ2ll9eotCsGhxupP5cck8 TOuBNR1lyqPX9mvUacZtrj97Nf9AJcIa0ugh88CMdEPhIdcugFnf8Zm/xGOXJSMKi2GA PC6KOhDEnQ8RHI2PEnat3Gl2hnCWF2X/+2zKETWhAgXQ2Sp0+DZp8ydMky0lZbA4U3dq +PePZdmpdRUkAws5FZQMGUrlFDSqHNQ1dvWazeh4ZNp9WEEVtnYq+kaAGnm0VdU+BFHh N6TWV9xhJcfq+wIVfkOxPO5Xpm7DYOG62FGZLJnu7afrcb1orxGDj0jiya5bCxsMBO8Y ll4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Jndfw1CR; 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 n2si9415169edi.195.2021.07.09.19.34.34; Fri, 09 Jul 2021 19:34:57 -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=Jndfw1CR; 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 S232895AbhGJCdv (ORCPT + 99 others); Fri, 9 Jul 2021 22:33:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:41906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234435AbhGJC31 (ORCPT ); Fri, 9 Jul 2021 22:29:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AEEC8613ED; Sat, 10 Jul 2021 02:26:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883991; bh=VYStZb8e9404AHNAgWv6sOmTs8wZRmv5JCZj+OUVclk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jndfw1CRQVLWY/BiLcQs6Blb1OGzlbXHioxsKuuPlcp/IKoN01ByH8OA8m7u/Xd5W odM0w2RQaPglRLsl/ZiS9SD+6kY0J8aQZWCM6xWpwdovBsYjf3ZFKrUBngtO2ZRZdV nyBD27IN/4Gq3KGL3zQCsmDHOOjEaOmqZrWbalL2OxI0yTZIhXa4rkaOWu3Gd4fbrK ylNCOvo7YGdF6oU85yr0RAM6uYkpS90P+Uds4Vp2/hgVOuHVSx0QQva6RMOAuUf9HD qtRk66UhE741disoU3QGU5zsRpieaG94Qot4SMDrXCjZ+Kch8OZBHGK6qQhPiHZ9ci ZysbMx95MtO1w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Koby Elbaz , Oded Gabbay , Sasha Levin Subject: [PATCH AUTOSEL 5.10 67/93] habanalabs/gaudi: set the correct cpu_id on MME2_QM failure Date: Fri, 9 Jul 2021 22:24:01 -0400 Message-Id: <20210710022428.3169839-67-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022428.3169839-1-sashal@kernel.org> References: <20210710022428.3169839-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 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