Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp333454pxb; Wed, 14 Apr 2021 17:03:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoGCfcwbyWpP/KeLxLt0VlN3Pbt8eY36WnvPyBbaCL172kxQlSErZ/EGDCboblf0n4WMKs X-Received: by 2002:a17:906:e949:: with SMTP id jw9mr614444ejb.433.1618445018887; Wed, 14 Apr 2021 17:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618445018; cv=none; d=google.com; s=arc-20160816; b=uHhp8KfRnxfwjvEUPWQYpgOaYY2TrDoeV/5UJRMN+4IbuN324JSKWJjD2gI8McKDD6 7j41+tVfkaUMeo4bQrU78/hbSa3ITns5qaDeWLtAkmOETFeV/VLkwh42tojjUfC6S3zV bCb+8QXtjSQ4ZrX0nArzWYtTpSJUprDhtZu92Hkq6kaQqWLSRknVI4ocHkcNXS3uNTnX Y5AsA6fHyztZxz2bwkfPVRVtG1EIct2Qh55FXCO/UCZstm5iwe7Ihz/IPVkthBamjZS/ 5DABsElJomW4cFXd4wNz9x/LV72IdU6ALv34gJZt7HI5oskhi2RVOHCI6hZgpHEoaEZr UFow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=vuwN2tps+A9iGF/qWHJo0OKDNEJp6OUg5buE8ubsh+M=; b=K6p08yZll+34lqwVMpRSBz/kjNJqEZWtl+MVz6iQA8CWClnffzmO4XEJS4EIIq/YcZ hiaJoT42TLD8s8s9ne/Tt6thjgybYaB4GRBXIbjZQfamzbjWbUECxTCB4IWaXJpDEbuP EgJZwn/wMT1cldKHTIRrl4sIo84lbBaXfXP6UzqsOqG5G+/c6YvWzrxSWFBRV2e1+AMa Msd3YMGiIERUgtlCwQPqIJSSOn6pXgPM4o2/7Q9jkna/CXKM+/ZjzVX6watS5CQSogM6 vRvUAyt4yZ1PdvQLbxudDy85t6bYZNBIg1kdt9s81I8eYQ+/CaIIJ7HhzIWeH78Qfme1 W7lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lOa2FIKM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si852556edu.503.2021.04.14.17.03.09; Wed, 14 Apr 2021 17:03:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lOa2FIKM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233129AbhDNLl7 (ORCPT + 99 others); Wed, 14 Apr 2021 07:41:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231668AbhDNLl4 (ORCPT ); Wed, 14 Apr 2021 07:41:56 -0400 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83FA5C061574 for ; Wed, 14 Apr 2021 04:41:33 -0700 (PDT) Received: by mail-qt1-x82a.google.com with SMTP id o2so1740729qtr.4 for ; Wed, 14 Apr 2021 04:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vuwN2tps+A9iGF/qWHJo0OKDNEJp6OUg5buE8ubsh+M=; b=lOa2FIKMpFcGcgOps89l43t3sEAOetiZcbF6/1KxJDlnOmuEOwaRkcD7cjK1bDrKVN B1Y2gwmq0+eNEAE2/fYb3p8K5+P/gmzguNSWZOFlLYNMfIchgOyv5a/dBbgBEWQZnxRM SRh59l2LYd3uXf4FI+xMiDn/Hh5DB06DliKIVfqcOJmNaSLf1czsSB8cD9JE3Fr3vERq HPr8Vu3RMEu83moP+TTnH8KQymECCnSAND+vdd0g4rEzseJ69WeF+BffSb77smaP4inO sqonwy40eLCYwq4jo28jHsandWRYysbHo5Zfld3O/8mUdtsv+8HxtzyQo1ggNVH9MR8A ADKw== 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=vuwN2tps+A9iGF/qWHJo0OKDNEJp6OUg5buE8ubsh+M=; b=gfAg+gANU902d0MEwymiNxm6aro7AY5Zyec6m/9YFle9f3gPo5yNuOe8UMX13hopgi UPL814A7TmWOPyM84w1qDIIemG62Zr4DOtDXIyqWAkGMP06r2W0AOM137nudRymIR5Ah gb5k8RDqpUUqact0BUoq7Vp9wvWJSHjq5TwRC7Rs53eo9DCWLAmPFj4gVTncGlx4NlQz lmWsweaTY8u5MR2d+s/7ARCwtWca7C6ZR3DLl/zptF0ujv5okvM93FOKm68hYcoFZ6IM u/yLZ1xSFCSM5YeTN0Na7D5+PCAZ5dKLOF9UCMgig65hm5KHv0KAGBr5mz7yP/24x07j GGTw== X-Gm-Message-State: AOAM530QUKLzsSvyM4x6FPf+P0oM25zzIFG5ciFG4Dy6YZe5txoTCaLf dDGQosY7qTqXQH6oaLY3nND9LBmbulvnZCq0UibdHheyj3gaGw== X-Received: by 2002:a05:622a:216:: with SMTP id b22mr35132063qtx.263.1618400492664; Wed, 14 Apr 2021 04:41:32 -0700 (PDT) MIME-Version: 1.0 References: <871rbeo7wf.wl-maz@kernel.org> <87y2dmmggt.wl-maz@kernel.org> <87tuoambdb.wl-maz@kernel.org> In-Reply-To: <87tuoambdb.wl-maz@kernel.org> From: Peter Geis Date: Wed, 14 Apr 2021 07:41:20 -0400 Message-ID: Subject: Re: [RFC] ITS fails to allocate on rk3568/rk3566 To: Marc Zyngier Cc: Thomas Gleixner , "open list:ARM/Rockchip SoC..." , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 13, 2021 at 11:51 AM Marc Zyngier wrote: > > On Tue, 13 Apr 2021 16:03:51 +0100, > Peter Geis wrote: > > > > On Tue, Apr 13, 2021 at 10:01 AM Marc Zyngier wrote: > > [...] > > > > What happens if you hack all the allocations to happen in the low 4GB > > > of the PA space? > > > > It seems to work correctly. > > The downstream hacks used GFP_DMA32 which gets discarded by > > kmalloc_fix_flags on certain allocations. > > Switching to GFP_DMA seems to have satisfied it, but it feels wrong > > using this code. > > Need to check the corner cases to make sure I'm not missing something. > > The problem is that GFP_DMA doesn't always mean the same thing. > Overall, we need to hear from Rockchip about the exact nature of the > problem, and then we *may* be able to work something out. From what I've read, GFP_DMA allocates as low as possible, while GFP_DMA32 ensures it's in the 32 bit address range, am I understanding this correctly? Is there a reason GFP_DMA is permitted while GFP_DMA32 is not, aside from backwards compatibility? (I saw the notes about how we aren't really supposed to rely on these flags) I've also confirmed that their disabling shareability and caching is necessary. > > I'd also like to understand whether it is broken because you happen to > have pre-release silicon that will never make it into the wild, or if > this is the real thing that is going to ship on millions of devices. My understanding is these chips are samples prior to the full production run, but we are waiting on official comment from Rockchip about this particular errata. > > Thanks, > > M. > > -- > Without deviation from the norm, progress is not possible.