Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp81997ybn; Thu, 3 Oct 2019 01:50:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxno9Fr4ghZuGkD+wOSXYfx2ccNCQ4HaremjIX4nlJKFiXSQqFnr+rzRdAf9nTwNm1b6uqz X-Received: by 2002:a05:6402:1699:: with SMTP id a25mr8252930edv.91.1570092600856; Thu, 03 Oct 2019 01:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570092600; cv=none; d=google.com; s=arc-20160816; b=cwaYkHmpnWedXVML3fNV3xU7kMu1YdvwB0NnCQaqbG9LVm2npgipDRxU3t6uiTUqj2 EGj/ouuDiwZKramb0V+cI1WpbNEYnL7gXYwF1o5wKr2Rw3weORBuyntulW+/9FMWdvnf FMFJAXYsQ09fFMAlE6gH7ZptVn4sS19VUHADdKCaIeRMwEjjECEfjggg5Ly6XcjIgfBT zwUUYE31HAyy5qhPYm1wpd+/Pd27dnbN77Rn6G61XutfJi6dm48EkuKre2Nkfh3ve9vv imIw2IbqgdNaxO5yWplkdB7r/ND4G9k7ArLDu6dqunJHf9FYDCHPHErrV1ca+IqRAMil JmeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Q5TExg+4TQhLrghJSY1icmd2xGrFxJ2aG5hPkzrxoDo=; b=ktXgBTofgBv+cOwm/N1s+r95BdwMCJ9Nut+4AvBhdab5b5wpZELPF95GltX4qG5lee S0srBbaBoPH9P4wjG9FpjZ00+Y+Q7CVUYKvag9F7u4c7w+lhwHeYStdrESi0IZd7ga/F dYtkaZTPesJILt0QLI++Dg8Xp8eOe8EGBYYrv/tH5aoijOHNImiZX9K5JkVFHEaczcf9 LYrhDvAXs6Rm75xnCiVH+urYCTrLdTqnr2PY7/rxscyrdIIZKer4fdYpKM9RccFdY8Lb TM/ErDUJNC1/b5y4WhPt5yh2sfOMPJVJZ4D7n6Sueb/yuV4EaoN1XhRNecxPXhsUqXFj O47A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=O0iZExLA; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4si1177717edd.189.2019.10.03.01.49.35; Thu, 03 Oct 2019 01:50:00 -0700 (PDT) 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; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=O0iZExLA; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728683AbfJCIta (ORCPT + 99 others); Thu, 3 Oct 2019 04:49:30 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:39982 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727382AbfJCIta (ORCPT ); Thu, 3 Oct 2019 04:49:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Q5TExg+4TQhLrghJSY1icmd2xGrFxJ2aG5hPkzrxoDo=; b=O0iZExLAO4uc+e/CglOD7o1sG XdeWeGADcm11wnkviHeLVMjXiFkSMEWsnB1aRuOrg9pdfhW8cxOvVxNDAdjCd5pzB1Y/YnaV0t8gt c3d7A++vtECK+gMCtq/WDZ4Jf4kZ5R1nHi+5NSiRPmW6qfzg/qgM1TyywcHJn69oFbwOowhMGxOw6 ZDq+Bifokb3wN/D2qf+bWxeB7djWt+ji4fUoBA6EIZGgvundyQudFgIZOZ4wm14wWBDRbZMBie4L2 GrZZhAnjCg/zZPwp6zKGNlvY6rlgE8P7qYeZITFAKoitL+TigifTruIavCHkhzJPLypp60ntvNzBc 6PbFqSvIw==; Received: from shell.armlinux.org.uk ([2002:4e20:1eda:1:5054:ff:fe00:4ec]:47020) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1iFwnY-0005L4-41; Thu, 03 Oct 2019 09:49:20 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1iFwnS-0001bt-8g; Thu, 03 Oct 2019 09:49:14 +0100 Date: Thu, 3 Oct 2019 09:49:14 +0100 From: Russell King - ARM Linux admin To: Mike Rapoport Cc: Adam Ford , Fabio Estevam , Catalin Marinas , Linux Kernel Mailing List , Christoph Hellwig , The etnaviv authors , arm-soc , Linux Memory Management List , Andrew Morton , Lucas Stach Subject: Re: [PATCH v2 00/21] Refine memblock API Message-ID: <20191003084914.GV25745@shell.armlinux.org.uk> References: <20190926160433.GD32311@linux.ibm.com> <20190928073331.GA5269@linux.ibm.com> <20191002073605.GA30433@linux.ibm.com> <20191003053451.GA23397@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191003053451.GA23397@linux.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 03, 2019 at 08:34:52AM +0300, Mike Rapoport wrote: > (trimmed the CC) > > On Wed, Oct 02, 2019 at 06:14:11AM -0500, Adam Ford wrote: > > On Wed, Oct 2, 2019 at 2:36 AM Mike Rapoport wrote: > > > > > > > Before the patch: > > > > # cat /sys/kernel/debug/memblock/memory > > 0: 0x10000000..0x8fffffff > > # cat /sys/kernel/debug/memblock/reserved > > 0: 0x10004000..0x10007fff > > 34: 0x2fffff88..0x3fffffff > > > > > > After the patch: > > # cat /sys/kernel/debug/memblock/memory > > 0: 0x10000000..0x8fffffff > > # cat /sys/kernel/debug/memblock/reserved > > 0: 0x10004000..0x10007fff > > 36: 0x80000000..0x8fffffff > > I'm still not convinced that the memblock refactoring didn't uncovered an > issue in etnaviv driver. > > Why moving the CMA area from 0x80000000 to 0x30000000 makes it fail? I think you have that the wrong way round. > BTW, the code that complained about "command buffer outside valid memory > window" has been removed by the commit 17e4660ae3d7 ("drm/etnaviv: > implement per-process address spaces on MMUv2"). > > Could be that recent changes to MMU management of etnaviv resolve the > issue? The iMX6 does not have MMUv2 hardware, it has MMUv1. With MMUv1 hardware requires command buffers within the first 2GiB of physical RAM. I've reported the problem previously but there was no resolution, other than pointing the blame at CMA. https://lists.freedesktop.org/archives/dri-devel/2019-June/thread.html#223516 -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up