Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp135725ybi; Tue, 2 Jul 2019 17:44:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2dj8q2vi0U4drk19k0pWlYeqoHoXqBlNoiP5Dr8LxVg65Y4TTPirty4VJTWqOCscWsuVR X-Received: by 2002:a65:6497:: with SMTP id e23mr8794428pgv.89.1562114687003; Tue, 02 Jul 2019 17:44:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562114686; cv=none; d=google.com; s=arc-20160816; b=o1BUeZ03QhYvGdxRBVxwBxbRNQEQyIs+7SfVe+IVmL8b/hf87NwWj/Ye2/pj+BjhOA 3xXKzNW69w65oH9gK1ew2WGMfs26EcTwU+itZgJQ16IMFX6lPXm4Hv+qd9BGm9UYWCQT tqZKSk00/6kDt5BlEKBw4TQU9FSTisqyeGcn7wm6r+D/pal6MbObECZqodTWxFL4wUPU jQmg+wVNYKEetoJkWL0wv4CJH+a4dpPnN5IAS3ZqwqnJn52HVjGfaqcGT2FiilFr7c+L xCt4z6GqGd3lq/VFgUqcesfbq6pGhz2YnVI7Iz8ESmi2zqYzy0ghYH3vSaBDn0KeczqD TUAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YiKm32fbrJXvadhbbH8R2AC30oRr6R/vtBXdk9UU6tg=; b=O+VPWF7kHty7Zb0zHWEomcyOQaZas4cye1MSEni8yVwom8+Q+L4HHYAh9NFEEAOvNN UQUpCgKKPitIL6aX7e5gv2TkDh1TdnJX+bURlUxaxGCRraI38h63xLVaRwYdCArlI47b B1onybf4cQ94KOn3f/v1rwCSiGUOxRdHlNpHXLI2gTr1PbOJbjnlXlznlB9G8A5DXa3p Z4r7EIW6KvODKJX2UMOnlBevXBXERxJSuPn11wTlUC9VItk/idnLFi0My6v2mPoRe2sE kqtsL8K+eMaMMhmOn1BW1vLvS8AUwjZLfJTs6tadQwGY687Jp4IRTTqvzFGp9TFtlilP 4B1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rouFNaQr; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p3si210824pjr.18.2019.07.02.17.44.32; Tue, 02 Jul 2019 17:44:46 -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=@linaro.org header.s=google header.b=rouFNaQr; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727262AbfGCAoH (ORCPT + 99 others); Tue, 2 Jul 2019 20:44:07 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:40391 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726736AbfGCAoH (ORCPT ); Tue, 2 Jul 2019 20:44:07 -0400 Received: by mail-wr1-f68.google.com with SMTP id p11so683105wre.7 for ; Tue, 02 Jul 2019 17:44:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YiKm32fbrJXvadhbbH8R2AC30oRr6R/vtBXdk9UU6tg=; b=rouFNaQrAD+LVzdQfwSGl8KyN3XCFATAsscS1nSiY3nqrVKn88L+2X9hpP8G0LkkWC NbXBVmKrNM2i/FYXzVyY65owea83CsnsL2EYq3GhtYm+wIktVkTqWtRAWOulqc+2Eijb tNZhEVAQRLz89yF0sk+uF/rQSzJNULI8c49x9De777zT65pYsUUSurWdrSNR9lmy2NEt 9eY0VkqUb2j+lxdkUSL9dhgUIzql3NanYjEhvjtxJVfIfVj1EIEm0MIgXIiUzfQXV33O rHDGqg4EVcvtwueBiup5u0kebQrjrGClyg1D+nX2fPJPU7N/NtWIDb7JpF1b7OEh92lu QbyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YiKm32fbrJXvadhbbH8R2AC30oRr6R/vtBXdk9UU6tg=; b=JKr04Y4DRGCkWPLOLqEaC1kMlZUa4uNdrqoGLUETFt+4u1MOf68bJDLER26LwYqe17 +TvkgZLt84dnHIEwwVbFsIV9g2U/P3AMsW/oeXRrjU1qUzB2WxUVKBOSNq3DsieJVSjv oq10GR/cnWn3+GAGRtDW/htNB7QwPhN9y2H6cteadCn/sjH3tIRMHSAtcdgI+sf6Vr0p I8M2uRa/tLa1EPy7U7MyHVWfg3OFBi496R0eujP/kPo5zlsfQr+DxN8QtvUiEJe2mSev ZSWnZImq6jY5e9080o6G+AUwgB164iQuLIhknlSHlh0e4/1wJEoDZBhYnyf/dlso64nv xdbQ== X-Gm-Message-State: APjAAAWx+Urcjda4n8Si8NBxLEKzPR8m2qqoDhg6sq1/kK4WOC05zyOA tHIorT/9VRHxMp8kXIPCHIBb1lgRzulSyxGu99XU+1a4Z2A= X-Received: by 2002:adf:b69a:: with SMTP id j26mr17416154wre.93.1562099731858; Tue, 02 Jul 2019 13:35:31 -0700 (PDT) MIME-Version: 1.0 References: <20190630203614.5290-1-robdclark@gmail.com> <20190630203614.5290-3-robdclark@gmail.com> In-Reply-To: From: Ard Biesheuvel Date: Tue, 2 Jul 2019 22:35:16 +0200 Message-ID: Subject: Re: [PATCH 2/4] efi/libstub: detect panel-id To: Rob Clark Cc: dri-devel , linux-arm-msm , freedreno@lists.freedesktop.org, aarch64-laptops@lists.linaro.org, Rob Clark , Ingo Molnar , Will Deacon , Leif Lindholm , Alexander Graf , Steve Capper , Lukas Wunner , Julien Thierry , linux-efi , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2 Jul 2019 at 22:26, Ard Biesheuvel wrote: > > On Sun, 30 Jun 2019 at 22:36, Rob Clark wrote: > > > > From: Rob Clark > > > > On snapdragon aarch64 laptops, a 'UEFIDisplayInfo' variable is provided > > to communicate some information about the display. Crutially it has the > > panel-id, so the appropriate panel driver can be selected. Read this > > out and stash in /chosen/panel-id so that display driver can use it to > > pick the appropriate panel. > > > > Signed-off-by: Rob Clark > > Hi Rob, > > I understand why you are doing this, but this *really* belongs elsewhere. > > So we are dealing with a platform that violates the UEFI spec, since > it does not bother to implement variable services at runtime (because > MS let the vendor get away with this). > To clarify, the above remark applies to populating the DT from the OS rather than from the firmware. > First of all, to pass data between the EFI stub and the OS proper, we > should use a configuration table rather than a DT property, since the > former is ACPI/DT agnostic. Also, I'd like the consumer of the data to > actually interpret it, i.e., just dump the whole opaque thing into a > config table in the stub, and do the parsing in the OS proper. > > However, I am not thrilled at adding code to the stub that > unconditionally looks for some variable with some magic name on all > ARM/arm64 EFI systems, so this will need to live under a Kconfig > option that depends on ARM64 (and does not default to y) > ... but saving variables at boot time for consumption at runtime is something that we will likely see more of in the future.