Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp854788pxf; Thu, 11 Mar 2021 17:13:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDxBIFeCrfeo5SWDci8A7JsvRE7+DPCgJsABSehOCx76sMXn0xqSlc10cRSgupyw9Nx0i+ X-Received: by 2002:a17:906:78d:: with SMTP id l13mr4824365ejc.97.1615511609997; Thu, 11 Mar 2021 17:13:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615511609; cv=none; d=google.com; s=arc-20160816; b=Qi8xbJbWz8xMQWQgeBaVnyUN0F/6xtauIfx30vUSxrPbjHLGZZTuiqh4hcsWKXX00w BFfWaAR/P/3Vhek0tpc/qxDx11GOZtYzpQbKsBOkkm/tU8o48JBBRx8RWZtjP/p8t/H1 Aj/jeFg8k68sCLU5aMyplD+xiWvGWsKvEb8WfgXioPJpM2raDidGePuvBQ+tHDQju26l M3Izc2V8YYoGyBbB2yiLx6fx7T6KBI0Iecyd2mqcUp9VZlNpduvAANinVw1MRJzCPLo8 nqoi2MRSmUApLN99n6p589RLYuyUEYEqZGcaePt3AQzXfx7m2fVQPgpiVqvGM+g5ePMF VhLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=16+EGqIhvzNXbdawWsI24XgIQiUgZzzrwVqWt5tsI6Q=; b=ZUVEDrRzjVn2SRRd+R1h+d4kvRyWOceM3OxHX5dMyURnvhSDMpdCnj69EDiSjb8A8R oBH77jPvZMDbrHTgt7OuSPHIU5zsI5B0dUAjz3H9LIzvBOyOqZqvHXbO+rERLluTX5e7 GkYpe43g3km0fOaEQ0BjxHHI+oWJRfrv7TAwQfUDz21hNJs+yXh0oJYtAKqKBJpO5lhO x6iCgZIpMuNMt3lVjZSTVdFNKDAceqmig6C14wn5Np1E6svl/jcUWM2puItEgXeM0KIO MbfmO803ILQLgGi6KJoWu6gyB2MEvVQvtbVPSp5VgNkGEO23DWg0z5nhqlNZ+ty59DEq yOhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="k9/V8e9h"; 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 q17si2900688ejy.390.2021.03.11.17.13.07; Thu, 11 Mar 2021 17:13:29 -0800 (PST) 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="k9/V8e9h"; 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 S231216AbhCLBLw (ORCPT + 99 others); Thu, 11 Mar 2021 20:11:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbhCLBLt (ORCPT ); Thu, 11 Mar 2021 20:11:49 -0500 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2DA1C061574; Thu, 11 Mar 2021 17:11:48 -0800 (PST) Received: by mail-pj1-x1030.google.com with SMTP id kr3-20020a17090b4903b02900c096fc01deso10242947pjb.4; Thu, 11 Mar 2021 17:11:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=16+EGqIhvzNXbdawWsI24XgIQiUgZzzrwVqWt5tsI6Q=; b=k9/V8e9h7lxJGy3+MvDbuIN+ZYqSyUG2tRF5AcbhR75EaTsDgVFbTPeXzQFoCt5Y0z maWum4fpgZCnxzMCM1UnW6bV7Mc2dki6/0AEPh09DM69U4ozafluPUirqWTSkR3qG5ZL TSs0o2z4duN4aAcf3R0oLBDNGwGZ6IBeAhMoS8/4GEYwtyNOWYRgduR3Ucky7rCRJaQS Xd54+6SIcYHnOWuWSRZt5t6f4pxRxV0n12IFfwY3Or+u6tch+nNOSe8ZrKzL38zFBgs5 F6esRhGL1FrhBS8hrao32eJDPriSrnDFQBn2dPFJML18s58L0JOwcbt0p9QzSH/54iOD y+PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=16+EGqIhvzNXbdawWsI24XgIQiUgZzzrwVqWt5tsI6Q=; b=AHmNyGG106SHGQVAbRjYufYD3KR7/w6MBJi8+1Wu5kTy+I9M8c7I+avYKyDcz90WbQ EdiHcyV4CjMclX9zoT5XQU6yAYONs8NmdwGZP7orgHsroW3z6w3Wo4pvq50PPQq3l18M 5USafL0C3cUFULQmZmaagh5pFjBNUlZE8tgOXht/sxgqzIDTiebUQzA3fS0w8q8Hh5D8 WYwAvzcYANCwgoyOU3L+XimGDKHmTxP+9TDz9Z6lxKYaalxYRfB06tkSyfF27HsZFaCL pJ5Jm2eOFdAgQnS7d0aB3DexQ2DaowvVbHymEX9Feqdk87E9RPIRS4LgDcsdL5tf6puK +PSw== X-Gm-Message-State: AOAM531oiDhfngZCyEugyZTc62uD0xLr7V7kCS4f/BF1TGxVjckR/wXP cFJbvoqBYIQHp/Vfr4sTS8A= X-Received: by 2002:a17:90a:f82:: with SMTP id 2mr11837097pjz.196.1615511508531; Thu, 11 Mar 2021 17:11:48 -0800 (PST) Received: from Asurada-Nvidia (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id y7sm268087pja.25.2021.03.11.17.11.47 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Mar 2021 17:11:48 -0800 (PST) Date: Thu, 11 Mar 2021 17:09:33 -0800 From: Nicolin Chen To: Dmitry Osipenko Cc: joro@8bytes.org, thierry.reding@gmail.com, will@kernel.org, vdumpa@nvidia.com, jonathanh@nvidia.com, linux-tegra@vger.kernel.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] iommu/tegra-smmu: Add pagetable mappings to debugfs Message-ID: <20210312010932.GB29926@Asurada-Nvidia> References: <20210310033614.16772-1-nicoleotsuka@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 11, 2021 at 05:04:06PM +0300, Dmitry Osipenko wrote: > 10.03.2021 06:36, Nicolin Chen пишет: > ... > > +static int tegra_smmu_mappings_show(struct seq_file *s, void *data) > > +{ > > + struct tegra_smmu_group_debug *group_debug = s->private; > > + const struct tegra_smmu_swgroup *group; > > + struct tegra_smmu_as *as; > > + struct tegra_smmu *smmu; > > + int pd_index, pt_index; > > > +DEFINE_SHOW_ATTRIBUTE(tegra_smmu_mappings); > > + > > static void tegra_smmu_debugfs_init(struct tegra_smmu *smmu) > > { > > + const struct tegra_smmu_soc *soc = smmu->soc; > > + struct tegra_smmu_group_debug *group_debug; > > + struct device *dev = smmu->dev; > > + struct dentry *d; > > + int i; > > You should use unsigned types for everything that isn't signed. Okay. Will fix. Thanks!