From patchwork Mon Nov 30 09:39:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 334704 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp4485622ilb; Mon, 30 Nov 2020 01:41:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6+/eRnxLOMorRcG4AHALG+7CCqkd21GGkbkTieCpDnkxsHBVdsp4/v5Kgqk1TYtbp7SBF X-Received: by 2002:a50:99c3:: with SMTP id n3mr20504325edb.213.1606729307502; Mon, 30 Nov 2020 01:41:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606729307; cv=none; d=google.com; s=arc-20160816; b=UUeY2qQokTaiyVO5DdvxSeCZXu/wUnOI5swk+oRkV8rQm9kU2gH67SYf5JsCTofxtB 5VathLiujhPurwx1EcOdwMemA+3iJ7IlJm5h/tnC9CR242o21GAhjIULS1kFtByioD5+ YpLe7z2MFfxWTkulpcx7j6AfcpNpEDtV6RH6UN9DU6AbTiJZYEm2itrDgJ/yTPn/ADxk eEOKUupczC/+UrS0oAq3IpNNYvk6LtkL7fEBU7RBXKlNod6AsMKlv7cBhNnPM993roqf cfTx6gesaF1PsnRr8wqnKB8x5s3cwd2tTy72ryQEqzdGl8vKTV1IzoxEYqxVBf0eufIe BHwg== 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=kInwNk/ThkAgXZIESon1lxicNanN9RlxTXl9tfSYT+I=; b=0pKzwW7535/sYXHm2QYGozZ24JTh5YL9rB7et+QGFn/jEMyk7MuljbEbOcmJDXc8Ma nGQO9emDvHkLr6iyy1p8MlhS0BRnIi/3LPJpd4pg6c58vBsSN4jowPign36BuzLRljEm OxKo9Xt/dtkZmS93tBczYmiJEJ7ASaCE65I4ozkFsCbZ0L62xcu4oFcMDqg99BFT7422 nSxl1q+accHYXfz1HTftPgNTslCe597hgXCZDvoucbXErrk8o4CC72Iv6sOhiYHe+7yq I5nG7L/evvtKZ3efQ323xDAAdh6y+WZpwoTyj2ptx2SR8fgRy0o4NRpEb/UiM3yd6Nin Trig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TbxvAnph; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 z15si2808130eju.429.2020.11.30.01.41.47; Mon, 30 Nov 2020 01:41:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=TbxvAnph; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1728036AbgK3JkW (ORCPT + 15 others); Mon, 30 Nov 2020 04:40:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727970AbgK3JkW (ORCPT ); Mon, 30 Nov 2020 04:40:22 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D6A5C0613D4 for ; Mon, 30 Nov 2020 01:39:42 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id iq13so987542pjb.3 for ; Mon, 30 Nov 2020 01:39:42 -0800 (PST) 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=kInwNk/ThkAgXZIESon1lxicNanN9RlxTXl9tfSYT+I=; b=TbxvAnphZq3cYNCJUbUtFa1AyiklRgh9V3eytXtB2+MA+N59i82/8p/I+nBhqtti1T RNU2DO1mimbxTOlaQzim0eVj7BADi81YK2EL6wstOmrGAsJo4dk3Bvzmq99H7Zwd8TLj VSs0xeFw+HctZm4ULD2HsYrN0v/69y3RciFhmGKmVPrBqdfPn0R0751GPAd+9q+xJ8s+ ZBARmJf2tWBGzTSiEfy78rEiwREiUctT8BeaANW+pBQlMUTOlrUklql/6jyzUHefPZUS Fhy97hRnXxVmJZVzp4SWjnaIQ8Z+7AdO8HdN14QWx3L2szycP5/Be7DijwSmXKLrQp/g EDaQ== 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=kInwNk/ThkAgXZIESon1lxicNanN9RlxTXl9tfSYT+I=; b=lKcyPsgHfFVKHE56UIohTNZrE0H0P1hOSmSnpsAg7Z4WhLePQiqlekamI1c7Nu4kvu poDlZKpO2CPK3TdiGHZ0vih04UeIZ1E8LWTxU/AnVFiwYVGtg7O27cc59baNoTU5uanf dRvl54gmbZdXDW/daOY43EsYcuSx2v1SODoE/JyNXAf3GA3FfypFWGh2YnSSPwJuVrQ9 9sEwAFoXCcZADodglcVYrzcxAXxeorMgMlBh2XuTfZT2x9JSI3YEH7Fe0QSySuv9RYhm sXvZrsXUJ8n22Fbp0z+sTuGSUEUHhZP3RXFiM8UCSh95bCHGbPT0TKPrDs/uXvh5qkpg l6PQ== X-Gm-Message-State: AOAM532eMT/fh0y41cfOTSg4Xo96rN8fO4hdA5kSZkMqdx5Jakoo5Sop bD8/TqxwFWF3VchrJInTpP6U X-Received: by 2002:a17:902:a9c7:b029:d6:da66:253c with SMTP id b7-20020a170902a9c7b02900d6da66253cmr18124185plr.19.1606729181717; Mon, 30 Nov 2020 01:39:41 -0800 (PST) Received: from localhost.localdomain ([2409:4072:6c0d:98b:4016:605b:102d:cbb8]) by smtp.gmail.com with ESMTPSA id u14sm16348429pfc.87.2020.11.30.01.39.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 01:39:41 -0800 (PST) From: Manivannan Sadhasivam To: agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dmitry.baryshkov@linaro.org, saiprakash.ranjan@codeaurora.org, Manivannan Sadhasivam Subject: [PATCH v2 1/4] dt-bindings: msm: Add LLCC for SM8250 Date: Mon, 30 Nov 2020 15:09:21 +0530 Message-Id: <20201130093924.45057-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201130093924.45057-1-manivannan.sadhasivam@linaro.org> References: <20201130093924.45057-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add LLCC compatible for SM8250 SoC. Signed-off-by: Manivannan Sadhasivam --- Documentation/devicetree/bindings/arm/msm/qcom,llcc.yaml | 1 + 1 file changed, 1 insertion(+) -- 2.25.1 diff --git a/Documentation/devicetree/bindings/arm/msm/qcom,llcc.yaml b/Documentation/devicetree/bindings/arm/msm/qcom,llcc.yaml index 0a9889debc7c..c299dc907f6c 100644 --- a/Documentation/devicetree/bindings/arm/msm/qcom,llcc.yaml +++ b/Documentation/devicetree/bindings/arm/msm/qcom,llcc.yaml @@ -24,6 +24,7 @@ properties: - qcom,sc7180-llcc - qcom,sdm845-llcc - qcom,sm8150-llcc + - qcom,sm8250-llcc reg: items: From patchwork Mon Nov 30 09:39:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 334706 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp4485642ilb; Mon, 30 Nov 2020 01:41:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvPQ+ddTUAHBKzEO19hc6Oj9YtdPm4Xu1luPFRCE+Rwy7czen9Oadtwl/adTiWyKv8iTl8 X-Received: by 2002:a17:906:87c3:: with SMTP id zb3mr7005636ejb.47.1606729310142; Mon, 30 Nov 2020 01:41:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606729310; cv=none; d=google.com; s=arc-20160816; b=Bx7JsNVFj48X2JZpSnFLYh85lRzhVIpPvDsdFSFgXwWHLQvZbFRi4CHSzFHUM4MKNa PelM8wsk0ZQw7cmii9qZnJHJZooe9h2oZfq55EjSycvBquNuhjPWFNtZkrMK+emDeZVs MufuNHrUDoQGSsRKlX1fYs0lkpFQkx6G199tEtfeazySMLhKd3ZDqWKYPGzNDGNgcr+M C5/mGejTIBcNHl4qz6tt617f39jto/JrhABnh2fpwdekaFgEAqo5EJlwwFQW6E9vUvTb IuDdJuKYXCvXNDx6msPqhrraYiZATJrOgmrmBuqht0dlCdML0gQmt7svkydX2mp0eqS0 s/Mg== 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=jLxCd/F4fxI6lLKUfeAQgTwipZuT/u/XIJSTRbWtMDg=; b=v/GFx77dAhqQG2PW7vDwsTApbWlKUEXku5fnY/9WsOmfcJYBHPpUqV9LxAOrQ7fn3h w+ocI4X+h36b6a3q22RQ1I6kDNn5rQtcvDuSfzcQFGvVfZRcY7x+qDVZj+eaC83VsV0g Qh1Hk/A4XEqYdLOek0nRf1dFOP0RJzaG6hKm5Sift2tbu7gDjn0n/FjJXWtXJJhhrQAc 6zHqfo3lW8sQUmtGkru1gGYdsHhewl6h9uPFJ5FR6WQdeDzAwb1h3FTV9Dw4eQxvwRoa DL8OV0hr14sAGxMUrfiT6XR0OGCi1srCxC+H7o+hDgQRS8iuCNtHBAnfBAF/gbAYXugf 8+Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aiVk39Rl; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 z15si2808130eju.429.2020.11.30.01.41.49; Mon, 30 Nov 2020 01:41:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=aiVk39Rl; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1728310AbgK3JlD (ORCPT + 15 others); Mon, 30 Nov 2020 04:41:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728019AbgK3JlC (ORCPT ); Mon, 30 Nov 2020 04:41:02 -0500 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABAF5C0617A7 for ; Mon, 30 Nov 2020 01:39:47 -0800 (PST) Received: by mail-pf1-x443.google.com with SMTP id w187so10043480pfd.5 for ; Mon, 30 Nov 2020 01:39:47 -0800 (PST) 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=jLxCd/F4fxI6lLKUfeAQgTwipZuT/u/XIJSTRbWtMDg=; b=aiVk39RlImBWFTMKuODN3ftmmmuWoy1VwkbteJ0JyNawut652rgM+TyTCmZ+I7o5H8 zwK4ssBk5PQHdySZ+wxpSzilZaBUPleickaKTW9OHEEQtzrElXl6OBAQjryhlxhbDmPp DkVijQ/74rV/1JNos9sj1QHiHhyEUe5hK1+N6XtpO55alaeI4rvJp9n7kfB1HP0LQfR5 qfiJotOAjspEAaWFPkJl6tT1Pd7KZ+Mgx1dZ25osxdHuctEx4S5x0gMBMMPZByOegiOb t4LXIGVg63piNiWHrslp8qRUxtFBl3C8nIdRE5HDTPIQJPvZHyxWs8/gn7zOp1UpUyn3 MQsA== 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=jLxCd/F4fxI6lLKUfeAQgTwipZuT/u/XIJSTRbWtMDg=; b=gUdMLkZD1sDynxM5boxSJmca0kUZbT9Lz9SAjrqehxos+90NW0+Q/Uq7EvMWVfQTA1 tBhz/alqPmKUsFSJxCbUjToCKkwkBNFN24bTTtrb2wYQ16svzC4DHFX6UtMXCmlEtE+W gj5JTMiEr5NX/GjOvHDCqlR2ORRC+zDhdcIgpI9Zy86nnOqp4jeqRT3L93uGZmdvDlBE KzO94CcCrycjp+0moDxwN+HhmlE6CZxgSTdfxUVrppGhH2mQWUePgUdrB8v3In2U0sdj MBRVN0C0/ZfLKmFC/x2HTqiNA0f2GXq3QIr75wlGUG1JQ+BldhdytCaRSqhVzdmDcAJN BjYg== X-Gm-Message-State: AOAM530QUyyXnSdhMLViZZ1z1NOHJAMBywf699SNqI7XMIxZiRf/J9aQ wlW58qdnXlPvwEMiCwTAoOmf X-Received: by 2002:aa7:8744:0:b029:18b:a9e1:803d with SMTP id g4-20020aa787440000b029018ba9e1803dmr17737033pfo.50.1606729187111; Mon, 30 Nov 2020 01:39:47 -0800 (PST) Received: from localhost.localdomain ([2409:4072:6c0d:98b:4016:605b:102d:cbb8]) by smtp.gmail.com with ESMTPSA id u14sm16348429pfc.87.2020.11.30.01.39.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 01:39:46 -0800 (PST) From: Manivannan Sadhasivam To: agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dmitry.baryshkov@linaro.org, saiprakash.ranjan@codeaurora.org, Manivannan Sadhasivam Subject: [PATCH v2 2/4] arm64: dts: qcom: sm8250: Add support for LLCC block Date: Mon, 30 Nov 2020 15:09:22 +0530 Message-Id: <20201130093924.45057-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201130093924.45057-1-manivannan.sadhasivam@linaro.org> References: <20201130093924.45057-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for Last Level Cache Controller (LLCC) in SM8250 SoC. This LLCC is used to provide common cache memory pool for the cores in the SM8250 SoC thereby minimizing the percore caches. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.25.1 Reviewed-by: Sai Prakash Ranjan diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 65acd1f381eb..118b6bb29ebc 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -1758,6 +1758,12 @@ usb_1_dwc3: dwc3@a600000 { }; }; + system-cache-controller@9200000 { + compatible = "qcom,sm8250-llcc"; + reg = <0 0x09200000 0 0x1d0000>, <0 0x09600000 0 0x50000>; + reg-names = "llcc_base", "llcc_broadcast_base"; + }; + usb_2: usb@a8f8800 { compatible = "qcom,sm8250-dwc3", "qcom,dwc3"; reg = <0 0x0a8f8800 0 0x400>; From patchwork Mon Nov 30 09:39:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 334705 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp4485633ilb; Mon, 30 Nov 2020 01:41:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOVktT72fKSEFo4vVQgkQ2Pr3aGLPtImWx3jtSAEyYmXgXLLl7Dz7kzW4GL+b/bt+VPgVE X-Received: by 2002:a50:e68a:: with SMTP id z10mr20451979edm.28.1606729309282; Mon, 30 Nov 2020 01:41:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606729309; cv=none; d=google.com; s=arc-20160816; b=uuF4Db46v+h1dmTHKvNwx6iumaGoHepNC6nrmoLrb7DMh7yfp3M4qJJ2z5NyB4ks38 0qN4CiL6S/fkazmfn4qav0akpzB/1yWu0cm9xbOO9H0t0l4PYwTwCB1ulvtasa3XQXov pzfWFp1s6c2I7bQHK+9hnCh1dKDNr3WXqwSJDSLoPft5lZImYOnC07jS5rZxNtKOt6MC OK1ypikVeZPlgpkTXSPUYaeUihfPy+6DeHdgx+lOfZLeSntw9Cp92He6dLwX42xMZPx1 tsY/lqy4rWQrVj2hHFpvQDwN+AynQcs4M7rj9xDnLYRfKThDz/QW1lO8h/mvUJAChW/c zCsw== 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=wbIAyBk/aKDm2aOVZ9gMdgrzEY6OUn0PU2J1sb9nIlY=; b=p3FcZ4a4gOWijrT/i0Qz2HPpUyD7QpvM5F6N1St+xf7JxvBx6zME1SDjUPWbXHgHWL 5ZqZfPxYO7t8MT01d8wMHAOedneWlIlnGj+ldSvW8Jj5fVWDm5lcaet6Ki8HOhqv/faf MaAFio6fqSuXMRcwdHKRg8LCa3HsmG4tOV+WXYaB2jXG9MgN+J04hxRtSosaOoldA6mR n/XAKjQcbdwo+Zh+4RdM5dzvY4cpiHChOakduyzONuF7yuG3oKCC4REu0MzxMPTWP/p2 6mZpDFvZT/qgizzL/TiYY9j7Eeqk79C0AiwUCrp2USj6xOoyJVXVQP1cEwwae0t6lgHi fAUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ntfd2Qys; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 z15si2808130eju.429.2020.11.30.01.41.49; Mon, 30 Nov 2020 01:41:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=Ntfd2Qys; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1728166AbgK3Jk5 (ORCPT + 15 others); Mon, 30 Nov 2020 04:40:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726614AbgK3Jk5 (ORCPT ); Mon, 30 Nov 2020 04:40:57 -0500 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F02D2C061A04 for ; Mon, 30 Nov 2020 01:39:52 -0800 (PST) Received: by mail-pg1-x544.google.com with SMTP id o4so7477623pgj.0 for ; Mon, 30 Nov 2020 01:39:52 -0800 (PST) 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=wbIAyBk/aKDm2aOVZ9gMdgrzEY6OUn0PU2J1sb9nIlY=; b=Ntfd2QysKsNiw7SqrBvTvDdGgzSjVIu7y4FtGSM0OcrDHO9Xcsq0vxOroC80FJtpqU okeSzZ+Hj9N4uzQWiDiI053tXfghJwEWVjbdJLlfV2Uh7GHC6U9Ny0ABL3mhcLfoAvE8 OA7x0v+wLZJRCljpSTLOvQZXgRugpoWvwM/OZLWgrxTMjNK3EfcEJvqN9Ep9YlDVC3f6 7gTDZik5ZlnUSXA8HzHTob5rA0fvmWGibxYVAePJRNUEspHGcheYKukHdsrx26nmmgdk Z8Lp8hPvl73HDv9JXXbyEqPs9ToupQ62ocQ/rjY6Thxckho1ztApBkIDs/atFSh7P7YG 47rA== 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=wbIAyBk/aKDm2aOVZ9gMdgrzEY6OUn0PU2J1sb9nIlY=; b=gj7rg+1Ht7FUYcNpyv3FU1LszjzDacIm8Fub8Yl4tcIWQFAPalnkJ0g4qRK1QC0h0G aCgVuuJBYICUnMfAdyK7on0jVv9Yp9MPSBP9Dvdw8+G5bNkUm0j4Kcl7pHFvxMtcW326 u+Xp9Oy+b2VWqcXzTF+TZJe54dx52p75SmHz9tm8xCl00EXvp8iSgYpd9BTcm568zu1t wH7qL9KrnXWBIFFF+tr6NgZBDdt1kKWDKvc6+3Q9+tIGQFg13Pgt/dWFA0zWLGXSzKEc CNLfksYiX8XDp4vBNS7IWgp1IcBtusIga2qreOfGBPhoBueyk5bVZ5lcMUadGt5OG8MK J7gg== X-Gm-Message-State: AOAM531V0XPLS5STzKldm9Reg2+dLto0S7d9F8nefq0ir920U4cF6nRa jU4sd+Q6v607nQyoDGXiJtVK X-Received: by 2002:a63:b511:: with SMTP id y17mr8379504pge.345.1606729192528; Mon, 30 Nov 2020 01:39:52 -0800 (PST) Received: from localhost.localdomain ([2409:4072:6c0d:98b:4016:605b:102d:cbb8]) by smtp.gmail.com with ESMTPSA id u14sm16348429pfc.87.2020.11.30.01.39.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 01:39:51 -0800 (PST) From: Manivannan Sadhasivam To: agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dmitry.baryshkov@linaro.org, saiprakash.ranjan@codeaurora.org, Manivannan Sadhasivam Subject: [PATCH v2 3/4] soc: qcom: llcc-qcom: Extract major hardware version Date: Mon, 30 Nov 2020 15:09:23 +0530 Message-Id: <20201130093924.45057-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201130093924.45057-1-manivannan.sadhasivam@linaro.org> References: <20201130093924.45057-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Sai Prakash Ranjan The major hardware version of the LLCC IP is encoded in its LLCC_COMMON_HW_INFO register. Extract the version and cache it in the driver data so that it can be used to implement version specific functionality like enabling Write sub cache for given SCID. Signed-off-by: Sai Prakash Ranjan [mani: splitted the version extract as a single patch and few cleanups] Signed-off-by: Manivannan Sadhasivam --- drivers/soc/qcom/llcc-qcom.c | 12 ++++++++++++ include/linux/soc/qcom/llcc-qcom.h | 2 ++ 2 files changed, 14 insertions(+) -- 2.25.1 diff --git a/drivers/soc/qcom/llcc-qcom.c b/drivers/soc/qcom/llcc-qcom.c index 16b421608e9c..a559617ea7c0 100644 --- a/drivers/soc/qcom/llcc-qcom.c +++ b/drivers/soc/qcom/llcc-qcom.c @@ -4,6 +4,7 @@ * */ +#include #include #include #include @@ -35,6 +36,9 @@ #define CACHE_LINE_SIZE_SHIFT 6 +#define LLCC_COMMON_HW_INFO 0x00030000 +#define LLCC_MAJOR_VERSION_MASK GENMASK(31, 24) + #define LLCC_COMMON_STATUS0 0x0003000c #define LLCC_LB_CNT_MASK GENMASK(31, 28) #define LLCC_LB_CNT_SHIFT 28 @@ -476,6 +480,7 @@ static int qcom_llcc_probe(struct platform_device *pdev) const struct qcom_llcc_config *cfg; const struct llcc_slice_config *llcc_cfg; u32 sz; + u32 version; drv_data = devm_kzalloc(dev, sizeof(*drv_data), GFP_KERNEL); if (!drv_data) { @@ -496,6 +501,13 @@ static int qcom_llcc_probe(struct platform_device *pdev) goto err; } + /* Extract major version of the IP */ + ret = regmap_read(drv_data->bcast_regmap, LLCC_COMMON_HW_INFO, &version); + if (ret) + goto err; + + drv_data->major_version = FIELD_GET(LLCC_MAJOR_VERSION_MASK, version); + ret = regmap_read(drv_data->regmap, LLCC_COMMON_STATUS0, &num_banks); if (ret) diff --git a/include/linux/soc/qcom/llcc-qcom.h b/include/linux/soc/qcom/llcc-qcom.h index 3db6797ba6ff..d17a3de80510 100644 --- a/include/linux/soc/qcom/llcc-qcom.h +++ b/include/linux/soc/qcom/llcc-qcom.h @@ -79,6 +79,7 @@ struct llcc_edac_reg_data { * @bitmap: Bit map to track the active slice ids * @offsets: Pointer to the bank offsets array * @ecc_irq: interrupt for llcc cache error detection and reporting + * @major_version: Indicates the LLCC major version */ struct llcc_drv_data { struct regmap *regmap; @@ -91,6 +92,7 @@ struct llcc_drv_data { unsigned long *bitmap; u32 *offsets; int ecc_irq; + u32 major_version; }; #if IS_ENABLED(CONFIG_QCOM_LLCC) From patchwork Mon Nov 30 09:39:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 334707 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp4485637ilb; Mon, 30 Nov 2020 01:41:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQxrW8uzn42OC4yH7eWA0ZKmosGrsqtlVKwAERcCYv2BBItbOPfqHCZUj9SsuzGnOeO4WP X-Received: by 2002:aa7:da53:: with SMTP id w19mr7856723eds.190.1606729309738; Mon, 30 Nov 2020 01:41:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606729309; cv=none; d=google.com; s=arc-20160816; b=fOOV9T4J/bub1KfFDI2nd/HSiyuqCWjOzw9nxFxaKo9Cwxnr7YiiJQU8w1QGuoWvRG Q6lFWSsUTeWEuOHi8N6OGAYn8Hd7ovliN1FkBfZ47jDAvpTHFgQE3mDoYG2PNE0362V0 ucTsaEArK4MDYJWDdCi8qc1Kx8ZwGcJ89dyGazjpwph5oRoDjoal5Sc0UH2hspHAQYXe 3MjYjNLMsrKVUiLnXaw+olPV8fGoovBevnFgF+zt6/YSn4Z7rM/XKvpqAHgJWbDe9F24 uLomp8CozsB0W0YvGSgx6jE26f+C+evmvpkYc5+Be3gDTm2wD3YrqoQ1YFNI9Up+aZRN 4PxA== 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=Z9/sVIVJ9gHynZQM3T8+B+L6di5fUU2mQNFRrCieXIo=; b=rfUVmTTKB/vc9cH50KiqeP82wq7kbs4FV64C+MjslbtgYSJg948r6OLacJzFVQt9Lb NjXjxbQDFN8zIBh7I3u36BbDuEEswk1pH3ZOyd0gu2rRb+Osg1mUuhHLVXz8YVjnpuKW t+ov2wXbor7h7G6//5U1xnGmDzjomKlEZqyOUO1WgQVQaddn2mC0I/zUfbd6XOQhNCkm HBlRD58/pNkT0xHXoBDy1byfYxk7KtTSKo4TiABeAK5xmofSPgChCktAa+fZTvJ5cHOD Ylh2Bn9xufay6M601qogpHl5HxRKUCNH1XyBZCYWKrZohqQMubteXS72DaOv9iJn+Ert PZTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BFuY6eXM; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 z15si2808130eju.429.2020.11.30.01.41.49; Mon, 30 Nov 2020 01:41:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=BFuY6eXM; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726614AbgK3Jk5 (ORCPT + 15 others); Mon, 30 Nov 2020 04:40:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728019AbgK3Jk5 (ORCPT ); Mon, 30 Nov 2020 04:40:57 -0500 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 99D33C061A48 for ; Mon, 30 Nov 2020 01:39:58 -0800 (PST) Received: by mail-pj1-x1043.google.com with SMTP id t12so1023892pjq.5 for ; Mon, 30 Nov 2020 01:39:58 -0800 (PST) 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=Z9/sVIVJ9gHynZQM3T8+B+L6di5fUU2mQNFRrCieXIo=; b=BFuY6eXMLe1zoh0gq3N62PNbmyRMWcg8FS3ufseZUcGqhGLAj6XhZ26cXqxaj5sPf5 08RvwH6MqMq2Cg1JQUV7SAoIZ4fjPLnb14dzfN9emzjF0rVbFAraWVZRQkQlgtEgGSMm Si5C8/049UNjS+q6q1P9UYeYDoK5sFlk79Kuw+pzPs7QAXVA3cN5gODfyJUkWdC57D0W 9U6Vyoh1lDalGPO/MxENEjNxzWwLEW0+RkYuQa4my9xy1hpyi3nsYwwym543I8+jwr5+ c+VgMnXPYEriGN8omKsn7Pm2x8+4icBUXSAlzlKSTwb3KPwK4bgKWy1JBTkP91FthcFH eWQQ== 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=Z9/sVIVJ9gHynZQM3T8+B+L6di5fUU2mQNFRrCieXIo=; b=WXwU+48mCKjjBiU25dd05NAOknwtid74RqL//OHick6RK6aOE+xSKk+luZs+l8K8oL Bao1GdrIVA0uu3PwP+7pQIuKHHMF6TkPhaAaZQoHmezVE9R5YiFzSsox8FtelNmU9Aqz iD8906hkHPKmBU/uB3iZUquge/auypUgfp49MbzYzx3KUuUWDhjy3s1WKFd2x9AbmK1q YG2G7sBVQJLUR1+y4OnWTe9SjDkkD8sfBBMg813CCw4K546Klu6n1o0YZl2XgkU/eXP8 YotPfqJU4+9A2l8TWOCNaeRLN/UOoNgGPbu8x61EYLJsCLm59zG09MOaytcdKmiVp9z4 6GNg== X-Gm-Message-State: AOAM530GBU87lsYqWwaANH/C45KdBMRMENdTLHqwSZUqby/wmku6kzw8 PTjBnQoQO0cyurFOvwD1CkXF X-Received: by 2002:a17:90a:c588:: with SMTP id l8mr9991777pjt.147.1606729198107; Mon, 30 Nov 2020 01:39:58 -0800 (PST) Received: from localhost.localdomain ([2409:4072:6c0d:98b:4016:605b:102d:cbb8]) by smtp.gmail.com with ESMTPSA id u14sm16348429pfc.87.2020.11.30.01.39.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 01:39:57 -0800 (PST) From: Manivannan Sadhasivam To: agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dmitry.baryshkov@linaro.org, saiprakash.ranjan@codeaurora.org, Manivannan Sadhasivam Subject: [PATCH v2 4/4] soc: qcom: llcc-qcom: Add support for SM8250 SoC Date: Mon, 30 Nov 2020 15:09:24 +0530 Message-Id: <20201130093924.45057-5-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201130093924.45057-1-manivannan.sadhasivam@linaro.org> References: <20201130093924.45057-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org SM8250 SoC uses LLCC IP version 2. In this version, the WRSC_EN register needs to be written to enable the Write Sub Cache for each SCID. Hence, use a dedicated "write_scid_en" member with predefined values and write them for LLCC IP version 2. Signed-off-by: Manivannan Sadhasivam --- drivers/soc/qcom/llcc-qcom.c | 38 ++++++++++++++++++++++++++++++ include/linux/soc/qcom/llcc-qcom.h | 1 + 2 files changed, 39 insertions(+) -- 2.25.1 Reviewed-by: Sai Prakash Ranjan diff --git a/drivers/soc/qcom/llcc-qcom.c b/drivers/soc/qcom/llcc-qcom.c index a559617ea7c0..8403a77b59fe 100644 --- a/drivers/soc/qcom/llcc-qcom.c +++ b/drivers/soc/qcom/llcc-qcom.c @@ -51,6 +51,7 @@ #define LLCC_TRP_SCID_DIS_CAP_ALLOC 0x21f00 #define LLCC_TRP_PCB_ACT 0x21f04 +#define LLCC_TRP_WRSC_EN 0x21f20 #define BANK_OFFSET_STRIDE 0x80000 @@ -77,6 +78,7 @@ * then the ways assigned to this client are not flushed on power * collapse. * @activate_on_init: Activate the slice immediately after it is programmed + * @write_scid_en: Bit enables write cache support for a given scid. */ struct llcc_slice_config { u32 usecase_id; @@ -91,6 +93,7 @@ struct llcc_slice_config { bool dis_cap_alloc; bool retain_on_pc; bool activate_on_init; + bool write_scid_en; }; struct qcom_llcc_config { @@ -151,6 +154,25 @@ static const struct llcc_slice_config sm8150_data[] = { { LLCC_WRCACHE, 31, 128, 1, 1, 0xFFF, 0x0, 0, 0, 0, 0, 0 }, }; +static const struct llcc_slice_config sm8250_data[] = { + { LLCC_CPUSS, 1, 3072, 1, 1, 0xfff, 0x0, 0, 0, 0, 1, 1, 0 }, + { LLCC_VIDSC0, 2, 512, 3, 1, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, + { LLCC_AUDIO, 6, 1024, 1, 0, 0xfff, 0x0, 0, 0, 0, 0, 0, 0 }, + { LLCC_CMPT, 10, 1024, 1, 0, 0xfff, 0x0, 0, 0, 0, 0, 0, 0 }, + { LLCC_GPUHTW, 11, 1024, 1, 1, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, + { LLCC_GPU, 12, 1024, 1, 0, 0xfff, 0x0, 0, 0, 0, 1, 0, 1 }, + { LLCC_MMUHWT, 13, 1024, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 }, + { LLCC_CMPTDMA, 15, 1024, 1, 0, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, + { LLCC_DISP, 16, 3072, 1, 1, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, + { LLCC_VIDFW, 17, 512, 1, 0, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, + { LLCC_AUDHW, 22, 1024, 1, 1, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, + { LLCC_NPU, 23, 3072, 1, 1, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, + { LLCC_WLHW, 24, 1024, 1, 0, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, + { LLCC_CVP, 28, 256, 3, 1, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, + { LLCC_APTCM, 30, 128, 3, 0, 0x0, 0x3, 1, 0, 0, 1, 0, 0 }, + { LLCC_WRCACHE, 31, 256, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 }, +}; + static const struct qcom_llcc_config sc7180_cfg = { .sct_data = sc7180_data, .size = ARRAY_SIZE(sc7180_data), @@ -168,6 +190,11 @@ static const struct qcom_llcc_config sm8150_cfg = { .size = ARRAY_SIZE(sm8150_data), }; +static const struct qcom_llcc_config sm8250_cfg = { + .sct_data = sm8250_data, + .size = ARRAY_SIZE(sm8250_data), +}; + static struct llcc_drv_data *drv_data = (void *) -EPROBE_DEFER; /** @@ -417,6 +444,16 @@ static int _qcom_llcc_cfg_program(const struct llcc_slice_config *config, return ret; } + if (drv_data->major_version == 2) { + u32 wren; + + wren = config->write_scid_en << config->slice_id; + ret = regmap_update_bits(drv_data->bcast_regmap, LLCC_TRP_WRSC_EN, + BIT(config->slice_id), wren); + if (ret) + return ret; + } + if (config->activate_on_init) { desc.slice_id = config->slice_id; ret = llcc_slice_activate(&desc); @@ -571,6 +608,7 @@ static const struct of_device_id qcom_llcc_of_match[] = { { .compatible = "qcom,sc7180-llcc", .data = &sc7180_cfg }, { .compatible = "qcom,sdm845-llcc", .data = &sdm845_cfg }, { .compatible = "qcom,sm8150-llcc", .data = &sm8150_cfg }, + { .compatible = "qcom,sm8250-llcc", .data = &sm8250_cfg }, { } }; diff --git a/include/linux/soc/qcom/llcc-qcom.h b/include/linux/soc/qcom/llcc-qcom.h index d17a3de80510..64fc582ae415 100644 --- a/include/linux/soc/qcom/llcc-qcom.h +++ b/include/linux/soc/qcom/llcc-qcom.h @@ -29,6 +29,7 @@ #define LLCC_AUDHW 22 #define LLCC_NPU 23 #define LLCC_WLHW 24 +#define LLCC_CVP 28 #define LLCC_MODPE 29 #define LLCC_APTCM 30 #define LLCC_WRCACHE 31