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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91A8FC433EF for ; Tue, 16 Nov 2021 15:44:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5E69961526 for ; Tue, 16 Nov 2021 15:44:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5E69961526 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nZvM0+BPV/mnyleAJNcVWYLnJCfZhmzPUN2JhoPIBhM=; b=yceR8fF5N4OHcV EqPRXG9It4OQ6QMEWJY2AvxqT4KDMwaFcgtO3GGvJz3asWGQS6Xh25koHQDFySXnbNC8T8JATab/I uQvrsBMX3Rei35QJ9Z1ceBCfWFkJCU/4sGEC3ouXjjucYmo237grdVITNT1fsabO33P5g3yRSVfdt PNUSsxmrQXrTXaluLaEmzM12zPaTHBqMEGS7HwqaECnkGNVZ38RBEaLVnl43U8HMpnaOIry0SWrFH laiYu6Ke3iAPveaL40j9Bk5xUM2puMQ9xGuiNzvaEEV4AzxSOlRnVqbm+C2m2rJM0PeYHgK2rLwQZ VADlOuDy1/YASvN04/ew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mn0bq-002AfW-VC; Tue, 16 Nov 2021 15:42:59 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mn0bn-002Ae7-Kk for linux-arm-kernel@lists.infradead.org; Tue, 16 Nov 2021 15:42:57 +0000 Received: by mail-wr1-x42a.google.com with SMTP id d27so38494348wrb.6 for ; Tue, 16 Nov 2021 07:42:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=73W+eAVWIQvhx1y8meb9GkMNaweSrLQquuQCwdCLdlM=; b=tTBwR2mJVmrbw05vqMoeWpcPdynH5H7MFpf8U/8M6xAuOKKys74i66yvqrb7RY9j0c IF7HThF8ogn4WMAQ2xF+1XUR3nF9pRF3mx0z2644qRJ7JqOfW6pNG37Q9MmrhI64L7/1 5nOS7Oai+JmTOPLteY90Q5vXTUc4E5uPgv8E4k2vUNWeZsmPs0teGgIiDewfWs5w4at1 9n/BphIsJYboNZAdn4C2ib8Iq2I9IsT8rcjRiAnWuP9K2N878bsWMD0CHAaOBnNdWTa+ gIcE9MJLWh1bZas0FX7UDx98TnKHEubMHnpcccJbOTSC1wZCrqjXVnETxhBquCaynfdY zQnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=73W+eAVWIQvhx1y8meb9GkMNaweSrLQquuQCwdCLdlM=; b=EdxT1rW0BuDGXmroKcxHhgFrqieGdbqgnDEbPdJFDwc7njFu/zPDJEL0MTHLSCjpUz I3ZlG/1KRVxQ8tVsLKZ4wsW636++Bd+AF43Mm6ewtQTVZRpdfSpwdwyswMAB8GehNy9S 6dW+ehly0af75Cgc1WE+47YInLhVzsDfmY7ZUcENFUQNMoNo1zxO/Vjbo8lzwKqTYJ7x OC4viOfTTN7LnlPylXBAcqzCOL/AOD/yf2PXp/Gttzwz/OfgRI/wZSShZy6MdYbVzjOf Q3xLZDmojtJmgO/8drYi+zdnxUvaTS1TUQZ/rX1AeR5GVe3mGG5dG2GWtHijPfdGckwg 5coQ== X-Gm-Message-State: AOAM531aIig5F/qaF4HlznMnkCuk7Jf8vtDap7GH/QDcJcLWOJCXcMnL qx3Yag8Of3V34yzcKV9W+uX20Q== X-Google-Smtp-Source: ABdhPJyKqFpr5MW3WSKHEzdeBo0mZSQini6a3jugtcFq28ioUcWTEOtVBpkQKMt1YvUY/9Jb3SJZlw== X-Received: by 2002:a05:6000:1201:: with SMTP id e1mr10350062wrx.298.1637077373724; Tue, 16 Nov 2021 07:42:53 -0800 (PST) Received: from myrica (cpc92880-cmbg19-2-0-cust679.5-4.cable.virginm.net. [82.27.106.168]) by smtp.gmail.com with ESMTPSA id p14sm2742034wms.29.2021.11.16.07.42.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 07:42:53 -0800 (PST) Date: Tue, 16 Nov 2021 15:42:32 +0000 From: Jean-Philippe Brucker To: John Garry Cc: robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, robin.murphy@arm.com, iommu@lists.linux-foundation.org, uchida.jun@socionext.com, leo.yan@linaro.org, will@kernel.org, linux-arm-kernel@lists.infradead.org, Shameer Kolothum Subject: Re: [PATCH 2/2] perf/smmuv3: Add devicetree support Message-ID: References: <20211116113536.69758-1-jean-philippe@linaro.org> <20211116113536.69758-3-jean-philippe@linaro.org> <0f410098-2a58-9024-9fe4-77fb54b2a076@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <0f410098-2a58-9024-9fe4-77fb54b2a076@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211116_074255_711396_8CAE6B2A X-CRM114-Status: GOOD ( 20.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Nov 16, 2021 at 12:06:36PM +0000, John Garry wrote: > On 16/11/2021 11:35, Jean-Philippe Brucker wrote: > > Add device-tree support to the SMMUv3 PMCG. One small cosmetic change > > while factoring the option mask printout: don't display it when zero, it > > only contains one erratum at the moment. > > > > Signed-off-by: Jay Chen > > Signed-off-by: Jean-Philippe Brucker > > --- > > drivers/perf/arm_smmuv3_pmu.c | 25 +++++++++++++++++++++++-- > > 1 file changed, 23 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/perf/arm_smmuv3_pmu.c b/drivers/perf/arm_smmuv3_pmu.c > > index 226348822ab3..958325ac103a 100644 > > --- a/drivers/perf/arm_smmuv3_pmu.c > > +++ b/drivers/perf/arm_smmuv3_pmu.c > > @@ -47,6 +47,7 @@ > > #include > > #include > > #include > > +#include > > #include > > #include > > #include > > @@ -750,8 +751,15 @@ static void smmu_pmu_get_acpi_options(struct smmu_pmu *smmu_pmu) > > smmu_pmu->options |= SMMU_PMCG_EVCNTR_RDONLY; > > break; > > } > > +} > > + > > +static void smmu_pmu_get_of_options(struct smmu_pmu *smmu_pmu) > > +{ > > + struct device_node *node = smmu_pmu->dev->of_node; > > - dev_notice(smmu_pmu->dev, "option mask 0x%x\n", smmu_pmu->options); > > + if (of_device_is_compatible(node, "hisilicon,smmu-v3-pmcg-hip08")) > > I don't think that this is necessary. We don't support DT for hip08, nor > have any plans to. Incidentally, was this binding missing in your series? Ok I'll drop this (and the compatible value from patch 1) Thanks, Jean _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel