Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8014331rwl; Tue, 10 Jan 2023 08:04:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXuSFDlnmookZW8mm3EYNrjiSj/HOJm7R15EOAmoZHRgAaw7DAjn7vOm+ci+ahwz+sK5yWh+ X-Received: by 2002:a17:90a:f3cc:b0:226:daad:8c88 with SMTP id ha12-20020a17090af3cc00b00226daad8c88mr16513640pjb.16.1673366657909; Tue, 10 Jan 2023 08:04:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673366657; cv=none; d=google.com; s=arc-20160816; b=IiT5uVosZ5aXCoLpCSW3hiYNRao03V8wltJzz9f0qeUwJQ+ClLv2wQbf1dtdfkM29+ mJxY1UB1eHcpKt5Renp/CxUyO1ZrkbQXpD03+BL5pL/U6lTiW9FMa2+YZXNlSmRncIJL N3PUj6Z+kagIG8wguyixysU1YMOfXsUvZK5vH2UEakBl4ZfCwiHAHzV7roivRoGSo2z3 UsDnWSQeyV92hCE+My7ilKzr2UgEF6rABFJ4i+tDJHwFJD2s1OkKr95C0HEZ0nJ9wf2k E15LGNK43Br5n016PhhDgjdmNuX6eanAE7rGK11LC0DQwLLtP20KGotg9Ofs53TyR4qz ayVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=DhWfAtc0pgiyvrNPk7XXgO8FZhETCFIc8FSr7PhJdHI=; b=iTs1AXasSZjkgE+ZzRRPB2hGrA7sXHh0l6e3J+6V0CbzZEZJsF0AT4D7kXZRmNoVJm +zFIJt4fPwE9xa+J0ikRujBkivl56AgmYFXsvkw1KMELrWNU6QwN6Mk0eoly1WPCDiV2 E8EvxbkEgaFZNcqPUduE4SMBmLlQ4yJf4/Kni1nJMSrDB8tQk2CqfVDzYEDOiqmlwbzL MVpRZBY7x/gUN8bW7B8EsWvb/Dv/ZISPGSqaC17by5sEOvY9X9GizVwYZFISCHNK5M/W 776CETgiTyIGAQgUjOrgqIe8sNsmGsVm3lqGi6UeQZytYzMBzXLq1UUOjg6dOrGlfguc +XVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z1eoCebC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id on16-20020a17090b1d1000b00219a8d98afbsi10499903pjb.132.2023.01.10.08.04.11; Tue, 10 Jan 2023 08:04:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z1eoCebC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238331AbjAJPHE (ORCPT + 53 others); Tue, 10 Jan 2023 10:07:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238860AbjAJPGT (ORCPT ); Tue, 10 Jan 2023 10:06:19 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAE7A5F91C; Tue, 10 Jan 2023 07:05:12 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 65E7661573; Tue, 10 Jan 2023 15:05:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CA7BC433F2; Tue, 10 Jan 2023 15:05:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673363111; bh=8Td9q22Uw5o5QUURFz8ORkMMdOHQnIl4dgH2R27TkFw=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Z1eoCebChzgQJb9VnsEp0gkpPIitdtY2RVz8w6GoLLOQdlozZ4JYefEFvpbafiFH+ vQ9Qm6o6MPat1cK4uno3apCjcO7osOsSWfVZRYA4xst31X1VJUPmPCp52MQ7rQd27n UxX/exDBj4noWr5Dc+8aBvlFyZ3blQZ0aNpUdb22098clXxuCuVcF24FptBpLPGnx0 kVxxh/nCWFpa6gk7KQFMnAgUgIG7QEYaQLoGbnbSMC3wGMefEtqpBmad4r832QPxtw uzJXX5agRrwN6P9RDlP5QnVknuA1YJUMXDcHwrTERg+b/uZ8y3pwuKtfAEXKQd9wXw VxmVtvIikirHQ== Date: Tue, 10 Jan 2023 09:05:10 -0600 From: Bjorn Helgaas To: Yicong Yang Cc: suzuki.poulose@arm.com, mathieu.poirier@linaro.org, jonathan.cameron@huawei.com, linux-kernel@vger.kernel.org, alexander.shishkin@linux.intel.com, linux-pci@vger.kernel.org, prime.zeng@huawei.com, linuxarm@huawei.com, Yicong Yang Subject: Re: [PATCH v2 1/2] hwtracing: hisi_ptt: Only add the supported devices to the filters list Message-ID: <20230110150510.GA1502847@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230110130833.53474-1-yangyicong@huawei.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 10, 2023 at 09:08:32PM +0800, Yicong Yang wrote: > From: Yicong Yang > > The PTT device can only support the devices on the same PCIe core, > within BDF range [lower_bdf, upper_bdf]. It's not correct to assume > the devices on the root bus are from the same PCIe core, there are > cases that root ports from different PCIe core are sharing the same > bus. So add the checking when initialize the filters list. "So check when initializing the filters list."