From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751207AbdAWMmT (ORCPT ); Mon, 23 Jan 2017 07:42:19 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:34669 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751102AbdAWMmR (ORCPT ); Mon, 23 Jan 2017 07:42:17 -0500 MIME-Version: 1.0 In-Reply-To: <148517162908.13306.2467186615655446796.sendpatchset@little-apple> References: <148517158986.13306.314435910710426381.sendpatchset@little-apple> <148517162908.13306.2467186615655446796.sendpatchset@little-apple> From: Geert Uytterhoeven Date: Mon, 23 Jan 2017 13:42:15 +0100 X-Google-Sender-Auth: r_UdjcURkPt3zU7M9LJWtDRUadU Message-ID: Subject: Re: [PATCH v2 2/3] iommu/ipmmu-vmsa: Increase maximum micro-TLBS to 48 To: Magnus Damm Cc: iommu@lists.linux-foundation.org, Laurent Pinchart , Geert Uytterhoeven , Joerg Roedel , "linux-kernel@vger.kernel.org" , Linux-Renesas , Simon Horman Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Magnus, On Mon, Jan 23, 2017 at 12:40 PM, Magnus Damm wrote: > From: Magnus Damm > > Bump up the maximum numbers of micro-TLBS to 48. > > Each IPMMU device instance get micro-TLB assignment via > the "iommus" property in DT. Older SoCs tend to use a > maximum number of 32 micro-TLBs per IPMMU instance however > newer SoCs such as r8a7796 make use of up to 48 micro-TLBs. > > At this point no SoC specific handling is done to validate > the maximum number of micro-TLBs, and because of that the > DT information is assumed to be within correct range for > each particular SoC. > > If needed in the future SoC specific feature flags can be > added to handle the maximum number of micro-TLBs without > requiring DT changes, however at this point this does not > seem necessary. > > Signed-off-by: Magnus Damm Thanks for your patch! Reviewed-by: Geert Uytterhoeven > @@ -1141,7 +1145,7 @@ static int ipmmu_probe(struct platform_d > } > > mmu->dev = &pdev->dev; > - mmu->num_utlbs = 32; > + mmu->num_utlbs = 48; This value is only used to validate the utlb channel numbers received from DT, in ipmmu_init_platform_device(), right? > spin_lock_init(&mmu->lock); > bitmap_zero(mmu->ctx, IPMMU_CTX_MAX); > mmu->features = match->data; 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