Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1272FC6FA99 for ; Fri, 10 Mar 2023 12:04:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229952AbjCJMEd (ORCPT ); Fri, 10 Mar 2023 07:04:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229654AbjCJMEa (ORCPT ); Fri, 10 Mar 2023 07:04:30 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F152EA014; Fri, 10 Mar 2023 04:04:29 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id g3so19557046eda.1; Fri, 10 Mar 2023 04:04:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678449868; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7JxCDIVzx63/0USvlw4b2PiFBo7GGlMiiEoXtp1Amu4=; b=kqp/fj0uASTKrAmvf0lTJGWGKD9gFQlxmnqqS5X5AGk2553pxdR8KZp5V0XwHtybS7 2b3kqVkJThJ2G0PPuq9QoR2dPpVJU0SXpW601F1iydUt1zPutR3O1dinA0F1ADXPlnzF ZrZCgfTNa3NwIDI9Bh2JErYh2ah738xo3qxQp6QniFND9su9bS0BQnBE+PEZQTjJdegp vB7oKe3w1A5C7f5kKeODVg/B7rkdPJmwespxAUn7x6sHcdVJ35X1LCRoNR4Q7u7MRmIy FGAk65pKIkPXaYFDOPNB7yVABgqfXka4n6BF8UEl7BcM2uKqr9Bl0zwsp4FtMcSG+Kru P/Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678449868; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7JxCDIVzx63/0USvlw4b2PiFBo7GGlMiiEoXtp1Amu4=; b=CDfSGptqgv2Jv9uCJPsi1vnzFqRNTa291cqVWhnfOZIvdKpuKkEnQzmqTHPOVx4Qwx Xchb2Ezc1LR8uuilKaeEEpl/IIK/D8d5YAud5NkdpVXKvOoM5jFuwxFHEjFfp/YpylMu s6NZA8QWrZSGMFD4UqsAdegchb2huIb0oidsCBuIeJY16DlB1vlWlKmnBzTbfLl/CZ0G o+SZlX6SyYb+L93MBuGfVKFmdAzgrMSGdyi79lgkRItFQDr3+7fTkN9EJvNpAlZDQSnE olOXI3dYKuVnN1yztuTEYinQUW0KUQVGO3w2nTxIn6sRjme8Gz23DrFKFAsnY/wsTWFm vHJQ== X-Gm-Message-State: AO0yUKU03mWFkJS5VH9lmVF8bf0yeuW/1HLC2TwbVJ0PnMsARc3pctSZ 5kHvZgm1sQi/OkjSQevzfqIILXj/36YSGmrEmdo= X-Google-Smtp-Source: AK7set8NexWLnnznp47X6iexl2bquKGhMUmpmcoFxaD97rzeEbBrsEdy4xTtZDpmQ5EjrulWwvs76lPRcjQUNCkG/yg= X-Received: by 2002:a50:9b53:0:b0:4ae:f648:950b with SMTP id a19-20020a509b53000000b004aef648950bmr13917661edj.7.1678449867835; Fri, 10 Mar 2023 04:04:27 -0800 (PST) MIME-Version: 1.0 References: <20230310080518.78054-1-lucas.tanure@collabora.com> <20230310080518.78054-2-lucas.tanure@collabora.com> <86v8j8yg3d.wl-maz@kernel.org> In-Reply-To: <86v8j8yg3d.wl-maz@kernel.org> From: Peter Geis Date: Fri, 10 Mar 2023 07:04:16 -0500 Message-ID: Subject: Re: [PATCH 1/7] irqchip/gic-v3: Add a DMA Non-Coherent flag To: Marc Zyngier Cc: Lucas Tanure , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Thomas Gleixner , Lorenzo Pieralisi , Krzysztof Wilczynski , Bjorn Helgaas , Qu Wenruo , Piotr Oniszczuk , Kever Yang , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, kernel@collabora.com, Robin Murphy Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 10, 2023 at 6:57 AM Marc Zyngier wrote: > > On Fri, 10 Mar 2023 11:41:46 +0000, > Peter Geis wrote: > > > > On Fri, Mar 10, 2023 at 3:05 AM Lucas Tanure wrote: > > > > > > The GIC600 integration in RK356x, used in rk3588, doesn't support > > > any of the shareability or cacheability attributes, and requires > > > both values to be set to 0b00 for all the ITS and Redistributor > > > tables. > > > > > > This is loosely based on prior work from XiaoDong Huang and > > > Peter Geis fixing this issue specifically for Rockchip 356x. > > > > Good Morning, > > > > Since the gic is using dma, would it be reasonable to have all memory > > allocations be requested with the GFP_DMA flag? Otherwise this doesn't > > fully solve the problem for rk356x, where only the lower 4GB range is > > DMA capable, but this tends to get allocated in the upper 4GB on 8GB > > boards. > > That's an erratum. Please treat as such. Good Morning, Yes, believe me I'm fully aware of how broken rk356x is. I'm asking an educational question from a kernel standards point of view, absent the rk356x issues. Would it be reasonable that since the gic uses dma memory, allocations for the gic should be made with the GFP_DMA flag? Or is that a misuse of the flag? Very Respectfully, Peter Geis > > M. > > -- > Without deviation from the norm, progress is not possible.