From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EB2E12D9494; Thu, 15 Jan 2026 17:33:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768498420; cv=none; b=E/NMdghIuPpPifPeGXiUfp5XuX2tZ8IqJYyQD7UfyrgT5LMy3dZ2T5PeWVxWsCY3Cdq2pd3F6vW2gOemq3q6Bq1VEEwdMnNX5OgHvkJkhyRyy5BMEn4xoyElGojB/EHyE7e9gu1OyKVPOYGcJ6RbbjJGEqe+aCm/jv0FgUptZhY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768498420; c=relaxed/simple; bh=J0M573GobUf2UjJKG4UxRLFNdPyxKI/9BltFPBb0VyQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kgwwZcY7d9Av4ZijktyVz2wbs5iWGcUMBc3eWBuTq/GUsdFsfmtCVilBGTq4Sf6WFO9UaVpgYMX0iPW7FvUU+xgzuh0svbKxgCAh/ZoWYt/w6oXrtwifNWb/XK4v0Ps/F1VDW/LY1TZJrcJdG3bkb14AOpBr/5ZHiP/v58sHtMk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kS67W/4d; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="kS67W/4d" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76AB7C116D0; Thu, 15 Jan 2026 17:33:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768498419; bh=J0M573GobUf2UjJKG4UxRLFNdPyxKI/9BltFPBb0VyQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kS67W/4d4sQzJeQo289ZcqTfkmFHECdb7A5q7Q/MyoxkbeXQVQu3bxUG5bgHyLFZx kkR0vhq4cbR+F/HnAYDEP+ZL0MAS1FCbQReuQHDO80UPgx3CX/C3vghvJ35OVYZwG7 xSYLxVcpWwPyZjFfcn4pwLAjUz3BxS98hrp8+r7k= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Ren=C3=A9=20Rebe?= , Helge Deller Subject: [PATCH 5.15 392/554] fbdev: gbefb: fix to use physical address instead of dma address Date: Thu, 15 Jan 2026 17:47:38 +0100 Message-ID: <20260115164300.424751389@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260115164246.225995385@linuxfoundation.org> References: <20260115164246.225995385@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Rene Rebe commit e3f44742bbb10537fe53d83d20dea2a7c167674d upstream. While debuggigng why X would not start on mips64 Sgi/O2 I found the phys adress being off. Turns out the gbefb passed the internal dma_addr as phys. May be broken pre git history. Fix by converting dma_to_phys. Signed-off-by: René Rebe Cc: # v4.0+ Signed-off-by: Helge Deller Signed-off-by: Greg Kroah-Hartman --- drivers/video/fbdev/gbefb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/video/fbdev/gbefb.c +++ b/drivers/video/fbdev/gbefb.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -65,7 +66,7 @@ struct gbefb_par { static unsigned int gbe_mem_size = CONFIG_FB_GBE_MEM * 1024*1024; static void *gbe_mem; static dma_addr_t gbe_dma_addr; -static unsigned long gbe_mem_phys; +static phys_addr_t gbe_mem_phys; static struct { uint16_t *cpu; @@ -1187,7 +1188,7 @@ static int gbefb_probe(struct platform_d goto out_release_mem_region; } - gbe_mem_phys = (unsigned long) gbe_dma_addr; + gbe_mem_phys = dma_to_phys(&p_dev->dev, gbe_dma_addr); } par = info->par;