From patchwork Mon Aug 14 21:49:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 110063 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp4887342qge; Mon, 14 Aug 2017 14:49:32 -0700 (PDT) X-Received: by 10.98.216.70 with SMTP id e67mr26301796pfg.299.1502747372881; Mon, 14 Aug 2017 14:49:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502747372; cv=none; d=google.com; s=arc-20160816; b=fTbsewiO2A/TAF+fhbMuhsOCF2EyIoEzC9CGBw+p5ipzqPrB5bZo3+CUivcON5E9Og 9UvCurNL40752PlAhCJ09f6de2x5Fasp10zIsRDBh6/54ErKWmGc60odKShzWM0NlMqj xPOOLR8N6swFgBCjGAUvcJTifiVXA+bYftKiylbG+N4IejN7sysSEEe4BHVVy/Jqlkbt dQPBIKLpCXi/VQAKLIAjjJIK0Fq+iMslHjHUnPgSmNXGxXUizWyyXTOP5vEfr/LIfsGE ih+Dfb9vXxP3X2PitxngdwzHz5MQWNaWtuuBzfm5xU9KrhTrtB4YVTIh13VzE6kL+kG2 lvyw== 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 :dkim-signature:arc-authentication-results; bh=GbrvkfhAslGvbkcgjQOaTUqlVRaSn+ccnPM9PvIrkOc=; b=tdpdAZXLgrS/XM+mg13gcrlWKewUK7MTysTpCXFOcPyWS3imddXb43QRVElwHEH+8s ZTJAkou24axND9fbNikxg3ZGdRThYQNMVYqKqNEoCJqsDmGc0kbVbParMuXD8ZAgnpjL Tv7waFhLZIqrXhxgW+sjJ9/yXv4Uw+tAyzVvE9XvQQkPpPmFZAZM4YBDNErIVAgPHOE/ Y8nMbBonyQEvWAY0YWNRlfTbFEfcnBwC8L4gtX3gnSxoeg653M60aC+TO+n+CHJE3H4t zXvxL2o9lItcbIaEe/BKk3xpdx3NARfXBW4/CHWTM8wp3OJ8lCABdt2Bl8OCF37Jmxmv qJMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mtxw4WUJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y5si4584685pgb.56.2017.08.14.14.49.32; Mon, 14 Aug 2017 14:49:32 -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=@linaro.org header.s=google header.b=Mtxw4WUJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752601AbdHNVta (ORCPT + 25 others); Mon, 14 Aug 2017 17:49:30 -0400 Received: from mail-pg0-f49.google.com ([74.125.83.49]:35249 "EHLO mail-pg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751989AbdHNVt2 (ORCPT ); Mon, 14 Aug 2017 17:49:28 -0400 Received: by mail-pg0-f49.google.com with SMTP id v189so55074712pgd.2 for ; Mon, 14 Aug 2017 14:49:27 -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; bh=GbrvkfhAslGvbkcgjQOaTUqlVRaSn+ccnPM9PvIrkOc=; b=Mtxw4WUJahQUBYTsQmJgsvRVY6bE2H17CcvZ7f4PyAUaTHlmkMWamH4ZIH6mQJcXYu z/r9M/5uFII/JZOD0ZF9qLh1mnLVFCqYbGHkZno9g1TOFkLTu6vXFhLKjJzmxGuA9fee Ut5NbG2KNldqNpATWpjZZ6gMYiK3+61yX/7UU= 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; bh=GbrvkfhAslGvbkcgjQOaTUqlVRaSn+ccnPM9PvIrkOc=; b=E04b/JixEn4q6m69FLOYdHuRotCnx82Q1LKoBw3gEv+UxbxG23erPqEMNa52Umv4/I qdbRAjQOLrjMshhHbC/DfJNypJrf3OVSyp3YC3uou/mbkpO3AGpPE64ntpkWWyd2ze/l FVDqbIhNk5pa7ARbfpTF1tE5ty+OPtq64Dxx53rcdHIodruIZ/hEpL3UKMvxpgwSLiWv nW1u7CMVoxJrwwYz+fnx6kc5OCVOoBnZ1k1L6djJgBOGcgsRM9fg453oieR7qzrXsNNO LFPQyjdcdp50dvYXu+5e4l6lGA3FbLlDyP1LRdYxtQj5G/QQcef1eO8IuyD9Hlb6efUw w+wQ== X-Gm-Message-State: AHYfb5jvyhZB+xviVBFnlYGrE6WFtqtWCyCi3MMIf+jCWgIHgvrQj8ds kuUPHJweUHSqS0H1 X-Received: by 10.84.214.151 with SMTP id j23mr29687254pli.322.1502747367502; Mon, 14 Aug 2017 14:49:27 -0700 (PDT) Received: from localhost.localdomain (ip68-111-217-79.sd.sd.cox.net. [68.111.217.79]) by smtp.gmail.com with ESMTPSA id m2sm13545458pgs.72.2017.08.14.14.49.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Aug 2017 14:49:26 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , David Brown Cc: Stephen Boyd , Arun Kumar Neelakantam , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] Qualcomm SMEM cached item support Date: Mon, 14 Aug 2017 14:49:20 -0700 Message-Id: <20170814214922.18061-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.12.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When writing the SMEM implementation no public kernel had a consumer specifying the "cached" flag, so I ommitted this part of the implementation. On MSM8996 this has changed, where we have one user of this - namely the GLINK RX FIFO. The remote is supposedly scanning both lists for the GLINK descriptors and TX FIFO, so we don't need to support allocating from this list at this point. This has been confirmed in initial testing (by booting the ADSP) Bjorn Andersson (2): soc: qcom: smem: Rename "uncached" accessors soc: qcom: smem: Support getting cached entries drivers/soc/qcom/smem.c | 93 ++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 73 insertions(+), 20 deletions(-) -- 2.12.0