Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3154788pxk; Mon, 28 Sep 2020 09:37:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjeCOeMANQSO7P3kHfvmin66lJUGnQuNxvgIFoRi8YZvMGBE5Y6H5Hps+QmBIwb4a+JeHP X-Received: by 2002:a17:906:7c4c:: with SMTP id g12mr2459611ejp.306.1601311057708; Mon, 28 Sep 2020 09:37:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601311057; cv=none; d=google.com; s=arc-20160816; b=qiBg/Z2sk143ZL0ai01r7DuLo63hsmaXIVWyHga9hm2ObigR4D6WAQzgs7hVAfrbW8 twJyxCdC1ZEF+pgcqneTFAPfzjfD/B9UfbnSkZtdBer0/CT1xOMaLvzUOVtCOUgtVKPn zCRmAidbuMvaRw1x/H9N9isoeUh2Nm4mLdPEZJopcE5QbQzpOPnFldOF4rpG6sOVyzzz LkQoQmlNOkwAL7WMyDvUJlRjwkYawU2idZXxY8PVMMgy3ykrSRy/bGeQbBx7yasDtAZP sC6itkaI/OBgvbw7U59Kebb7CYZKR8xB371FLH81khRjgloKXxhlq1vZ8VLbTMCGSzFA GslQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gSNI4aKIAgjaa3IWnWs5bKpT6ackNFBWDJoRKS0EH98=; b=obWPkYwEnekXxkanp8/Va0X2Slxu85OMsiJNSlI3dbTx0GPUaEW5nLDhmXmTgq6Wcv xLMjOnwtYGfUWTq4QukfXeAfhtnkdqMchEeCkAggtZ4LXlFgMT2T0/T8JpRZZBIiCVDh /dake1Q+nyK89w3GAy9iJQvdYgKw30LKaqacNLEJ+2qPJ0HI1/wxhllEEFBwLbQORwEU vhhXCbjH5Q1v92XtLhaCxl0F2fZnEGxCOhaXX8YcN67b/rFvijD6xXDyAxQsFlrOzMYe 4TeW8bpNZBeuE4HnBp+UYP40HavC6kl+QW62S2HF0aMuOupveT1VEp6YIUWUoyde0ZMi xPCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="kLqhFN7/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a5si1028242edt.556.2020.09.28.09.37.15; Mon, 28 Sep 2020 09:37:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="kLqhFN7/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726697AbgI1QfW (ORCPT + 99 others); Mon, 28 Sep 2020 12:35:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726684AbgI1QfU (ORCPT ); Mon, 28 Sep 2020 12:35:20 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62CCFC0613CF for ; Mon, 28 Sep 2020 09:35:19 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id kk9so949824pjb.2 for ; Mon, 28 Sep 2020 09:35:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gSNI4aKIAgjaa3IWnWs5bKpT6ackNFBWDJoRKS0EH98=; b=kLqhFN7/bIhd9wUGI78A0ktoH07XgmRZDjrVQAc8bdiSY5sbjRd0KQ5BcMDjNJn4YH E25q2of6p9zDRYlVsaN3x7Iq4GKJn2areWyQRdDOI4i4HDxDZ4CtNoyCCZvkvmyTJ9a9 zDy7W1IYNUQB+pETxN7DFxnKfre/pTE38Q6ZJSqf12rteCxF5CXKbacx2khW9wVo1RbN gTGJYdSqXShTzo2N8Zk8jN54Jitx1bYyqXDM/IMvACoGbmoslDcpUUHCFloGPOu8gXP0 +QU4ZhuiJn2ANRF68wg3fvw3bESzHZpOB6BfycD4j4Iqu6+OMtpywnrU9FiN8wtxzMh2 ruxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gSNI4aKIAgjaa3IWnWs5bKpT6ackNFBWDJoRKS0EH98=; b=Oarz4rMYppCPUtbyQ1c++PecD6k4s98spIT5sc+bsuUPi22l3+tlrcQA9w0JQioBuI LjFfSSqxWvmhNEu7F4fD4euyJ1R5hjR9loy+cOqTGYnKrQHBFNHM9YRUoEDKSKIxxHQw pw9aozKLTKJfcn2NgdCe5W6laF2CRXBQf6slXuMjt0l2nxBu0e5UVx0ffKaVqNeEp2qJ d4PWruRkQS0cTAFA63u6/tslz88/1KUuZ+jRqhKIS+OwRAs0xEcaW0A5hOuNimdN/LYp H/ObfpWjs++VJlasFvxuL4W6Rey5zusE51oZnOQhNXPA44wLr6VlpmGSdF2lz01mTeta JnYg== X-Gm-Message-State: AOAM532eNLd1+/90kLLg8GC10Rd/h45JkBLeLkq/WxSL0AfWIJT0fwDe 87NH20khERyL6ATW86DpQaChsueU9tB7xw== X-Received: by 2002:a17:90a:d914:: with SMTP id c20mr167794pjv.34.1601310918968; Mon, 28 Sep 2020 09:35:18 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id f19sm2345640pfd.45.2020.09.28.09.35.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 09:35:18 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/25] coresight: Add coresight prefix to barrier_pkt Date: Mon, 28 Sep 2020 10:34:52 -0600 Message-Id: <20200928163513.70169-5-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200928163513.70169-1-mathieu.poirier@linaro.org> References: <20200928163513.70169-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tingwei Zhang Add coresight prefix to make it specific. It will be a export symbol. Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Tingwei Zhang Reviewed-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etb10.c | 2 +- drivers/hwtracing/coresight/coresight-priv.h | 7 +++---- drivers/hwtracing/coresight/coresight-tmc-etf.c | 2 +- drivers/hwtracing/coresight/coresight.c | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-etb10.c b/drivers/hwtracing/coresight/coresight-etb10.c index 03e3f2590191..04ee9cda988d 100644 --- a/drivers/hwtracing/coresight/coresight-etb10.c +++ b/drivers/hwtracing/coresight/coresight-etb10.c @@ -525,7 +525,7 @@ static unsigned long etb_update_buffer(struct coresight_device *csdev, cur = buf->cur; offset = buf->offset; - barrier = barrier_pkt; + barrier = coresight_barrier_pkt; for (i = 0; i < to_read; i += 4) { buf_ptr = buf->data_pages[cur] + offset; diff --git a/drivers/hwtracing/coresight/coresight-priv.h b/drivers/hwtracing/coresight/coresight-priv.h index 28695e26e5c6..d638c7d48815 100644 --- a/drivers/hwtracing/coresight/coresight-priv.h +++ b/drivers/hwtracing/coresight/coresight-priv.h @@ -66,8 +66,8 @@ static DEVICE_ATTR_RO(name) #define coresight_simple_reg64(type, name, lo_off, hi_off) \ __coresight_simple_func(type, NULL, name, lo_off, hi_off) -extern const u32 barrier_pkt[4]; -#define CORESIGHT_BARRIER_PKT_SIZE (sizeof(barrier_pkt)) +extern const u32 coresight_barrier_pkt[4]; +#define CORESIGHT_BARRIER_PKT_SIZE (sizeof(coresight_barrier_pkt)) enum etm_addr_type { ETM_ADDR_TYPE_NONE, @@ -104,10 +104,9 @@ struct cs_buffers { static inline void coresight_insert_barrier_packet(void *buf) { if (buf) - memcpy(buf, barrier_pkt, CORESIGHT_BARRIER_PKT_SIZE); + memcpy(buf, coresight_barrier_pkt, CORESIGHT_BARRIER_PKT_SIZE); } - static inline void CS_LOCK(void __iomem *addr) { do { diff --git a/drivers/hwtracing/coresight/coresight-tmc-etf.c b/drivers/hwtracing/coresight/coresight-tmc-etf.c index 6375504ba8b0..44402d413ebb 100644 --- a/drivers/hwtracing/coresight/coresight-tmc-etf.c +++ b/drivers/hwtracing/coresight/coresight-tmc-etf.c @@ -519,7 +519,7 @@ static unsigned long tmc_update_etf_buffer(struct coresight_device *csdev, cur = buf->cur; offset = buf->offset; - barrier = barrier_pkt; + barrier = coresight_barrier_pkt; /* for every byte to read */ for (i = 0; i < to_read; i += 4) { diff --git a/drivers/hwtracing/coresight/coresight.c b/drivers/hwtracing/coresight/coresight.c index bb4f9e0a5438..ae40bb0539fd 100644 --- a/drivers/hwtracing/coresight/coresight.c +++ b/drivers/hwtracing/coresight/coresight.c @@ -53,7 +53,7 @@ static struct list_head *stm_path; * beginning of the data collected in a buffer. That way the decoder knows that * it needs to look for another sync sequence. */ -const u32 barrier_pkt[4] = {0x7fffffff, 0x7fffffff, 0x7fffffff, 0x7fffffff}; +const u32 coresight_barrier_pkt[4] = {0x7fffffff, 0x7fffffff, 0x7fffffff, 0x7fffffff}; static int coresight_id_match(struct device *dev, void *data) { -- 2.25.1