Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5502492imm; Tue, 26 Jun 2018 12:25:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ1V+JBM6Fzcm1EtjU1DSOjHCHiCgMzZfIIrzVUDALXF+QBAOwAHYkGXpHncz+Qbn4r3GZ5 X-Received: by 2002:a63:4002:: with SMTP id n2-v6mr2403857pga.285.1530041106057; Tue, 26 Jun 2018 12:25:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530041106; cv=none; d=google.com; s=arc-20160816; b=e12vi4UzSKaK4bCwsGee0mXKgXO4v4f1wHitvdO5+UzhtlyjIcY3AmdH8PTDkY6cfq jNnGOcwwvpAp/fqREJ6HsgoT+79aq0h7xZ0ocmiFKB7DFAFXYFsfhzOQ3WVVcNOOjxLu aTRpaiek27hYX7b4ywwcdh/x0Wu/H09R65GKxRFRV5bj/Em/cswnlxlAzsx/D5seHhZS 2cKDoc0xNh9NEFJu403CsRBidJpmnDmlm5B/K0FIMgr13I1x//bNbdcb0vr55lWfRZNv Hub2o1fwDFXwpuA5KBTVlQjdyFm0dWu9O4ewWbdm5sXVKul1jl/+08ezG4j2PHmgaAb8 T6Ow== 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:arc-authentication-results; bh=u0EoG65BWuYx4wB7/fi9WqtQerA8g5/L0RbQ/i+5wMI=; b=NUYzMj/5ut1buUgyOOouJC16LGqE2WQ1dAq34n0ASTK6+z7feNgOfUrlQMuwYVjkQ8 G4iXrlHpshqOeXivNEA8B9vdse7DiXZGQFz12DfaxvB9RP7bvt6YStF5vP4TlCE3FT1X mnrD9rSs8YdlnjhBlme6chVYBWa0bU9wNgz/HJu7Mg5No8At8O/ew2wDSHq9W6vGc4U3 H69bx/mr/NNA+oYN8CrUaA5zHmvkREI+ZNcV6FqhuVHD6S/Qb8re9MoSzGQkijob9iSW x0K/Zs9MzA34+yD47/FQqtkbCjOPPpi8DUpsMKcjTTBqGA7B4YAIyyadp1p01BBIPsc8 0bqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@eso.teric.us header.s=mail header.b=iaX8lUzy; 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 i16-v6si2032624pgn.252.2018.06.26.12.24.51; Tue, 26 Jun 2018 12:25:06 -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=pass header.i=@eso.teric.us header.s=mail header.b=iaX8lUzy; 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 S1754696AbeFZTI0 (ORCPT + 99 others); Tue, 26 Jun 2018 15:08:26 -0400 Received: from eso.teric.us ([69.164.192.171]:59628 "EHLO eso.teric.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752437AbeFZTIY (ORCPT ); Tue, 26 Jun 2018 15:08:24 -0400 X-Greylist: delayed 564 seconds by postgrey-1.27 at vger.kernel.org; Tue, 26 Jun 2018 15:08:24 EDT Received: from neo.teric.us (neo.teric.us [198.58.100.135]) by eso.teric.us (Postfix) with ESMTPS id 6705A1036E; Tue, 26 Jun 2018 13:59:00 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eso.teric.us; s=mail; t=1530039540; bh=u0EoG65BWuYx4wB7/fi9WqtQerA8g5/L0RbQ/i+5wMI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iaX8lUzySQY1bKmb4huRh3JFzH1y2+KYAYUPW5sqFPWQB+mJXKJIEYmrv7tKPe0M0 6ycinEqQZjoujBKdpT6HbDro8Zs+fqZpmWzBedx0wrQBspGfdsHr7ioFaW2bwdzLNe khjpEZshndzAB7rTHBrgXJhQrg15zP7hQFx3ptQkXSQtmG3NXSZA3jlsgkJkxJJ9Ji APknXlekhGceqzWDX2nbO418Jyzdt7h5wqes1093fKBO7DFbxBCSQpB8Ui+Aa4aXLb EI7HPCvpgPi2igG+lrm9KkmF4QyEsRrvzicREkgE26fwGLHxA8BPKWZvTHqkiEyfVV UfofQLTCLYmgg== Received: by neo.teric.us (Postfix, from userid 1002) id 2AFE326665; Tue, 26 Jun 2018 13:59:00 -0500 (CDT) Date: Tue, 26 Jun 2018 13:59:00 -0500 From: Julia Cartwright To: Hans de Goede Cc: Michael Nazzareno Trimarchi , artlomiej Zolnierkiewicz , linux-fbdev@vger.kernel.org, LKML Subject: Re: simple-framebuffer enquire Message-ID: <20180626185900.GA20755@kryptos.localdomain> References: <9fb661e6-482b-76e0-2af0-a62a70e5606d@redhat.com> <233d6808-4d44-9e47-7e3f-4f35cf731706@redhat.com> <7b996681-3a94-1f93-10c0-5369fe843cbc@redhat.com> <996603c6-9779-7412-d998-bd7b49194490@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <996603c6-9779-7412-d998-bd7b49194490@redhat.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 26, 2018 at 08:44:58PM +0200, Hans de Goede wrote: > Hi, > > On 26-06-18 18:35, Michael Nazzareno Trimarchi wrote: [..] > > cat memblock/reserved > > 0: 0x80004000..0x80007fff > > 1: 0x80100000..0x81e030b3 > > 2: 0x83000000..0x83007fff > > 3: 0x84000000..0x85ffffff > > 4: 0x86fa2000..0x87021fff > > > > + reserved-memory { > > + #address-cells = <1>; > > + #size-cells = <1>; > > + ranges; > > + > > + display_reserved: framebuffer@86fa2000 { > > + reg = <0x86fa2000 0x80000>; > > + }; > > + > > + }; [..] > > Still have the same on ioremap. > > Hmm, I guess the kernel does map the entire region its get > passed and simply makes sure to not touch the reserved mem, > where as with the changes to the passed in mem-region the > sunxi u-boot code does the memory does not get mapped by > the kernel at all ? If the intent is to reserve memory _and_ prevent it from being included in the kernel's linear map, then it is also necessary to include the 'no-map' property for this reserved-mem node. From Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt: no-map (optional) - empty property - Indicates the operating system must not create a virtual mapping of the region as part of its standard mapping of system memory, nor permit speculative access to it under any circumstances other than under the control of the device driver using the region. Julia