Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21457423ybl; Mon, 6 Jan 2020 05:05:39 -0800 (PST) X-Google-Smtp-Source: APXvYqx3Qf3VbRTHmF3MIRlgScdOuK4L3w2JIm5BPxKNnLL+LnpqSm9RKNqbEF3cEdz9fMIYtREZ X-Received: by 2002:a9d:60c4:: with SMTP id b4mr93287510otk.166.1578315939210; Mon, 06 Jan 2020 05:05:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578315939; cv=none; d=google.com; s=arc-20160816; b=RVGfZ85kCnbbF/9ySgVrlPWLxCbJ8yaRwplhJl1+5T6qhrbSUeFL7q6tyXqZWrwHpM SBvL7JQyOfBdo2ADUE1yTqAxzNSPpswLqys/Sw1dXUJ7DHRbHqYKtJF9sFY3VI84AcS7 QXfV7d+zcJzUoKcrIQS40STFDQ+w5hCEjnhfzxSw+eHsbQq9CCbvBIrwF2a3+DJ1E3N+ MbmM61KfOkcJIbkm4VszSLMF+UGUW6JWsfQamVH02hx7Cbxis4voyl9sJP8vXLQazGTh I1Q+wvqUKQJB8Hbba3GeGr/eI+rvMvrOAyYTe9Xh9Wkk+mEtudZdLx2Sj4YLcm7Z09Ru Qlxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=6mbOLG3UBrP5Ik3kih5Nk1hN5b3oKe6AqlzZ9OkLjkM=; b=Bh5zJgsdI5045epl7L2AARsKUkLMUm+zSR9bN+Oieziz+3b7/DvujutfNCC7aqGVRe JUH5BnAGxSyMeQcecBjc9C+dAvoMlMFo3cBfTukqqXpEjqSARwU5mUnpbXEvfP3TtWZF ybnAcFxARGh572eExfd5rnKUIgP3uhwKAe+i6oV+xctOa9OIzx7Y+Dzh9t4EwBMycxKF 7gl1PtaXKazlREoMUTC0tzOXVVXJJ7wSw04hBHtg49C99mfn9ZLfLNXMMdIvZV5W0WNQ fV5tzxFT2Ythv858aWcuqE2vEUR68/Yw/bZq1GJFJ/F8/kIGT+GtUXEwltSxeYvYuBLm 0MmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j7si35547775otp.323.2020.01.06.05.05.17; Mon, 06 Jan 2020 05:05:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726545AbgAFNET (ORCPT + 99 others); Mon, 6 Jan 2020 08:04:19 -0500 Received: from mx2.suse.de ([195.135.220.15]:45146 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726173AbgAFNET (ORCPT ); Mon, 6 Jan 2020 08:04:19 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id C022DAF33; Mon, 6 Jan 2020 13:04:16 +0000 (UTC) Subject: Re: [PATCH] drm/hisilicon: get the BO from drm_fb rather than hibmc_fb To: Tian Tao , puck.chen@hisilicon.com, airlied@linux.ie, daniel@ffwll.ch, kraxel@redhat.com, alexander.deucher@amd.com, tglx@linutronix.de, dri-devel@lists.freedesktop.org, xinliang.liu@linaro.org, linux-kernel@vger.kernel.org Cc: linuxarm@huawei.com References: <1577775059-61116-1-git-send-email-tiantao6@hisilicon.com> From: Thomas Zimmermann Autocrypt: addr=tzimmermann@suse.de; keyd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WGKdDegUR5BkDfDg5O/FISymJBHx2Dyoklv5g4BzkgqTqwmaYzsl8UxZKvbaxq0zb ehDda8lvhFXodNFMAgTLJlLuDYOGLK2AwbrS3Sp0AEbkpdJBb44qVlGm5bApZouHeJ/+n+7r 12+lqdsAEQEAAYkBPAQYAQgAJhYhBHIX+6yM6c9jRKFo5WgNwR1TC3ojBQJbOdLgAhsMBQkD wmcAAAoJEGgNwR1TC3ojpfcIAInwP5OlcEKokTnHCiDTz4Ony4GnHRP2fXATQZCKxmu4AJY2 h9ifw9Nf2TjCZ6AMvC3thAN0rFDj55N9l4s1CpaDo4J+0fkrHuyNacnT206CeJV1E7NYntxU n+LSiRrOdywn6erjxRi9EYTVLCHcDhBEjKmFZfg4AM4GZMWX1lg0+eHbd5oL1as28WvvI/uI aMyV8RbyXot1r/8QLlWldU3NrTF5p7TMU2y3ZH2mf5suSKHAMtbE4jKJ8ZHFOo3GhLgjVrBW HE9JXO08xKkgD+w6v83+nomsEuf6C6LYrqY/tsZvyEX6zN8CtirPdPWu/VXNRYAl/lat7lSI 3H26qrE= Message-ID: Date: Mon, 6 Jan 2020 14:04:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <1577775059-61116-1-git-send-email-tiantao6@hisilicon.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jDkp0ZaMxe11w1NKzULpN4UxIzDIY0f0J" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jDkp0ZaMxe11w1NKzULpN4UxIzDIY0f0J Content-Type: multipart/mixed; boundary="RpyWvJt5w4Wff8aWgFzH8vjM8yD1xzhev"; protected-headers="v1" From: Thomas Zimmermann To: Tian Tao , puck.chen@hisilicon.com, airlied@linux.ie, daniel@ffwll.ch, kraxel@redhat.com, alexander.deucher@amd.com, tglx@linutronix.de, dri-devel@lists.freedesktop.org, xinliang.liu@linaro.org, linux-kernel@vger.kernel.org Cc: linuxarm@huawei.com Message-ID: Subject: Re: [PATCH] drm/hisilicon: get the BO from drm_fb rather than hibmc_fb References: <1577775059-61116-1-git-send-email-tiantao6@hisilicon.com> In-Reply-To: <1577775059-61116-1-git-send-email-tiantao6@hisilicon.com> --RpyWvJt5w4Wff8aWgFzH8vjM8yD1xzhev Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi Am 31.12.19 um 07:50 schrieb Tian Tao: > since we can get the BO from drm_fb rather than hibmc_fb,do not need > the hibmc_fb.so we delete the local variable hibmc_fb. >=20 > Signed-off-by: Tian Tao > Signed-off-by: Gong junjie > --- > drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) >=20 > diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c b/drivers/g= pu/drm/hisilicon/hibmc/hibmc_drm_de.c > index 6bf4334..12b38ac 100644 > --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c > +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c > @@ -105,14 +105,12 @@ static void hibmc_plane_atomic_update(struct drm_= plane *plane, > s64 gpu_addr =3D 0; > unsigned int line_l; > struct hibmc_drm_private *priv =3D plane->dev->dev_private; > - struct hibmc_framebuffer *hibmc_fb; > struct drm_gem_vram_object *gbo; > =20 > if (!state->fb) > return; > =20 > - hibmc_fb =3D to_hibmc_framebuffer(state->fb); > - gbo =3D drm_gem_vram_of_gem(hibmc_fb->obj); > + gbo =3D drm_gem_vram_of_gem(state->fb->obj[0]); > =20 > gpu_addr =3D drm_gem_vram_offset(gbo); > if (WARN_ON_ONCE(gpu_addr < 0)) >=20 Thanks for the patch. This has meanwhile been fixed as part of commit 3e10d2ffd245f996c36f87b0a8027a719e6135c3 Author: Thomas Zimmermann Date: Tue Dec 3 09:38:16 2019 +0100 drm/hisilicon/hibmc: Replace struct hibmc_framebuffer with generic code Best regards Thomas --=20 Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany (HRB 36809, AG N=C3=BCrnberg) Gesch=C3=A4ftsf=C3=BChrer: Felix Imend=C3=B6rffer --RpyWvJt5w4Wff8aWgFzH8vjM8yD1xzhev-- --jDkp0ZaMxe11w1NKzULpN4UxIzDIY0f0J Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEchf7rIzpz2NEoWjlaA3BHVMLeiMFAl4TMEwACgkQaA3BHVML eiN2Kgf9FPSDEisd3SmDgJPL9HzJ7NQfLoTvJnhDs4vosdF1Ulu/ovYvjkSCDdeF fvcDlOEh9pzJKxGFoK/BNMOzOGTR+KtNjFk1ICBouY8LlRI/6q79JtrBtNBojUcR FRKDYHi8BnwA2TOAPedXslfTnDHOxlXDjrhSygXxVmNopqKeinnG5OwOLOXaAqIA aeaMl2+DChWHOgtxj+ezCau0qcUgV8dngoyi33X1f4hHLpqbh4Rdg170T6T0ecA5 7HQFJzKX68SnQWpn76jJnLcDdPbN7M1I+VozEtT19/VnUNRztlXYsP1DzXGgrFJY z1/c8W4a3h2zlnXQ1pL6Y5QjBa/hBA== =/QcD -----END PGP SIGNATURE----- --jDkp0ZaMxe11w1NKzULpN4UxIzDIY0f0J--