Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6202712iob; Tue, 10 May 2022 12:44:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyC58yCLSpPk9UiD8MMlN3nUKqSjQwSpcCw3aeDmv513LDLvL4u5+qQCobBxKUd9LW1Phg3 X-Received: by 2002:a17:902:d48a:b0:15e:a142:a9e8 with SMTP id c10-20020a170902d48a00b0015ea142a9e8mr22968566plg.129.1652211852710; Tue, 10 May 2022 12:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652211852; cv=none; d=google.com; s=arc-20160816; b=rTn+fAhReutZD8EXpElJ5SZWHiQmua6BIWDICrv1+M9u+PEgY7/QQPX0OBptoVVp0d leZa8tV0dX2dhf9zR9lS0KZCTnm54UeO5SPQN6XYZ+akOj7VktJaGdizKfl9CpncZmQV lZ8D56GGxU/18xhY4nx78Y9YFiQQvHvt0YN++a6HuCxOADPfuym2281z19mqybqPKK+I UGFDkTTSAY3axCKHrTk4vnT1XCiyQr20C3NDGiNPdUNcY3q/4GkNLhtWPvI6v4z0DU81 PjmwJaqL00Q434twiyVqA0VhiA0ClFaIEmfOH54+Vq6LnOj7rW1pS9D8EnQgKzS0HwCl rpLg== 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=FkyvDe+lg/6UUzc3a3RX0uzSgZKO1lAGbr6Xu1sBYnI=; b=dmWdt/Lug9R9yaLt0yLF9pG02OR2+fRsf1F4Zzk3SjJYLOc8DOEbZWQrZDn3z1fW4w XR08vw7rdbDXZSpPxMflGYqIIpmX7bnobXafGIVk+ecKKbOXAurnVVb0yDjl9ZNQdF/+ ege+O+jCVrEte7jv8Yl5ypEg1rlZmFocwSEamj8RruaCBSI056YFsGY+1cIpIlt/c7W6 LZfwYsIgoUDoLIxoyUHUrjl1mN2bdAIpvXH8qXqKP7n9nnjcD7fiv0Y6DW7jsy2uotNi wlGZ6QgmiUpQ6hOjIt5TUXbhUlYgmi4IngeegsFwWgrd9R/cf7Uq2Z9NyECiUjfcRCs9 Ls2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=kQMsueoN; 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 s2-20020a170903200200b0015ce8cd506asi3450771pla.325.2022.05.10.12.43.57; Tue, 10 May 2022 12:44:12 -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=qcdkim header.b=kQMsueoN; 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 S1348330AbiEJRnq (ORCPT + 99 others); Tue, 10 May 2022 13:43:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245615AbiEJRnn (ORCPT ); Tue, 10 May 2022 13:43:43 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C295E296BD5; Tue, 10 May 2022 10:39:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1652204386; x=1683740386; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=FkyvDe+lg/6UUzc3a3RX0uzSgZKO1lAGbr6Xu1sBYnI=; b=kQMsueoNZK5SbvPlsCBOIoNIMgo0Sos82mEJNrLRT2dUBnbl26HCQ8M1 tAImu4APL3OuCOfA7VD1M/UzJoADMERNT2K62DD53EWD03Q4w4DEoVmRT 8mqBhqt29gmwXu7K/tGMQhHsiOS7ioq7Vdol3OpeI0T1QhpGCfzUvrQV5 4=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 10 May 2022 10:39:45 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2022 10:39:45 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 10 May 2022 10:39:45 -0700 Received: from [10.38.241.82] (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.22; Tue, 10 May 2022 10:39:42 -0700 Message-ID: Date: Tue, 10 May 2022 10:39:40 -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] drm/msm: Fix fb plane offset calculation Content-Language: en-US To: Rob Clark , CC: Rob Clark , David Airlie , , open list , Sean Paul , Dmitry Baryshkov , References: <20220510165216.3577068-1-robdclark@gmail.com> From: Abhinav Kumar In-Reply-To: <20220510165216.3577068-1-robdclark@gmail.com> 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-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 5/10/2022 9:52 AM, Rob Clark wrote: > From: Rob Clark > > The offset got dropped by accident. > > Fixes: d413e6f97134 ("drm/msm: Drop msm_gem_iova()") > Signed-off-by: Rob Clark Reviewed-by: Abhinav Kumar > --- > drivers/gpu/drm/msm/msm_fb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/msm/msm_fb.c b/drivers/gpu/drm/msm/msm_fb.c > index 362775ae50af..4269da268a4a 100644 > --- a/drivers/gpu/drm/msm/msm_fb.c > +++ b/drivers/gpu/drm/msm/msm_fb.c > @@ -118,7 +118,7 @@ uint32_t msm_framebuffer_iova(struct drm_framebuffer *fb, > struct msm_gem_address_space *aspace, int plane) > { > struct msm_framebuffer *msm_fb = to_msm_framebuffer(fb); > - return msm_fb->iova[plane]; > + return msm_fb->iova[plane] + fb->offsets[plane]; > } > > struct drm_gem_object *msm_framebuffer_bo(struct drm_framebuffer *fb, int plane)