Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp373401ybi; Sat, 29 Jun 2019 12:56:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqztiMgbDXTHiNLq5Y1EjUjExsNGVNVH5cMb61lkT3aZt4GxJZDCLNu2Oa9JctIkrOQw3iBr X-Received: by 2002:a63:18c:: with SMTP id 134mr15563995pgb.432.1561838205376; Sat, 29 Jun 2019 12:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561838205; cv=none; d=google.com; s=arc-20160816; b=PdiqlzbZQ4Tm/NYsb2KIRemuCpYGysDzQ4sEw5RnMTmx6l4bmyAqthC80xQNmaLdtb 1OITkNafkzzDPmL8Qqkjrg82GiXhfzDA/dkM42OEv18yPHoM3laRfVTffspPj6B1S342 cRokK5GdZR6EHic2/hkRQ0IeX/xriFuSSnQOH+XdXswR98W+53iSOsB/asAOIM7RkgiK 0OcIbgzNGKdqjA4wVe5e2SMH8ZYpqgb+wHIgdGR2PVFTSyEGaowNkvyarBmW4ORWL5J3 ek876c1SAJXIeLV9l2/pPlYQh9Q7q/Lf9Ms99elWAgJgpiQHCiw2Y1vtajdJ56ZFpiMt 7vCQ== 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=KEEhZe9y6Tj5RmcezO+cewOsrq7aqdui6cDX8dh2Q2k=; b=g/dbJ1mqjqQ3Zv9Hjw5srAUXziItql9paMkiZ9HPlggpxW2fALu9ljklXwDOomAnuy yrYtQTFBE9K/erCvBGLX0THXe7VjYHPkNmUmGzzv2Qva1J/WrqKhkTZs2+SmigCL8Nw8 iXSbEy8f/iqCWh+SLuobc27RNDWJssHDwuCs91R3ete9xLTtEaKyRd7LoEoPXUOHn3OD gLV/xyOURgRCyjIBqXbbm8mwyocWnz6VvZMa3qdRDHasqKTNSZoPF8m84x0jYHpAdHhC JugaNONiDclbtpYT+4IXPQrZjgYPCcZLaRxaLAL3FC3UVBV+yl+ngpbzNhUbamizZSwo cPsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JdzMUl+g; 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 8si6471040pfv.149.2019.06.29.12.56.26; Sat, 29 Jun 2019 12:56:45 -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=JdzMUl+g; 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 S1726935AbfF2T4R (ORCPT + 99 others); Sat, 29 Jun 2019 15:56:17 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:39624 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726891AbfF2T4R (ORCPT ); Sat, 29 Jun 2019 15:56:17 -0400 Received: by mail-ed1-f65.google.com with SMTP id m10so16617164edv.6; Sat, 29 Jun 2019 12:56:16 -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=KEEhZe9y6Tj5RmcezO+cewOsrq7aqdui6cDX8dh2Q2k=; b=JdzMUl+g0sgQi4R0D+GbHLxaAa5c7AWRgFEEklS/7g6WAeoD6rJIKsdrMTwlbY9rXP oLHHjRu5HRgDSjiwgAgR2TdDmljNPySDVTB16UX/vaiIppKpOjBUNVG6px1Vd64zi5iz VIktfHa4jIIRFZVScW6Su4o6aDd3Tu+RzPh4n/KOLvxOsVZzOhoRxm7bwD3MaUfKLbpO UpEUmQWsHVI8E/tk4c9rVWDmqy3GcC3zlZWnnv4teHQuw2qtnZtmsL4wzWbjqyBVEnwc MyqiZ4WSMKt00UHmIzosXVqHIW9RPCtaZubzJw60t7vFIXOToT1Ls7e0NgNOJ0uFYSRp TkZw== 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=KEEhZe9y6Tj5RmcezO+cewOsrq7aqdui6cDX8dh2Q2k=; b=AFHSiKCGytqdq2lGm5Zp1iADP2T1JVBkq8+WHP0rspFAnLFy+hQ1jnBo1WV6iibETB dCOf0fvtDU22O8XX2yeG5cADLD8XWHBOnwbWGljHjNfAHgWNn9GMXd+94U0UFz4O4Yn0 zqf+hMfj5RgNv8J8Q188SsY1U4GmntT9Ci1k/lWn2LcA6fekuNBPpVJY43NKRwdgqRlg lBsAd0o5esUybvzsIq2PLyeYjpZq6o0AhyejuBaWKuqsiHnhZUTJggBESWEf22xy3ZDj bhyaoVNFo1ezfqirn6HXdgUnRGMCh6r0RA2bjvx3cZoTNPyClQu1MB3IO3Sjb3gRPUpi icug== X-Gm-Message-State: APjAAAXJSoKOkffy18EoJfIW8K2wGD8/qJfOq6mvUM72XRaOloeAo1xO 0smaNa/JBCQhSW2yKLxbdXyMM80BLi4XC+zHx6A= X-Received: by 2002:a17:906:3612:: with SMTP id q18mr15527385ejb.278.1561838175538; Sat, 29 Jun 2019 12:56:15 -0700 (PDT) MIME-Version: 1.0 References: <20190628162831.20645-1-jeffrey.l.hugo@gmail.com> In-Reply-To: From: Rob Clark Date: Sat, 29 Jun 2019 12:55:59 -0700 Message-ID: Subject: Re: [PATCH] drm/msm: Transition console to msm framebuffer To: Jeffrey Hugo Cc: Sean Paul , David Airlie , Daniel Vetter , Bjorn Andersson , linux-arm-msm , dri-devel , freedreno , 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 Sat, Jun 29, 2019 at 10:46 AM Rob Clark wrote: > > On Fri, Jun 28, 2019 at 9:28 AM Jeffrey Hugo wrote: > > > > If booting a device using EFI, efifb will likely come up and claim the > > console. When the msm display stack finally comes up, we want the > > console to move over to the msm fb, so add support to kick out any > > firmware based framebuffers to accomplish the console transition. > > > > Suggested-by: Rob Clark > > Signed-off-by: Jeffrey Hugo > > lgtm, > > Reviewed-by: Rob Clark and I'll also add, on yoga c630, Tested-by: Rob Clark > > > > --- > > drivers/gpu/drm/msm/msm_fbdev.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/drivers/gpu/drm/msm/msm_fbdev.c b/drivers/gpu/drm/msm/msm_fbdev.c > > index 2429d5e6ce9f..e3836c7725a6 100644 > > --- a/drivers/gpu/drm/msm/msm_fbdev.c > > +++ b/drivers/gpu/drm/msm/msm_fbdev.c > > @@ -169,6 +169,9 @@ struct drm_fb_helper *msm_fbdev_init(struct drm_device *dev) > > if (ret) > > goto fini; > > > > + /* the fw fb could be anywhere in memory */ > > + drm_fb_helper_remove_conflicting_framebuffers(NULL, "msm", false); > > + > > ret = drm_fb_helper_initial_config(helper, 32); > > if (ret) > > goto fini; > > -- > > 2.17.1 > >