Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp140827ybi; Tue, 2 Jul 2019 17:51:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZN3vy11W9kuYW3AnZzYy5GjZR2zIZ9I9MAbDpKJnnGr0j+tKWJ4lz0i+wHjy12ghPm1zI X-Received: by 2002:a65:6210:: with SMTP id d16mr33106043pgv.180.1562115103983; Tue, 02 Jul 2019 17:51:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562115103; cv=none; d=google.com; s=arc-20160816; b=s8E93CfIc0sFL4jFMgS30divuXHdKc8GMhlKjqWzttxFCdy/RNhbcFYGKQ4E6oo0MT fiBcbCx1FT+afKsXjIvYScLc+JCgSgdb0Ioxo/+8DnM0vQnqb6KwfPZpo1e3h4hCDsar p96y/sgK6wnzDQ7wTikjkig6mQO3KIrxrLO9ds+FvmtOe4bSR/j4s9+/iA1YhQSecnzq OEyv2CC9kfiHv+N4K3945k01nLcA3cw8DDiILkWS09faT1PPIz91KGfNosUWr5P6qBK7 Qu/i8VoQY2+5SrPSUFbOK64R81lEm+NZBn76ud4+UWGn+muBarCJe91AlKs2/I8c8ACy MMmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7PbiqxZ6N1zfuiJYD7wJ93Pdo9aQh0IzeX8dcJ4X5FU=; b=xbZzjdj6zOhP8on8eq2JJiUteGVwJBz271frli32S26lw/J590cdV4oHNJdznPzi64 Vpl9ZwnB1qosQ7jKDi4/JPSF9Cc9TpJc4uFZ9WFrzgW0QzLKDd0vR3Jr4M+9enF2fXHL 1a0haLQFme5i9dlksyyUTLWpQJGP3VXQ9QOM3+LK3REKact53OKF7504f+KLWAhd0WD1 AzGNFPKLAsb13Vo/OIvvmV90jTVBhH3iWDQ3FhsiNSL2Z2gsgHRGS3tEiSZNoawrtSof +PjmlnIPada9yldRDjFVYC/tt8jGQD538dOmmz8tELOlzCtaPxNzN4Ta12aFLw9nGH6e joyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="pSfYXKs/"; 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 i8si213080pju.32.2019.07.02.17.51.28; Tue, 02 Jul 2019 17:51:43 -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="pSfYXKs/"; 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 S1727340AbfGCAub (ORCPT + 99 others); Tue, 2 Jul 2019 20:50:31 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39341 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727040AbfGCAub (ORCPT ); Tue, 2 Jul 2019 20:50:31 -0400 Received: by mail-wr1-f66.google.com with SMTP id x4so696889wrt.6 for ; Tue, 02 Jul 2019 17:50:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7PbiqxZ6N1zfuiJYD7wJ93Pdo9aQh0IzeX8dcJ4X5FU=; b=pSfYXKs/eqzCFbQjrWkC99dJ2GBbcgfGiqD4o3TT1CTRmGJKlgGUmxb64JYxtewy9i P4m7J1uixRsx52J41BThoDYqSjJKJBBVrDWCyj9I8Ea61Y92rPgjr1pLTBd0RQJPFzmU M7V32ufMqcgtq8htDIXCzupTlkp4UjI9gHxwKnnjp9I5KC8XIMpLESjEz2ky6JmdWBUZ fpUrAlbfT2IsMegG37jVJuagyqNW4pkpQtkIeE58VcZQYGISG+P5AuwWh7z/Nf5nXZpG e0YVm2O6FdZtWrWdqJ8y44qc1Kznwh6KOm+3xKsBu3WKOzbgEmB8k1YSrTXZcEvtEq40 T4Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7PbiqxZ6N1zfuiJYD7wJ93Pdo9aQh0IzeX8dcJ4X5FU=; b=IuZCCVqVY+QrTd/wpcv4hmNxncUIbiyKbfGgxlMZPBrIHGmEiEwdBOeTQ34vVZmmIE c8prKu+qoT+3LPObxZz5eK4yNggfmHbLqPBpHrBWOkCGjwvNN5TUopGOJKcilXowZyly /8TFEVbSln9yBqU42A6Nur1djfSVdgRcYrYcmhZ9TSPXA+bv95AGoV7GZ84Q5qlRUZ43 p8dkuK1ttP3N/TYNVJV81gEW6u+21djelkV1fXD2bHzBeY+9XP7cdEhcnS1+zPYGIQfL s/sF7tKSRaDEKEe4Wvr1RwkTkrwij+sgTW+GSCImBBT6EI9fzzwcjAsI4wmh44t3BYGB R9Kg== X-Gm-Message-State: APjAAAW8JUhmjcBVauMxRgIgH0i1dCao9bIzW/lZzt7117fQ8fVfpdbQ cwYxhO1JjgTlvCzhCBYbkZEFhA== X-Received: by 2002:a5d:6182:: with SMTP id j2mr14634480wru.275.1562104795656; Tue, 02 Jul 2019 14:59:55 -0700 (PDT) Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id w25sm226281wmk.18.2019.07.02.14.59.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Jul 2019 14:59:54 -0700 (PDT) Date: Tue, 2 Jul 2019 22:59:53 +0100 From: Leif Lindholm To: Rob Clark Cc: Ard Biesheuvel , dri-devel , linux-arm-msm , freedreno , aarch64-laptops@lists.linaro.org, Rob Clark , Ingo Molnar , Will Deacon , Alexander Graf , Steve Capper , Lukas Wunner , Julien Thierry , linux-efi , Linux Kernel Mailing List Subject: Re: [PATCH 2/4] efi/libstub: detect panel-id Message-ID: <20190702215953.wdqges66hx3ge4jr@bivouac.eciton.net> References: <20190630203614.5290-1-robdclark@gmail.com> <20190630203614.5290-3-robdclark@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 02, 2019 at 02:01:49PM -0700, Rob Clark wrote: > > > 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. > > yeah, it isn't pretty, but there *are* some other similar cases where > efi-stub is populating DT.. (like update_fdt_memmap() and > kaslr-seed).. The problem isn't with the stub updating the DT, the problem is what it updates it with. update_fdt_memmap() is the stub filling in the information it communicates to the main kernel. kaslr-seed sets a standard property using a standard interface if that interface is available to it at the point of execution. Since what we're doing here is dressing up an ACPI platform to make it look like it was a DT platform, and since we have the ability to tweak the DT before ever passing it to the kernel, let's just do that. Yes, I know I said I'd rather not, but it's way nicer than sticking platform-specific hacks into the EFI stub. (If adding it as a DT property is indeed the thing to do.) > > ... but saving variables at boot time for consumption at runtime is > > something that we will likely see more of in the future. > > I think this will be nice, but it also doesn't address the need for a > quirk to get this into /chosen.. I guess we *could* use a shim or > something that runs before the kernel to do this. But that just seems > like a logistical/support nightmare. > > There is one kernel, and there > are N distro's, so debugging a users "I don't get a screen at boot" > problem because their distro missed some shim patch really just > doesn't seem like a headache I want to have. The distros should not need to be aware *at all* of the hacks required to disguise these platforms as DT platforms. If they do, they're already device-specific installers and have already accepted the logistical/support nightmare. / Leif