Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp523054ybv; Sat, 22 Feb 2020 08:31:57 -0800 (PST) X-Google-Smtp-Source: APXvYqxHwFREHHD9+0CD4nwxrV3bgjJ0EcrNX86uZcfA0Sd8Ew7EzdGkSFh/lAkIEPk85Qu0oX2S X-Received: by 2002:aca:5d57:: with SMTP id r84mr6687309oib.42.1582389117082; Sat, 22 Feb 2020 08:31:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582389117; cv=none; d=google.com; s=arc-20160816; b=hLZUHI1L3Re+p1AubMNCX011Xe+uJbNiFgZJ3oKB0nitYr6sCbPVnjDHBdXIxhuCon 3PECVgBOKZgfD7qInZPLQ17UCPmF2bBuHAo4PtQIN3ZeKbgqn7sx1Vc+PcqziCSKtVO8 ZelbM4vHmvGMx3Gf/O3jK6/gvX4hO/4I/b+Z7nzAzV3aQb+4Wu+J1onyIzRbu3lToAu+ 81aYsi9IEUSzB8/jUPErdrRNSJl0tSTb4+38jGMNH+YI5UXSh8r/qxH8+q05Rw2UBB/C 7dMjqjXp3P/1rHuTQDaQdMwz2OBJOYZagUNybUirltXMBJIuz68S/uywpLhKRuvWLYJu +l3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:date:message-id:from :references:cc:to:subject; bh=iXkTdA7GqW2UBtTzaBtvWOUkyDfMSSjX4p9bk4SQ16c=; b=JMD/9y2CtWCCISoXVwIybbE8craqaMGXv4RHPfCAZ1rsNiyb9Uqq99umc9Af55BgZZ ZH0MzuKtKmmxHyLOtep8KZ30U9vvNGXBGYs/JftTDCM2yRAy2gQhWmhcdXPV7gph+LB1 a3kArgHcv1Ly8XdWAeuIejpj6Rj05u5+8GAMJmWT+tDSITyvRsJur0tCYcdrIPXaiyab FB661weqd6GWjZ6vA4lGhuCHuB3AU865SSAm9nJF31yJu+0sUrYeyxMlq44M3UUnXUKF T8fwfNwbFTpOW62QIImgCnHReIEWWFJihbgCoHWJ2u/ftwJgmGC8E7nXPa3FW2tIkSQ6 se6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17si3503040otr.320.2020.02.22.08.31.44; Sat, 22 Feb 2020 08:31:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726853AbgBVQbe (ORCPT + 99 others); Sat, 22 Feb 2020 11:31:34 -0500 Received: from mx2.yrkesakademin.fi ([85.134.45.195]:22755 "EHLO mx2.yrkesakademin.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726550AbgBVQbe (ORCPT ); Sat, 22 Feb 2020 11:31:34 -0500 X-Greylist: delayed 902 seconds by postgrey-1.27 at vger.kernel.org; Sat, 22 Feb 2020 11:31:33 EST Subject: Re: Regression in 5.4 kernel on 32-bit Radeon IBM T40 To: =?UTF-8?Q?Christian_K=c3=b6nig?= , Christoph Hellwig , Woody Suwalski CC: DRI mailing list , LKML , "Deucher, Alexander" , Pavel Machek References: <400f6ce9-e360-0860-ca2a-fb8bccdcdc9b@gmail.com> <20200109141436.GA22111@lst.de> <9ad75215-3ff1-ee76-9985-12fd78d6aa5f@amd.com> From: Thomas Backlund Message-ID: <801e4196-5e22-e805-4d45-0245efdaa508@mageia.org> Date: Sat, 22 Feb 2020 18:16:28 +0200 MIME-Version: 1.0 In-Reply-To: <9ad75215-3ff1-ee76-9985-12fd78d6aa5f@amd.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Den 09-01-2020 kl. 17:12, skrev Christian König: > Hi Christoph, > > Am 09.01.20 um 15:14 schrieb Christoph Hellwig: >> Hi Woody, >> >> sorry for the late reply, I've been off to a vacation over the holidays. >> >> On Sat, Dec 14, 2019 at 10:17:15PM -0500, Woody Suwalski wrote: >>> Regression in 5.4 kernel on 32-bit Radeon IBM T40 >>> triggered by >>> commit 33b3ad3788aba846fc8b9a065fe2685a0b64f713 >>> Author: Christoph Hellwig >>> Date:   Thu Aug 15 09:27:00 2019 +0200 >>> >>> Howdy, >>> The above patch has triggered a display problem on IBM Thinkpad T40, >>> where >>> the screen is covered with a lots of random short black horizontal >>> lines, >>> or distorted letters in X terms. >>> >>> The culprit seems to be that the dma_get_required_mask() is returning a >>> value 0x3fffffff >>> which is smaller than dma_get_mask()0xffffffff.That results in >>> dma_addressing_limited()==0 in ttm_bo_device(), and using 40-bits dma >>> instead of 32-bits. >> Which is the intended behavior assuming your system has 1GB of memory. >> Does it? > > Assuming the system doesn't have the 1GB split up somehow crazy over the > address space that should indeed work as intended. > >> >>> If I hardcode "1" as the last parameter to ttm_bo_device_init() in >>> place of >>> a call to dma_addressing_limited(),the problem goes away. >> I'll need some help from the drm / radeon / TTM maintainers if there are >> any other side effects from not passing the need_dma32 paramters. >> Obviously if the device doesn't have more than 32-bits worth of dram and >> no DMA offset we can't feed unaddressable memory to the device. >> Unfortunately I have a very hard time following the implementation of >> the TTM pool if it does anything else in this case. > > The only other thing which comes to mind is using huge pages. Can you > try a kernel with CONFIG_TRANSPARENT_HUGEPAGE disabled? > Any progress on this ? We have a bugreport in Mageia with the hw: Dell Inspiron 5100, 32-bit P4 processor, 2GB of RAM, Radeon Mobility 7500 (RV200) graphics that gets display issues too and reverting the offending commit restores normal behaviour. and the same issue is still there with 5.5 series kernels. -- Thomas