From patchwork Thu Jun 6 16:16:43 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: 165987 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp8996451ili; Thu, 6 Jun 2019 09:17:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzt0kiky3twwzReTkOKMOsLvQ3/2GnYjrBvqYpntwq5MuPeN/CI5uSvw79hOR3AueI7kQzb X-Received: by 2002:a63:161b:: with SMTP id w27mr4008436pgl.338.1559837821625; Thu, 06 Jun 2019 09:17:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559837821; cv=none; d=google.com; s=arc-20160816; b=qz7NgIHxqyEckHbZ/zcY7m7tSgQJtVKQ4Kv7kzN35AxfgG3WxZLmVXxfLpzEkrahSi bmWF84DhPGEKTEBe3I01E01QawieI+pNenG2KklVfivt8o3nGNbuI2sXZw16wWioAGQe lcaAMA9OqR05JoS/fUDXmR0ms7XKHWPQDDligpPN4j9CGtg+eucJK8mIRjhMXbqNauSL yiNA2qNxZGv+MzBNInpo4H4OlhPGWa2jlLVcRYBGA3hY4OciKN21P4B5rXzh0epxVNnp g9Gen5tv7By4nYSjxvPHRlUsyvPreXgBhn1GdHXhYPkdFz+k3FdmdGoawIejohzLk127 TzMw== 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=h3/A/sZ1Sw7gBptGAMjiulzJviTJiNLZptsEX4SfagQ=; b=MjeCr/UabN/ZwmvMn93Qs5FWNY1AjdjT/Tp3mih5RG48IDZhPBOuiPNGELoPv/StTZ MAbABlQ11nZK74PSirbYQzBx41UY+b8ZwBp7eJTbPCXRZqFsHzJBQqa791DURkgl+kzr Wv0BCWD5y5x4EJln9P5LEqeA+gS6azBDwpvElZNarOJFvfpYmda+fRnu+U8JC0qX3iE5 CLID+H9wYW2MSlr7I4lcPTMPNEzQsexknlpMLWA6AaEa4VFcIb4KVe1TnORdLYIV1ITZ WImYf7gtGXPRrZ3yoeO+rkwaMhfLrLljkVB+mHwd1TQAlSEJ884kcdLelWR3ST+FusV9 hQnQ== 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 y1si2309450pfb.264.2019.06.06.09.17.01; Thu, 06 Jun 2019 09:17:01 -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 S1729655AbfFFQRA (ORCPT + 30 others); Thu, 6 Jun 2019 12:17:00 -0400 Received: from foss.arm.com ([217.140.101.70]:49808 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729230AbfFFQRA (ORCPT ); Thu, 6 Jun 2019 12:17:00 -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 DDF92A78; Thu, 6 Jun 2019 09:16:59 -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 E70F63F690; Thu, 6 Jun 2019 09:16:58 -0700 (PDT) From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org, Suzuki K Poulose Subject: [PATCH v4 0/4] coresight: Do not call smp_processor_id from pre-emptible contexts Date: Thu, 6 Jun 2019 17:16:43 +0100 Message-Id: <1559837807-15447-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. Instead use NUMA_NO_NODE to avoid a splat. Changes since v3: - No function changes. Fix the commit description 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