Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp19185857ybl; Fri, 3 Jan 2020 17:58:33 -0800 (PST) X-Google-Smtp-Source: APXvYqwPpPtfq41o4oC4+PijhJpomV87iNJcghvJM8X5IvnPeZLI7DVuauiD56sPmLfI8Z0Nxbgi X-Received: by 2002:a9d:750b:: with SMTP id r11mr98384379otk.209.1578103113452; Fri, 03 Jan 2020 17:58:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578103113; cv=none; d=google.com; s=arc-20160816; b=kVFWwWHql8b4QYS1+xCx+tE9jeqE32mcY2OQjY+bgNmnBhA/onfBDmAeAp2AS8pfUq o5cprBUcRQWj6fwVIKtvAOgVd1lYcxS459Ih02SLaazdD/BHEtIrUZWgYlmFOSOuySTb 9OdPowDaw6fDCqRkno84UYsR6TkIL1sPYtpFmmEAi9LXDFO239xRQdQV82dnJiXvRHLv rwSunhE4BOYWBXTr8L3N1FGvVdr+WpiYjI8QSUONdsNdkP2cc2Fy9HmpnlCxvsdSjEPU imHVXiKymuOAyqZKp3UL28dHorJB+BZawXoAXx91ciCe/ZJ2wP2i+V/EGlaZxFCoNuCs 8+cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=31xjnYVSeO4kXbVYxNZHVy0xUqg2FQaaa/dl2gnV/ug=; b=zGJ9gEs8G7z8Hskh5RbeiXcNVJkRTTGy6TawNL/JCOD38U+Yd0O695q1l7wgiig7G9 ZbTs1Gq+97i50twa1fVo9zXfOaVqRnzxCtPeFkUwxndmBKvr3mvFDjl06MMoNVWdCWFa VtGTNAYXLTWvDDHuI5zSP2FQZxEe5PU0DNuMV6aABacLBPN4RLOaNZZu5gg6VNeseLlm aRx5R0YSrdl4Jr5KzdJ8JwqSHaEVrlPpoZ42vYnTmFXWbjClyfLwEAmR8vJD+6Rc7Kzn GEfF0pyaN9W5kBhjytffNhfKLBaw39HfTFYTZamadzwaXzQsjsCRUzhMpHly4DfD9Dzz vpwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=fCnL+ieI; 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 k131si25114628oia.64.2020.01.03.17.58.07; Fri, 03 Jan 2020 17:58:33 -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 (test mode) header.i=@onstation.org header.s=default header.b=fCnL+ieI; 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 S1727228AbgADB4z (ORCPT + 99 others); Fri, 3 Jan 2020 20:56:55 -0500 Received: from onstation.org ([52.200.56.107]:34432 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727194AbgADB4z (ORCPT ); Fri, 3 Jan 2020 20:56:55 -0500 Received: from localhost (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id A08E93E9DC; Sat, 4 Jan 2020 01:56:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1578103014; bh=xyNpKZprwQIQOXph+TC++p8DP2NT1nhOZroE+HxC+Wo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fCnL+ieIaQvIfsDm34kYoKy5MvFQxUR+EE3sBFaanimdxnirMX0x22gUiUQtM0Rhw RydRRFkrtd+kt3Y0aZvK8QmC5Wtv9zypLIvQ8fjjm/4xqFl47tmzQ4ghFt6E9UXX3Z J1RJg/tl/ORovtH4zbVvJ+DQ3dAxrbbS/ZxyE+MU= Date: Fri, 3 Jan 2020 20:56:54 -0500 From: Brian Masney To: Elliot Berman Cc: bjorn.andersson@linaro.org, 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: <20200104015654.GA30866@onstation.org> References: <0101016efb7349c0-3c8f33b3-f7d2-46df-9bbb-c8f4401c5bf2-000000@us-west-2.amazonses.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0101016efb7349c0-3c8f33b3-f7d2-46df-9bbb-c8f4401c5bf2-000000@us-west-2.amazonses.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Brian