Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp870853imm; Wed, 23 May 2018 06:53:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoJYYPmBnkVCancpQtRYbaP5tfp1o6UxN+NRNEtsmcxhNNAykcZg4YBk4sB8P8mtkThQ9Ai X-Received: by 2002:a17:902:5e3:: with SMTP id f90-v6mr3145969plf.175.1527083636697; Wed, 23 May 2018 06:53:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527083636; cv=none; d=google.com; s=arc-20160816; b=s0nnrzpjipyhZB9tcBm4zY1uYCJvvce2htgaozTsYyjVCLIHaL4L/yAiUR1gpv4oBd Y2PbHTQUdS2abyTRaMEq9UNRCBodUkcEIXMvcdHl0QBZYvonB1XqK+U6qS+lbWM293Wn BfoAPnlC9YM53T+3fsSfkv06rPUDPukjWH9CoOU8+pHCXvq+hZaaR0yjMmDMEHfdPYU9 0DyObzglmVDuhb2+BQPomTlwyo9mZeGA49lO4m6U7Qjoca4Shlu3hDWQ30GRK9dfGCU6 rTTcNzEscUqVpQooqOHcOH3m8gzCBj7pGoNpNBe5UNqWyYRAH64Nl7cIHj3ZHJdu0IVG /0nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:to:subject:cc :arc-authentication-results; bh=Ls8AOMbN6RLXrToKa2UBIrpu7Mv76B9goomb4sISqBQ=; b=NZnrwIekMhJwgbeNWEouwQ3VVQWM8TGNbpOPwng1MbDPuQswqOAVuFRbDYklTpIt1+ CCXFJGT6FRYxDuTFHi9f38pzX/ZnjRmA7GpxXXxl6kmHU1pCgsFJeh8Lfx4zJCQKGGP7 ueX1qZ76L89U/xO3soCyfMMOOz5seK0FHfoqKdGOL0bCO/zPKYwq6ChVaLFj2rqLVvA8 T1tuerCAxkenOzX8YnnYEteFtyTaPMg5B8WMs/+eNdUDVul8jojTT8guY1FP+iTLrqW7 5Dkvvfc8Udg9NgWpTCRK97+pYNO+ZoZkUS1xRIOAzt8/UtRx1esIPq5Pv244357AssTw /Now== 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 v6-v6si19569788plp.60.2018.05.23.06.53.41; Wed, 23 May 2018 06:53:56 -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 S933136AbeEWNvk (ORCPT + 99 others); Wed, 23 May 2018 09:51:40 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:55680 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932900AbeEWNvh (ORCPT ); Wed, 23 May 2018 09:51:37 -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 3279F80D; Wed, 23 May 2018 06:51:37 -0700 (PDT) Received: from [10.1.210.28] (unknown [10.1.210.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6D2A53F557; Wed, 23 May 2018 06:51:33 -0700 (PDT) Cc: Sudeep Holla , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, vireshk@kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v11 1/8] soc: qcom: Separate kryo l2 accessors from PMU driver To: Ilia Lin , mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, mark.rutland@arm.com, andy.gross@linaro.org, david.brown@linaro.org, will.deacon@arm.com References: <1527079981-11179-1-git-send-email-ilialin@codeaurora.org> <1527079981-11179-2-git-send-email-ilialin@codeaurora.org> From: Sudeep Holla Organization: ARM Message-ID: <1cd8b060-9dec-6dce-cb57-4a43bf441f12@arm.com> Date: Wed, 23 May 2018 14:51:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1527079981-11179-2-git-send-email-ilialin@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/05/18 13:52, Ilia Lin wrote: > The driver provides kernel level API for other drivers > to access the MSM8996 L2 cache registers. > Separating the L2 access code from the PMU driver and > making it public to allow other drivers use it. > The accesses must be separated with a single spinlock, > maintained in this driver. > > Signed-off-by: Ilia Lin > --- > drivers/perf/Kconfig | 1 + > drivers/perf/qcom_l2_pmu.c | 90 ++++++++++-------------------------- > drivers/soc/qcom/Kconfig | 3 ++ > drivers/soc/qcom/Makefile | 1 + > drivers/soc/qcom/kryo-l2-accessors.c | 56 ++++++++++++++++++++++ > include/soc/qcom/kryo-l2-accessors.h | 12 +++++ > 6 files changed, 97 insertions(+), 66 deletions(-) > create mode 100644 drivers/soc/qcom/kryo-l2-accessors.c > create mode 100644 include/soc/qcom/kryo-l2-accessors.h > [.. > diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig > index 7093fe7..0567dff 100644 > --- a/drivers/soc/qcom/Kconfig > +++ b/drivers/soc/qcom/Kconfig > @@ -39,6 +39,9 @@ config QCOM_GSBI > functions for connecting the underlying serial UART, SPI, and I2C > devices to the output pins. > > +config QCOM_KRYO_L2_ACCESSORS > + bool > + I think kbuild bot complained about this and you haven't addressed it. This can be enabled on ARM and build breaks due to missing sysreg.h IIRC. Look at the kbuild report and fix it. -- Regards, Sudeep