From patchwork Tue Jul 4 10:58:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "M K, Muralidhara" X-Patchwork-Id: 13300964 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 482A0EB64DA for ; Tue, 4 Jul 2023 10:58:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229441AbjGDK6u (ORCPT ); Tue, 4 Jul 2023 06:58:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230469AbjGDK6t (ORCPT ); Tue, 4 Jul 2023 06:58:49 -0400 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2074.outbound.protection.outlook.com [40.107.102.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56180E6E; Tue, 4 Jul 2023 03:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VnsJX+vshpm0FEnJdcP0mlHUz0eOcRpZEZHAXjPVOLgTTcd69nJZNSOy+BTb50vIksSa43HDFbPxG63lpvfcVnB+Ne8cmxsTyqVY3b3VQmRn9B2yYz8BoQeAbHNgoWphEh4PxHKS2DIL8fE0mOtCGcKxX3JEXlHryXLi6SqU75an6aGathPSQPM9SEX4IYuPQUwWPyQ+iJEP29Z4lWPiLCkP+5CvxiK7KSGO7+qZFFWjVvsZpyhjaSpkd/iGu13gy+cIa9EkF1ZnwWUozPH3WdoTStTePGJe3uBjDm4Z1vss5s7mlv/m/xTv8QsggRWFIrtiid1J26CULOO1XeXcTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0yEEvMhtQXhsaKUdD3skytTWjMyyknF/BN2fef7zQi0=; b=F0jjdR24+wfPToBVcTUgXuf/xZ7fUbxM1JRWUVbW/jiDdWxQkWmnEbLbEsuDF5fx71zBCIHS/UF72zjbgCldY7MQVZLeTeXnfxDrirhrtwXoQFWinMQGtpDadL/l5zlodmuVe98yvYln+za3W7YBSRzVJmSVBLp3MuH75ChAIIsafVhTeiYv8hudrtF7KiFM45aZgPervUxdKeyZPLl8ryfwKtPfqqoRT8at86lq2gvWz0qwVnflw0qbBBjDVQvw2Mdbey5Mc+SMKykBW3I6tttmIdC3GSIYW9fN3aOSyLuxtUbI6KneKnXedaGvYzJAuVenpLJNjpNFIBD/nP4dyw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0yEEvMhtQXhsaKUdD3skytTWjMyyknF/BN2fef7zQi0=; b=ydbW8rDJY7sC96Y+xC2F0DYc9Bhi2hWwvXnpO8ILna0qyfg3K6p4D6TX8V742549/TGwkGWCkf9DhoWsNjzz6zGkqASaAOaO73WCBrVPMacmOYqG8s3insF7pJRfXGcoGo3IWrA2XrcDbUUeZS/Hs17fFNlLKR43sGNcTSuMf6s= Received: from DS7PR05CA0024.namprd05.prod.outlook.com (2603:10b6:5:3b9::29) by MN2PR12MB4565.namprd12.prod.outlook.com (2603:10b6:208:26b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 10:58:46 +0000 Received: from DM6NAM11FT037.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b9:cafe::ed) by DS7PR05CA0024.outlook.office365.com (2603:10b6:5:3b9::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.18 via Frontend Transport; Tue, 4 Jul 2023 10:58:46 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT037.mail.protection.outlook.com (10.13.172.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6521.44 via Frontend Transport; Tue, 4 Jul 2023 10:58:46 +0000 Received: from amd.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 4 Jul 2023 05:58:43 -0500 From: Muralidhara M K To: CC: , , , Muralidhara M K , Gupta Akshay Subject: [PATCH 1/3] rasdaemon: Decode bank_type based on InstanceIdHi in MCA_IPID. Date: Tue, 4 Jul 2023 10:58:21 +0000 Message-ID: <20230704105823.3516889-2-muralimk@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230704105823.3516889-1-muralimk@amd.com> References: <20230704105823.3516889-1-muralimk@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT037:EE_|MN2PR12MB4565:EE_ X-MS-Office365-Filtering-Correlation-Id: 7d8f5bad-fb66-49b7-d132-08db7c7da3bd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1nWWAbB/001XtcluvDhWck71Wyo8DnENCLGpXJEtgJkqN25izHCjlKYGgJ8DD0WPEfOB4cAjmQcnQR76pZ6okYm3Q6qmtUtfT7TXAzYCztkaBkfBX/ahIktnBsQUZZKprCrLG5fNwcjn7Ei/zTp2ohFj3B4NviUe9lVdVZ5Qpyr4JNbbAYjOBspGiG3NQUnmZjHlL4awLnztEzyDufEug4SFrkSpeFn7iutl1ecJ9ndom9EVLJ7QKvIJo9BA1B1giE4Y2KjXQC1ARIzazB0slJ/qtVaqZIfuCAChcBzlM9dQRQXit828JM5qhdlcQF1qcVmaoq0RhMgffNo1lkppnrsiKofQ+dw0DohD7XAE5ZzWQwp8z+TrQihzkTdpdlSmr2m8Sj5K2js/ZXnMRbcAQ11Z7WDfgRv0nhOaP83SuPmUpvJj8RYfBLj1pPW/VPgMItk6PN9pU63VZzY1EETprs67bXg96ZtAF45al8d2GWTYRbd2lNfy2DVkxhkw12BQyh1v2YzUemiVu8/fW4pCA7c5ak3igZXZCvjRQXvamVrWvQifeVDGmtdJdjMMuMEjkpSbJot9RJIt2lGjGqjv7zbPX4tcnrwYKZpNUq7YgNsH0iD+wVzvjQr9i/4y0M1MSj+3Qo1BW60n54HyKDxkLhGZdAooAT5kHnSI+PUXQzbu0yYDNIWg683FDpyRMZPu6QvCAnSmxT2M0hl9eaWiHyukQl99cyO0vdWIoC1GxoXf/oFdy3XxFNBLzXaAU+Rw+I0AjeS3gTPiR0vH8aYdiQ== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(6029001)(4636009)(39860400002)(376002)(136003)(346002)(396003)(451199021)(46966006)(40470700004)(36840700001)(40480700001)(1076003)(82740400003)(356005)(81166007)(40460700003)(316002)(4326008)(70586007)(70206006)(6916009)(36860700001)(2616005)(47076005)(82310400005)(83380400001)(336012)(426003)(186003)(26005)(16526019)(478600001)(54906003)(2906002)(15650500001)(8936002)(8676002)(36756003)(5660300002)(7696005)(6666004)(41300700001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 10:58:46.2158 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7d8f5bad-fb66-49b7-d132-08db7c7da3bd X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT037.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4565 Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org From: Muralidhara M K On some AMD systems, InstanceIdHi bits b'47:44 of MCA_IPID register are Reserved, but the same bits are defined on viz. Genoa. So bank type is erroneously decoded. Incorrect bank_type which is socket_id value is observed from the register InstanceIdHi field. Handle these bit fields appropriately to get correct bank_type. Signed-off-by: Muralidhara M K Tested-by: Gupta Akshay --- mce-amd-smca.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mce-amd-smca.c b/mce-amd-smca.c index f69b555..4a2e645 100644 --- a/mce-amd-smca.c +++ b/mce-amd-smca.c @@ -790,6 +790,10 @@ static void decode_smca_error(struct mce_event *e, struct mce_priv* m) const struct smca_hwid *s_hwid; uint32_t mcatype_hwid = EXTRACT(e->ipid, 32, 63); uint8_t mcatype_instancehi = EXTRACT(e->ipid, 44, 47); + /* MCA_IPID[43:32] HardwareID of IP associated with MCA bank */ + uint16_t ipid_hwid = EXTRACT(e->ipid, 32, 43); + /* MCA_IPID[63:48] McaType of the MCA bank within the IP */ + uint16_t ipid_mcatype = EXTRACT(e->ipid, 48, 63); unsigned int csrow = -1, channel = -1; unsigned int i; @@ -800,6 +804,11 @@ static void decode_smca_error(struct mce_event *e, struct mce_priv* m) if (mcatype_hwid == s_hwid->mcatype_hwid) { bank_type = s_hwid->bank_type; break; + } else if ((mcatype_instancehi == e->socketid) && + (ipid_hwid == EXTRACT(s_hwid->mcatype_hwid, 0, 11)) && + (ipid_mcatype == EXTRACT(s_hwid->mcatype_hwid, 16, 31))) { + bank_type = s_hwid->bank_type; + break; } if (mcatype_instancehi >= NONCPU_NODE_INDEX) bank_type = SMCA_UMC_V2; From patchwork Tue Jul 4 10:58:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "M K, Muralidhara" X-Patchwork-Id: 13300965 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8EFB1EB64D9 for ; Tue, 4 Jul 2023 10:58:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231152AbjGDK6x (ORCPT ); Tue, 4 Jul 2023 06:58:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231139AbjGDK6w (ORCPT ); Tue, 4 Jul 2023 06:58:52 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2045.outbound.protection.outlook.com [40.107.220.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C54A9E72; Tue, 4 Jul 2023 03:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LhL+8czMWNjucB8PiN1CjJRR10Lf+M9uZ429DXTexdSNKCFr2cqRrsY9WMM0dgeQravIjG/Qhj0GT0MRWayjE5avEf4imjVltajBVM748jpFAkdQS0sigDbdAGKYgM/8L2EHrbh8PRX+dTuXmymUQCVZgU5finL1BoHJIDbdsUW1vZJkPABylCGeFVz1uCzhEV3ud/3vdn4wgiD1PvzTxZhYAEzxPeJyIvf2OYT2FZW/thUWiEltdnpASK9fCwtdvwbdyFO73lAtxYzp6Ll2nVgBEi0mvtSZDNbEk+yg0AfU4uVkZ371O0K+wrI7q2CyzAr6lzxZwNS/c4sPM3M83w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5Jr6fYDSqBKtYWygGzmtFI0xaERplsQNjr5cyphfOso=; b=PsgTJOqRjhedcJ3o7nDB3DSEL1bwgRpGH6KTr3/rMuw2ScV+HGjTHj7yPPjZlmHCm35rufKwq0prWd2ToA/bIYUqbk9obXcG/QQ23drTFQvSaYUVmm59t5pjf4RZYRS/O0+cJOZnn6yviQp3WSe+ZRDzx72LetJ6E2xpkp86sPPvg3A7a697BPH6E5iGla5T4EiQn3bGeBjl33Jd9omi/3OgOghAfjNs7qYJluFmjQ1FMLXF14po6+QMRMEQTd5Tu2ilJ3LjgRm42lJrhbsuxKrZHISuRGnMKqlYlPMEWM/ClJ9mVKU1KY55c1WwLiPRPCICwajELmkRDqW7l8t+4w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5Jr6fYDSqBKtYWygGzmtFI0xaERplsQNjr5cyphfOso=; b=e5bU4ZfFHuv6m4SLGCl0giCuXD2I1knA4r7890q+OYcisS+eCjLqzYSE8XpAK+fNXu21kGMVI+bUOmVbF+x88811ieVyKxoX097vnSFHcNKnMMAtASIFdWEhaQASQlgdQHLnmxCpuVqIrL9VLQpJs36EvM6ZwP0aPEVEilRC/gA= Received: from SJ0PR03CA0029.namprd03.prod.outlook.com (2603:10b6:a03:33a::34) by CYXPR12MB9443.namprd12.prod.outlook.com (2603:10b6:930:db::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Tue, 4 Jul 2023 10:58:48 +0000 Received: from DM6NAM11FT069.eop-nam11.prod.protection.outlook.com (2603:10b6:a03:33a:cafe::ad) by SJ0PR03CA0029.outlook.office365.com (2603:10b6:a03:33a::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.30 via Frontend Transport; Tue, 4 Jul 2023 10:58:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT069.mail.protection.outlook.com (10.13.173.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6521.44 via Frontend Transport; Tue, 4 Jul 2023 10:58:48 +0000 Received: from amd.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 4 Jul 2023 05:58:45 -0500 From: Muralidhara M K To: CC: , , , Muralidhara M K Subject: [PATCH 2/3] rasdaemon: Add new MA_LLC, USR_DP, and USR_CP bank types. Date: Tue, 4 Jul 2023 10:58:22 +0000 Message-ID: <20230704105823.3516889-3-muralimk@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230704105823.3516889-1-muralimk@amd.com> References: <20230704105823.3516889-1-muralimk@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT069:EE_|CYXPR12MB9443:EE_ X-MS-Office365-Filtering-Correlation-Id: 74d55e38-2d36-40f2-1455-08db7c7da4f2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BLej0Nfv3zjcbhYekxQnazR2DV2cZDcqkW2FWEVoxxtX2cq+AxSGRTKcJHNIVXw62VQiIjSIy3vObVGr28aCo9hQCXdhgBDJc2BOz7KOvZloqMX8WNl+cBRQHS4m6rRMhg1VZ6HPT58SODJB3+dre+POCRzep5OXivOl/xVs7Jvvy7mBUDWv3gYaD/jlhHPreKpjg/XJ3mCRsd8AryEKgDAqrSzrWDdk44rEswTif11Le1AzVhkoVpYMqAKTHWTCnGAMUHf6AX2WqUk+UC01wMMLltQls7AQ75K1FZqqKP12R7bixiz193DqahbISACsfxoRsQJ9qPe0mouU5p1/oSU0nKqddwWG+wh31CIpnjx9gHgdj4Ubpemm56ARjfBPpjKsJzBRNXzD4SkVKouH2o/rn+DNp/6z9+YVbkcv4iY4HQSkWUAe+ntRbbpQMrpWu1QfeO1O7dxq/e5bbab/OTHvqktKieYy5D7gP4AOhJkZU2xhLRYOtFdwPh9A60AH2GQ0cHrxCUeHCZFLeA0sgMPfka21iEZhkjC2ubyWHm4BrWdzrN5wb87RKlt5KaPRq33kEYs9vKHj/L8eCDkLiE8of/mEq58LBLu9XE5mfwkRKtBAwEh5wKMZqd+Q8BwoAuHftzbfaJKbLncWZEc/aV0H8WO+4HXmG+FnEs4w0rWTxOTgkURRFUhUpn/6oBrYerdacSPEjy93Cj43XdJ1pRH8SEfh5/pjDzF2D+WxMpFwRTyaffSXy/iPY8ErSfaDRDv+cGV635T6uN4HDqLOhw== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(396003)(376002)(346002)(136003)(451199021)(40470700004)(36840700001)(46966006)(41300700001)(5660300002)(54906003)(40480700001)(36756003)(7696005)(15650500001)(2906002)(316002)(8676002)(8936002)(4326008)(6916009)(70586007)(70206006)(40460700003)(426003)(336012)(82740400003)(6666004)(478600001)(82310400005)(186003)(2616005)(356005)(81166007)(47076005)(83380400001)(26005)(16526019)(1076003)(36860700001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 10:58:48.2360 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 74d55e38-2d36-40f2-1455-08db7c7da4f2 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT069.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYXPR12MB9443 Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org From: Muralidhara M K Add HWID and McaType values for new SMCA bank types and error decoding for those new SMCA banks. Signed-off-by: Muralidhara M K --- mce-amd-smca.c | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/mce-amd-smca.c b/mce-amd-smca.c index 4a2e645..61f05c5 100644 --- a/mce-amd-smca.c +++ b/mce-amd-smca.c @@ -61,6 +61,7 @@ enum smca_bank_types { SMCA_PIE, /* Power, Interrupts, etc. */ SMCA_UMC, /* Unified Memory Controller */ SMCA_UMC_V2, + SMCA_MA_LLC, /* Memory Attached Last Level Cache */ SMCA_PB, /* Parameter Block */ SMCA_PSP, /* Platform Security Processor */ SMCA_PSP_V2, @@ -76,6 +77,8 @@ enum smca_bank_types { SMCA_SHUB, /* System Hub Unit */ SMCA_SATA, /* SATA Unit */ SMCA_USB, /* USB Unit */ + SMCA_USR_DP, /* Ultra Short Reach Data Plane Controller */ + SMCA_USR_CP, /* Ultra Short Reach Control Plane Controller */ SMCA_GMI_PCS, /* GMI PCS Unit */ SMCA_XGMI_PHY, /* xGMI PHY Unit */ SMCA_WAFL_PHY, /* WAFL PHY Unit */ @@ -325,6 +328,16 @@ static const char * const smca_umc2_mce_desc[] = { "LM32 MP errors", }; +static const char * const smca_mall_mce_desc[] = { + "Counter overflow error", + "Counter underflow error", + "Write Data Parity Error", + "Read Response Parity Error", + "Cache Tag ECC Error Macro 0", + "Cache Tag ECC Error Macro 1", + "Cache Data ECC Error" +}; + static const char * const smca_pb_mce_desc[] = { "An ECC error in the Parameter Block RAM array" }; @@ -524,6 +537,57 @@ static const char * const smca_usb_mce_desc[] = { "AXI Slave Response error", }; +static const char * const smca_usrdp_mce_desc[] = { + "Mst CMD Error", + "Mst Rx FIFO Error", + "Mst Deskew Error", + "Mst Detect Timeout Error", + "Mst FlowControl Error", + "Mst DataValid FIFO Error", + "Mac LinkState Error", + "Deskew Error", + "Init Timeout Error", + "Init Attempt Error", + "Recovery Timeout Error", + "Recovery Attempt Error", + "Eye Training Timeout Error", + "Data Startup Limit Error", + "LS0 Exit Error", + "PLL powerState Update Timeout Error", + "Rx FIFO Error", + "Lcu Error", + "Conv CECC Error", + "Conv UECC Error", + "Reserved", + "Rx DataLoss Error", + "Replay CECC Error", + "Replay UECC Error", + "CRC Error", + "BER Exceeded Error", + "FC Init Timeout Error", + "FC Init Attempt Error", + "Replay Timeout Error", + "Replay Attempt Error", + "Replay Underflow Error", + "Replay Overflow Error", +}; + +static const char * const smca_usrcp_mce_desc[] = { + "Packet Type Error", + "Rx FIFO Error", + "Deskew Error", + "Rx Detect Timeout Error", + "Data Parity Error", + "Data Loss Error", + "Lcu Error", + "HB1 Handshake Timeout Error", + "HB2 Handshake Timeout Error", + "Clk Sleep Rsp Timeout Error", + "Clk Wake Rsp Timeout Error", + "Reset Attack Error", + "Remote Link Fatal Error", +}; + static const char * const smca_gmipcs_mce_desc[] = { "Data Loss Error", "Training Error", @@ -579,6 +643,7 @@ static struct smca_mce_desc smca_mce_descs[] = { [SMCA_PIE] = { smca_pie_mce_desc, ARRAY_SIZE(smca_pie_mce_desc) }, [SMCA_UMC] = { smca_umc_mce_desc, ARRAY_SIZE(smca_umc_mce_desc) }, [SMCA_UMC_V2] = { smca_umc2_mce_desc, ARRAY_SIZE(smca_umc2_mce_desc) }, + [SMCA_MA_LLC] = { smca_mall_mce_desc, ARRAY_SIZE(smca_mall_mce_desc) }, [SMCA_PB] = { smca_pb_mce_desc, ARRAY_SIZE(smca_pb_mce_desc) }, [SMCA_PSP] = { smca_psp_mce_desc, ARRAY_SIZE(smca_psp_mce_desc) }, [SMCA_PSP_V2] = { smca_psp2_mce_desc, ARRAY_SIZE(smca_psp2_mce_desc)}, @@ -595,6 +660,8 @@ static struct smca_mce_desc smca_mce_descs[] = { [SMCA_SHUB] = { smca_nbif_mce_desc, ARRAY_SIZE(smca_nbif_mce_desc) }, [SMCA_SATA] = { smca_sata_mce_desc, ARRAY_SIZE(smca_sata_mce_desc) }, [SMCA_USB] = { smca_usb_mce_desc, ARRAY_SIZE(smca_usb_mce_desc) }, + [SMCA_USR_DP] = { smca_usrdp_mce_desc, ARRAY_SIZE(smca_usrdp_mce_desc) }, + [SMCA_USR_CP] = { smca_usrcp_mce_desc, ARRAY_SIZE(smca_usrcp_mce_desc) }, [SMCA_GMI_PCS] = { smca_gmipcs_mce_desc, ARRAY_SIZE(smca_gmipcs_mce_desc) }, /* All the PHY bank types have the same error descriptions, for now. */ [SMCA_XGMI_PHY] = { smca_xgmiphy_mce_desc, ARRAY_SIZE(smca_xgmiphy_mce_desc) }, @@ -631,6 +698,8 @@ static struct smca_hwid smca_hwid_mcatypes[] = { { SMCA_UMC, 0x00000096 }, /* Heterogeneous systems may have both UMC and UMC_v2 types on the same node. */ { SMCA_UMC_V2, 0x00010096 }, + /* Memory Attached Last Level Cache */ + { SMCA_MA_LLC, 0x0004002E }, /* Parameter Block MCA type */ { SMCA_PB, 0x00000005 }, @@ -664,6 +733,11 @@ static struct smca_hwid smca_hwid_mcatypes[] = { { SMCA_SHUB, 0x00000080 }, { SMCA_SATA, 0x000000A8 }, { SMCA_USB, 0x000000AA }, + + /* Ultra Short Reach Data and Control Plane Controller */ + { SMCA_USR_DP, 0x00000170 }, + { SMCA_USR_CP, 0x00000180 }, + { SMCA_GMI_PCS, 0x00000241 }, /* Ext Global Memory Interconnect PHY MCA type */ @@ -692,6 +766,7 @@ static struct smca_bank_name smca_names[] = { [SMCA_PIE] = { "Power, Interrupts, etc." }, [SMCA_UMC] = { "Unified Memory Controller" }, [SMCA_UMC_V2] = { "Unified Memory Controller V2" }, + [SMCA_MA_LLC] = { "Memory Attached Last Level Cache" }, [SMCA_PB] = { "Parameter Block" }, [SMCA_PSP ... SMCA_PSP_V2] = { "Platform Security Processor" }, [SMCA_SMU ... SMCA_SMU_V2] = { "System Management Unit" }, @@ -704,6 +779,8 @@ static struct smca_bank_name smca_names[] = { [SMCA_SHUB] = { "System Hub Unit" }, [SMCA_SATA] = { "SATA Unit" }, [SMCA_USB] = { "USB Unit" }, + [SMCA_USR_DP] = { "Ultra Short Reach Data Plane Controller" }, + [SMCA_USR_CP] = { "Ultra Short Reach Control Plane Controller" }, [SMCA_GMI_PCS] = { "Global Memory Interconnect PCS Unit" }, [SMCA_XGMI_PHY] = { "Ext Global Memory Interconnect PHY Unit" }, [SMCA_WAFL_PHY] = { "WAFL PHY Unit" }, From patchwork Tue Jul 4 10:58:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "M K, Muralidhara" X-Patchwork-Id: 13300966 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08086EB64DD for ; Tue, 4 Jul 2023 10:59:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231273AbjGDK66 (ORCPT ); Tue, 4 Jul 2023 06:58:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231154AbjGDK6y (ORCPT ); Tue, 4 Jul 2023 06:58:54 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on20613.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e88::613]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2863BE6E; Tue, 4 Jul 2023 03:58:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LoTRPllpyFYMttczMyk3oRfDLv+P//6KCGROJhJJsh1rygCEx5oInhW8vY07eoz/ysC9NR74nRHYR+/xVIPQ5lNYa9m6faxZzrj5QPeNsbSYGWAyAXP2SfL18MxgHtUYTx+7OK/YehRl4MbRfCBTHdTmGO+VAkXZ8IoAmCv5hKx0RPG8d1TKFJ7x399H/jcO92WTlFW+mXehT5xfwRQBDTdB6h5ajUaO99yEn8I8VBLWIapz1zuYg63eUj1Sb1ad0WvJY1mbowp7VieY2Wr/HDBsrfK5W7aSHwrCMwWl1Rz53c+7mvwKdBII/NSXjQ6/UYe5SLP3sTxZH+Hg836LiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/3HCAVlQsLdm4FHNrsTvnYLFJJmPruqWR5+lolMEAmo=; b=i81Jr6pMJovj1SccXmPsPS4bugKj+0W7zesdabiTeuM4s6XssVyRB2kqGKx8axelcy2yu3L+/eJhOi5tvKK5/4WzQY5x+WVRkceA9Xzp2yV1ZxVl/rhEU6RuMml/7L7UkaNlbhWWu+msTmR9skW0bJ5Q3ppyjyVfc/D6xCKd+4H2A3WXOLdABEnrYk0JjoiEtrEMKJUTJeYfej1u1qfMhmlic6/amDXRgmpphTSJrQLVu8jL/qJodFQW8nd6hXbNFJaryBMJTU4Lk6qX/NMZB8EuNmLjOHkLLHSnUHaFe7WfpwGruWndQFQogc9WCQ3RQHsDjjJGd37MRcxc5ibPZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/3HCAVlQsLdm4FHNrsTvnYLFJJmPruqWR5+lolMEAmo=; b=Sf9uBP84jb8nMQm0C0YryeVb9y1A72/gL65wWdGzdLrOJZXhOtrHjHjsNeHu+8VDTW9B/V+ve5Jao2Nh+FFb5CgWxujrs4/Km240XLYV4JjSFES2tussMmcuF5w+HkBSviw/FbmFRBArhwOMPzgE23NhzbpMeVzp2EPVMtQs3Tk= Received: from DS7PR05CA0020.namprd05.prod.outlook.com (2603:10b6:5:3b9::25) by CYYPR12MB8924.namprd12.prod.outlook.com (2603:10b6:930:bd::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 10:58:50 +0000 Received: from DM6NAM11FT037.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b9:cafe::e2) by DS7PR05CA0020.outlook.office365.com (2603:10b6:5:3b9::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.18 via Frontend Transport; Tue, 4 Jul 2023 10:58:50 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT037.mail.protection.outlook.com (10.13.172.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6521.44 via Frontend Transport; Tue, 4 Jul 2023 10:58:49 +0000 Received: from amd.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 4 Jul 2023 05:58:48 -0500 From: Muralidhara M K To: CC: , , , Muralidhara M K Subject: [PATCH 3/3] rasdaemon: Handle reassigned bit definitions for UMC bank Date: Tue, 4 Jul 2023 10:58:23 +0000 Message-ID: <20230704105823.3516889-4-muralimk@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230704105823.3516889-1-muralimk@amd.com> References: <20230704105823.3516889-1-muralimk@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT037:EE_|CYYPR12MB8924:EE_ X-MS-Office365-Filtering-Correlation-Id: e98c731b-eef7-4d80-371f-08db7c7da5f5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: u0s/MAQgvQGg/DiNrIQp/s+UpxSMAs+C5mxxIJ9JJkBneWI0UaTAws+8lpjSpb4+yieG6gplVPsjH5JzCNiZjdPre/1mRJj7X5Tk7lTCEZ63s6MrzzdvnqduGKdVIEUQLFXR2WbsAk6is1xa+01XtTXH6SVbhypzTLEENandEhzAc0Bl+v5m1rU4/ZlCBTUeRr/lbo7sScYRVl9ONC+1ScXyuC3Plq7gkQ416/wbRu27IgQdJ0eOZZL576xOFDbp00ef/ffiNFFdzq97Qcphx1eAIRsfsVz3y/jmECelmVw72mevPRwl9S3q+H/XGMuoVaEBRKAf2LxKS76GwUHzojV7S4JEbqB+cqpcyYEFAfCwpdwIlU4FREyvqPIyBTjqxpjkJCOaPnxeul8JvDE36y7wlnbRZDTu3EUvi8h2BwhyvYly0KqYGJUJ2pQxwbj+vsBcCMhU6AuxA6CaCUQxJHeHft3mBPU5xFfLsJyTZ3bWNf2Ef7RgFryJDqKYennmdS8puS0YN44qRQzr/bTAkGwJDwTOFLgJnjfXX4zivQ03lWPj9+7wdIORmHClFvcreqpiHXSEWTZj14Ae8Sc14ZAvJu0ODXuiXaCdBahs+ztgTRqyeSZ47E8iaURHrOVNJIOhe9fQB5aYafHTvpKxr2Eqr+RYxMKPqVnQgMDbLH2WTgK3jO1Kw5iCwLSNknZv4tAYY+h7GGcyBEsavDXKEsINEdcSjd5MECVcpHXVQrpQes+020Gf+5Gefu7iAT9bYlyD6H/CYcuLvpWq6bEq7g== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(376002)(396003)(39860400002)(346002)(136003)(451199021)(40470700004)(36840700001)(46966006)(2906002)(5660300002)(54906003)(316002)(26005)(1076003)(478600001)(4326008)(8676002)(15650500001)(8936002)(70206006)(70586007)(41300700001)(36860700001)(6916009)(6666004)(7696005)(40460700003)(47076005)(83380400001)(81166007)(336012)(356005)(82740400003)(40480700001)(16526019)(82310400005)(2616005)(426003)(36756003)(186003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 10:58:49.9343 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e98c731b-eef7-4d80-371f-08db7c7da5f5 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT037.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR12MB8924 Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org From: Muralidhara M K On some AMD systems some of the existing bit definitions in the CTL register of SMCA bank type are reassigned without defining new HWID and McaType. Consequently, the errors whose bit definitions have been reassigned in the CTL register are being erroneously decoded. Add new error description structure to compensate for the reassigned bit definitions, by new software defined SMCA bank type by utilizing the hardware-reserved values for HWID. The new SMCA bank type will only be employed for UMC error decoding on affected models and the existing error description structure for UMC bank type is still valid. Signed-off-by: Muralidhara M K --- mce-amd-smca.c | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/mce-amd-smca.c b/mce-amd-smca.c index 61f05c5..3a17d9a 100644 --- a/mce-amd-smca.c +++ b/mce-amd-smca.c @@ -60,6 +60,7 @@ enum smca_bank_types { SMCA_CS_V2_QUIRK, SMCA_PIE, /* Power, Interrupts, etc. */ SMCA_UMC, /* Unified Memory Controller */ + SMCA_UMC_QUIRK, SMCA_UMC_V2, SMCA_MA_LLC, /* Memory Attached Last Level Cache */ SMCA_PB, /* Parameter Block */ @@ -313,6 +314,25 @@ static const char * const smca_umc_mce_desc[] = { "Read CRC Error", }; +static const char * const smca_umc_quirk_mce_desc[] = { + "DRAM On Die ECC error", + "Data poison error", + "SDP parity error", + "Reserved", + "Address/Command parity error", + "HBM Write data parity error", + "Consolidated SRAM ECC error", + "Reserved", + "Reserved", + "Rdb SRAM ECC error", + "Thermal throttling", + "HBM Read Data Parity error", + "Reserved", + "UMC FW Error", + "SRAM Parity Error", + "HBM CRC Error", +}; + static const char * const smca_umc2_mce_desc[] = { "DRAM ECC error", "Data poison error", @@ -642,6 +662,7 @@ static struct smca_mce_desc smca_mce_descs[] = { [SMCA_CS_V2_QUIRK] = { smca_cs2_quirk_mce_desc, ARRAY_SIZE(smca_cs2_quirk_mce_desc)}, [SMCA_PIE] = { smca_pie_mce_desc, ARRAY_SIZE(smca_pie_mce_desc) }, [SMCA_UMC] = { smca_umc_mce_desc, ARRAY_SIZE(smca_umc_mce_desc) }, + [SMCA_UMC_QUIRK] = { smca_umc_quirk_mce_desc, ARRAY_SIZE(smca_umc_quirk_mce_desc) }, [SMCA_UMC_V2] = { smca_umc2_mce_desc, ARRAY_SIZE(smca_umc2_mce_desc) }, [SMCA_MA_LLC] = { smca_mall_mce_desc, ARRAY_SIZE(smca_mall_mce_desc) }, [SMCA_PB] = { smca_pb_mce_desc, ARRAY_SIZE(smca_pb_mce_desc) }, @@ -696,6 +717,7 @@ static struct smca_hwid smca_hwid_mcatypes[] = { /* Unified Memory Controller MCA type */ { SMCA_UMC, 0x00000096 }, + { SMCA_UMC_QUIRK, 0x00002000 }, /* Heterogeneous systems may have both UMC and UMC_v2 types on the same node. */ { SMCA_UMC_V2, 0x00010096 }, /* Memory Attached Last Level Cache */ @@ -764,7 +786,7 @@ static struct smca_bank_name smca_names[] = { [SMCA_L3_CACHE] = { "L3 Cache" }, [SMCA_CS ... SMCA_CS_V2_QUIRK] = { "Coherent Slave" }, [SMCA_PIE] = { "Power, Interrupts, etc." }, - [SMCA_UMC] = { "Unified Memory Controller" }, + [SMCA_UMC ... SMCA_UMC_QUIRK] = { "Unified Memory Controller" }, [SMCA_UMC_V2] = { "Unified Memory Controller V2" }, [SMCA_MA_LLC] = { "Memory Attached Last Level Cache" }, [SMCA_PB] = { "Parameter Block" }, @@ -843,6 +865,10 @@ static inline void fixup_hwid(struct mce_priv* m, uint32_t *hwid_mcatype) if (*hwid_mcatype == 0x0002002E) *hwid_mcatype = 0x00010000; break; + case 0x90 ... 0x9F: + if (*hwid_mcatype == 0x00000096) + *hwid_mcatype = 0x00020000; + break; default: break; }