Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7313667rwi; Mon, 24 Oct 2022 12:48:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6gLZf9VH0SzqZXccJqby2iUg/WKWkz0Ei5ODP7xTlWAQ08XoliQaBTNuEALS0Mc/WgULQi X-Received: by 2002:a17:907:2dab:b0:78d:fc4b:7e31 with SMTP id gt43-20020a1709072dab00b0078dfc4b7e31mr27601335ejc.531.1666640916744; Mon, 24 Oct 2022 12:48:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666640916; cv=none; d=google.com; s=arc-20160816; b=aHkys28VO2FcFdfwhi7u5mX47bhuvHEY/mRAmQO8NDlziFi27mWml5LKTsqk9RMqv0 UcU5MXs193QLecszpFf9jLILbdGk8dhxtmXH0DRUuv6qgNolBcDfKtXLq6ExDs6HIPcf GBtgQktZh2UyxLi+TZd9eKOc3wv8rfGzM3DD9AUq86bfEYJAS41zjtXBjiosfchxDli6 IVcCB4Q2pDOqye8Pqjb707sDhkPjr/dHaAsVLajuvwQ7RdBnaYs/LEPJkPMELgx68pC+ prDmjuG+YO90YDHyYxWZDFdJuOBBDpZ6c5XZFFkxtk4JSCjmFv7TIaIcvpfyyu43tY35 QJ0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5EJe+lboq02oe+GqHveqSKGIFzLy9JxZM70cdopWoP8=; b=DbsWEBsaZM3PHUG5bK90gfcbLqGDnXvd39tSW+t8ifD6tmg2BLcDh+/h0T/qFO/RbS 8piM9myviB0jOmDvbgMKHumNdDhLdk3oecsxOfJnCY7Gc4pHVnlgug5Z2DgTh5/r2zj+ 45FGJGGp38sL4B706+X4qVVnDtavysTr7g9OPuVQP/FvbltNcEp4aqeRPAPl5uRMGa24 U6rWOSs8QS4/gEr/l5hWcPV6OhtNI21p/JJ9tKia+IWcp3lJRCxsyG/7cikVpdjVoxuq uDp9kxS+629V3GNmnaPLFFWf1ujN4KrNYdq7vOoSen56MOHSgZcpcO+uLkcdNMJmNKlo fAJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g67APvKJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb15-20020a1709071c8f00b007a6c5a23a48si116843ejc.551.2022.10.24.12.48.08; Mon, 24 Oct 2022 12:48:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g67APvKJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232542AbiJXTpQ (ORCPT + 99 others); Mon, 24 Oct 2022 15:45:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233453AbiJXTmo (ORCPT ); Mon, 24 Oct 2022 15:42:44 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1489D4A07; Mon, 24 Oct 2022 11:11:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 05F7BB8119F; Mon, 24 Oct 2022 11:48:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 635BBC433C1; Mon, 24 Oct 2022 11:48:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666612080; bh=CDq8FveJgeZh1rfJgeX4HZ9et2u3iDuKrkjXt/oPHxk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g67APvKJW91OrTdMcAA6EdvNuSlTEO40nUSjthxk+vIuS6oV3qcMT4nlOPkcSP4Xu erX6SuR4e5Hv4c+SakNLXBc40xfHMNU+M4LESvzgXj0vDhRHkEMc5a9lYyU/qq5TG7 p+toWcAWpODNALjMVnpqGoPin2hGWKt5BIKocIuY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Helge Deller Subject: [PATCH 4.14 061/210] parisc: fbdev/stifb: Align graphics memory size to 4MB Date: Mon, 24 Oct 2022 13:29:38 +0200 Message-Id: <20221024112959.009822666@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112956.797777597@linuxfoundation.org> References: <20221024112956.797777597@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Helge Deller commit aca7c13d3bee81a968337a5515411409ae9d095d upstream. Independend of the current graphics resolution, adjust the reported graphics card memory size to the next 4MB boundary. This fixes the fbtest program which expects a naturally aligned size. Signed-off-by: Helge Deller Cc: Signed-off-by: Greg Kroah-Hartman --- drivers/video/fbdev/stifb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/video/fbdev/stifb.c +++ b/drivers/video/fbdev/stifb.c @@ -1259,7 +1259,7 @@ static int __init stifb_init_fb(struct s /* limit fbsize to max visible screen size */ if (fix->smem_len > yres*fix->line_length) - fix->smem_len = yres*fix->line_length; + fix->smem_len = ALIGN(yres*fix->line_length, 4*1024*1024); fix->accel = FB_ACCEL_NONE;