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=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 79BC6C433F5 for ; Mon, 6 Sep 2021 15:33:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 56F7660E52 for ; Mon, 6 Sep 2021 15:33:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241953AbhIFPey (ORCPT ); Mon, 6 Sep 2021 11:34:54 -0400 Received: from mail-vk1-f177.google.com ([209.85.221.177]:45932 "EHLO mail-vk1-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233979AbhIFPex (ORCPT ); Mon, 6 Sep 2021 11:34:53 -0400 Received: by mail-vk1-f177.google.com with SMTP id h13so2324178vkc.12; Mon, 06 Sep 2021 08:33:48 -0700 (PDT) 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=vurnog586LelhGKIAETgFB3SlUTlYV5Ye/u5xa1mces=; b=iPqBfO0RuUM+RRHA3TUlrOMvtdWUKHyxniFYnNYUylwI3osZJgFxLIxoQqDnHVbaDc 0Yr2Yap9XBKStREbPqZpJI8tBYTXNQZF86Ol5eclf2OOj70OII3PzhtmudetI83pDYdu BaavdHDcQRDScSAuFq/HYa9bfTbW9OI0KCqrqneVsdI38puokNZkfRKjt2VvdvI98oDO NS7E0ZOO0CYyfLEE7bXyAGFi1GpkoFinqt7iRd1okEaR/65E2pHQajnuKR/fekw58w9u 3izw2wNXGU6CeLWFXDOmcOSuvDxw3zPrkFKqmKn5Wou6g11JkfgJ2IwIGS+F5TKQGNsG PE9Q== X-Gm-Message-State: AOAM532M+RdQsq8YR+pEqc071ki80cb0BR05pi18d+XzimFLujJTStvG Y9kca0PLpL6HAf63qkrJx0bVmLj+dt/ID9jdWBw= X-Google-Smtp-Source: ABdhPJwbpu6+6jutpiO40IYUpYC/LGtFpT4vQkjLQimOl6eXfUeX70f6OavLgBYdFvcp4zyAc46Ik3ygTt/BGFgGcbs= X-Received: by 2002:a1f:fc8f:: with SMTP id a137mr5454283vki.19.1630942428209; Mon, 06 Sep 2021 08:33:48 -0700 (PDT) MIME-Version: 1.0 References: <20210901102705.556093-1-yoshihiro.shimoda.uh@renesas.com> <20210901102705.556093-3-yoshihiro.shimoda.uh@renesas.com> In-Reply-To: <20210901102705.556093-3-yoshihiro.shimoda.uh@renesas.com> From: Geert Uytterhoeven Date: Mon, 6 Sep 2021 17:33:37 +0200 Message-ID: Subject: Re: [PATCH 2/2] iommu/ipmmu-vmsa: Add support for r8a779a0 To: Yoshihiro Shimoda Cc: Joerg Roedel , Will Deacon , Rob Herring , Linux IOMMU , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux-Renesas Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi Shimoda-san, On Wed, Sep 1, 2021 at 12:27 PM Yoshihiro Shimoda wrote: > Add support for r8a779a0 (R-Car V3U). The IPMMU hardware design > of this SoC differs than others. So, add a new ipmmu_features for it. > > Signed-off-by: Yoshihiro Shimoda > --- a/drivers/iommu/ipmmu-vmsa.c > +++ b/drivers/iommu/ipmmu-vmsa.c > @@ -922,6 +922,20 @@ static const struct ipmmu_features ipmmu_features_rcar_gen3 = { > .utlb_offset_base = 0, > }; > > +static const struct ipmmu_features ipmmu_features_r8a779a0 = { > + .use_ns_alias_offset = false, > + .has_cache_leaf_nodes = true, > + .number_of_contexts = 8, Shouldn't this be 16? Or do you plan to add support for more than 8 contexts later, as that would require increasing IPMMU_CTX_MAX, and updating ipmmu_ctx_reg() to handle the second bank of 8 contexts? Regardless, I assume this will still work when when limiting to 8 contexts, so Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds