From patchwork Mon May 22 13:58:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 13250675 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 38B68C77B75 for ; Mon, 22 May 2023 13:58:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B317610E331; Mon, 22 May 2023 13:58:21 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 056C810E333 for ; Mon, 22 May 2023 13:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1684763896; i=deller@gmx.de; bh=dYS8Nw+/7OCGoXmoKBohSi+cXTvaiVqLUY8AtHfFh4Q=; h=X-UI-Sender-Class:From:To:Subject:Date:In-Reply-To:References; b=mExXjmzbK+LGBd+800tzYkTf1lxgV0u/f+g7ZhVS/4CJhSveZ5xuAA7b29ZSz99T0 mtNdEEzBO43AVQ5/Q530l1mhkzKiQENsUEF/K6N7gZoPIKW9j7TDRDvOpjpeGJ4A5B h5Y7qt4n5wFTGYg7AWcCi/pWfli7kfMBsBSBhhFASUuQwM7Ddtop5ukQGIqeUnVJur 3YNc0wPDJjQlaVWEWV7n/s0VWNL4IrwkHGMllL/V4C/KDwISegMkeCx5ULYtUfaMJ8 kRjHnnCaHGHH4fApd0l6mExi/z/s43HowIOKiPr+5ZR8ak+A2Xo73WczyAHICt4mS4 EOgLnfRFj7ogw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from ls3530.fritz.box ([94.134.144.112]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MwwZd-1qK8Id2oPL-00yOcQ; Mon, 22 May 2023 15:58:16 +0200 From: Helge Deller To: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Subject: [PATCH 2/2] sticon/parisc: Fix STI console on 64-bit only machines Date: Mon, 22 May 2023 15:58:15 +0200 Message-Id: <20230522135815.38949-3-deller@gmx.de> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230522135815.38949-1-deller@gmx.de> References: <20230522135815.38949-1-deller@gmx.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:eB/Nq42UexyjSOroKZgK37mQb1YUGgMaKOHlzRUANlFvMQH8YSH zFHrJkJN9G8eLpeCLNodyjgSUYvhkl+77MRTqmwd3lOHOvS0e/OYRAVtt+lTxZLq8zYhWre 7I8tueHpQRxW3fB5KSNHRPaHulX1eXxabh7hOuzqmHtv+yqWgI8bymYZE4SpMp8WW6tdpNt qduZDHyQ9uZHxpWnkIc4w== UI-OutboundReport: notjunk:1;M01:P0:3r6PtO5LjSU=;Qk/byYZFGJfn4p6TpMyxYL/2JDr z8hust8NC8lgFq4z+p/kNjeuQoexU2huaF/CIpcDx7TIcujlXnOgvEpy8cib5jYu3r97abAT8 59CoZqBvgNPGzc9By4vGx+nFUE/ijJGzyHubUTp1M/OCuQRcy0XtBEdtCSk4qR3SPQu24+0Qs jZ9Y+604QYw/a98bUMm7qP0RUxXdf3WYkW3wR+dTMWIXQ4wYS5o9JlSrnPB5PZl9RT+c3uN07 WZtFSCOH/D7lmr4e1K9hAuP8JKBKMaKEBAeAd/LTGAhOE8LbpQ7jsUTlpgV4X4zJpSirz8CeQ AqnBg3hASaIswsQO097B/reW2xegT4bmQKfnGnEDbvgwqxbJWrGVobMXoTL7gcMWDW0ZqLsiB WUonqySiqZbSTMOZVNMCLTlSXircnOXohHnT/XX7s2UuvVoAcxCGWH8raS/C8cj5wsxB1Hohf fKZw9bPglWR7HqcbcJEmyr3hEZ36LD9E7ROdSYXZS9wDVJf1aU/iuXi0SK5RnYXX1RTacnQeC GYhaugMWuS3USSz6unz22QOqG74cjiZWJ+GRvQhIpvkuXVIEteydyVcPtAKvwKzritWr7lMgn eD+xV4S19t69ZS0cfvBzOwgKsZT38sRCWmd302jDRhh29T59/gUSBkljx2GlW+8PdeaRtHa74 pbMNpOgloRMqZElMb0CCNoww2sVp7zVAy5y3KTKM9KaKTxikhkgbbJ0Thfipcv7sM1NGogh+u +9Io5tc0v30Dy0pQlbCaODnPTukTQ+invcdXo3QKPoCIap69LblAm3CqPbMRpa7BR2Fzd/0Ej psXugH8FAoblvI8BFVQDx6YjhSA9aipxSwImMTKuzIRpKittrhsIVdbNB2VTUyVy9prXf/Zuc ws5VY2ENX01QME/Chp67O/eOl6+AvcS9xNrfKtoQqhlJ+JACuwmM3julvXrDZu7hWSWOGJkns eMJ8lfShnYQRU7BeyWZUDdZPdAU= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fix the STI console to be able to execute either the 64-bit STI ROM code or the 32-bit STI ROM code. This is necessary on 64-bit only machines (e.g. C8000 workstation) which otherwise won't show the STI text console with HP graphic cards like Visualize-FX5/FX10/FXe. Note that when calling 32-bit code from a 64-bit kernel one needs to copy contents on the CPU stack from high memory down below the 4GB limit. Signed-off-by: Helge Deller --- drivers/video/fbdev/stifb.c | 4 +- drivers/video/sticore.c | 159 +++++++++++++++++++++++------------- include/video/sticore.h | 42 +++++----- 3 files changed, 127 insertions(+), 78 deletions(-) -- 2.40.1 diff --git a/drivers/video/fbdev/stifb.c b/drivers/video/fbdev/stifb.c index 01363dccfdaf..7b3b954b266d 100644 --- a/drivers/video/fbdev/stifb.c +++ b/drivers/video/fbdev/stifb.c @@ -71,9 +71,9 @@ #include