Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp19193164ybl; Fri, 3 Jan 2020 18:09:45 -0800 (PST) X-Google-Smtp-Source: APXvYqyXr6pxaqI+AATBtZTUuD//9PQFnFTjNehuMd0HOStcA9S1kBeUU8YTR1bygFzZ8jPTPHrz X-Received: by 2002:a9d:518b:: with SMTP id y11mr96770014otg.349.1578103785377; Fri, 03 Jan 2020 18:09:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578103785; cv=none; d=google.com; s=arc-20160816; b=NGpaA9KvTtdnOSpJ+J+mlQSZC98a+0vLjpiitNGqNBVj0atHYV4tEO+m9sMqncPE2W w+9zT/ru4YHXGhdrlRSdRalqGi0oIjIieimUizN/iNyiNxh1Xuk5uZdSh6dXTeyFERCE 9J/mL3OJJbbK6hDNNdZhCpbN6HP106bOh/RFngWC83PzCq6USnVEGhgeGZFcrgcHuAMA oIQObbXgLDoq5olXnSIZaoCKyFPcwP9kCsOa9LJSxo7GDV9GuhNf93Or7GbQp+kr9FSy 06ggSjs9k+g7LcnpVjePXtnvnLjLB13nHthgwPHnxUndXKsYh0Oy2uwrhplcAuTbJ3wR O76g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zXEe3WcWiJE+Ho4BlR/nUq6/fS0/xrpLIcfb3zFC9CE=; b=M2itsKOfLj2a1mtEv0n/Tlfw9JhI9kL4UfVo/3eVbzgH8eOh6ONokYX3vgyxQcjeOC eIP1domRC+s0mO4z5DWcO3Nn/EnOR2++XSdafLKB9L5kHpRiKpJZ5Df69z21/eUCtYlZ IKZKtSmdoyqTvMcKSDspYr5ddOPiNAL8IzR6qsYhS81yjeq8JNsjhOTBQhJwdnVHH1Ww fpKYblNczwW8M70OqSN1Trn6wqKn3uQ00YtDxdO+oqbMJ0pXqfy5WRPo2FwjnIkKL9TV /zTG7LptYu073V0fFuxuJ07oSDQkIgbz7Tjcz7jECc9rUEJGLjTAmoIS7ljX+tnvwnuS E2uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t6a8T5SU; 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 z14si26686365oih.89.2020.01.03.18.09.32; Fri, 03 Jan 2020 18:09:45 -0800 (PST) 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=t6a8T5SU; 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 S1727253AbgADCIx (ORCPT + 99 others); Fri, 3 Jan 2020 21:08:53 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:39829 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727141AbgADCIw (ORCPT ); Fri, 3 Jan 2020 21:08:52 -0500 Received: by mail-pj1-f67.google.com with SMTP id t101so5378565pjb.4 for ; Fri, 03 Jan 2020 18:08:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=zXEe3WcWiJE+Ho4BlR/nUq6/fS0/xrpLIcfb3zFC9CE=; b=t6a8T5SUz+8xdRkaPVEKxGbCytJ4SR2QQRtmSYQeBFymQdPkGQDPbCc+98EKmKZ/J2 n3SAdn7YPQgWoUplaKbuQybkR/pk/x6TJ5aJIUhQ83jBMsLjUGeX3wiDVmiardN5Xuf4 xt1LYQAjnRGYRv4wrkFGPI49Bbs5fZlST+lzAmz5O2CeiZ3f9AP4/e3HPMcd2mxycf9z hmBMxGP254FElbLTsBLtpJWyt4OYGdaD7FZ9T4PlrF0MxORki7bKa2s+aXvAsZlswceJ HM/KU6wAn0CAp1I65uEH4IuVtF76d0CVhm7/fay+iNHkdO2Hap2xWQrhAh95HaczsoKn xW2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=zXEe3WcWiJE+Ho4BlR/nUq6/fS0/xrpLIcfb3zFC9CE=; b=CF/VXOigHm8v6GcCgD4PsKNpbOCH+j+0+8tKWdccD1GoD9vR3PomxP7TXZX+JOTQHN Vu7JtTYBD/tDaOy79sOkzWPsnwR+pMaxTLOcWnRyhNWuIGxun3KvxUoEM/ZtoP8RJyZD AHt8Lu4MaS7ClGUbKTcyPnb7h84xOYxaQSt0dNkjDwRRLxJZ7Ly4L4Eood833caSXB/V 7O3vEHBlMVZyLJ6mstGv2WXDDVgE2Pvih2QsJbfKQvxe092JtJYaP6I2fm57qbSA67OB 8Pwtz8nAIIWF1Jntzx2jWQcAwBM6d12CXEorikpVirUdmoqL0umQ5YYaBtk9J3o6EeQS zfsQ== X-Gm-Message-State: APjAAAU9KcH0Ds5Llu2jmqwa8gt+tFP5pACzYAlMCLevR1Uue9+w5AGg bTPoUZzb4Xl/UcSP47BVpR9Eiw== X-Received: by 2002:a17:902:5a83:: with SMTP id r3mr96772476pli.145.1578103731911; Fri, 03 Jan 2020 18:08:51 -0800 (PST) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id y128sm67099181pfg.17.2020.01.03.18.08.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jan 2020 18:08:51 -0800 (PST) Date: Fri, 3 Jan 2020 18:08:49 -0800 From: Bjorn Andersson To: Brian Masney Cc: Elliot Berman , agross@kernel.org, swboyd@chromium.org, saiprakash.ranjan@codeaurora.org, tsoni@codeaurora.org, sidgup@codeaurora.org, psodagud@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 00/17] Restructure, improve target support for qcom_scm driver Message-ID: <20200104020849.GR3755841@builder> References: <0101016efb7349c0-3c8f33b3-f7d2-46df-9bbb-c8f4401c5bf2-000000@us-west-2.amazonses.com> <20200104015654.GA30866@onstation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200104015654.GA30866@onstation.org> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 03 Jan 17:56 PST 2020, Brian Masney wrote: > On Thu, Dec 12, 2019 at 06:51:07PM +0000, Elliot Berman wrote: > > This series improves support for 32-bit Qualcomm targets on qcom_scm driver and cleans > > up the driver for 64-bit implementations. > > > > Currently, the qcom_scm driver supports only 64-bit Qualcomm targets and very > > old 32-bit Qualcomm targets. Newer 32-bit targets use ARM's SMC Calling > > Convention to communicate with secure world. Older 32-bit targets use a > > "buffer-based" legacy approach for communicating with secure world (as > > implemented in qcom_scm-32.c). All arm64 Qualcomm targets use ARM SMCCC. > > Currently, SMCCC-based communication is enabled only on ARM64 config and > > buffer-based communication only on ARM config. This patch-series combines SMCCC > > and legacy conventions and selects the correct convention by querying the secure > > world [1]. > > > > We decided to take the opportunity as well to clean up the driver rather than > > try to patch together qcom_scm-32 and qcom_scm-64. > > > > Patches 1-3 and 15 improve macro names, reorder macros/functions, and prune unused > > macros/functions. No functional changes were introduced. > > Patches 4-8 clears up the SCM abstraction in qcom_scm-64. > > Patches 9-14 clears up the SCM abstraction in qcom_scm-32. > > Patches 16-17 enable dynamically using the different calling conventions. > > I tested this whole series on arm32 (msm8974) and everything looks good > from my vantage point. Feel free to add my: > > Tested-by: Brian Masney # arm32 > Much appreciated Brian! Thanks, Bjorn