Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp7137025ybh; Thu, 8 Aug 2019 10:43:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkp6K7KgSUiP2paz0vVEX6qKehskeFk3igCcgqR1Hw3brrnPcbi6/w6rc5h2Z4ZxBUGdRa X-Received: by 2002:a17:90a:fe5:: with SMTP id 92mr5282673pjz.35.1565286207121; Thu, 08 Aug 2019 10:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565286207; cv=none; d=google.com; s=arc-20160816; b=ogionAcXf47Y1vTuFYzo4amNK84VOigo7qGbwABvFZagapFYawCG3bU1Ot+RIi5m8q tG9UjM6jMDSDxtxpkBOjUNX7aUfEYu1ghwD0dAN/rhkXx8Ye2hgILsXsI6GYDlrD80T1 kPRi1xwLn/3YoJG8YgJkjKjZrmYwJAsyNVfPdKyQqM7Lvhc/w3gIX6oYiFZOQyOvwGKv eE75PeFetV7qhIOLhW0TQuaCaB1o+dO69u0Fitc5ff/4C6aMmdVO9rcvpZ3X0EzTMTbt TPcEW05xidFhBpmUdzbwLHG7sPkt5O5s3zBWVfozYx6CxthNQEE1sh7D5qDMLvPNNaNC ZTqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=mdKChiO6toradfdA1i6Jwh7yiUgV/BOpjgptiTpJXTc=; b=QeX6A/fT+xB+ApAxDInqdGbemYsrJWkY/jPIdg9vpbefnotRuxZOuK1htCIUhxgjBN yIp56wc3o+8aBWesvMZcz/mqGUs/+pmWGBn6DlAKUGql7MkPsmsVfK+6d3hs8thcXeSS 1/PeO++pSSLB6mfh8MRD4FicPrswuv7Fn6KHgLCF30lf8luzCgg1/N+wX4+DHjZ+B0Qv 8T4qZ5PsJIMN7RunJUQkqgjc9BzrQDjPK0ogohRdrqGYEUMEQxBCwyKFTadRciN3BAt6 wQyAEZPjaAeUDjmnWAYBxfK7w5R1UNS+KyFL1vZYsBiXLubOD2t5uNOm1M/WV0cmRq/L Ok8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nN25bX7p; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m35si2366775pje.84.2019.08.08.10.43.10; Thu, 08 Aug 2019 10:43:27 -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=@chromium.org header.s=google header.b=nN25bX7p; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390233AbfHHQoo (ORCPT + 99 others); Thu, 8 Aug 2019 12:44:44 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:41548 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732572AbfHHQoo (ORCPT ); Thu, 8 Aug 2019 12:44:44 -0400 Received: by mail-ot1-f66.google.com with SMTP id o101so121199233ota.8 for ; Thu, 08 Aug 2019 09:44:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mdKChiO6toradfdA1i6Jwh7yiUgV/BOpjgptiTpJXTc=; b=nN25bX7pb6egOKBjU+l2ju89PKwN/5apoENIzX1yELI4kWtTHv02FC8vmZ5UY5HgdY N0hM9lnejemrdoHWz7YV2JwiOcYaVcO0RE4nBEwv8TFYoMqpzNn1u7FJpugxUj/FB+rB qpQ6yLSPsVmThmT5atHi74jQNdieykgqiXoGU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mdKChiO6toradfdA1i6Jwh7yiUgV/BOpjgptiTpJXTc=; b=Tk78oVCHPmX1EZMucv8fWCwUZva2YpQ0TLhowfZr4Qm2ToER98f8FPfXfhxYVQpt/9 d1h4Bzg9fUXA3bS57wnfi9jZLuOZpgCtIaAA3tH/YE2lycdEE37XIK/2NZGY3La3zmqm 7e/3CZEXuMyGAMyXmVBLVbYQAVTCcNe2isLfI5SutWUyAK9plMARSOaP9APB3eexlmkv TFFtoBE+X5TXnBFXLqZMo42WKO296bW9ddVtgTbygtVBibaKpl9qpWEP+1WbsdAd8niB 1OvhhOz7DxD+PJjr+ZYMfonjgwpJbvtecyOuGjk+rMo5ksSRQnoTHfZmz0zJSAvoYDj7 FYPg== X-Gm-Message-State: APjAAAWAwp48cvWPkN4vzf7TZgnqkAFqbrshCaoMiNMHAGTY4svNdAUW meU209fgPPUqE57AmNlF82lRqnkJkgxsAESbAiU0DUPRqoQ= X-Received: by 2002:a02:c549:: with SMTP id g9mr17312340jaj.14.1565282683214; Thu, 08 Aug 2019 09:44:43 -0700 (PDT) MIME-Version: 1.0 References: <20190805211451.20176-1-robdclark@gmail.com> <20190806084821.GA17129@lst.de> <20190806143457.GF475@lakrids.cambridge.arm.com> <20190807123807.GD54191@lakrids.cambridge.arm.com> <20190807164958.GA44765@lakrids.cambridge.arm.com> <20190808075947.GE30308@lst.de> In-Reply-To: <20190808075947.GE30308@lst.de> From: Rob Clark Date: Thu, 8 Aug 2019 09:44:32 -0700 Message-ID: Subject: Re: [PATCH 1/2] drm: add cache support for arm64 To: Christoph Hellwig Cc: Mark Rutland , Rob Clark , dri-devel , Catalin Marinas , Will Deacon , Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Daniel Vetter , Allison Randal , Greg Kroah-Hartman , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 8, 2019 at 12:59 AM Christoph Hellwig wrote: > > On Wed, Aug 07, 2019 at 10:30:04AM -0700, Rob Clark wrote: > > So, we do end up using GFP_HIGHUSER, which appears to get passed thru > > when shmem gets to the point of actually allocating pages.. not sure > > if that just ends up being a hint, or if it guarantees that we don't > > get something in the linear map. > > > > (Bear with me while I "page" this all back in.. last time I dug thru > > the shmem code was probably pre-armv8, or at least before I had any > > armv8 hw) > > GFP_HIGHUSER basically just means that this is an allocation that could > dip into highmem, in which case it would not have a kernel mapping. > This can happen on arm + LPAE, but not on arm64. Just a dumb question, but why is *all* memory in the linear map on arm64? It would seem useful to have a source of pages that is not in the linear map. I guess it is mapped as huge pages (or something larger than 4k pages)? Any recommended reading to understand how/why the kernel address space is setup the way it is (so I can ask fewer dumb questions)? BR, -R