Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1374508ybi; Sun, 30 Jun 2019 14:07:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoxnNGCP8hnvQU7COtB7BQCHcYL5Kp1zyftn17I0WYZrykDoCroPYFhEI9uRqnr1MVluyj X-Received: by 2002:a17:902:100a:: with SMTP id b10mr24327113pla.338.1561928828869; Sun, 30 Jun 2019 14:07:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561928828; cv=none; d=google.com; s=arc-20160816; b=FppAK7Tw6AVSyVSKwHfkgxKgqUmJspAktjKn1bAMKK3VwTVriXjKyBtl+I1PCVEZvc RuTPo7troLpL3wwiMLQiezC/4aJhV+jkcWkFmP9vW2g3hWojhu8Wc1cAlv0pjTI/M3ST ivFz8/1hWM04M4XE9FY/+zFK2/WQ1Mz0yv1CiLHJRgbcVCCS7vDcAp5VT12HmPu3UhCr I+ZzLqaygFlFcRAQQtjezxmFALklOmuT2WRcNUPArm8QB4mZbrvXR05VXSpWAtjZzVuA 3Uti0Rjrj7o6+tzLU/R3utD1zhYPXicFY3DyLXy4wUwWEWATKyH5Naq2Pd0cbHyTfRG+ sfqQ== 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=nWkSzfQwWe28Oid571VUDPT1j3jqJiizt+sPBUmyYXc=; b=ab2RG5fS/YB8GtLnPtlJNQ3ULWLjwvKygJL84oXRckh+31B0/CXx8pMfEL431+k3sa pFCLf+d/6CLsdMUzmstEAG7aEMa6+2Sc4Q07IIaXL+bliEl2dD1tNbOceUDyvVmjaYba q3r/RcgUXE9a5Q15WX5IMJqwT6k89BNE83nyOYTnj0X0UJ1lf25qeL6O8xKIVuTsgrgg OxxRGyE4PQYD+PC68g9LWoDUEyeceIsjDQAtuXNK1zeVohwVNXqz9KJVtAlpjg4Stjgu 532SVcop01rJouEto1NsddzbD2WewJFYoMINrE/5FJEr6qsHsVcK4ZH0yQ02iWDt9FyX QPoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=usPdyeln; 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 l185si9454013pfl.190.2019.06.30.14.06.53; Sun, 30 Jun 2019 14:07:08 -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=usPdyeln; 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 S1727298AbfF3VFl (ORCPT + 99 others); Sun, 30 Jun 2019 17:05:41 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:44121 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727286AbfF3VFj (ORCPT ); Sun, 30 Jun 2019 17:05:39 -0400 Received: by mail-ed1-f68.google.com with SMTP id k8so19150578edr.11; Sun, 30 Jun 2019 14:05:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nWkSzfQwWe28Oid571VUDPT1j3jqJiizt+sPBUmyYXc=; b=usPdyelnSi4jYetKhxTjSp/C2Q/tSyY8vTWVz/sIz0yvDaZBJ4EdBe/mK0qEldHi3S 44UE591gyw85bU15D17RNz4Xsc21haFCBRfg/ApmA3FtCoLOxsj4a58gKbgiS7sWDUxj v+9OECxNgNMECzxJXN0Q7AIAhZBOTQEKynq9Pp8Nt6ZxVU8lYTzbwu2dBnvt13Ev+6E1 8NNOVzv4Y6InY8NZf8H0qzlFSngI8tO0e/DO6QlSi6qH9eqXtIScDtnrUsDIPRYAV2hd TTXgBe/RHYEmqX/1n7ZEwwr9uHpsbWwgiisrGDAg26d6gjCjOcXgcmV6awhVUrBETPO5 AtTw== 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=nWkSzfQwWe28Oid571VUDPT1j3jqJiizt+sPBUmyYXc=; b=qJIxJwYjbqQ8VukUqI5yvF3AWX13/yITaXHoCuStc908PwnXQ5eIPGnR3bNBGX47+D R5EPEWRqlIZL54MNTx1wpJ0YhzyT8fXqiLq4K4OjnJapEaJ8Hr5zClb3JjHWv8jc0J1F ICv94jfpxB8wj6sXZ1NBu+pSqbGEZvYd3ZLKqozbfvbBBxX2o9TTVqyB2a/vpA8grRh7 y5Xda19vsg+TjFvapA14W/egXtSa36Q3FrSojacxAjobyuVwm1UTSNjxl5BXLiUMUvYn HSpXLqlxyondRrra4ZPzRdtiTaNSLAFEhRecNMGYOklXXujIpKVqsk/UvRIkMLjOusa3 +hew== X-Gm-Message-State: APjAAAUsPqrArYtbrK93GtspGcn74igvHNX8NYPid+ka0tLLzOxGZuwt qp/ATipXCG4uiCKdYzgEy6hElQimqweClPbSEDM= X-Received: by 2002:a17:906:f85:: with SMTP id q5mr18711715ejj.192.1561928737016; Sun, 30 Jun 2019 14:05:37 -0700 (PDT) MIME-Version: 1.0 References: <20190630203614.5290-1-robdclark@gmail.com> <20190630204723.GH7043@pendragon.ideasonboard.com> In-Reply-To: <20190630204723.GH7043@pendragon.ideasonboard.com> From: Rob Clark Date: Sun, 30 Jun 2019 14:05:21 -0700 Message-ID: Subject: Re: [PATCH 0/4] drm+dt+efi: support devices with multiple possible panels To: Laurent Pinchart Cc: dri-devel , linux-arm-msm , freedreno , aarch64-laptops@lists.linaro.org, Rob Clark , Ard Biesheuvel , Catalin Marinas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Ingo Molnar , Julien Thierry , "open list:EXTENSIBLE FIRMWARE INTERFACE (EFI)" , open list , Lukas Wunner , Steve Capper , Will Deacon 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 Sun, Jun 30, 2019 at 1:47 PM Laurent Pinchart wrote: > > Hi Rob, > > Thank you for the patch. > > On Sun, Jun 30, 2019 at 01:36:04PM -0700, Rob Clark wrote: > > From: Rob Clark > > > > Now that we can deal gracefully with bootloader (firmware) initialized > > display on aarch64 laptops[1], the next step is to deal with the fact > > that the same model of laptop can have one of multiple different panels. > > (For the yoga c630 that I have, I know of at least two possible panels, > > there might be a third.) > > I have to ask the obvious question: why doesn't the boot loader just > pass a correct DT to Linux ? There's no point in passing a list of > panels that are not there, this seems quite a big hack to me. A proper > boot loader should construct the DT based on hardware detection. Hi Laurent, Actually the bootloader on these devices is passing *no* dt (they boot ACPI, we are loading dtb from grub currently) I think normally a device built w/ dt in mind would populate /chosen/panel-id directly (rather than the way it is currently populated based on reading an efi variable prior to ExitBootServices). But that is considerably easier ask than having it re-write of_graph bindings. Either way, we aren't in control of the bootloader on these devices, so it is a matter of coming up with something that works on actual hw that we don't like rather than idealized hw that we don't have ;-) BR, -R