Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2731233lqz; Wed, 3 Apr 2024 07:07:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWAirsKX0SFUuKdebrN2SkOpobOTUgPjsvIvqeXkaUG6OfoU3DnEeaGnh0Ydwi5yBAUU8FtE1vys2yAT40YWzXrg9qrR4x8SqNAgC1EDA== X-Google-Smtp-Source: AGHT+IH7RwHUQ0G3d7MXxCzP+FL2zaxGZWWIGnNW8Yj36KOV+pogWM9NU/epGGp5R/06lJVqcdll X-Received: by 2002:ac8:5893:0:b0:434:3c56:68e4 with SMTP id t19-20020ac85893000000b004343c5668e4mr4237033qta.42.1712153229430; Wed, 03 Apr 2024 07:07:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712153229; cv=pass; d=google.com; s=arc-20160816; b=qFJAr3Hxnm4eQW9vxJii5oVXYxWWLT7HiT8DwL9KC0fiV1PjrYyEjQeunX56AGyA8J bODtOnQmFzMh4AV9tz+fh6tqerFnpEYPE1wlKFXmpVIeKkXJP53I/ATwGdmVA/c/xzkf agwJMa3Nr6W8XDEMkQZhKjIPKuW9GWAd+G7oUVtZQ1uh0yJGnA3nhlBLtECxKqNhidwl FJnqOCauI7TRJvmm7sfhWhQvCi4pdiPTfqgmPPdAtX7Ozim2KCqAaQVUu3Hr1vDbpuK0 S4cN7d2LwoOe84qq9wits4mTijecaJeIQXqGBbmlwAM5ZMb5QjLlZKILUxIv8WRzHmwH Rcmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=anWldCiKGwnM3Qr2FBojle4TG/sM3U26csId4sUVpiA=; fh=F8wl7t3CTUY3eBzcMxnXoEC8mXqXbPaBvRwkN2S0ITk=; b=gXcYBWqDF1xybhO1Wa/W/M0BaAa9EhibQu/1CSvLB2RrxGS4n56W4W9OfeeEgAicrw lhBj4hJpBYeRG9uK1MTC5kcYu2ABCKAWVbruQL0nNA2VVLT0UKnoZHm+VxWeQuXRGQ7h WZcdH7AYaY/cTKUAnKxZcO9ir3SUknNnMEwe3Suitp3uULOhMq1pz22ppqepS622d0TJ /xjS8bQZ3WVBY/8Z55nbcWOyhg8TD1RLRGKpzHc0FDKnoAU+6S2F+C9HH1RckZAudeDA PmDiK6vZVzb9UYFkAA7TgjBRfJ6ze2FIFjUH0OoHrVFFq0XY5sYtrj/UJNYCCTiUnMhg 7BSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-129908-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129908-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s4-20020a05622a018400b004343d863e79si3137104qtw.740.2024.04.03.07.07.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 07:07:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129908-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-129908-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129908-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 69C1C1C283E7 for ; Wed, 3 Apr 2024 14:04:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E0247148FF9; Wed, 3 Apr 2024 14:04:06 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47A84148305; Wed, 3 Apr 2024 14:04:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712153046; cv=none; b=SU/mats1M0BJqS5OaXgGYtN1H8+5J+A6zXH+Q2PrJ9n53TqB5sZcmaWPwvCD1Snrc8+DqefDcvF4gtEiC+NuDyTfZisY+dDHIaxkC9FsUpA4lfxvjMcNAj/IbBsJ30fXq6flBvzHL6jvGUPHQd0y2I1Kl2MFLJEaG7krlr6xbdE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712153046; c=relaxed/simple; bh=anWldCiKGwnM3Qr2FBojle4TG/sM3U26csId4sUVpiA=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=qKRhDScXu5TFpUtVbdLrWQETdKentmLtqoMEMfF1UtcmVgq7EWmxhFFxeMC9PoCjC3jOyS1ILBCk7rFxb3EwRX87FGpxffawmUy488mi20sNcwhn6SdniNeOxKOxsjcMQdZayf3fclEV+cqkdxsXjuwrcMqFwp+mnxnizO7wbfM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4V8mfS0nqpz6D8W0; Wed, 3 Apr 2024 22:02:40 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 95D1B140D30; Wed, 3 Apr 2024 22:03:59 +0800 (CST) Received: from lhrpeml500006.china.huawei.com (7.191.161.198) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 3 Apr 2024 15:03:59 +0100 Received: from lhrpeml500006.china.huawei.com ([7.191.161.198]) by lhrpeml500006.china.huawei.com ([7.191.161.198]) with mapi id 15.01.2507.035; Wed, 3 Apr 2024 15:03:59 +0100 From: Shiju Jose To: Daniel Ferguson , "linux-cxl@vger.kernel.org" , "linux-acpi@vger.kernel.org" , "linux-mm@kvack.org" , "dan.j.williams@intel.com" , "dave@stgolabs.net" , "Jonathan Cameron" , "dave.jiang@intel.com" , "alison.schofield@intel.com" , "vishal.l.verma@intel.com" , "ira.weiny@intel.com" CC: "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "david@redhat.com" , "Vilas.Sridharan@amd.com" , "leo.duran@amd.com" , "Yazen.Ghannam@amd.com" , "rientjes@google.com" , "jiaqiyan@google.com" , "tony.luck@intel.com" , "Jon.Grimm@amd.com" , "dave.hansen@linux.intel.com" , "rafael@kernel.org" , "lenb@kernel.org" , "naoya.horiguchi@nec.com" , "james.morse@arm.com" , "jthoughton@google.com" , "somasundaram.a@hpe.com" , "erdemaktas@google.com" , "pgonda@google.com" , "duenwen@google.com" , "mike.malvestuto@intel.com" , "gthelen@google.com" , "wschwartz@amperecomputing.com" , "dferguson@amperecomputing.com" , tanxiaofei , "Zengtao (B)" , "kangkang.shen@futurewei.com" , wanghuiqiang , Linuxarm , "wbs@os.amperecomputing.com" Subject: RE: [RFC PATCH v7 12/12] memory: RAS2: Add memory RAS2 driver Thread-Topic: [RFC PATCH v7 12/12] memory: RAS2: Add memory RAS2 driver Thread-Index: AQHaZmXf7yKhv06+EU6o6xtLiEJk9LFOBiUAgAjJRxA= Date: Wed, 3 Apr 2024 14:03:58 +0000 Message-ID: <32c348a0a61d4c6585b1b58e923a7f79@huawei.com> References: <20240223143723.1574-1-shiju.jose@huawei.com> <20240223143723.1574-13-shiju.jose@huawei.com> <78d11760-bb43-42a1-a302-3e2d3bf40c48@os.amperecomputing.com> In-Reply-To: <78d11760-bb43-42a1-a302-3e2d3bf40c48@os.amperecomputing.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 SGkgRGFuaWVsLA0KDQo+LS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj5Gcm9tOiBEYW5pZWwg RmVyZ3Vzb24gPGRhbmllbGZAb3MuYW1wZXJlY29tcHV0aW5nLmNvbT4NCj5TZW50OiAyOCBNYXJj aCAyMDI0IDIzOjQyDQo+VG86IFNoaWp1IEpvc2UgPHNoaWp1Lmpvc2VAaHVhd2VpLmNvbT47IGxp bnV4LWN4bEB2Z2VyLmtlcm5lbC5vcmc7IGxpbnV4LQ0KPmFjcGlAdmdlci5rZXJuZWwub3JnOyBs aW51eC1tbUBrdmFjay5vcmc7IGRhbi5qLndpbGxpYW1zQGludGVsLmNvbTsNCj5kY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