From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 0BF3B740038 for ; Sun, 28 Jan 2024 13:48:24 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=7mOvYKsnxYQ78EpiASFGtVI527KNngiVWPLp7tnrHvs=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1706449703; v=1; b=hpeV7b4awRDgp6vVitKYcmYJfPSoCeegZmG5K65dMKnXJ2T0sihm1tdMzqak9/fEMiRUTrRF GN8wX32Po8yTnD+HvsnO3tKA1lv8tg5ayG+2KWopBuFk4MTRpb7mLHtPDKEtW/WRLOKyaQ/9bDw ggQQb56BNgO1IkpNVFGThNeo= X-Received: by 127.0.0.2 with SMTP id 7SI6YY7687511xvmNCysd31Z; Sun, 28 Jan 2024 05:48:23 -0800 X-Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mx.groups.io with SMTP id smtpd.web11.37517.1706449702336550387 for ; Sun, 28 Jan 2024 05:48:22 -0800 X-Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1d50d0c98c3so25437835ad.1 for ; Sun, 28 Jan 2024 05:48:22 -0800 (PST) X-Gm-Message-State: 29QZLPHem4A6hG3CC71jcrVgx7686176AA= X-Google-Smtp-Source: AGHT+IF175Bs/cBC1fznXiSGXQoyu+ivQdtdxC06nA16OZzKdAHGgSiMaWOvMTUNoeChpSJYAZfe0w== X-Received: by 2002:a05:6a20:e29:b0:19a:2b15:2a2f with SMTP id ej41-20020a056a200e2900b0019a2b152a2fmr2740725pzb.28.1706449701304; Sun, 28 Jan 2024 05:48:21 -0800 (PST) X-Received: from dhaval.. ([171.76.83.193]) by smtp.gmail.com with ESMTPSA id e17-20020aa79811000000b006da022d1bc8sm4145299pfl.25.2024.01.28.05.48.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 05:48:20 -0800 (PST) From: "Dhaval Sharma" To: devel@edk2.groups.io Cc: gaoliming@byosoft.com.cn, zhiguang.liu@intel.com, dandan.bi@intel.com, pedro.falcato@gmail.com, chasel.chiu@intel.com Subject: [edk2-devel] [PATCH v5 0/1] MdeModulePkg/AcpiTableDxe: Prefer xDSDT over DSDT when installing tables Date: Sun, 28 Jan 2024 19:09:16 +0530 Message-Id: <20240128134816.236973-1-dhaval@rivosinc.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,dhaval@rivosinc.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=hpeV7b4a; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io As per ACPI Spec 6.5+ Table 5-9 if xDSDT is available, it should be used first. Handle required flow when xDSDT is absent or present. Test: Tested on RISCV64 Qemu platform with xDSDT and booted to linux kernel. Cc: Liming Gao Cc: Zhiguang Liu Cc: Dandan Bi Cc: Pedro Falcato Cc: devel@edk2.groups.io Signed-off-by: Dhaval Sharma Acked-by: Chasel Chiu Notes: v5: - If DSDT is not found, throw error and continue to build other tables with an error log v4: - Fix typos and commit message adding more clarity to patch subject v3: - Added description of ACPI spec clarification based on which this patch is created - Optimizing if-else flow v2: - Added proper indentation for else if https://github.com/tianocore/edk2/pull/5311 Dhaval (1): MdeModulePkg/AcpiTableDxe: Prefer xDSDT over DSDT when installing tables MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableProtocol.c | 24 ++++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114654): https://edk2.groups.io/g/devel/message/114654 Mute This Topic: https://groups.io/mt/104011825/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-