Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1549563rwl; Wed, 12 Apr 2023 15:00:49 -0700 (PDT) X-Google-Smtp-Source: AKy350bX50aw+0LNiQD2RDQB4GghlP5th7E0wD4n+WvL4qM2zJYzolHJALQDafGULidpZ4V3Z0ZL X-Received: by 2002:a17:906:cb0f:b0:94a:96f2:7cae with SMTP id lk15-20020a170906cb0f00b0094a96f27caemr299945ejb.72.1681336849405; Wed, 12 Apr 2023 15:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681336849; cv=none; d=google.com; s=arc-20160816; b=SowT/cDLtIdoCQADJSRexMtbBiSGUe5UmmTUA7m23GKaAfD5Q6fw59c/7Sm69S3WA+ xg/slTMV6HRuliWvwfcUtWHqy5H5EVN8KwcIXtlZBbw6RliBPz2wVk343oEGUsXhB7ME yHlfSxuOILA5nEG9hhrd8PVdIQzU1Il0J1qittuqLNOKuD4Sy+tgcQfjHe739ZB+V7X8 MVR+idex1tO0BF+n0JDlTFs6+al1zDeozhXombR6pLZOsXcW0I8vDt2NiLbBxv5jz+LI +X/giv01HjlxYYVg/dN6nrbR4nHE5MraGV/3PjRBsU4FxewkIb6Pm5dnWNTLRRsGAtLK UQCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:importance:content-transfer-encoding :mime-version:user-agent:cc:to:from:subject:date:references :in-reply-to:message-id:dkim-signature; bh=Cx7ufPyof1expISG6fYKBaRyvhLTkGtcOvVM3KmRsTU=; b=ewskO5idgUqgh4iQFnbdZlBSpD/wWr6Z5iqmakBu6jLbwNpKHO7ABgXGR6T/jCt3aG owwt8pAXXw148vfwlHs2wKpYdVs5WFVQXwLohxLD9wH2DKIMuaZHGbXFf+GXXQquz1td i/FFZaVXARr7F0Ii8Bd8crwCUsnMNtcSbr3tXJ0FkzngaNMTodUGPUD6yL1skjRnx2iU cdC6oMddqKLfkdZjDhF9LDbJViwoZU91z4V2kfkqfvfWz6u5qqsJk6c8jZYEzfgEF7+A 3pfuFrK7ep4W+BSxId7uzKLviJz8k5q/IIqR7T4UdAliq5izIxaET7tUgu0V0eKFr2tY k0Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@panix.com header.s=panix header.b=AmffuYjM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=panix.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb10-20020a1709076d8a00b0094e6892b998si2227900ejc.172.2023.04.12.15.00.23; Wed, 12 Apr 2023 15:00:49 -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=fail header.i=@panix.com header.s=panix header.b=AmffuYjM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=panix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229728AbjDLVx2 (ORCPT + 99 others); Wed, 12 Apr 2023 17:53:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjDLVx1 (ORCPT ); Wed, 12 Apr 2023 17:53:27 -0400 Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA64AE48 for ; Wed, 12 Apr 2023 14:53:26 -0700 (PDT) Received: from mail.panix.com (localhost [127.0.0.1]) by mailbackend.panix.com (Postfix) with ESMTPA id 4Pxc0P3wRHz2kKb; Wed, 12 Apr 2023 17:53:25 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=panix.com; s=panix; t=1681336405; bh=bEXG3RlzB+cCgvd7LZLlacWwHWawjB5ycq4sdxN137E=; h=In-Reply-To:References:Date:Subject:From:To:Cc; b=AmffuYjMweW4Hwcow0b5ZMkmQ0sdtAInS8YwixD+eXqQ+9FM710qxP0kBwC3Y3M20 nth+QPbjZcgtgXx7/bLJ+maIGp1A3BnZi0ZvElt0TChsgo/FoeDyrJQsDJoe3VDklH owGVM+rfTTbEESeQHDHcCjHgytsiJ9n0hiZlWkww= X-Panix-Received: from 166.84.1.2 (SquirrelMail authenticated user pa@panix.com) by mail.panix.com with HTTP; Wed, 12 Apr 2023 17:53:25 -0400 Message-ID: <40edb0fdb0eaff434f4872dd677923a6.squirrel@mail.panix.com> In-Reply-To: <87cz48srs4.fsf@minerva.mail-host-address-is-not-set> References: <20230412150225.3757223-1-javierm@redhat.com> <2e07f818ccdff7023a060e732d7c4ef6.squirrel@mail.panix.com> <87jzyhror0.fsf@minerva.mail-host-address-is-not-set> <1afd3044c2aca9322ecf304941c7df66.squirrel@mail.panix.com> <87fs94stgw.fsf@minerva.mail-host-address-is-not-set> <87cz48srs4.fsf@minerva.mail-host-address-is-not-set> Date: Wed, 12 Apr 2023 17:53:25 -0400 Subject: Re: [PATCH] firmware/sysfb: Fix wrong stride when bits-per-pixel is calculated From: "Pierre Asselin" To: "Javier Martinez Canillas" Cc: "Pierre Asselin" , "Jocelyn Falempe" , "Daniel Vetter" , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, "Hans de Goede" , "Thomas Zimmermann" , "Ard Biesheuvel" User-Agent: SquirrelMail/1.4.23-p1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 > Javier Martinez Canillas writes: > > I still don't understand why this particular configuration didn't work... > > The framebuffer starts at 0xd8000000 and has a size of 0x240000 bytes, so Says who ? It's the same grub, same video mode as before the regression, so the size is probably 0x300000 like it always was. > a r8g8b8 pixel format with resolution 1024x768 should be correct. Since is > 1024 * 768 * (24 / 8) = 2359296 = 0x240000. That is internally consistent, but at variance with the video mode set up by grub. It is better to sqeeze bits by 4:3 on each line (regression) than to scatter 4 logical lines across 3 physical lines (regression, patched) ! > Could you please apply the following diff that will print all the relevant > fields from the screen_info that are used to calculate the bpp and stride. YES ! I can't peer into that struct screen_info and I don't know to write the printk's. (Hm, doesn't look too hard, but trust me, I would fumble it.) I'll back out the original patch first. Stand by. --PA