From patchwork Thu Aug 10 19:37:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 109845 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp2824801qge; Thu, 10 Aug 2017 12:38:10 -0700 (PDT) X-Received: by 10.99.117.90 with SMTP id f26mr12781426pgn.441.1502393890138; Thu, 10 Aug 2017 12:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502393890; cv=none; d=google.com; s=arc-20160816; b=w86qn1bTtUMb91mtAGW3Hm4dCvtfSeUlB67eI3Ob3lneRaDaLDnKbiI6Jr225d3YpZ S9PCBxwECexvYHOiioU2SjIyHvmU4iL6lOq7Jp5UGRWMhgtFIrsA1szJ26wbss6ujvoj HS6YrMCN0+J6e2JmVJhuk4vOIeTvUwgG3FNcRZ0XaHPMiTZNtso5n3bP73J2usfbWwlN dUyAYGRIoZgFGFpGs6zO/1e+PViFeGUYVuDGaVbGSQxGZWcR6r98bVi+Z2zUXsZjqnIA dasorLc7LC8vQQw3db9qSCzN0EZ5aJEx8uJLzAzpHIDqz5QpqtermEFMsMZEbjAsfE7X oOrw== 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=r5JA+qkRXpzTdiPvjfsoprEr5JC3ihON/62coO4THT+OlZ0CgXsyTQh4YsVDDWC/l0 4uVPoLV7TrCe8wq2OnER3X8QMikbsyQMPhSGF10FHxsch+xovTSwbQu7oKQDI0tLQV+9 Jd1fXLprKnKSFIED4/0wXdDmEoquk2A/wJgCxTMawdg/PBcqz5jZfngQi0OVjeMGGqcY pJZO5Goi4o80SgMkYqigmROEDprbcrSwXc4jvsvPFFXkssqiIX3rHgGcvw80L9xEZfKI 29bYHZsQOJ/HdIhHKXJC3rYSye8qmKaovq1Jgo8IZtNsCWxwnG7bOrozwyfRBpaTZtHB Ivig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E8msOb5I; 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 94si5154115pla.477.2017.08.10.12.38.09; Thu, 10 Aug 2017 12:38:10 -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=E8msOb5I; 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 S1753023AbdHJTiE (ORCPT + 25 others); Thu, 10 Aug 2017 15:38:04 -0400 Received: from mail-pg0-f49.google.com ([74.125.83.49]:36421 "EHLO mail-pg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752756AbdHJTiC (ORCPT ); Thu, 10 Aug 2017 15:38:02 -0400 Received: by mail-pg0-f49.google.com with SMTP id v77so6738351pgb.3 for ; Thu, 10 Aug 2017 12:38:02 -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=E8msOb5IpScm3PfCu/T3i8RxYogmVHJhHTeAivCcBG2QDojmvKVsyhJ8crdQRIiMwE t1gAvX3qJaqsy4Aw76DVKN/OCiPW7ifwkIvWy+lJWmxrEu+8bJjMaYOjO38IfgdhGg/Y f0IT82ZFKMSwYQSKpvAYU1rFJtZZvObdhhNJM= 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=HR/w7pExbE5E79IyuFwbILKHMf5+Oc3sdUglYHlv+smBOUeaiqRFYxNDJehkZB/pMY +My7rS0QVzNsJA+P60ro24Zy7VV9KLBTvO0U3eTph/n8j4aEUvhumW0wRhxj46DaGugY Q/fpICR/se3mi1Onb4aVyOCvH426GxNhSrgnIdZ5jrLqCbX/5pkjmUOiEI7ZlRn6tQk2 3Wq1X1RAQbFlZlnvlX3Znlz9UumF4lMbDKVMAgtFYAV3K1n17KNcn5FvBoHN5CNBDojg 7QeNo7LeDBpOHpJ3F/01j7N8DAL5M5yoEMe7n1rhXRcwAz0rWZo6eSIMdl5gBAHiGR0v Ys8g== X-Gm-Message-State: AHYfb5iO3zhCxr1yR7rXvHRCm61UbZfiYtnTNoX6q64ov8kL8NEb7lB2 1abVOCqk/5srWDMo X-Received: by 10.84.231.201 with SMTP id g9mr14996173pln.146.1502393881828; Thu, 10 Aug 2017 12:38:01 -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 d71sm13523970pfg.169.2017.08.10.12.38.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Aug 2017 12:38:01 -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 0/2] Qualcomm SMEM cached item support Date: Thu, 10 Aug 2017 12:37:55 -0700 Message-Id: <20170810193757.9136-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