Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1177262imm; Tue, 3 Jul 2018 06:53:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKc8SbTNDkxdr8DgHFDUcGwZtadsOP9PZtudpb9eodFEvQRaxmVKi/A+AFaXnAuwqctlwIj X-Received: by 2002:a63:a319:: with SMTP id s25-v6mr25767074pge.62.1530626033820; Tue, 03 Jul 2018 06:53:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530626033; cv=none; d=google.com; s=arc-20160816; b=u60yIDdcxQpTg56KQRJufUvh/2OdSS6hRlahrcULgcz0K1ULpKSfNU8xoxnPNaURjK AlZuTEGMgfaGbv0PUVDNhcBe0LWZ9jkUif0omV0lnmKnaobR0l5KABIUQiUYEPFJsYQN KDjBEXXKppg+ij33udhDTZBH7pfdQRWZhzMqXCaYZSkZRNRJWX5sxZ09POBy81cyofOI 4NLq4klxPQeXlD3yT9kxpbEwB2f86e7BX905sh9xZ30KXHyvbLI9Z1JdMXCL2jAB4bzt TfvYZ9pVw/H+mMVy4KzIFWvwBuJ5UdEICrNTdhvV8rZVRkM5FAikBusmtBryRl1b9Iy7 fh1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=kbBFCgkvIIK7F837SU7iNxCTEPyiT83JKNYsyEyGboc=; b=gItwKN3XOYIjiGvyTKLnO37dWlsHC3+yOu9RzbBYIYaPxPZHaHM7imKjtUPWp7EW5/ MjMBO9wDzwJsPCtz9OUWGH+5r5WOYYzvaKOXU8WtFKIBU8dz9sV3yAcorQwm89se7LEk R6nggoDZNdwUol7VtAmzfMAEuLRy3O2HjnQZXbU/FAIe18bbaXqk6USVgk4ZFIVXU/39 tyYyKkZ4+6g+NPwO2LlTzrOyK0uL0vOdmmY504l/9F/S2Q3peA3qj9NBdlSOK63kFTL4 o5BSrUB/mSfxPgmHlECZaE28PCvAR7H+xeYKxWCv8Kn4g0SGr20JzckEHwgBi3MmoMmo y5TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H79wq3h7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k90-v6si1307690pfa.77.2018.07.03.06.53.39; Tue, 03 Jul 2018 06:53:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H79wq3h7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753467AbeGCNw3 (ORCPT + 99 others); Tue, 3 Jul 2018 09:52:29 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:44158 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753194AbeGCNw1 (ORCPT ); Tue, 3 Jul 2018 09:52:27 -0400 Received: by mail-oi0-f65.google.com with SMTP id s198-v6so3891974oih.11; Tue, 03 Jul 2018 06:52:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=kbBFCgkvIIK7F837SU7iNxCTEPyiT83JKNYsyEyGboc=; b=H79wq3h7GSOocaKLhLm2tae/rgo13TaIZj1FS6Ym0lpLOb7vYyIT0/nkvspN2hXRZu TP8+gIFo1HBppeocAoxP6F2KEduALfa/vWQXiijlufxmR/iDttFT3Qh3Q7kMQCapzMtA Pq70B3k+O3jqUNBTkqJu2rqCZJqMkKhJ6z3VfeAvGPpvUmHAJaPQ/+pNK6BAKEt9jZ3X QFdeH8Kar+rB72vyI1Jk+ZuHynXIGpLSedKcgKVlyabAml3gzPDc2E7PW0tj5xMlCG2E 9jz+ZqMs8p1Z7CCLNvaplMD3RQ92Xn5kahN5S4jF+9dX2EG7ijuHZGR8D9jQhbUf9b5G FTGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kbBFCgkvIIK7F837SU7iNxCTEPyiT83JKNYsyEyGboc=; b=tgS/eLAS3kZTtFNlgdz+XCdS+Vqwzcqlut9Mx91DJxaCxLlYpU01bKCjJzxZEr45XG IapAFmuEh8CMP3fgxqqmuUBgavyUAp/69GdPTzk7npxB9YFsdy5jVJxZUfhSY9wtVmi9 3dEN/DwnccQjE3kTO7mS3kf0t9/4z28NCzaYjOnxwA0Ti7FsRQ94vDfTkVxncKMMWSHB 5ClhIA3cAsZSTXZ2TNkTFoLbK1f0K6+cI6evZcv4Wbzh+EsRPVvu4DTdqd+83LkEmpB7 yQNAu6mCfDYclo9TDdLdSxC15CzUJNjQ/pqwWBdkywsd3hNqANLDSXh1+4oinwt+khwu TLUA== X-Gm-Message-State: APt69E2TeOqO1a6NweEXKcQaW/XYjR+wUIeraCEXuPsk7BXXUuldz3AN IutBhEYAV7bX/gOclSUYdIQiYYe6 X-Received: by 2002:aca:c0d5:: with SMTP id q204-v6mr19388046oif.77.1530625945573; Tue, 03 Jul 2018 06:52:25 -0700 (PDT) Received: from [192.168.0.2] (cpe-70-124-142-160.austin.res.rr.com. [70.124.142.160]) by smtp.gmail.com with ESMTPSA id r16-v6sm1278458otd.43.2018.07.03.06.52.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jul 2018 06:52:24 -0700 (PDT) Subject: Re: [PATCH v3] dcdbas: Add support for WSMT ACPI table To: Mario.Limonciello@dell.com, andy.shevchenko@gmail.com Cc: dvhart@infradead.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org References: <45b8bde6-aaa8-3f3f-0528-81e5e931751c@gmail.com> <20180609010420.GA112645@localhost.localdomain> <8307f1e0-c480-3f78-9327-e248208e5349@gmail.com> <367a12e9-7d10-98e4-4791-69cdc7d01129@gmail.com> <73c53c23c0824e4595292bfafc6054ee@ausx13mpc120.AMER.DELL.COM> From: Stuart Hayes Message-ID: <4e9a34c5-e0e6-b060-40fa-30d738d1eb69@gmail.com> Date: Tue, 3 Jul 2018 08:52:22 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <73c53c23c0824e4595292bfafc6054ee@ausx13mpc120.AMER.DELL.COM> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Antivirus: Avast (VPS 180702-4, 07/02/2018), Outbound message X-Antivirus-Status: Clean Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/2/2018 11:15 AM, Mario.Limonciello@dell.com wrote: >> >>> I don't believe SMM communication ACPI table has ever been implemented by >> Dell >>> on server or client BIOS. I do agree this table describes the behavior that DCDBAS >> driver >>> has used since before even UEFI BIOS pretty accurately. >> >> So, EPS table has been for ages in Dell machines? >> Can we consider it as a predecessor of that SMM communication ACPI table? > > No, EPS is new this year, specifically for server BIOS to be able to support SMM communication > when WSMT is enabled. The code tests in Stuart's patch will detect if WSMT is enabled > and if it's enabled test if EPS was defined. On server BIOS when EPS is defined dcdbas > will be able to communicate using addresses defined in EPS. > > Server BIOS will support EPS for applications using dcdbas interface and may at a later time > introduce same WMI interface as client too (but applications will need time to update so > they need to support both). > > Actually Stuart's patch will cause client BIOS that has WSMT enabled make dcdbas fail > initialization (as it should because dcdbas doesn't have a region that it can successfully > communicate). > > In client machines we moved this communication to ACPI buffer allocated by WMI, which > is why we have dell-smbios-wmi now in kernel. > > I think once some variation of Stuart's patch is merged, I'll send a follow > up patch to drop this test because it's no longer necessary: > https://github.com/torvalds/linux/blob/master/drivers/platform/x86/dell-smbios-smm.c#L106 > > >> >>> Stuart and I did discuss with server BIOS (who uses this EPS mechanism) to see if >> its possible >>> to move EPS to SMM communication ACPI table however since it's been >> deprecated by >>> UEFI 2.7 they weren't willing to adopt it. >> >> It's pity, but the motivation to deprecate is "lack of use" which is >> not true. That's why I would suggest to escalate this to UEFI >> committee. >> >>> Stuart, anything else you want to add here? >> >> Darren, what's your opinion about this? >> >> P.S. I'm not against this approach (just some technical comments I >> already shared), but on the other hand it would be nice to have undo >> that deprecation and follow the standard in new firmwares. >> Would you agree? > > Sure. Due to the timing of how long this will take, even if SMM communication > ACPI table is undone from deprecation we may have to still support both EPS > and SMM communication ACPI table though (maybe it would be order of preference). > > I have confirmation that the EPS table will be 16-byte aligned, so I can make that change. I'll send a v5 with that and the updated comment.