From patchwork Thu Jun 27 18:15:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sai Prakash Ranjan X-Patchwork-Id: 11020251 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1FE551580 for ; Thu, 27 Jun 2019 18:16:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 154E828174 for ; Thu, 27 Jun 2019 18:16:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0952A283B0; Thu, 27 Jun 2019 18:16:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AE03D28174 for ; Thu, 27 Jun 2019 18:16:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=nwG8UkqDaWEUuy3KdR5r49czAn3ktYUsLmULRbDEMnA=; b=qED/JL6rqJOQ+4 BN5i6X/bW4BkzQtdYydSMYmMmKg4KsTwwnIStqMbbfaxwtlg0CUwc/f24li1gPrKkyYKRYTC1a3MR vcA9xIm994Dv9gtNbrk5xhZeZAq41TnpMOjDYDjbDBGm2sL+kbXVSJvyXhOmy+kggbLhRqvwn3DGU WrFO4A91hryRsl6szBLKQXUQRBx2/RdAlqrl3ATUQh4onVyUtNy0jLIP1+BQstetifHXudvDwG1jQ QAj4ybcZ8yfRvvowQuw5ry2/79DJ6pU52QHl5p7kL5yyXNX1pLnb7kSDL35jrlFm/ZJpBjNmFvQVJ KUxofVwH/AK86ckjBZeQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hgYw8-0003CY-1l; Thu, 27 Jun 2019 18:15:56 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hgYw4-0003CG-Js for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2019 18:15:53 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 31F2060A0A; Thu, 27 Jun 2019 18:15:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561659352; bh=2sY4Ndhp5UDd/gnrxUFWqpKzyMzN+O168EA2XIgQnn0=; h=From:To:Cc:Subject:Date:From; b=Ar1knjtKw9ZglU2I04UHeJDHXz0+kJq4ya+eHG9Tx4ZTK8DgRnEVlFrbiXn2LzdWT 1u/VCDhQvdt4xcmta9kud0qq23DcnFyNa4SvWf+cb7mqTdx4nDUa5vSAUSWTn4vPfJ 0J+HjbTJZoiathc+Cyxcjmsr0+UY706tdR72iMEM= Received: from blr-ubuntu-311.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: saiprakash.ranjan@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id BE2EB6021C; Thu, 27 Jun 2019 18:15:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561659351; bh=2sY4Ndhp5UDd/gnrxUFWqpKzyMzN+O168EA2XIgQnn0=; h=From:To:Cc:Subject:Date:From; b=Y2Q6a7ukyFoqnsbbSWsVTQxVHC2bzJTRnq5E/dcawYHH0vPBEE2f7RWRc9oVmkz52 tfGwfHTNRGYUe9ILBsATJrR/r7FX/xfVtS2ESK/ZPxpnpPb6vT3yzOvbCHdZMRPNr8 vY9TzM02eXaeOmfD1IPGuCfSYJuYes1EFhL2xFJs= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BE2EB6021C Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=saiprakash.ranjan@codeaurora.org From: Sai Prakash Ranjan To: Mathieu Poirier , Suzuki K Poulose , Rob Herring , devicetree@vger.kernel.org, Leo Yan , Alexander Shishkin , David Brown , Mark Rutland Subject: [PATCHv5 0/2] coresight: Do not default to CPU0 for missing CPU phandle Date: Thu, 27 Jun 2019 23:45:27 +0530 Message-Id: X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190627_111552_685694_B7BD0127 X-CRM114-Status: UNSURE ( 9.31 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sai Prakash Ranjan , Rajendra Nayak , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Sibi Sankar , Vivek Gautam , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP In case of missing CPU phandle, the affinity is set default to CPU0 which is not a correct assumption. Fix this in coresight platform to set affinity to invalid and abort the probe in drivers. Also update the dt-bindings accordingly. v5: * Separate out the dt-bindings patch. v4: * Fix return for !CONFIG_ACPI and !CONFIG_OF. v3: * Addressed review comments from Suzuki and updated acpi_coresight_get_cpu. * Removed patch 2 which had invalid check for online cpus. v2: * Addressed review comments from Suzuki and Mathieu. * Allows the probe of etm and cpu-debug to abort earlier in case of unavailability of respective cpus. Sai Prakash Ranjan (2): dt-bindings: coresight: Change CPU phandle to required property coresight: Do not default to CPU0 for missing CPU phandle .../bindings/arm/coresight-cpu-debug.txt | 4 ++-- .../devicetree/bindings/arm/coresight.txt | 8 +++++--- .../hwtracing/coresight/coresight-cpu-debug.c | 3 +++ drivers/hwtracing/coresight/coresight-etm3x.c | 3 +++ drivers/hwtracing/coresight/coresight-etm4x.c | 3 +++ .../hwtracing/coresight/coresight-platform.c | 20 +++++++++---------- 6 files changed, 26 insertions(+), 15 deletions(-)