Received: by 10.213.65.68 with SMTP id h4csp192965imn; Sat, 24 Mar 2018 18:33:07 -0700 (PDT) X-Google-Smtp-Source: AG47ELuyj3bQ0vffAQH1N9uW76JLZMM/VP6pMT7p1jL8WZoShtgF4hvmg+uFhi0N46TC1b66JCo/ X-Received: by 10.99.3.144 with SMTP id 138mr25097040pgd.364.1521941587840; Sat, 24 Mar 2018 18:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521941587; cv=none; d=google.com; s=arc-20160816; b=ja6zRHUIIsnKpEJQVcF/Fi+pf1sB3cgOFbKHNywP+d2ALMxA4A9yMaYU80E7Vqz16a ZbbqvUKenK7UpAl6Yf6+N0L2XCeuJL/4ApIa610MyU42QxilqjCaVr/nxEiGU/8i2dDd 45DLOULSAfU47VdXuIP4OGXEa+LUJ+ZfYxJD1ubywOUBgq48+19JlEN2qJ7gPynwYd5x NrG9UxNTcqGC7eVvVf/9v8MD3HOXUkV47KCyPFj7iIAWsjzmrDO4s0N3A3mBT7DDj3No 2HvRpldN8tvayRr8Uchtf5S9nk+QDKQRCjBABT1LDjUlF4qTFKLlU4GD/oEs/+HFPJxg lxxQ== 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 :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=HV6rVd6ThBcrwbCfBCWPNylogWLTo/FnyODtCdFbJBw=; b=m6VCIUKl4nZKnC2LOUvAxww7OPWGx1CTD4A1YqnXWNQK0u4zrvZTudyt8C4SiDqtyS bccoHe+FwUYQTetHMB/j2kl9VlmW07ezKusUwmh5XKWTNUuPr03DCfjKjy4pl/Hwm2q2 za/uBS8vsmoqkxrqCu12CPFgSPJ82rrRy/vmee6ooZMZsw4FXDMIhaqqAPmO1OJYfxkj thLi5WvIMcCgkb4oRoC3oNnd+XJuAmmTZp/tKMW14W3B09tt4GJHGGUl5vxGjtI6Nt5B /GTJSvofMrC5S8LIWaFredE8e6NVibAX3VjKleL1YSHhBd50+9JPWTd4qPvB7uKrIBC6 9D0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=AQ5BqAVj; dkim=pass header.i=@codeaurora.org header.s=default header.b=TxuMhv3o; 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 s63si5958326pfk.354.2018.03.24.18.32.53; Sat, 24 Mar 2018 18:33:07 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=AQ5BqAVj; dkim=pass header.i=@codeaurora.org header.s=default header.b=TxuMhv3o; 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 S1753153AbeCYBaG (ORCPT + 99 others); Sat, 24 Mar 2018 21:30:06 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:45520 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752216AbeCYBaE (ORCPT ); Sat, 24 Mar 2018 21:30:04 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2D9EB60AE0; Sun, 25 Mar 2018 01:30:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521941404; bh=vcyahR9Wbli+xzAKWMPt8f8nEOyrF25BOAdmjbzDQLc=; h=From:To:Cc:Subject:Date:From; b=AQ5BqAVjEHVZc7KWb3HfpqnBeOdVSETfRIFp5H1r+iH9ylQTVBfXQavYSF1JdYNca IjaouVINgdvr7Hs8a7+iImVo6otA6VTf89/VE+jA8DJKo5M0s9AUcreQXXqOT+XZrn P8hGcgZ66s+gOIzQohFTahLeOpO/BMP8A00Lqjlw= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from rishabhb-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rishabhb@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 372CD60312; Sun, 25 Mar 2018 01:30:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521941403; bh=vcyahR9Wbli+xzAKWMPt8f8nEOyrF25BOAdmjbzDQLc=; h=From:To:Cc:Subject:Date:From; b=TxuMhv3oRiowrue3PNTEj1kWAlgOQ2G9Nr3lQG8+UwAPwZF1iKT1jEHb+jDMirhDT sFlZA05/wbRn9PZr6+2A9IWmMCkDdGcTNthL+SU5awkK7BjRfwnSuipOmrByL31D/d ZGs4U+u0WHQ6IJE5pIhnTJ9PJSDcpISYdrF/a9x0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 372CD60312 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=rishabhb@codeaurora.org From: Rishabh Bhatnagar To: linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Cc: linux-arm@lists.infradead.org, linux-kernel@vger.kernel.org, tsoni@codeaurora.org, kyan@codeaurora.org, ckadabi@codeaurora.org, Rishabh Bhatnagar Subject: [PATCH v2 0/2] SDM845 System Cache Driver Date: Sat, 24 Mar 2018 18:29:14 -0700 Message-Id: <1521941356-12361-1-git-send-email-rishabhb@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series implements system cache or LLCC(Last Level Cache Controller) driver for SDM845 SOC. The purpose of the driver is to partition the system cache and program the settings such as priortiy, lines to probe while doing a look up in the system cache, low power related settings etc. The partitions are called cache slices. Each cache slice is associated with size and SCID(System Cache ID) The driver also provides API for clients to query the cache slice details, activate and deactivate them. The driver can be broadly classified into: * SOC specific driver: llcc-sdm845.c: Cache partitioning and cache slice properties for usecases on sdm845 that need to use system cache. * API : llcc-slice.c: Exports APIs to clients to query cache slice details, activate and deactivate cache slices. Register the child devices using platform APIs. Changes since v1: * Added Makefile and Kconfig. ckadabi@codeaurora.org (2): Documentation: Documentaion for qcom, llcc drivers: soc: Add LLCC driver .../devicetree/bindings/arm/msm/qcom,llcc.txt | 70 ++++ drivers/soc/qcom/Kconfig | 16 + drivers/soc/qcom/Makefile | 2 + drivers/soc/qcom/llcc-sdm845.c | 120 ++++++ drivers/soc/qcom/llcc-slice.c | 454 +++++++++++++++++++++ include/linux/soc/qcom/llcc-qcom.h | 178 ++++++++ 6 files changed, 840 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt create mode 100644 drivers/soc/qcom/llcc-sdm845.c create mode 100644 drivers/soc/qcom/llcc-slice.c create mode 100644 include/linux/soc/qcom/llcc-qcom.h -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project