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 4515B41DE0C for ; Wed, 29 Jul 2026 10:35:16 +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=1785321317; cv=none; b=R/kL4yE/C6iVE5SdLqTqEIFQDrE+8Lqy5f2MVYQJT+8AR4VU6ESbfuu7oaDQYOivI1C+8GCYW2LwrLHH3dW++4z6NaxnU5aa/7Bcf9h+c8FBDizZKN/6gitUtgsfaoKlJW0FOn+c/DROWjxJTnxhLzWZGz6JAlGazfsA/NNzujI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785321317; c=relaxed/simple; bh=7LVc7zJLW9/0WQSX7KDW4JeBKJfze+NXQQ81CbB75Lk=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=avE/UxQTUhHsn8iPneQvibstj+XpqrTBG8/ALxljpK0HHGGMdfycngw7SnKgEuVSTKbDKEvpslgSn1Jw/4RZiB3SbU9JfNmC0CS5vZBltI7Rz+ACsh1TvXKji4LaMli3hT5/clc8GrNB7lwdQ+D45QBQoyYUpqS/tC8/hpqC96s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IA2Vrbiv; 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="IA2Vrbiv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 941E41F000E9; Wed, 29 Jul 2026 10:35:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785321316; bh=goafmYNeCBhRcf34Sxv+BRWSaFYZ9Zk0I4oV8VbsdYY=; h=Subject:To:Cc:From:Date; b=IA2VrbivRzlBx70h/F5TWMWUHDraHdCEv1jVPoOecK4utBGYLBhkYjlE7Oo9rLX88 Nq2M9ozyLXnkHyJKiz4AuFGH0Ztln6yi4iJrHnLjFgv8CyWETTRl0KR/6KZ9+ePnT6 otFuHuPu8QwBpZRxy2vmLMRvBd2f4tVLjeLtW29c= Subject: FAILED: patch "[PATCH] drm/tegra: fbdev: Remove offset into framebuffer memory" failed to apply to 6.1-stable tree To: tzimmermann@suse.de,stable@vger.kernel.org,treding@nvidia.com Cc: From: Date: Wed, 29 Jul 2026 12:34:52 +0200 Message-ID: <2026072952-subtext-celtic-af7b@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x a18b6e30ecd69096beda4a0c96d2570900c3879a # git commit -s git send-email --to '' --in-reply-to '2026072952-subtext-celtic-af7b@gregkh' --subject-prefix 'PATCH 6.1.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From a18b6e30ecd69096beda4a0c96d2570900c3879a Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Tue, 21 Apr 2026 09:29:06 +0200 Subject: [PATCH] drm/tegra: fbdev: Remove offset into framebuffer memory 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 diff --git a/drivers/gpu/drm/tegra/fbdev.c b/drivers/gpu/drm/tegra/fbdev.c index 19e39fa54bfa..793849199783 100644 --- a/drivers/gpu/drm/tegra/fbdev.c +++ b/drivers/gpu/drm/tegra/fbdev.c @@ -76,7 +76,6 @@ int tegra_fbdev_driver_fbdev_probe(struct drm_fb_helper *helper, struct fb_info *info = helper->info; unsigned int bytes_per_pixel; struct drm_framebuffer *fb; - unsigned long offset; struct tegra_bo *bo; size_t size; int err; @@ -115,9 +114,6 @@ int tegra_fbdev_driver_fbdev_probe(struct drm_fb_helper *helper, 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)); @@ -129,9 +125,9 @@ int tegra_fbdev_driver_fbdev_probe(struct drm_fb_helper *helper, } info->flags |= FBINFO_VIRTFB; - info->screen_buffer = bo->vaddr + offset; + info->screen_buffer = 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;