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 lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6B228CCD184 for ; Tue, 21 Oct 2025 15:33:04 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vBEM7-0007wg-FM; Tue, 21 Oct 2025 11:33:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vBELu-0007sz-NH for qemu-arm@nongnu.org; Tue, 21 Oct 2025 11:32:47 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vBELr-0004ZB-KZ for qemu-arm@nongnu.org; Tue, 21 Oct 2025 11:32:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1761060762; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RPRKWRhRHijNSiAskU+jsWwZTOkqWThsY+fcSLbgjn4=; b=af5Ro0JJroYWan+oQOpahOzHAOqsZSPWDNhQzwhTHw+wwOGnCFjUBHF8IYTRzySMUpNqX3 LsnjT96y/GqGTuHA80PbW3bDomToV25KqMGXdNsgIC8j16IWVLkmy3y2CStzMHP+oE6ING HnPBTzWkiSwD/cewkMRwed0q4oM61oU= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-597-GZG8CUUGMzyt3VG9vDtSSQ-1; Tue, 21 Oct 2025 11:32:39 -0400 X-MC-Unique: GZG8CUUGMzyt3VG9vDtSSQ-1 X-Mimecast-MFC-AGG-ID: GZG8CUUGMzyt3VG9vDtSSQ_1761060758 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-471125c8bc1so62658515e9.3 for ; Tue, 21 Oct 2025 08:32:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761060758; x=1761665558; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:reply-to:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RPRKWRhRHijNSiAskU+jsWwZTOkqWThsY+fcSLbgjn4=; b=wH1ESxA5Sds2lPoVfM6udH0djzjh94zxnSVXmkQ3xpYq9/dWtIgb7OXyYMO6zX3tGn jo/1nDoeh41CK961/vW5gy/6Zqenu0C6MIgYzXUWWuHJSxQkzFMB//iDPzbiGhXwegJw q6kFGjfzvWZKgR+r3ZpC1dTlsTTeWerqadVXKH4v2mcv5m6IAEmlmANN/1V5/LzgQI9Q Yc5YKJ96lE8t750ho9eYi8OBQGm8PoVpHACtiBitmPL8S6QYh3ckea74PwTQPaXy0zxT wZoRuNaZrvyRcpz0W6gQpxddFZ9hIpEK3we9SdRdQ09w8tI8HB3rtEfK2KKtdi5I64kS JvDQ== X-Gm-Message-State: AOJu0YwxNnPrqOD2dUVrz+8+CS0w904dIsgxeiwyaGnYCWT1POwR4WDW Jsbp+bn9Rk6H7Nh/Ai94XN+krP8wZcjdQjhTWdyqQApv4oDQJyxxi6xHk9guZIAauK+AR/Ld0Qg DB9EI2KaSR/MVU1dpF8s8j+wlmNTGLuizKUt+75c0ZUJZf+IpvglgIg== X-Gm-Gg: ASbGncubaQ0/uH+dy0CqaMz1vUhMJhBf3xMixEySzXaWB1ksZV3bpE59GQ9kaRkV7mc D946fpOYjc3fd/3TB4gAcLo9zky7ojy8vBAfBo5Th7qd9X4k0kpRguQugKe2yREeYlkUvO7oaK7 KTEcEY32+RU+wNNASCJqwaHkMCfjMaSDk/zpZRutBtR0zo4VNQRTUGy92LtrCVtb0Iryp/OprEP f9Tmxg5Fhb5DO13xb7CsclGgJm7+9QjeJ8crdObYVXuxc3M81LKK6trC4DMs1IzRoP+7qzkYdHE PtXwpVbnseJJXLfnSIF85IWirAoO9sgGer/bYRaWvhH5puxh8YiplE3otgSEcrxtHObi85MryR/ jf98Z X-Received: by 2002:a05:600c:548c:b0:46e:45ff:5bdb with SMTP id 5b1f17b1804b1-4711787060fmr136309825e9.8.1761060758161; Tue, 21 Oct 2025 08:32:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGLE2tbk2ZakuGbJW7wtGLtfeNm8YbsC4f4yXz/iRHITp2EYi80UEzql2V4ZpuPLNK9CTj2rg== X-Received: by 2002:a05:600c:548c:b0:46e:45ff:5bdb with SMTP id 5b1f17b1804b1-4711787060fmr136309515e9.8.1761060757656; Tue, 21 Oct 2025 08:32:37 -0700 (PDT) Received: from [192.168.43.95] ([78.245.103.33]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4711c487dfesm283338985e9.17.2025.10.21.08.32.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Oct 2025 08:32:36 -0700 (PDT) Message-ID: <1db52047-9d74-435d-87fb-10fac8b5be73@redhat.com> Date: Tue, 21 Oct 2025 17:32:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 15/27] acpi/gpex: Fix PCI Express Slot Information function 0 returned value To: Shameer Kolothum , Jonathan Cameron Cc: "qemu-arm@nongnu.org" , "qemu-devel@nongnu.org" , "peter.maydell@linaro.org" , Jason Gunthorpe , Nicolin Chen , "ddutile@redhat.com" , "berrange@redhat.com" , Nathan Chen , Matt Ochs , "smostafa@google.com" , "wangzhou1@hisilicon.com" , "jiangkunkun@huawei.com" , "zhangfei.gao@linaro.org" , "zhenzhong.duan@intel.com" , "yi.l.liu@intel.com" , "shameerkolothum@gmail.com" References: <20250929133643.38961-1-skolothumtho@nvidia.com> <20250929133643.38961-16-skolothumtho@nvidia.com> <20251001135902.00004abd@huawei.com> From: Eric Auger In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 6Ln9dbhu27C0UVTmu-QkYeQ7B_CTxgqsF4t9HS2ivs4_1761060758 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=170.10.129.124; envelope-from=eric.auger@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: eric.auger@redhat.com Errors-To: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org On 10/2/25 9:39 AM, Shameer Kolothum wrote: > >> -----Original Message----- >> From: Jonathan Cameron >> Sent: 01 October 2025 13:59 >> To: Shameer Kolothum >> Cc: qemu-arm@nongnu.org; qemu-devel@nongnu.org; >> eric.auger@redhat.com; peter.maydell@linaro.org; Jason Gunthorpe >> ; Nicolin Chen ; ddutile@redhat.com; >> berrange@redhat.com; Nathan Chen ; Matt Ochs >> ; smostafa@google.com; wangzhou1@hisilicon.com; >> jiangkunkun@huawei.com; zhangfei.gao@linaro.org; >> zhenzhong.duan@intel.com; yi.l.liu@intel.com; >> shameerkolothum@gmail.com >> Subject: Re: [PATCH v4 15/27] acpi/gpex: Fix PCI Express Slot Information >> function 0 returned value >> >> External email: Use caution opening links or attachments >> >> >> On Mon, 29 Sep 2025 14:36:31 +0100 >> Shameer Kolothum wrote: >> >>> From: Eric Auger >>> >>> At the moment we do not support other function than function 0. So >> according >>> to ACPI spec "_DSM (Device Specific Method)" description, bit 0 should >> rather >>> be 0, meaning no other function is supported than function 0. >>> >>> Signed-off-by: Eric Auger >>> Signed-off-by: Shameer Kolothum >> Given description, why not yank this to the front and get it upstreamed >> quicker. I agree with Jonathan, Can be sent in a prerequisite patch/series with potential updates in the ACPI table tests. Thanks Eric >> Also, a fixes tag seems appropriate? >> >> Doesn't this show up in some of the tables tests? > Possibly. I will double check that. > >> Please include relevant chunk of AML as well as qemu AML generation code >> isn't >> exactly easy to check against the spec. Probably +CC at least Michael Tsrikin >> on next version of this patch. > Ok. > > Thanks, > Shameer > > >> J >> >>> --- >>> hw/pci-host/gpex-acpi.c | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/hw/pci-host/gpex-acpi.c b/hw/pci-host/gpex-acpi.c >>> index 952a0ace19..4587baeb78 100644 >>> --- a/hw/pci-host/gpex-acpi.c >>> +++ b/hw/pci-host/gpex-acpi.c >>> @@ -64,7 +64,7 @@ static Aml *build_pci_host_bridge_dsm_method(void) >>> UUID = aml_touuid("E5C937D0-3553-4D7A-9117-EA4D19C3434D"); >>> ifctx = aml_if(aml_equal(aml_arg(0), UUID)); >>> ifctx1 = aml_if(aml_equal(aml_arg(2), aml_int(0))); >>> - uint8_t byte_list[1] = {1}; >>> + uint8_t byte_list[1] = {0}; >>> buf = aml_buffer(1, byte_list); >>> aml_append(ifctx1, aml_return(buf)); >>> aml_append(ifctx, ifctx1);