Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5940815rwr; Tue, 9 May 2023 08:11:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4NKiRHpSLJwcNt4GX3ksse9AnILN3Lx4WT0tNrr8zmGuEyR3OwYMsielFNPZNBy6jZ2ZF1 X-Received: by 2002:a05:6a20:7da6:b0:ef:b596:2fb6 with SMTP id v38-20020a056a207da600b000efb5962fb6mr17572339pzj.36.1683645105948; Tue, 09 May 2023 08:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683645105; cv=none; d=google.com; s=arc-20160816; b=SMr/htdL5mzLslr96jxNCHsUIlmXluqu1fix6Cj241eoqQdkaAe3fO4D0o1Q92HaYf 3t0w4dGHwMOsmt2XHbpnAuyJ9kGshdyBf///T/JEZOX/oUULl2PG8zVjfqoBZ4xuUFpi OrR1At/cUI91/vdZyh2lTh89LmAT3KfP7QmS0++xMvy08qTiRGDbZxOZcFakmwVS5zaL Y7dBcIx1QageeQ+kzJPpVHn7AwhkGYGXpFb0CosD1z0ugOalHOmqCjATXCExg0Y9w/qY mSkgHVWCKqNwt7AgXwQXXTBc79+Yb8iMdUJPPbqJlT/CX3XU2/+gNlUwuSfAuAmxmT3z nYJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=+mfLhJmVBJOGTMDQi+ADShaWubb8Mn6G8qmNPyPioBc=; b=t1TscCGYOGkqiZx9Mc+VkEDb/PHu5UY2/Pz7Ty2+JuoAQ5DSyWUaWZbZFSTCPbcPQO 5z9G0J6eywMfcLfI+0YyKvMUq5Tm3aagRw0pYDtqbstWcxWp+2IlwRWTIIK0ivAEin22 v8atmrRY05mdgWicYiz0NSCX72cN2KBigFyf8CadeKQ4XmosMfL5JNx4T3A5ss3YxlPF /m9p4BikZfFoNUEq0mELB5/95BPzun7Ep3p7ENtEMMS5mYXHHijuY9Rc+YFsbF6WB2YU 1jOTC8OE/w6yq913mtTBDkjmBN9w9QymFugcXXT93ULl+HtLE2D8YytP1xhljHoao9vk PzrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=BZP5xQ6B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a28-20020a637f1c000000b0052502825c67si1789549pgd.387.2023.05.09.08.11.31; Tue, 09 May 2023 08:11:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=BZP5xQ6B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235893AbjEIOhv (ORCPT + 99 others); Tue, 9 May 2023 10:37:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234758AbjEIOht (ORCPT ); Tue, 9 May 2023 10:37:49 -0400 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93808109; Tue, 9 May 2023 07:37:45 -0700 (PDT) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 349Dx17f018202; Tue, 9 May 2023 07:37:24 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pfpt0220; bh=+mfLhJmVBJOGTMDQi+ADShaWubb8Mn6G8qmNPyPioBc=; b=BZP5xQ6BhDY/X02Sr1zT9v4YP7vRgChmsdPGbdJxgCKh2HqVbywmbxRkUtQwo81UWswm /G/Y2AyZQHUE3XxGS7/thOtMTdvyXf8NpGJ7ZaSGjh4pwLybXNZqDx1IT85RdGycOFTb LOSzyVCK6zGEYrnZ7jQFx/to27LbewnP+qVKoJaWMGmH6QiatUexTTWoaHtnulc7HKCa pVlTqndt30zZODp6V5Pk2ajXh+aaY8nxmiSaN296hCkMFrbAoxdLj76H6RDfwb2LcmWz cKdvTNcbs2LUfcqWGT/B/K6ZzvsL5+LjuqGWvel4Ml7dlHK/+z0VsD0MsC4XvvIjPYpW /Q== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3qf77s2tu5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 09 May 2023 07:37:23 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Tue, 9 May 2023 07:37:21 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Tue, 9 May 2023 07:37:21 -0700 Received: from Dell2s-9 (unknown [10.110.150.250]) by maili.marvell.com (Postfix) with ESMTP id 822C63F7087; Tue, 9 May 2023 07:37:21 -0700 (PDT) Date: Tue, 9 May 2023 07:37:21 -0700 From: Piyush Malgujar To: "Luck, Tony" CC: "linux-kernel@vger.kernel.org" , "linux-acpi@vger.kernel.org" , "Williams, Dan J" , "xueshuai@linux.alibaba.com" , "benjamin.cheatham@amd.com" , "bp@alien8.de" , "james.morse@arm.com" , "lenb@kernel.org" , "rafael@kernel.org" , "jannadurai@marvell.com" , "cchavva@marvell.com" Subject: Re: [PATCH v2] ACPI: APEI: EINJ: EINJV2 support added Message-ID: <20230509143721.GA10616@Dell2s-9> References: <20230504133224.2669-1-pmalgujar@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-ORIG-GUID: qFnYkAutu_djET8H85p-1jwg8Z89UJjp X-Proofpoint-GUID: qFnYkAutu_djET8H85p-1jwg8Z89UJjp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-09_08,2023-05-05_01,2023-02-09_01 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tony, Thanks for the review comments. On Thu, May 04, 2023 at 09:00:51PM +0000, Luck, Tony wrote: > > +An error injection example:: > > + > > + # cd /sys/kernel/debug/apei/einj > > + # cat available_error_type # See which errors can be injected > > + 0x00000001 EINJV2 Processor Error > > + 0x00000002 EINJV2 Memory Error > > + 0x00000004 EINJV2 PCI Express Error > > + # echo 0x2 > error_type > > + # echo 0x5 > flags > > + # echo 0x12345000 > param1 > > + # echo 0x2 > param5 > > + # echo 1 > error_inject > > > > Is the expectation that platforms that implement EINJV2 will not include legacy > > EINJ support? > > I spoke to some BIOS folks here. They said that the ACPI 6.5 change is an > extension to the action table with new opcodes for GET/SET when EINJV2 > is supported. The legacy actions are not deprecated. So platform firmware could > support both old and new injection formats. > > So I'm going to double down on this: > > > Maybe it would be better to change the top-level directory to: > > > > /sys/kernel/debug/apei/einjv2 > > and say this isn't a "maybe". The EINJV2 interface files should go > in a new directory. The old files should continue to work (assuming > firmware still enumerates the old available types). > > Simplifying the interface for EINJV2 in the new directory is an option. > I think we should take it ... the "paramN" files that mean different > things for different injection types were an evolution rather than a design. > > -Tony > > > > If a platform supports einj v2, then the einj directory wont be needed, as per spec, if a non-zero Error Type value is set by EINJV2_SET_ERROR_TYPE, then any Error Type value set by (einj case) SET_ERROR_TYPE_WITH_ADDRESS and/or SET_ERROR_TYPE will be ignored. So based on einjv2 is supported or not, we can have either einjv2 or einj directory with the related params files in it respectively. Kindly let us know your thoughts. Thanks, Piyush