From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA3C247ECFB; Thu, 20 Aug 2026 17:52:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787248373; cv=none; b=WHezqP/JBwPOasSDYgC6/coo62nxdJ+VuQ6frbKUnvbCPatF4rd8S99D++lWWjWIyMHUWk60lUaWeDs6A2seUZFmsVG9tNS0eC9j0IKmRWgj2E5RSCAdrEh2233HkPuS9G6PvGF6T59qUKKHv6VVNfbGiBMmatY07MLeN4SqBEs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787248373; c=relaxed/simple; bh=qBC3bKNEf/NLn/G7GyxV1NfjsCUmBI7LTjM6l7jkMGY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eT4xKCOa3FufgkctlkmlYnPBajoBUyht+8nwBtQQDQ/mZ6IH16EEzCHYCrRZXxbybbiFn2ndrIIdECUqfGz1q1KSaELK5Y5Snef9J1RM0YpuFoPyHMoIDZhAV/dkPQ9aAjjL9w5D4E+MstnG52K/Z6T36RzNgrzBhpe0hEdZH2E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mNvno+8G; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="mNvno+8G" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C70751F00A3A; Thu, 20 Aug 2026 17:52:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787248372; bh=BpthdbcmweQXQIrHqY8o4/zWIA8sCVylTs9sZpfGiOM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=mNvno+8GR3H2p/vSi9tWqXuoDo9kYQkXXg17HShCqat8S9r5up7tDaW3p+JmAydJN XBsBxRYjeKexg4ji9WHfXLv7SRPKqe/OjbpMYhTVsWzHSas9EGRPiFqjRLMPwt/wEV rlDaMzs6ZTiMFpbokov+Wtidz83cRG1ohFR43/Yo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Thomas Zimmermann , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, Thierry Reding , Sasha Levin Subject: [PATCH 6.1 188/303] drm/tegra: fbdev: Remove offset into framebuffer memory Date: Thu, 20 Aug 2026 16:55:24 +0200 Message-ID: <20260820145258.963540910@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260820145253.200766705@linuxfoundation.org> References: <20260820145253.200766705@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Zimmermann [ Upstream commit a18b6e30ecd69096beda4a0c96d2570900c3879a ] The screen_buffer field in struct fb_info contains the kernel address of the first byte of framebuffer memory. Do not add the display offset. This offset only describes scrolling during scanout. Signed-off-by: Thomas Zimmermann Fixes: de2ba664c30f ("gpu: host1x: drm: Add memory manager and fb") Cc: dri-devel@lists.freedesktop.org Cc: linux-tegra@vger.kernel.org Cc: # v3.10+ Signed-off-by: Thierry Reding Link: https://patch.msgid.link/20260421073646.144712-3-tzimmermann@suse.de Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/tegra/fb.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) --- a/drivers/gpu/drm/tegra/fb.c +++ b/drivers/gpu/drm/tegra/fb.c @@ -222,7 +222,6 @@ static int tegra_fbdev_probe(struct drm_ struct drm_mode_fb_cmd2 cmd = { 0 }; unsigned int bytes_per_pixel; struct drm_framebuffer *fb; - unsigned long offset; struct fb_info *info; struct tegra_bo *bo; size_t size; @@ -268,9 +267,6 @@ static int tegra_fbdev_probe(struct drm_ drm_fb_helper_fill_info(info, helper, sizes); - offset = info->var.xoffset * bytes_per_pixel + - info->var.yoffset * fb->pitches[0]; - if (bo->pages) { bo->vaddr = vmap(bo->pages, bo->num_pages, VM_MAP, pgprot_writecombine(PAGE_KERNEL)); @@ -282,9 +278,9 @@ static int tegra_fbdev_probe(struct drm_ } drm->mode_config.fb_base = (resource_size_t)bo->iova; - info->screen_base = (void __iomem *)bo->vaddr + offset; + info->screen_base = (void __iomem *)bo->vaddr; info->screen_size = size; - info->fix.smem_start = (unsigned long)(bo->iova + offset); + info->fix.smem_start = (unsigned long)(bo->iova); info->fix.smem_len = size; return 0;