Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83962C61DA4 for ; Thu, 9 Feb 2023 15:45:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230152AbjBIPp6 (ORCPT ); Thu, 9 Feb 2023 10:45:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231569AbjBIPpu (ORCPT ); Thu, 9 Feb 2023 10:45:50 -0500 Received: from mail-vk1-xa2a.google.com (mail-vk1-xa2a.google.com [IPv6:2607:f8b0:4864:20::a2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34C676278E for ; Thu, 9 Feb 2023 07:45:28 -0800 (PST) Received: by mail-vk1-xa2a.google.com with SMTP id v5so1126736vkc.10 for ; Thu, 09 Feb 2023 07:45:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PqrEeOYy3mjqh5KmY+3gTVjzv8Do3LhWFceA0QbUl+Q=; b=QPhmCpMd6ZPgvRGEQa4k/r0HMG+R8wiKBF803a4KjRNUmfaoIIFAc2uCF46INTnhLM vaZbHXCdTMO68szrINPHDbqFen2qNdxCGL3IYrhajFTsYXd2EXax9Ne0lzSzxukIMOVh /sB9flevqoes/H9c4f0s8BgrpQDlyXHB4vd28= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PqrEeOYy3mjqh5KmY+3gTVjzv8Do3LhWFceA0QbUl+Q=; b=wb8xgbuACrrTDQpPaEfRMR14OM0UIyeNEqz0eX5UvtthUYP12Bifno73wJ6ZyFO63y +FC5N+K+XPnIS3h6hEfcJKyXWhZaAbQA94ivA37X5Ie6vDbAXLxnoMQiEKtsyHOP0JQT N1DmkQ8p2vd4Jp0NkTET+xGiO1pP/6oQdiIOjrnfAiA+yuhSi8kRjrNMWzrlYl0hDlHP S/jJnY7YNzUCBcv44QHdNsldnQ5LMqEkbw3DVqCZd80RRJK1Thjh8KklY0P6+PPy2wjm 4yPo4gmVcEPSmx13Q5FKHAxo0sLX4ZuTptJBFaWlbUmpDXK8XU+HCM2FN8nDN+2a/MHv 29kw== X-Gm-Message-State: AO0yUKUR53uttr2Uhbp8/lAFVyq6h5iGJSrGNc7OsVGi0I0UBFrNXbuE rrSQ7RKJL6nZ4jCe+uk26ZzqKcUH4Zk5nY9065A= X-Google-Smtp-Source: AK7set84B+kY/5iZ6FRmu5WBr1b/4hCmprXVXfv4Rn0AC817WNRvX826Gaj7HztmFq6V5jkcaUfE+g== X-Received: by 2002:a1f:1f47:0:b0:3e7:be15:c76c with SMTP id f68-20020a1f1f47000000b003e7be15c76cmr6820685vkf.5.1675957524750; Thu, 09 Feb 2023 07:45:24 -0800 (PST) Received: from mail-vs1-f54.google.com (mail-vs1-f54.google.com. [209.85.217.54]) by smtp.gmail.com with ESMTPSA id g73-20020a1fb64c000000b00400e9dc57ebsm153284vkf.27.2023.02.09.07.45.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Feb 2023 07:45:23 -0800 (PST) Received: by mail-vs1-f54.google.com with SMTP id m1so2542098vst.7 for ; Thu, 09 Feb 2023 07:45:23 -0800 (PST) X-Received: by 2002:a67:6743:0:b0:411:c22d:8433 with SMTP id b64-20020a676743000000b00411c22d8433mr837593vsc.73.1675957523229; Thu, 09 Feb 2023 07:45:23 -0800 (PST) MIME-Version: 1.0 References: <1675863724-28412-1-git-send-email-quic_kalyant@quicinc.com> In-Reply-To: From: Doug Anderson Date: Thu, 9 Feb 2023 07:45:10 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 0/4] Reserve DSPPs based on user request To: Kalyan Thota Cc: "dri-devel@lists.freedesktop.org" , "linux-arm-msm@vger.kernel.org" , "freedreno@lists.freedesktop.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "robdclark@chromium.org" , "swboyd@chromium.org" , "Vinod Polimera (QUIC)" , "dmitry.baryshkov@linaro.org" , "Abhinav Kumar (QUIC)" , "marijn.suijten@somainline.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Feb 9, 2023 at 3:26 AM Kalyan Thota wrot= e: > > Kindly ignore my previous email. Sent too early !! > > We have tested the changes on top of tip: https://chromium.googlesource.c= om/chromiumos/third_party/kernel/+log/refs/heads/chromeos-5.15 + 5 CTM patc= hes ( that you have quoted ) > We didn=E2=80=99t see the issue that you have reported on herobrine. Nigh= t light always came up on primary display as the reservation with dspp was = successful. Are you seeing any reservation failures for primary display ? > > Attached a debug patch, can you share the logs when you see the issue. Sounds good. Since officially this hardware is not available to the public at this time, I have shared the `dmesg` privately to your (and Abhinav's) Google partner accounts. Yell if you don't see the notificatioin. I don't have any reason to believe there's anything secret in the dmesg, but it didn't seem worth the time to fully audit it. For that dmesg, I: 1. Made sure that night light was off. 2. Updated the kernel with the 5 patches + the debug patch. 3. Booted up and logged into ChromeOS 4. Tried turning night light off/on several times and saw nothing on dmesg while I did this (and night light didn't work) 5. Unplugged power and servo (just to make sure they didn't interfere) 6. Echoed "DOUG: plug in external display now" several times to "/dev/kmsg" 7. Plugged in my external display, which is behind a Type C dock 8. Turned night light on/off several times. Night light worked on the internal display. In case it matters, my ChromeOS root filesystem is R111-15328.0.0 > >-----Original Message----- > >From: Kalyan Thota > >Sent: Thursday, February 9, 2023 9:47 AM > >To: Doug Anderson ; Kalyan Thota (QUIC) > > > >Cc: dri-devel@lists.freedesktop.org; linux-arm-msm@vger.kernel.org; > >freedreno@lists.freedesktop.org; devicetree@vger.kernel.org; linux- > >kernel@vger.kernel.org; robdclark@chromium.org; swboyd@chromium.org; > >Vinod Polimera (QUIC) ; > >dmitry.baryshkov@linaro.org; Abhinav Kumar (QUIC) > >; marijn.suijten@somainline.org > >Subject: RE: [PATCH v3 0/4] Reserve DSPPs based on user request > > > >Hi Doug, > > > >Have you picked the core change to program dspp's (below) ? the current= series > >will go on top of it. > >https://patchwork.kernel.org/project/linux-arm-msm/patch/1671542719-1265= 5- > >1-git-send-email-quic_kalyant@quicinc.com/ > > > >Thanks, > >Kalyan > > > >>-----Original Message----- > >>From: Doug Anderson > >>Sent: Wednesday, February 8, 2023 10:44 PM > >>To: Kalyan Thota (QUIC) > >>Cc: dri-devel@lists.freedesktop.org; linux-arm-msm@vger.kernel.org; > >>freedreno@lists.freedesktop.org; devicetree@vger.kernel.org; linux- > >>kernel@vger.kernel.org; robdclark@chromium.org; swboyd@chromium.org; > >>Vinod Polimera (QUIC) ; > >>dmitry.baryshkov@linaro.org; Abhinav Kumar (QUIC) > >>; marijn.suijten@somainline.org > >>Subject: Re: [PATCH v3 0/4] Reserve DSPPs based on user request > >> > >>WARNING: This email originated from outside of Qualcomm. Please be wary > >>of any links or attachments, and do not enable macros. > >> > >>Hi, > >> > >>On Wed, Feb 8, 2023 at 5:42 AM Kalyan Thota > >>wrote: > >>> > >>> This series will enable color features on sc7280 target which has > >>> primary panel as eDP > >>> > >>> The series removes DSPP allocation based on encoder type and allows > >>> the DSPP reservation based on user request via CTM. > >>> > >>> The series will release/reserve the dpu resources when ever there is > >>> a topology change to suit the new requirements. > >>> > >>> Kalyan Thota (4): > >>> drm/msm/dpu: clear DSPP reservations in rm release > >>> drm/msm/dpu: add DSPPs into reservation upon a CTM request > >>> drm/msm/dpu: avoid unnecessary check in DPU reservations > >>> drm/msm/dpu: reserve the resources on topology change > >>> > >>> drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 2 + > >>> drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 58 > >>> ++++++++++++++++------ > >>------- > >>> drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 2 + > >>> 3 files changed, 37 insertions(+), 25 deletions(-) > >> > >>I tried out your changes, but unfortunately it seems like there's somet= hing > >wrong. > >>:( I did this: > >> > >>1. Picked your 5 patches to the chromeos-5.15 tree (this series plus > >>[1]) > >> > >>2. Put them on herobrine villager. > >> > >>3. Booted up with no external display plugged in. > >> > >>4. Tried to enable night light in the ChromeOS UI. > >> > >>5. Night light didn't turn on for the internal display. > >> > >> > >>I also tried applying them to the top of msm-next (had to resolve some > >>small conflicts). Same thing, night light didn't work. > >> > >> > >>I thought maybe this was because the Chrome browser hasn't been updated > >>to properly use atomic_check for testing for night light, so I hacked > >>my herobrine device tree to not mark "mdss_dp" as "okay". Now there's _= only_ > >an eDP display. > >>Same thing, night light didn't work. > >> > >> > >>I could only get night light to work for the internal display if I > >>plugged and unplugged an external display in. > >> > >> > >>Is the above the behavior that's expected right now? > >> > >> > >>[1] https://lore.kernel.org/all/1674814487-2112-1-git-send-email- > >>quic_kalyant@quicinc.com/