From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5DBA8C10F0E for ; Fri, 12 Apr 2019 11:26:24 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2D2A52082E for ; Fri, 12 Apr 2019 11:26:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="NVuxQxc1"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="PIXYF6vd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2D2A52082E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=i+MqXIr6wSMhqellkgt22FA7nrxkwM13VFh5uoKdWWA=; b=NVuxQxc1mQtU3Z yK/kf3fFji84iEDnbR1+MdfADwI3Sakn+UQ70HSDtNG2xMrTH0wGqxvwEYn6DnOjmHEP5dI5RvvfO +3ndGpExSL1wU14YoHk1MKC++585WZj+SdJmHNKFxypcYrF4QDubXBOqyKbNgWpW0jMMCzRC/EAV/ CNWbGYyWPQcP7xFdjMwJlwz+q4OVp8/AjLnBdK3YqgLDzn9Q5WmwMYqAz7Fa+kVGzJ5d3NY+TfRIe yLys5m0T6hbCEW4oBMUedIzHxNOKBjE49NNfUBW6A22qvSOY0oacOREKQr9OgHtjqOhU24wCJh4XL 5vKSrvdn7WFtogp3/96g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEuK4-00069j-1v; Fri, 12 Apr 2019 11:26:20 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEuK0-00069C-Rg for linux-arm-kernel@lists.infradead.org; Fri, 12 Apr 2019 11:26:18 +0000 Received: by mail-wm1-x335.google.com with SMTP id o25so10749083wmf.5 for ; Fri, 12 Apr 2019 04:26:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=COASKXTWP1r9Quk/D0aPZ0BVyUdyPIRLXWceJO1bqRE=; b=PIXYF6vdakkGUHhjmxrM3Z5uX9+gevLMzKCZd5J6LZhQhC3+087ob/CPX2gyZTCmag +flzRI1wvaCgxXcufHu2F2AskCUuZFR+79hB0Oht5BwgL1N3MnL0G6o+e5uaJ3ShsiVc HozwetPE5/ZA3zUXIPyqZSfogWFwKIujzb2eBMJ67d9BC/xNhIztNZmauEbf2VRIftJv Y7A8P2dv5dkQB0lowpjeMZhaE+BDo2aIGQfYRfcRvSawNf1rZ6g3BA8Wfy6EqnsdTApb 6oAgwTb5TkRX0GlTVYhVnAQubIHcKXj4itCU2GjzaLfjsPVYbGwgxYwy7+4k/NWYnphp 5diw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=COASKXTWP1r9Quk/D0aPZ0BVyUdyPIRLXWceJO1bqRE=; b=jui0P6Fv0GSywSF8LvaqQ7IGtzF97Lw9YtkE7KpmHvuVUq/rCtjvd/69ob2vC4MLt1 cunmcstCvopqqPWUvyrch1tRBZTN51rSes5JnOnvkVJzLt0keXPzofY22Da52Th2G48S y+Q1g808pRWlBrwYtM/bbNGTo875fBIYzKIF/+o3BsCU3R8Q5AxHD8L5/SEo7jtQ9fH2 TWQB1J+jDRoQYMurwTp8k7xK94/AT7AUH/jkSsKXSbmbGxEs0lW+F5Fm5Zgpfp+8jd3Z 3xsT/VJswgsxChr6g7aYx7HcVjOPMbaIbZgIbWYGZRpokujnnkGnNoOK2f4yV0AHXGl2 C+Rw== X-Gm-Message-State: APjAAAWe+bIjq3Kd/y1kIBmuuGk67J0q5guFnlNnBI74L5fUmTFvirvO hmPivwAWJSBdcPsOKCxbtfKb3A== X-Google-Smtp-Source: APXvYqzEQHxvRJ0n76ry69b5GdyLztC5RpO/Tk6D+gCY8ROo9wDg/RAHtfCdwJ0f5SHWyjTGeXGGug== X-Received: by 2002:a1c:1aca:: with SMTP id a193mr11287411wma.40.1555068374861; Fri, 12 Apr 2019 04:26:14 -0700 (PDT) Received: from apalos (athedsl-165181.home.otenet.gr. [85.75.188.219]) by smtp.gmail.com with ESMTPSA id y127sm11711112wmg.29.2019.04.12.04.26.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Apr 2019 04:26:14 -0700 (PDT) Date: Fri, 12 Apr 2019 14:26:11 +0300 From: Ilias Apalodimas To: Russell King - ARM Linux admin Subject: Re: Memory size and section boundary on armv7 Message-ID: <20190412112611.GA8295@apalos> References: <20190411151320.GA23031@apalos> <20190411154129.xh5eoicmjkpt6ceb@shell.armlinux.org.uk> <20190411155000.GA25323@apalos> <20190411162210.462hwmwlwrciq3re@shell.armlinux.org.uk> <20190412052344.GA13530@apalos> <20190412084049.k34n22poz2vz7kn7@shell.armlinux.org.uk> <20190412101013.GA3772@apalos> <20190412111614.xbwnffum25ny7ddy@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190412111614.xbwnffum25ny7ddy@shell.armlinux.org.uk> User-Agent: Mutt/1.5.24 (2015-08-30) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190412_042616_908120_873DC80A X-CRM114-Status: GOOD ( 18.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: catalin.marinas@arm.com, labbott@redhat.com, linux-arm-kernel@lists.infradead.org, ard.biesheuvel@linaro.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org > > Can we at least we can print a warning saying "What you are trying to do is not > > good enough, please re-check the mappings" or something like that, > > to help people avoid that in the future. > > The BUG_ON is supposed to do that, but for some reason i can't see it on my > > console, any ideas why? > > That may be a possibility, we would have to ignore the request to setup > the mapping, which means we could end silently locking up shortly > there-after. > > It may also be possible to slightly rearrange the code to map the > vectors page before we setup any of the memory mappings (so that > exceptions can work), but that may need careful handling. > Ok, i'll try to have a look at that, since i can easily reproduce the splat > > Yes. U-Boot wise we could fix that, by placing the dtb on a non section > > aligned boundary > > That's actually misleading. > > The problem happens when you have a small no-map section within a 2MB > region, and it doesn't cross the even-odd 1MB boundary. > > To illustrate what I'm saying, if you arranged for it to be (eg) one > page higher (iow, 0xc7f01000) then you'll hit the same problem. Yes correct, i actually tried that as well in one of my tests and still had the same effect > > > > The easiest way out of it is to place the fdt on !SECTION_SIZE right? Yes noted, Thanks /Ilias _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel