From patchwork Thu May 30 16:54:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suzuki K Poulose X-Patchwork-Id: 165444 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp1220261ili; Thu, 30 May 2019 09:54:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6sc2Xf9ovhs5YRAMirfUmCVNu/067quhhtCKDvI2aHmbU0rZjkz9YR3p+oV16VafgpTv8 X-Received: by 2002:a62:6d41:: with SMTP id i62mr4622583pfc.227.1559235282511; Thu, 30 May 2019 09:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559235282; cv=none; d=google.com; s=arc-20160816; b=V+2/bnC5fLYbvm+44VaOerhF3b5Ka4F3qc1d8d6mv/DWEw1Rxu4J/8fNjzzbRQQtEl 7qhnqYi3EYNWhmGR0I9nqvLks4LVNjEE1O7Ia4VxpVbcd9yZpRBPMOUVeGT/EMlCBqbm 36BXJPP3BzQKN3efwY5Q1JYJH2csT54N/or7gio+IIhRDW6+KI9ZZaqBziA5k/HHIPS+ DvfYEsDOTgF5MqRqXyiBXo3gUUCCFnac+weI3an/MYGwVm+VANym2Qs/e6LinQDuCffD ujtWn05Q9Vf7XBRiduzNnDfnkCjTp7fRlcbmJdXH/7Pjm/hf2yWXynyNFGX0+7kMXFbo WhCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=YcH5uarIQEcV20DGw50tcI0jqeBrmywgLf7tmeaxO/0=; b=WA6TJh2kupe+CbqP4bqejYyw2xbbD0yl50XO1akgPGD5Zl8kFS476l2fjfWIe49ac8 1jLW2Ih9bmzC2cOXncdM7IPJXH9EQ1praOngQqr1JlbgTTsiSQZRHJ5Q63xmIjYXa03z AV8Cfq9SgKeHl/dLtT3M+tyuehDs64QaXKE+i+Oqo4hNADFKsCI0zNtOi9NfBnKt08Wx AMMZnAFBis9tfF5950qwaNWhEOhp0j53+S8eAqPivwimuKvRyIFt1bHL3gMQzVCFmYmq G+pZsciZlX/ONY1r32DChAPIMcvFjJHULmZjbY98y1RfBHQROXSAPFT0vuswN5gNEIvk 2ADQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m64si3502670pgm.532.2019.05.30.09.54.42; Thu, 30 May 2019 09:54:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727710AbfE3Qyj (ORCPT + 30 others); Thu, 30 May 2019 12:54:39 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:39758 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726045AbfE3Qyj (ORCPT ); Thu, 30 May 2019 12:54:39 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 062FA341; Thu, 30 May 2019 09:54:39 -0700 (PDT) Received: from en101.cambridge.arm.com (en101.cambridge.arm.com [10.1.196.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id BCB683F5AF; Thu, 30 May 2019 09:54:37 -0700 (PDT) From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, coresight@lists.linaro.org, mathieu.poirier@linaro.org, robin.murphy@arm.com, Suzuki K Poulose Subject: [PATCH v3 0/4] coresight: Do not call smp_processor_id from preemptible contexts Date: Thu, 30 May 2019 17:54:23 +0100 Message-Id: <1559235267-25232-1-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We have a few places where we call smp_processor_id() from preemptible contexts during the perf buffer handling. We do this to figure out the numa node for the allocation in case the event is not CPU bound. Use numa_node_id() instead in such cases to avoid a splat. Changes since V2: - Use NUMA_NO_NODE instead of numa_node_id() for event->cpu == -1. (Robin Murphy) Suzuki K Poulose (4): coresight: tmc-etr: Do not call smp_processor_id() from preemptible coresight: tmc-etr: alloc_perf_buf: Do not call smp_processor_id from preemptible coresight: tmc-etf: Do not call smp_processor_id from preemptible coresight: etb10: Do not call smp_processor_id from preemptible drivers/hwtracing/coresight/coresight-etb10.c | 6 ++---- drivers/hwtracing/coresight/coresight-tmc-etf.c | 6 ++---- drivers/hwtracing/coresight/coresight-tmc-etr.c | 13 ++++--------- 3 files changed, 8 insertions(+), 17 deletions(-) -- 2.7.4