From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mx.groups.io with SMTP id smtpd.web09.991.1660170541643507947 for ; Wed, 10 Aug 2022 15:29:01 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=P7AfXHj9; spf=pass (domain: gmail.com, ip: 209.85.216.46, mailfrom: kuqin12@gmail.com) Received: by mail-pj1-f46.google.com with SMTP id q7-20020a17090a7a8700b001f300db8677so3468909pjf.5 for ; Wed, 10 Aug 2022 15:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=aGtKvBr4DZ7DXwYJYAkJGIrO5SCVUhbLGGsvh3CuIv0=; b=P7AfXHj9DVEvpsc88u093vQf8ic5YDJg5XAW1jfObg02Rvksr38ArrpO9h3vkG7gNS kzOmFGS7h9oC2g790plTayKd+Z5q+F4XGR7erPlX3MVJNjZ8s3VehedPuE84oMPSgq9L bR8FVSYhUfl5/AN4KQRcVldwDVly3RQDgFY23AfqmGss39t0sfwtTxyAQD7Zj8DRnppI ryINBR4kbvJbBVaszthN8VLD5qsU8NjfxHNdsIwTuC1QPr24UxO/sXixFoIW1mH7fvGD BqfC0h/YUUGa9p+sJMJ1lhWTgi8HurhKYxWSWd6r8XujL0F2yulonD3/Cw71b2DJ3tYo lgkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=aGtKvBr4DZ7DXwYJYAkJGIrO5SCVUhbLGGsvh3CuIv0=; b=rVdo7O2C4wq31aS6FHiiDVN+LPnQ7w+CMt6HiSlM97FgOo3GVQwbICO6hcA3njKXdK uYzulRvXGUV4zmNlh/HnCXB6aowcIOENDcT2YZLqRCznv1GGUhFO1pG7WGTI+IIptanG LNqnzwzHqpBGuo8idkDXDVOm4iDSsqpPPPn7reeVrnMdZHE9LjBcUEg4Fnc3dncRk0lq rGWf4yAPyVmXVoeyhJcGZbbSUO/6DtVd+HiXAWaeSKMAj/Nxhb2bDLoP/NsK5ZR8VjIi ICIUHNwGjB6T5Bunins7BWekA2Sb0fvKINXjxmVujjuENq4pIuJRTD8RxkS1Idc4X3vk iHMg== X-Gm-Message-State: ACgBeo0s5fQxLg4CuS3T9Oc3RlhdF0c9zuNdO8CrmvtUP0GRDmwmv+YT h36XJZ6x2Y5b7ndaYTRtHJlY0odQgeI= X-Google-Smtp-Source: AA6agR43Rc0L3trC6yDohn1UAFX9qxF8W0eBF978hYUOI2DDkPPGrIcBB8okFJTSKPP3EYvJ37QaZA== X-Received: by 2002:a17:902:e742:b0:16f:2ef:77d8 with SMTP id p2-20020a170902e74200b0016f02ef77d8mr29624687plf.32.1660170541013; Wed, 10 Aug 2022 15:29:01 -0700 (PDT) Return-Path: Received: from MININT-0U7P5GU.redmond.corp.microsoft.com ([2001:4898:80e8:38:b518:f1a8:aef2:7dc4]) by smtp.gmail.com with ESMTPSA id h11-20020a170902f70b00b0016d66d49b85sm13309701plo.239.2022.08.10.15.29.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 15:29:00 -0700 (PDT) From: "Kun Qin" To: devel@edk2.groups.io Cc: Sami Mujawar , Alexei Fedorov , Joe Lopez , Pierre Gondois , Sami Mujawar Subject: [PATCH v4 6/6] DynamicTablesPkg: AcpiSsdtPcieLibArm: Added case handling for PCI config Date: Wed, 10 Aug 2022 15:28:53 -0700 Message-Id: <20220810222853.1916-7-kuqin12@gmail.com> X-Mailer: git-send-email 2.37.1.windows.1 In-Reply-To: <20220810222853.1916-1-kuqin12@gmail.com> References: <20220810222853.1916-1-kuqin12@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3998 This change added a switch case handling for PCI_SS_CONFIG during SSDT generation. This will allow PCI config case return EFI_SUCCESS instead of EFI_INVALID_PARAMETER. Cc: Sami Mujawar Cc: Alexei Fedorov Co-authored-by: Joe Lopez Signed-off-by: Kun Qin Reviewed-by: Pierre Gondois Reviewed-by: Sami Mujawar --- Notes: v2: - Added Reviewed-by tag [Pierre] =20=20=20=20 v3: - No change =20=20=20=20 v4: - Added Reviewed-by tag [Sami] DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtPcieLibArm/SsdtPcieGenerator.c |= 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtPcieLibArm/SsdtPcieG= enerator.c b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtPcieLibArm/SsdtPcieG= enerator.c index dd75fc27e60e..c6fbd09c43f8 100644 --- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtPcieLibArm/SsdtPcieGenerato= r.c +++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtPcieLibArm/SsdtPcieGenerato= r.c @@ -606,6 +606,11 @@ GeneratePciCrs ( );=0D break;=0D =0D + case PCI_SS_CONFIG:=0D + // Do nothing=0D + Status =3D EFI_SUCCESS;=0D + break;=0D +=0D default:=0D Status =3D EFI_INVALID_PARAMETER;=0D } // switch=0D --=20 2.37.1.windows.1