Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3278471rwb; Mon, 7 Aug 2023 10:48:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF8qkpbmt4zCXwSam3I7SWZSVk63V8yfHDXwBiOoHizUF9HbdTXiiKkcJfuJxU5zm+dajpf X-Received: by 2002:a05:6a21:7896:b0:132:bdba:5500 with SMTP id bf22-20020a056a21789600b00132bdba5500mr13706509pzc.39.1691430536112; Mon, 07 Aug 2023 10:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691430536; cv=none; d=google.com; s=arc-20160816; b=G13ljln6fXmPwJ3aOydpCM958SbTIfm9bib+cTZhRkgX5EOIUsg96+7Ybab8wocWEU YX5STSQpo5VMPKAWVAEHzL9quRNnoVAUvEmvucZBhhb+is0SKaNxs+Sv2xB2GvaztxMV ntxNt96TIbmvNMqYlI0e1+vXpVRh7NdO6PlLVMIABPzri5XRS8/9LFBwJTAPdgSJ6Ttq uQ1v9Rf0xW8Z4S0AR26w9PnMWax3bDswgUzRoGIn05GluTPhw31uyicx/VUOnJFj7vLZ ofiBrEqXdSpG0Whhgl8SGWLIw4PuBV4vQQxWTLrPyK+Z3nuQlZ2ZqwTHJwtx4c5CChl0 LGqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=YTG8pqiDjx54HGbJdnw/kFNLmHr+UKhKaxMpHQBP+xs=; fh=+AUzojpHLUT7o4Lq5ktDYJb/Hmt7l2vYEzWXtf4c77I=; b=K1Lb4wHpS+tmRrTXg/lW1Fa2bIm/MgfnJxUtMAxXe2VCqD4C0qg0JQY+mc9bozxuRA 7TIE8cTjQQ7Rrg2DOsybqf/a5rbDpQoC0+QxUkb38zclcT9dx/RbcOdX3t8hA6V922pk PuZuZL33AXQLjPWxnLaRKlh8szLZKAu8r6vhOij74crGMWlxJ3xPNvGuiav/XQAbn5V3 2AloGQmglL/xVXmgrKZq0l/1yIJrV05puLXKWB4xhfV2zpUKJHwJvOgOtuan0c+ImvJm 8w+fNk3C3rwiE2+qJx4FVFBUFGoaSmNYIXlK1yx8bckIH3UhlUioigGR6tkM9dnaJA0a 5OZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="B/VSqB/J"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 21-20020a630c55000000b00564a1716ebbsi5873883pgm.697.2023.08.07.10.48.37; Mon, 07 Aug 2023 10:48:56 -0700 (PDT) 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="B/VSqB/J"; 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 S231759AbjHGQlR (ORCPT + 99 others); Mon, 7 Aug 2023 12:41:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230517AbjHGQlO (ORCPT ); Mon, 7 Aug 2023 12:41:14 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C501D10CF; Mon, 7 Aug 2023 09:41:13 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 377AtCiw002788; Mon, 7 Aug 2023 16:39:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=YTG8pqiDjx54HGbJdnw/kFNLmHr+UKhKaxMpHQBP+xs=; b=B/VSqB/J8LEWkylDUhPxaIIsRvZzXx111pf+V++ZUADzLbpkGiO6+AE2h5R1OUn4XQej WAwC040/QwmLYfviJMnzlDkheEPTtzzW5zZQZbCrNlpD9AnkYSEFEzz9YfX5CvXjjNG+ 7ZqvXwy/I11BsdGFibnk4r4C/kHZaJRqbFMQYTxna8kaPNThBE5d6QCgylI63bt83Go/ VE4QhUPYvq37i5hg5vaML5BTftOv/XSRrnHQgXQrkROqutywmQdpvE+R/1igGZRnpSBW 6gArJ/LYP/mWLdNa5tfe5VpwrqoxeJdeOpekBW3Em7ECdbnIRiyAyqDbkDl0ogck7ACZ zQ== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3saxbbrtm2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 16:39:52 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 377Gdqgh003908 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 7 Aug 2023 16:39:52 GMT Received: from [10.71.109.168] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Mon, 7 Aug 2023 09:39:51 -0700 Message-ID: Date: Mon, 7 Aug 2023 09:39:51 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC v5 05/10] drm/atomic: Add solid fill data to plane state dump Content-Language: en-US To: Dmitry Baryshkov , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Clark , Sean Paul , Marijn Suijten CC: , , , , , , , , , , References: <20230728-solid-fill-v5-0-053dbefa909c@quicinc.com> <20230728-solid-fill-v5-5-053dbefa909c@quicinc.com> From: Jessica Zhang In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 3_RV642YJD0XAaI07BJ518HtWRRI-VwO X-Proofpoint-GUID: 3_RV642YJD0XAaI07BJ518HtWRRI-VwO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-07_18,2023-08-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 bulkscore=0 spamscore=0 clxscore=1015 impostorscore=0 malwarescore=0 phishscore=0 priorityscore=1501 adultscore=0 suspectscore=0 mlxscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308070154 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org On 7/28/2023 5:05 PM, Dmitry Baryshkov wrote: > On 28/07/2023 20:02, Jessica Zhang wrote: >> Add solid_fill property data to the atomic plane state dump. >> >> Signed-off-by: Jessica Zhang >> --- >>   drivers/gpu/drm/drm_atomic.c |  4 ++++ >>   drivers/gpu/drm/drm_plane.c  | 10 ++++++++++ >>   include/drm/drm_plane.h      |  3 +++ >>   3 files changed, 17 insertions(+) >> >> diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c >> index c38014abc590..1ee7d08041bc 100644 >> --- a/drivers/gpu/drm/drm_atomic.c >> +++ b/drivers/gpu/drm/drm_atomic.c >> @@ -717,6 +717,10 @@ static void drm_atomic_plane_print_state(struct >> drm_printer *p, >>       drm_printf(p, "\tfb=%u\n", state->fb ? state->fb->base.id : 0); >>       if (state->fb) >>           drm_framebuffer_print_info(p, 2, state->fb); >> +    drm_printf(p, "\tsolid_fill=%u\n", >> +            state->solid_fill_blob ? state->solid_fill_blob->base.id >> : 0); >> +    if (state->solid_fill_blob) >> +        drm_plane_solid_fill_print_info(p, 2, state); >>       drm_printf(p, "\tcrtc-pos=" DRM_RECT_FMT "\n", >> DRM_RECT_ARG(&dest)); >>       drm_printf(p, "\tsrc-pos=" DRM_RECT_FP_FMT "\n", >> DRM_RECT_FP_ARG(&src)); >>       drm_printf(p, "\trotation=%x\n", state->rotation); >> diff --git a/drivers/gpu/drm/drm_plane.c b/drivers/gpu/drm/drm_plane.c >> index 4188b3491625..009d3ebd9b39 100644 >> --- a/drivers/gpu/drm/drm_plane.c >> +++ b/drivers/gpu/drm/drm_plane.c >> @@ -1494,11 +1494,21 @@ const char >> *drm_plane_get_pixel_source_name(enum drm_plane_pixel_source pixel_so >>           return "NONE"; >>       case DRM_PLANE_PIXEL_SOURCE_FB: >>           return "fb"; >> +    case DRM_PLANE_PIXEL_SOURCE_SOLID_FILL: >> +        return "solid_fill"; >>       default: >>           return ""; >>       } >>   } > > This chunk should be a part of the previous commit. Or dropped > completely once DRM_ENUM_NAME_FN is used. > > The rest LGTM. Hi Dmitry, Sounds good -- will drop this. Thanks, Jessica Zhang > >> +void drm_plane_solid_fill_print_info(struct drm_printer *p, unsigned >> int indent, >> +                     const struct drm_plane_state *state) >> +{ >> +    drm_printf_indent(p, indent, "r=0x%x\n", state->solid_fill.r); >> +    drm_printf_indent(p, indent, "g=0x%x\n", state->solid_fill.g); >> +    drm_printf_indent(p, indent, "b=0x%x\n", state->solid_fill.b); >> +} >> + >>   /** >>    * drm_plane_get_damage_clips - Returns damage clips. >>    * @state: Plane state. >> diff --git a/include/drm/drm_plane.h b/include/drm/drm_plane.h >> index 234fee3d5a95..303f01f0588c 100644 >> --- a/include/drm/drm_plane.h >> +++ b/include/drm/drm_plane.h >> @@ -1000,6 +1000,9 @@ drm_plane_get_damage_clips_count(const struct >> drm_plane_state *state); >>   struct drm_mode_rect * >>   drm_plane_get_damage_clips(const struct drm_plane_state *state); >> +void drm_plane_solid_fill_print_info(struct drm_printer *p, unsigned >> int indent, >> +                     const struct drm_plane_state *state); >> + >>   int drm_plane_create_scaling_filter_property(struct drm_plane *plane, >>                            unsigned int supported_filters); >> > > -- > With best wishes > Dmitry >