From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796078197; b=2UzuS+T1uBXL787GH1cB8SzduOaGQ/mZLUxqQPYo1KOYidI7QiossSOAQkNJuX5248C0 mxjDmjrJ4EvuWLYqU62i5St4b33Yzs6ZtFhyT4qd7WEBfyg1WeCOtsSXFzhXARhWG/fzR y81VffNJuT4wVh7Cj7SmqdvrOy2j/r1pJ3QZ4L44m0t2SH0sszQEkXkSOAmKDUswDYAN/ vOrnnylGu7Zhrrx/HL1B+Dlh1QrlqolyafQO8+qEOQA02Qlff9zRvkNqoEItHUjB3yCAt 0umcrspFUGZnj7QpSLZKJqL9WGoR/DY1OGtK8UbevWeeFMPdxuJsCvKM6wx07Bc54cw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796078197; h=Received:DKIM-Signature:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To: User-Agent; bh=lL8IfrIhpwcO7c98VV2QgtQ8riKYkbiwvAJZA1TT+Uw=; b=MW1+HjGgiVA5jNL1tF6PGM+9XglRxlNghxf/aQKNrdCGyBpKvDHubb33aF7x7zPOtCtA ylWueqxw+sRXf1OvnYY4IkiXnxVlkVUCiTVyVFphtGjQQ18FNmbkqF/EJQrLiGYqKhUOc UR8bwxlGWGWdIQr4plaUF5X4dZ/faMIhcjV77llQROh8YAOVz5xFDoKeAQmu3mEQSksjF Hn1QzmHf2MEiQTZGX/cqq6u/sx+S3Y9R4KM4EcBqUiKGULAlJBr4sM+Fl4W8yjetF7Ei9 lX/7RJsgU+0TAbuZYb64wsYOYSg9vg2U7yToY6CseYsbUHoRKMPvbxM67AZAfnzOqOw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OkgsUNjD; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36945606A31A; Mon, 30 Nov 2026 22:36:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OkgsUNjD Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC8E71F00923; Mon, 30 Nov 2026 22:36:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796078196; bh=lL8IfrIhpwcO7c98VV2QgtQ8riKYkbiwvAJZA1TT+Uw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=OkgsUNjDstwZd8jWAFgHQJr2OGTa205zLX5/RtOfO2sg5v6w/VF3slu5knU3o0Iev vE1QGkzhzfdsbSrbR1v7WI717wUTyj8N1B5h7/TgwfNjpkGAqzJTmptkHjYKABuUJw DmmjmsWD7HSuGeUqxMX2EHxmViAAFaq05kYKhvVPruSdj2ZY3wrwn61W9MYMitpLt7 2Sgs90K8oHCv97XicZOpRC6TARM9RSfChf01QArufHcClxPADbxfZ+cVAq8zfC4k30 Ub97Mr46h8Xajk5kt0I2VOqfx7Ute7m6ClK3y8BYuE+qNQ+vqBvbhLpxM9Q5ofiOPa c8btfb29Nl2JA== Received: by pali.im (Postfix) id D4382787; Mon, 30 Nov 2026 23:36:32 +0100 (CET) Date: Mon, 30 Nov 2026 23:36:32 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Brian Mak Cc: Armin Wolf , Hans de Goede , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , Kurt Borja , Stuart Hayes , Matthew Garrett , Lyndon Sanche , Prasanth Ksr , Jonathan Corbet , Shuah Khan , Randy Dunlap , "platform-driver-x86@vger.kernel.org" , "Dell.Client.Kernel@dell.com" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface Message-ID: <20261130223632.orc27jpfcdr634wa@pali> References: <20261121000556.173028-1-bmak@nvidia.com> <20261121000556.173028-7-bmak@nvidia.com> <792a7fdd-b2a0-4a2d-88b3-7aecf1af3d7c@nvidia.com> <12ff3c7e-0425-42ea-9994-69f9d56a4591@gmx.de> <168b136e-76aa-4fec-853c-2acdca0308d5@nvidia.com> X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <168b136e-76aa-4fec-853c-2acdca0308d5@nvidia.com> User-Agent: NeoMutt/20180716 On Wednesday 25 November 2026 20:14:55 Brian Mak wrote: > On 11/24/26 12:59, Armin Wolf wrote: > > Am 24.11.26 um 18:42 schrieb Brian Mak: > > > >> On 11/24/26 06:57, Armin Wolf wrote: > >>> Am 24.11.26 um 15:29 schrieb Armin Wolf: > >>>> Am 24.11.26 um 00:43 schrieb Brian Mak: > >>>>> On 11/21/26 05:49, Armin Wolf wrote: > >>>>>> Am 21.11.26 um 01:05 schrieb Brian Mak: > >>>>>> Alternatively, maybe the wrong backend get selected. Currently the > >>>>>> dell- > >>>>>> smbios-smm > >>>>>> backend will try to read a specific token in test_wsmt_enabled() to > >>>>>> determine if > >>>>>> the WSMT ACPI table is active. This might not work on arm64 > >>>>>> machines, so > >>>>>> maybe parsing > >>>>>> the real WSMT ACPI table would fix this problem? > >>>>> dell-smbios-smm is not available outside of x86, as it depends on > >>>>> DCDBAS, which depends on X86. It would only be using the WMI backend. > >>>>> > >>>>> Thanks, > >>>>> Brian > >>>> If i understand the ACPI code correctly, then it seems that the WMI > >>>> interface interacts with a OperationRegion handled by the ARML0002 > >>>> device, associated with the ARM FFA interface. > >>>> > >>>> AFAIK the linux kernel currently does not support this device, maybe > >>>> this is the reason why all SMBIOS calls fail. > >>> After doing some more research it seems that the associated WMI method > >>> tries to call a ARM FFA service using a FFixedHardware opregion. > >>> Theoretically Linux already supports this, did you enable > >>> CONFIG_ACPI_FFH? > >> Hi Armin, > >> > >> We use FFH offset 2 for this, which is not supported by CONFIG_ACPI_FFH > >> (only supports offsets 0 and 1), but is supported by the nvidia-ffa-ec > >> driver we currently carry out-of-tree: > >> > >> https://github.com/NVIDIA/NV-Kernels/blob/Ubuntu-nvidia- > >> bos-7.0.0-2022.23/drivers/platform/arm64/nvidia-ffa-ec.c > >> > >> https://github.com/NVIDIA/NV-Kernels/ > >> commit/699ec3dcc62ce09f071625307079dc7d68d8767e > >> > >> Thanks, > >> Brian > > > > I see, interesting. > > > > i took a closer look at the ASL code inside the WMBA ACPI control method > > (responsible for handling > > SMBIOS calls), and i noticed that the ACPI method will return the output > > buffer unmodified if the > > FFA call fails. > > > > Currently dell_fill_request() will initialize all output data with zero > > before performing a SMBIOS > > call, so a failed call will look like a successful one because output[0] > > will still read zero > > (aka "success"). Maybe a solution would be to initialize the output data > > with 0xFFFFFFFF so > > dell_smbios_error() will detect it as an error. > > > > I also noticed that the WMI method will return not enough data, so i > > think all WMI SMBIOS calls > > will fail starting with kernel 7.2 because then the WMI core will employ > > stricter size checks > > for the output data. Can you check if this is indeed the case? > > I can check on these next week, after the holidays. Could you look at this? Because if we resolve this issue then we do not need to introduce blacklist of "broken" machines and maybe also we would not need to to introduce dell_smbios_calls_functional() function and all that simplifies the driver code. > Thanks, > Brian > > > Thanks, > > Armin Wolf > > > >>> Thanks, > >>> Armin Wolf > >>> > >>>> I also noticed that the device supports the WMI interface used by the > >>>> dell-smm-hwmon driver. If you want i can try to enable this driver on > >>>> arm64 too, but IMHO it should be considered optional at best. > >>>> > >>>> Thanks, > >>>> Armin Wolf > >>>> > >>>>>> Thanks, > >>>>>> Armin Wolf > >>>> >