Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp895758rwe; Fri, 14 Apr 2023 11:05:47 -0700 (PDT) X-Google-Smtp-Source: AKy350Yw/WjQNyzvEThRtjd7Z1S9kkxYjZHwPq3fN4aj3xe5anvW7UWkGJQ3ym7kr5NnaNtEujn5 X-Received: by 2002:a05:6a20:6d86:b0:ec:236b:2fce with SMTP id gl6-20020a056a206d8600b000ec236b2fcemr5626227pzb.35.1681495546766; Fri, 14 Apr 2023 11:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681495546; cv=none; d=google.com; s=arc-20160816; b=XeygyWG4ILeTEPJPCtS8/pLFQFWTzb7EQT6F/64FA69BYRHIIw4JuzH3xCZSR6utcN bqNlSzBqeTywBMHIuqSx/C/mDBfnJtIVgm7OO2zFWKi9sAalsjGwhHO0k9vTq0P3REA4 Wu+lOgalSCtTm33eaLjNiq9NV1QQRPMyW69AlZ7wFGjFphwUdpVkhjbj0qAx++YXwEf+ vBnBUqj6qRWNSXR83xSstPFLtk9mj809GM2xV0oAflYbP7McNwFgYKRshI7Ihcfv7T8Q d6ovMArZwNa8a1Rv7s82U096xYgSZ/V/E/ARyusxefFtf6HMciOg3M9go8kZBGL6oS8d BpBw== 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=Tios2Y7npBZ6qwjO6Disa8Qx5hEM+baQi0KFCeAxbcY=; b=Kl6Rsh4nDRcc8FE+QZaGwKnVsVpqk+TFGqxEFGBnOe/U4Ugdek6jtQtkV3dnKBcAgz zcdwl/+E2a2c3JRNHyaXDM8YAEwi1GCW0AQFmCm1hClsUyxy2T6AeRTPYRMrYgK+h+Ol S43bSTTPKb/fkv6IjTpQsnMRqYniq6Q2AJTMzr/oG5o9rdcC2JAAsfdoBOy5QgYJ9x+S F/LRgtqEWOqm5OGgVjh/VeqEZMPX1zY+5OAwUfUPXnnvfw7q3WA7+OTeCU6liMnwN4JC dxDud1Q+R3OtqQQnVAEMxRvDXI30eReGdyeytkBdVJLd4ZzzQeFc/leZxy3T9yajH3pa fCZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JRgsfLlB; 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 q13-20020a635c0d000000b0050fa6fbde45si5250934pgb.504.2023.04.14.11.05.29; Fri, 14 Apr 2023 11:05:46 -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=JRgsfLlB; 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 S229822AbjDNR6E (ORCPT + 99 others); Fri, 14 Apr 2023 13:58:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjDNR6D (ORCPT ); Fri, 14 Apr 2023 13:58:03 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14E437D91; Fri, 14 Apr 2023 10:58:01 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33EEdnvq027916; Fri, 14 Apr 2023 17:57:48 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=Tios2Y7npBZ6qwjO6Disa8Qx5hEM+baQi0KFCeAxbcY=; b=JRgsfLlBoW5DWcGP/9epXOMuzYVU6RqHUhaHLapjp3l4ZMy2T+P6OITWy+JXbaWvLbr4 CwpgveYAyxsbHGVnEJL5zIGIr4T2eRcro7KiyRJWWJnaK0uSiWxkBM5nEGD6c5HFA/c/ vgKNWyijPJJ9upPNXEJvPNMEnEqnTH/s/bLb3TvQVxiyt1vx8ANt+IKcuIPI57FSlh5n mSS/hnSZco5dhV8ky9f1/ItBm3GoMSDl9pyW9ktwxBcFhn8kzg4izSXd0WCuxeRbt1Pr mF1BDzWEaO/70YeX34MxweyD2gHWXxKsXqSTJ/A5S9Q1XucGDH3Upn/hhu6XvIjYlICW Uw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pxx8ussgp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Apr 2023 17:57:48 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 33EHvlu7002529 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Apr 2023 17:57:47 GMT Received: from [10.110.73.215] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Fri, 14 Apr 2023 10:57:45 -0700 Message-ID: <82bf6167-d621-1a4e-86f0-7a8567347722@quicinc.com> Date: Fri, 14 Apr 2023 10:57:45 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [Freedreno] [PATCH] drm/msm/dpu: always program dsc active bits Content-Language: en-US To: Marijn Suijten CC: , , , , , , , , , , , , , Kuogee Hsieh , , References: <1681247095-1201-1-git-send-email-quic_khsieh@quicinc.com> <83f9a438-52c5-83f3-1767-92d16518d8f0@quicinc.com> <049697ba-d997-62c0-6e21-ffb287ac3100@quicinc.com> <6s42sutrd2c6tme46t6tchd6y6wonmpwokseqqz2frkrfext7v@vnv44tzwyva4> From: Abhinav Kumar In-Reply-To: <6s42sutrd2c6tme46t6tchd6y6wonmpwokseqqz2frkrfext7v@vnv44tzwyva4> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: B8MBCU2YWbpysRyWwHZbqieLfTBLlxUp X-Proofpoint-GUID: B8MBCU2YWbpysRyWwHZbqieLfTBLlxUp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-14_09,2023-04-14_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 suspectscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxlogscore=946 impostorscore=0 mlxscore=0 bulkscore=0 malwarescore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304140158 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 4/14/2023 10:34 AM, Marijn Suijten wrote: > On 2023-04-14 08:48:43, Abhinav Kumar wrote: >> >> On 4/14/2023 12:35 AM, Marijn Suijten wrote: >>> On 2023-04-12 10:33:15, Abhinav Kumar wrote: >>> [..] >>>>> What happens if a device boots without DSC panel connected? Will >>>>> CTL_DSC_FLUSH be zero and not (unnecessarily, I assume) flush any of the >>>>> DSC blocks? Or could this flush uninitialized state to the block? >>>>> >>>> >>>> If we bootup without DSC panel connected, the kernel's cfg->dsc will be >>>> 0 and default register value of CTL_DSC_FLUSH will be 0 so it wont flush >>>> any DSC blocks. >>> >>> Ack, that makes sense. However, if I connect a DSC panel, then >>> disconnect it (now the register should be non-zero, but cfg->dsc will be >>> zero), and then replug a non-DSC panel multiple times, it'll get flushed >>> every time because we never clear CTL_DSC_FLUSH after that? >>> >> >> If we remove it after kernel starts, that issue is there even today >> without that change because DSI is not a hot-pluggable display so a >> teardown wont happen when you plug out the panel. How will cfg->dsc be 0 >> then? In that case, its not a valid test as there was no indication to >> DRM that display was disconnected so we cannot tear it down. > > The patch description itself describes hot-pluggable displays, which I > believe is the upcoming DSC support for DP? You ask how cfg->dsc can > become zero, but this is **exactly** what the patch description > describes, and what this patch is removing the `if` for. If we are not > allowed to discuss that scenario because it is not currently supported, > neither should we allow to apply this patch. > > With that in mind, can you re-answer the question? > I didnt follow what needs to be re-answered. This patch is being sent in preparation of the DSC over DP support. This does not handle non-hotpluggable displays. I do not think dynamic switch between DSC and non-DSC of non-hotpluggable displays needs to be discussed here as its not handled at all with or without this patch. We wanted to get early reviews on the patch. If you want this patch to be absorbed when rest of DSC over DP lands, I have no concerns with that. I wont pick this up for fixes and we will land this together with the rest of DP over DSC. > - Marijn