From patchwork Sun Apr 16 11:30:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oded Gabbay X-Patchwork-Id: 13212865 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7EB12C77B73 for ; Sun, 16 Apr 2023 11:31:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DCBE310E066; Sun, 16 Apr 2023 11:31:07 +0000 (UTC) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1A5F710E080 for ; Sun, 16 Apr 2023 11:31:04 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 14C4160C75; Sun, 16 Apr 2023 11:31:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DBE5C433D2; Sun, 16 Apr 2023 11:31:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681644662; bh=Lh94ImZa2Ssnh+mrqjmOa9ElurEzho+BxXGqs63rpQ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=olH4eUS0EMYdfD4Cv8aXf8hfY6qVS1+0jMoMpcJHfZ8IWiwxpUSlGRRMHDYvChWFx D9BSQiUUW1Wd+/5Jz6xQ/kA4mwuh2hTlxLBrwsz4hmzS8ixsq/FwjyTga1sQjBKRdd ge4pnw0/BZakrftJ/1Dlb9RSnt9LzTqE1WB2ve3E7zDYbL1Wfr5W0A4xLa2iRIAcpL VDLoBMrLIadTqsWLy7i9iZ5heOjjqvb+Tio0wASuCa4CjYtqIari/yfEBxqSS/hqVk gJAP7lCYWL3XV95Qpu3sukD32gbjIlFLsTDAJMSKS/ED8eF4nxLUJGhU5CjR0lGLVG 2VohZU7JZ5L0g== From: Oded Gabbay To: dri-devel@lists.freedesktop.org Subject: [PATCH 3/4] accel/habanalabs: remove commented code that won't be used Date: Sun, 16 Apr 2023 14:30:49 +0300 Message-Id: <20230416113050.2815620-3-ogabbay@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230416113050.2815620-1-ogabbay@kernel.org> References: <20230416113050.2815620-1-ogabbay@kernel.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Koby Elbaz Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Koby Elbaz Once it was decided that these security settings are to be done by FW rather than by the driver, there's no reason to keep them in the code. Signed-off-by: Koby Elbaz Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/accel/habanalabs/gaudi2/gaudi2_security.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/accel/habanalabs/gaudi2/gaudi2_security.c b/drivers/accel/habanalabs/gaudi2/gaudi2_security.c index acd33130e7f9..52a12c2bb58e 100644 --- a/drivers/accel/habanalabs/gaudi2/gaudi2_security.c +++ b/drivers/accel/habanalabs/gaudi2/gaudi2_security.c @@ -3443,15 +3443,6 @@ static int gaudi2_init_protection_bits(struct hl_device *hdev) ARRAY_SIZE(gaudi2_pb_thermal_sensor0), NULL, HL_PB_NA); } - /* HBM */ - /* Temporarily skip until SW-63348 is solved - * instance_offset = mmHBM1_MC0_BASE - mmHBM0_MC0_BASE; - * rc |= hl_init_pb_with_mask(hdev, HL_PB_SHARED, HL_PB_NA, GAUDI2_HBM_NUM, - * instance_offset, gaudi2_pb_hbm, - * ARRAY_SIZE(gaudi2_pb_hbm), NULL, HL_PB_NA, - * prop->dram_enabled_mask); - */ - /* Scheduler ARCs */ instance_offset = mmARC_FARM_ARC1_AUX_BASE - mmARC_FARM_ARC0_AUX_BASE; rc |= hl_init_pb_ranges(hdev, HL_PB_SHARED, HL_PB_NA,