Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2441404ybi; Mon, 1 Jul 2019 12:07:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzR0rlCj7HTEbmuJegtyUBewpftbg2uNdMe8YtCP8y6j8VBXEtYFUw6aboOFll4tjbjvaP X-Received: by 2002:a17:90a:a489:: with SMTP id z9mr910047pjp.24.1562008072193; Mon, 01 Jul 2019 12:07:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562008072; cv=none; d=google.com; s=arc-20160816; b=ePzXuTOdLh3LTX7vT+hUSvRbwiwQipbUhnophcSTA7ZCmUj6kTgYHWtan1qyLI2wry LdBlwaLY1XKpBP0aB5pabeHSyeWsgNU33X+nIaNrGu+um0JyV+F2n1VnxOeFilVssVgI 6UkakkbSuzff5LlaEH8Qhp9hTEmS+w1PiimepIUqS2vpC8IhL1GzeWv2tsw4NYxLwah7 3IIZDpY+aA4yMX21EAP4AkQ6cTh3QCUbngedAmXPGXign891R/49sploPuEcVP+VwhWy JWA3lpOrzEHapj0K3QA1c7gndDhJbFx9yhXSn4rdXDoVNLrWwYRQbsm7tzrHR9he1xES DfLQ== 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=uaBxrrwWEMoWcE/TKYta3qQurdqfNb+UbR5U1Wpm70o=; b=sDfVJoCBzsPsxh2Wo+ioiupXfvNv9pgQOWuoOMTWQdpbu165rvBaBrCnxhJI1RlWOn tDTwHXD/XkRetO4HC1ltOeepD40a7NTZt1kzY7kk1nkcJaZC3uh6lXUYHzeVYrBMPyor 64SXjJDTCg8ZKT7Od03ez6LGamAUyh1ZHt6fIt0THMySPw0Oayqq+9F08KOctgdTadUN 1FNpie+QmmQ0USd3psndpOJcvqfQtnFHbF7EWrB7kJ2921cOHi42uRte5z7raDDEkAqM lHV0ejePM0XMe5Caxm2lQl+P7uWiYJ++trRAw9g0ROTaNz1oVWhkn/n4F942Aie6hoJs 5O5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VBB2XGeI; 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 w17si11818279pfi.139.2019.07.01.12.07.34; Mon, 01 Jul 2019 12:07:52 -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=VBB2XGeI; 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 S1726738AbfGATF6 (ORCPT + 99 others); Mon, 1 Jul 2019 15:05:58 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:46084 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726076AbfGATF5 (ORCPT ); Mon, 1 Jul 2019 15:05:57 -0400 Received: by mail-ed1-f66.google.com with SMTP id d4so24756215edr.13; Mon, 01 Jul 2019 12:05:56 -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=uaBxrrwWEMoWcE/TKYta3qQurdqfNb+UbR5U1Wpm70o=; b=VBB2XGeIB4/fvXrovvgQ9H45CCTnVVzGhLc8tfUT5hM1KiF1epOn11+rpPgaoAiBaw L2X4IRusSjkr8N98Y03yOtubmeAiQNWRLtYrTHrm69DOZbmxLiRTlylsWPaKjhOcE22i yhPCNF3jcLw6DvtdIOZGTrnqrbTj2ZBgKo+AloJb8Jff8J/FkXXiYNL9Sje6kDSbE951 qNH8si8I5xASyFA0qRaJczNeqnE3r4290p1zaJ9BGwaJVPMDKQoj9EtdmZfBykus5L8E 0r7VoUuNEeqep5NvcsKIrpw5Vboh/S/S4aB9utLluxGbyiLqn457LvG/vBemDYG892cb wZLw== 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=uaBxrrwWEMoWcE/TKYta3qQurdqfNb+UbR5U1Wpm70o=; b=b+VawKjxsRK8884AJADJsOr+Cdwp7ZwAJ8xg3T/qdwShUsKENamUOsMNY1g8dGVdl1 OZG8D86gppR7x7vTGjB1XjdTjcp+Tbw5tVZE5P78x+olJH2nBxnLBwsB3atzLaMCI/Le mu+0w6hX3e8SMb5PUsYuql9v7aAR32dD8L2gh5b50XTrgg3YB3QBtG0/vrsUynDjx3+y 1bp1whzY3FgnYnt7Be7wK3iJSfCR6VKW0I5WZfHkeQcgfup8QioAyZSP1YXe0/+SpDZW lIwh8dOz8VikIG0lUqjbKCtcqZof3UyLdR44EU25UntaUxMbx9rUZjX6uXgaqYIuUzT4 uZ+w== X-Gm-Message-State: APjAAAUsErpbm7gG3y6mhxEIL6ZsMZMDyiajyBZMEmUI95jR8VKeukz4 S4zop9jqRufF7iWCGiWluBT0tIf1D1WD4m7vH+0= X-Received: by 2002:a50:9468:: with SMTP id q37mr30825087eda.163.1562007955479; Mon, 01 Jul 2019 12:05:55 -0700 (PDT) MIME-Version: 1.0 References: <20190630150230.7878-1-robdclark@gmail.com> <20190630150230.7878-2-robdclark@gmail.com> <8736jpzk67.fsf@anholt.net> In-Reply-To: <8736jpzk67.fsf@anholt.net> From: Rob Clark Date: Mon, 1 Jul 2019 12:05:40 -0700 Message-ID: Subject: Re: [PATCH 1/5] clk: inherit clocks enabled by bootloader To: Eric Anholt Cc: dri-devel , linux-arm-msm , Rob Clark , aarch64-laptops@lists.linaro.org, Linux PM , Stephen Boyd , Michael Turquette , Linux Kernel Mailing List , Andy Gross , freedreno , linux-clk 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 Mon, Jul 1, 2019 at 11:25 AM Eric Anholt wrote: > > Rob Clark writes: > > > From: Rob Clark > > > > The goal here is to support inheriting a display setup by bootloader, > > although there may also be some non-display related use-cases. > > > > Rough idea is to add a flag for clks and power domains that might > > already be enabled when kernel starts, and which should not be > > disabled at late_initcall if the kernel thinks they are "unused". > > > > If bootloader is enabling display, and kernel is using efifb before > > real display driver is loaded (potentially from kernel module after > > userspace starts, in a typical distro kernel), we don't want to kill > > the clocks and power domains that are used by the display before > > userspace starts. > > > > Signed-off-by: Rob Clark > > Raspberry Pi is carrying downstream hacks to do similar stuff, and it > would be great to see CCF finally support this. yeah, both this and the multiple-possible-panel thing are a big source of downstream hacks on basically every android device too.. :-/ it certainly would be nice to have upstream solutions for these problems to give downstream hacks a reason not to exist BR, -R