Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6115043rwr; Mon, 24 Apr 2023 14:05:22 -0700 (PDT) X-Google-Smtp-Source: AKy350aNM4BP1Q7eJPgasfaZwDXMF6dse3gB7cMvt1WqztzlTyq3L8+BFxGAFiPcDOI6/HU7RWLV X-Received: by 2002:a05:6a20:2448:b0:f6:28de:89e1 with SMTP id t8-20020a056a20244800b000f628de89e1mr42602pzc.33.1682370321841; Mon, 24 Apr 2023 14:05:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682370321; cv=none; d=google.com; s=arc-20160816; b=EYHHwj0e/ETrHLqe+EZQEq1BQriMA3UYFCwWzgtFZO2/tBeZ5SxUnuXAiaY4ap4hjl LfA1Npf4BWWVfVgtxAk3LHyi4ltu2ekiV6UTfWF6Hlg9GVMZHASpQwEDEfxWsdt74PXP C8xu2ix11F/N6TCFspAqgt0pq3TgDKGPh4dv0hUOs6EGcjMCQqsO04M7HykUEuo0rjNA T/SEzZ9X5GvUjovl+P0D+/zocYVzuHeeEqv7f+9IEhPjswKdy754gqv6zmTEwEh0VViK 8iKB8m1WQeBobjlVntqJUJVShALN3p3oIC6CggiY+vUNBXyh25rfsV2ugzwoegjPaaoB sTmQ== 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=NvwkZ6kAkQqlU3nvA+hkJSMUBJeAdRt++vxUhCRkN20=; b=RkEcUlEOu/XQhpc+cmKaFkD4u03/Asy8shvBbwF32RIh/EUgrwHXvBtWu1n3qhPH7C B+MSbft+aGMbtL/xmoDLJCW+iyqAf9WmHx0yTbHohpq5jvIdzkW15EaRRny1C7jW6zgH PzyGvdm7yNye9zg4S9sPrvG79BvJ3xLe92glPzy1m2DwOjLucqNlAz97GiFzW5SAKSe6 QEC6+OFOmrsdqRtMP7oGJbX4TVFp2KkEYfox4x1rKHbXS1QdKdnIgbnGIw3ni4ZonG8U w6tEQx3ztZyD0EeDrPrqBe75TuWOumCKkEKO3MrhDana+K7QPa94hE9skF1Qp4dubVKS dIdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hJ7wm7wi; 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 73-20020a63014c000000b004dab94e3f03si11841795pgb.758.2023.04.24.14.05.04; Mon, 24 Apr 2023 14:05:21 -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=hJ7wm7wi; 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 S232202AbjDXUqC (ORCPT + 99 others); Mon, 24 Apr 2023 16:46:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbjDXUqA (ORCPT ); Mon, 24 Apr 2023 16:46:00 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22F8B618E; Mon, 24 Apr 2023 13:45:59 -0700 (PDT) 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 33OIdIxI015572; Mon, 24 Apr 2023 20:45:00 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=NvwkZ6kAkQqlU3nvA+hkJSMUBJeAdRt++vxUhCRkN20=; b=hJ7wm7wiqqn5Wi4DCen2DhP/KrF6ahfr6Z9empRGBr+UNgoxQOjAkdAcJ1hBZXjwewyu /ElGNZFznPzZVCCh95iBZ/cQpnXv5+hpYDCixQEoJqP5JTkB8LDBESeqCh88ty2kjvyN Umgu/hFj3i7IemMAAJWouY3+u/pnMcZTAjXm8oamuywcSngEQoz05S1Gwrgbp9Y95yE0 ejubPOspqru5e+j0aigDIvoHOSlRCpIF2kZxrOdqQzQITTbdrFMzCr4MPQS3IKNJ62Wl BlTeo/yYYWyx4UTkdygKNMJzIRI/MkxLPlyc8Yplx8xX9PKTUrQmtLHWkkHQNBvJcEwx kw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3q5r0usc9n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Apr 2023 20:44:59 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 33OKiwDp026790 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Apr 2023 20:44:58 GMT Received: from [10.110.104.134] (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; Mon, 24 Apr 2023 13:44:56 -0700 Message-ID: <62d78d23-e191-a64f-5c4c-cd2c26217bdf@quicinc.com> Date: Mon, 24 Apr 2023 13:44:55 -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: [PATCH v2 03/17] drm/msm/dpu: Move non-MDP_TOP INTF_INTR offsets out of hwio header Content-Language: en-US To: Marijn Suijten , Rob Clark , Dmitry Baryshkov , "Sean Paul" , David Airlie , Daniel Vetter , Adam Skladowski , Loic Poulain , Bjorn Andersson , "Kuogee Hsieh" , Robert Foss , Vinod Koul , Rajesh Yadav , Jeykumar Sankaran , Neil Armstrong , "Chandan Uddaraju" CC: <~postmarketos/upstreaming@lists.sr.ht>, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , "Jami Kettunen" , , , , , Jordan Crouse , Archit Taneja , Sravanthi Kollukuduru References: <20230411-dpu-intf-te-v2-0-ef76c877eb97@somainline.org> <20230411-dpu-intf-te-v2-3-ef76c877eb97@somainline.org> From: Abhinav Kumar In-Reply-To: <20230411-dpu-intf-te-v2-3-ef76c877eb97@somainline.org> 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-GUID: A3vEk8sHJRjI9vUaRaLuFkhpO-rUaah- X-Proofpoint-ORIG-GUID: A3vEk8sHJRjI9vUaRaLuFkhpO-rUaah- 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-24_11,2023-04-21_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 spamscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 lowpriorityscore=0 clxscore=1015 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304240187 X-Spam-Status: No, score=-3.3 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/17/2023 1:21 PM, Marijn Suijten wrote: > These offsets do not fall under the MDP TOP block and do not fit the > comment right above. Move them to dpu_hw_interrupts.c next to the > repsective MDP_INTF_x_OFF interrupt block offsets. > > Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") > Signed-off-by: Marijn Suijten This change itself is fine, hence Reviewed-by: Abhinav Kumar One comment below. > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 5 ++++- > drivers/gpu/drm/msm/disp/dpu1/dpu_hwio.h | 3 --- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c > index 53326f25e40e..85c0bda3ff90 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c > @@ -15,7 +15,7 @@ > > /* > * Register offsets in MDSS register file for the interrupt registers > - * w.r.t. to the MDP base > + * w.r.t. the MDP base > */ > #define MDP_SSPP_TOP0_OFF 0x0 > #define MDP_INTF_0_OFF 0x6A000 > @@ -24,6 +24,9 @@ > #define MDP_INTF_3_OFF 0x6B800 > #define MDP_INTF_4_OFF 0x6C000 > #define MDP_INTF_5_OFF 0x6C800 > +#define INTF_INTR_EN 0x1c0 > +#define INTF_INTR_STATUS 0x1c4 > +#define INTF_INTR_CLEAR 0x1c8 > #define MDP_AD4_0_OFF 0x7C000 > #define MDP_AD4_1_OFF 0x7D000 > #define MDP_AD4_INTR_EN_OFF 0x41c > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hwio.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hwio.h > index feb9a729844a..5acd5683d25a 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hwio.h > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hwio.h > @@ -21,9 +21,6 @@ > #define HIST_INTR_EN 0x01c > #define HIST_INTR_STATUS 0x020 > #define HIST_INTR_CLEAR 0x024 Even HIST_INTR_*** need to be moved then. > -#define INTF_INTR_EN 0x1C0 > -#define INTF_INTR_STATUS 0x1C4 > -#define INTF_INTR_CLEAR 0x1C8 > #define SPLIT_DISPLAY_EN 0x2F4 > #define SPLIT_DISPLAY_UPPER_PIPE_CTRL 0x2F8 > #define DSPP_IGC_COLOR0_RAM_LUTN 0x300 >