Message ID | 1675863724-28412-1-git-send-email-quic_kalyant@quicinc.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3462636wrn; Wed, 8 Feb 2023 05:45:50 -0800 (PST) X-Google-Smtp-Source: AK7set8vNO6CP760IKj4Eq9o78YsN7rZIOmH105/cP5BdyJa289OluxsAkVPTfNbwqzYiil0jl/3 X-Received: by 2002:a17:90a:f60a:b0:230:9ae4:b5e2 with SMTP id bw10-20020a17090af60a00b002309ae4b5e2mr6654749pjb.0.1675863950167; Wed, 08 Feb 2023 05:45:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675863950; cv=none; d=google.com; s=arc-20160816; b=KnFC5xnxDV46CKHzp8t58bYMV8OhpRVMUkeQxSgSlaA3tcL18MDk/FUgQ5BjqbVtQN BKjduLJEviIT/XQAoy7abMCcWnZNffi3OhpPNMGKGGFNgGUaiVwRrCJl3pgzBn9quR3y U8H3x0yRWP28AqQuAVlxFuGrHiAJdS7ddmJwf83CIk6kILR4bHKMDMlnUV+uublAK4AV HFdnLSOrS4uOusLs9g1ZkgJNR4woDioa/Kj6KYS0KrTR21DFPHXVRE2Yo1w37rMtILOA w68W2BJAJgMZUDAXYhaYlbt4L7vgdDpLsnxARjdgaFzOOrM7gKAUjUdNyWjiNfNmBI7J wGig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=NkCxbS78vLly3nZijdZogjZfs3u+YMXxzwdQ7R3OUzQ=; b=EmfStYcFvnn40yM4iTdg9coOqVcJUxfoTu4UhSp3l2mMclVpIkkyCVQA06QIuS8XaU OBUdXpUvJ/3pZDnNdWE0NndtktfeZMud0IuG4z9sfMBt0iOlkbKcevgvgsxy2piuSjqN JS7Mh5vkyHitfXGMYZb2e52hK+scPXU0nc3Ws2Q2xVGWm7jnDD3+Ugrv+GTq8WKDdq34 maa5w+zbTArORXS1VrvcH9xFxAw3dr8ZKhszR73HlgY1fPlA5ZxH8Y1ZApI0ypVAXORu dk2GY9Tsm3lR+kaK0tDTKIyD4EvvJjrmbZbdsIxdgKCzG/6t+IpqqvMCaCnleO8zaZ8M Lvgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EMDg5q7X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020a17090a694300b002290cb1ca2csi2322065pjm.177.2023.02.08.05.45.37; Wed, 08 Feb 2023 05:45:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EMDg5q7X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231348AbjBHNmX (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Wed, 8 Feb 2023 08:42:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbjBHNmV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 8 Feb 2023 08:42:21 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 765592CFFC; Wed, 8 Feb 2023 05:42:20 -0800 (PST) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 318BDHPZ001389; Wed, 8 Feb 2023 13:42:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id; s=qcppdkim1; bh=NkCxbS78vLly3nZijdZogjZfs3u+YMXxzwdQ7R3OUzQ=; b=EMDg5q7XXXgWFAqDVeHA9O4iiVRb6lFHeH/fgACLcu1iZJNRde5OnAkDjIxqF+g6qABH 27oGZ5gxdDGtPDQNg3O4nN2+StTRh5l59Aq8xdrDEqi9xh0dlPdZqq8pM3jcjtN/DwUm Lb3Y6vqNRpERndC22dCje2OHTeHQa8p8Do5mbOKmfY3GygYggesMaTKLwHW3qERKhGUT GHk33k7bOO18SFETkWeMNRJ/odA1VLN+WGNY4fGwAGlh/Gr49l3Lo3h8Zk5dyKzD6CBd cPoQzWCXRlICou9ZlqzOpNMtmcnSVtS8gSV4Xga2EFiN2eksILUdc2SZmS6aoBBCnhpI mg== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nm1yf1gt0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 Feb 2023 13:42:14 +0000 Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 318DgArt025358; Wed, 8 Feb 2023 13:42:10 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 3nhgekjeqn-1; Wed, 08 Feb 2023 13:42:10 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 318DgAkL025338; Wed, 8 Feb 2023 13:42:10 GMT Received: from kalyant-linux.qualcomm.com (kalyant-linux.qualcomm.com [10.204.66.210]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 318Dg9Rq025333; Wed, 08 Feb 2023 13:42:10 +0000 Received: by kalyant-linux.qualcomm.com (Postfix, from userid 94428) id 4B7614BE0; Wed, 8 Feb 2023 05:42:09 -0800 (PST) From: Kalyan Thota <quic_kalyant@quicinc.com> To: dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org Cc: Kalyan Thota <quic_kalyant@quicinc.com>, linux-kernel@vger.kernel.org, robdclark@chromium.org, dianders@chromium.org, swboyd@chromium.org, quic_vpolimer@quicinc.com, dmitry.baryshkov@linaro.org, quic_abhinavk@quicinc.com, marijn.suijten@somainline.org Subject: [PATCH v3 0/4] Reserve DSPPs based on user request Date: Wed, 8 Feb 2023 05:42:00 -0800 Message-Id: <1675863724-28412-1-git-send-email-quic_kalyant@quicinc.com> X-Mailer: git-send-email 2.7.4 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: d6N19kcpsjKIYG4VmY40cCy2Xg6iyyVG X-Proofpoint-GUID: d6N19kcpsjKIYG4VmY40cCy2Xg6iyyVG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-02-08_05,2023-02-08_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 impostorscore=0 mlxscore=0 phishscore=0 clxscore=1015 mlxlogscore=693 suspectscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302080120 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE, SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757270717089009225?= X-GMAIL-MSGID: =?utf-8?q?1757270717089009225?= |
Series |
Reserve DSPPs based on user request
|
|
Message
Kalyan Thota
Feb. 8, 2023, 1:42 p.m. UTC
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(-)
Comments
Hi, On Wed, Feb 8, 2023 at 5:42 AM Kalyan Thota <quic_kalyant@quicinc.com> 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 something 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/
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-12655-1-git-send-email-quic_kalyant@quicinc.com/ Thanks, Kalyan >-----Original Message----- >From: Doug Anderson <dianders@chromium.org> >Sent: Wednesday, February 8, 2023 10:44 PM >To: Kalyan Thota (QUIC) <quic_kalyant@quicinc.com> >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) <quic_vpolimer@quicinc.com>; >dmitry.baryshkov@linaro.org; Abhinav Kumar (QUIC) ><quic_abhinavk@quicinc.com>; 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 <quic_kalyant@quicinc.com> >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 something 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/
Hi, On Wed, Feb 8, 2023 at 8:16 PM Kalyan Thota <kalyant@qti.qualcomm.com> wrote: > > 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-12655-1-git-send-email-quic_kalyant@quicinc.com/ I didn't pick v11 of it like you link, but I did pick v12 of the same patch. In my response I said that I picked 5 patches, this series plus [1] where [1] is: [1] https://lore.kernel.org/all/1674814487-2112-1-git-send-email-quic_kalyant@quicinc.com/ > Thanks, > Kalyan > > >-----Original Message----- > >From: Doug Anderson <dianders@chromium.org> > >Sent: Wednesday, February 8, 2023 10:44 PM > >To: Kalyan Thota (QUIC) <quic_kalyant@quicinc.com> > >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) <quic_vpolimer@quicinc.com>; > >dmitry.baryshkov@linaro.org; Abhinav Kumar (QUIC) > ><quic_abhinavk@quicinc.com>; 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 <quic_kalyant@quicinc.com> > >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 something 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/
Kindly ignore my previous email. Sent too early !! We have tested the changes on top of tip: https://chromium.googlesource.com/chromiumos/third_party/kernel/+log/refs/heads/chromeos-5.15 + 5 CTM patches ( that you have quoted ) We didn’t see the issue that you have reported on herobrine. Night 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. Thanks, Kalyan >-----Original Message----- >From: Kalyan Thota >Sent: Thursday, February 9, 2023 9:47 AM >To: Doug Anderson <dianders@chromium.org>; Kalyan Thota (QUIC) ><quic_kalyant@quicinc.com> >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) <quic_vpolimer@quicinc.com>; >dmitry.baryshkov@linaro.org; Abhinav Kumar (QUIC) ><quic_abhinavk@quicinc.com>; 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-12655- >1-git-send-email-quic_kalyant@quicinc.com/ > >Thanks, >Kalyan > >>-----Original Message----- >>From: Doug Anderson <dianders@chromium.org> >>Sent: Wednesday, February 8, 2023 10:44 PM >>To: Kalyan Thota (QUIC) <quic_kalyant@quicinc.com> >>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) <quic_vpolimer@quicinc.com>; >>dmitry.baryshkov@linaro.org; Abhinav Kumar (QUIC) >><quic_abhinavk@quicinc.com>; 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 <quic_kalyant@quicinc.com> >>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 something >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/
Hi, On Thu, Feb 9, 2023 at 3:26 AM Kalyan Thota <kalyant@qti.qualcomm.com> wrote: > > Kindly ignore my previous email. Sent too early !! > > We have tested the changes on top of tip: https://chromium.googlesource.com/chromiumos/third_party/kernel/+log/refs/heads/chromeos-5.15 + 5 CTM patches ( that you have quoted ) > We didn’t see the issue that you have reported on herobrine. Night 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 <dianders@chromium.org>; Kalyan Thota (QUIC) > ><quic_kalyant@quicinc.com> > >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) <quic_vpolimer@quicinc.com>; > >dmitry.baryshkov@linaro.org; Abhinav Kumar (QUIC) > ><quic_abhinavk@quicinc.com>; 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-12655- > >1-git-send-email-quic_kalyant@quicinc.com/ > > > >Thanks, > >Kalyan > > > >>-----Original Message----- > >>From: Doug Anderson <dianders@chromium.org> > >>Sent: Wednesday, February 8, 2023 10:44 PM > >>To: Kalyan Thota (QUIC) <quic_kalyant@quicinc.com> > >>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) <quic_vpolimer@quicinc.com>; > >>dmitry.baryshkov@linaro.org; Abhinav Kumar (QUIC) > >><quic_abhinavk@quicinc.com>; 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 <quic_kalyant@quicinc.com> > >>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 something > >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/