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=1796114701; b=Dert0EgwTQ3ZGSlrTP9paNuX3gFLnpP/iOAmtAZ53P7JYUN3JFmrulaBVFkB88XMey4t 9+4SthFbNC6rmpDlCVNm1jLvw3O3nG1K3j5AHSgDcNizCuN0QUkvSKNyrPuJbLABmuj96 C+u4PekFmJ+MmEyxtmoAB6+cL8uIPUdd9Z0u/xjSd78bHtDlDE9fQL6QjDpGlG5TMBHCM WeAcGX7j5/hLSWsNKTnEMvGPK3DArOc+9ZzGp8/4WxGlUNmNDjoo9e4xcAVMmWuaef8Vy KQdmHaz0jRYiWd0WuVu1+Edq1kpuJUkwBkmiVzDYiC3YZLxM99mce3tBINKSw4yPG/A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796114701; 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=sWEEiYi9238wWKKxY9Hlrm7bGUhubo5KiLDwfvuCI+E=; b=nElRRThBdXbAS0QjdOSjyVLplSi5orVCNGweIs3g48XjTGMSzsgEEfWIyKW8MM0swJeE r/5NeLYfXgzwHqj97mYyTZnIncivWeG8REvpuuMiS/qY5IN80FIBygoTwLkcXUmifqXsU hig6mEHJyWWPZ2DZicJaOb3KzbXrwd04NJSlorXokVCDrpOUy0J1ev1EHLCqDOVZsGFPL IyyIZnmPI3yWzj5csXeRB6g4tETBv8xpN5S8OUQZE2483wh1RFjn8Msmx7gUNuKkOOr5L Cmpp+bkHCgCY0mCnhELuBxpMuM+96UfSuu+PBUTFZzZj+B3UbiRd/76gWYvjEu2zZ9Q== 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=FOOB88hk; 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 3FDBA606A333; Tue, 1 Dec 2026 08:45:00 +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=FOOB88hk Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EB001F008A0; Tue, 1 Dec 2026 08:45:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796114700; bh=sWEEiYi9238wWKKxY9Hlrm7bGUhubo5KiLDwfvuCI+E=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=FOOB88hkCGX3rm9x4+yyiCX380YZ7dFNqMRRQ7tfIqur5EpNl4rGK0yEHEHxa1TQe PDyEvbK/6FB2RhUI/Infu+/IzzdRWT2UBcXHPyodHLt+Mmadcb7UkjlRUIAcGCfk+K pOR8CYqdL3uY5U4K+Jh5E0v76tg2JYlxL78aMnp6pC3ZM4wQkY458dDH8MJmDNniih sPM+XksE4gFkdSgatDVAcMd07DRgkOMh1pC2GwZivn/vUVGdxsHBcj9qO7IO6IE6cw ebox9YpkygUKlnmpaIvK4Q28no9NxMjvi4hki8/ssBzEu0i8RBv3xDikb2ux9zWii5 zV3Kwek5sumlw== Received: by pali.im (Postfix) id 29B1C760; Tue, 1 Dec 2026 09:44:57 +0100 (CET) Date: Tue, 1 Dec 2026 09:44:57 +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: <20261201084457.jtkhdocvar6yjj2o@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> <01c1d888-327e-4b6d-99d3-d8d9d3a5cc18@nvidia.com> X-Mailing-List: linux-kernel@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: <01c1d888-327e-4b6d-99d3-d8d9d3a5cc18@nvidia.com> User-Agent: NeoMutt/20180716 On Tuesday 01 December 2026 02:13:38 Brian Mak wrote: > On 11/24/26 12:59, Armin Wolf wrote: > > 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. > > In light of your findings below, this wouldn't make a difference. > > > 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? > > > > Thanks, > > Armin Wolf > I removed the dell-laptop and dell-pc quirks and tried it on a 7.3 > kernel. I saw that dell-pc fails to probe with -ENODATA, due to the > stricter checks you pointed out. However, with dell-laptop, the driver > still loads, but reading/writing things, like the mute and mic-mute > LEDs, returns -ENODATA. > > Given this information, which option do you think would be best? > > 1) Keep the dell-laptop and dell-pc quirk as-is, so that the drivers > both gracefully return -ENODEV and do not log failures. > > 2) Drop the quirk, and: > a) modify dell-pc to check for the -ENODATA condition after whichever > call it fails on and turn that to -ENODEV, I think that this is a correct way. If we know that interface does not work and returns "no data", it means that the driver should not probe. > b) modify dell-laptop to send some dummy request on probe, such as a > keyboard backlight info request, and return -ENODEV if we get > -ENODATA. dell-laptop currently does not check if dell interfaces are really support. So I think that check here should be added. And this could address also your issue. > > Or, would you suggest a different approach? > > Thanks, > Brian