Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1060587ybc; Tue, 19 Nov 2019 13:52:06 -0800 (PST) X-Google-Smtp-Source: APXvYqx+x+Ypbxt247tZc+v+HwBL3Y/BZhjMpobvCXJLfDf7h/YdAqC00Gz2GH+oHN8nFS6e3cgq X-Received: by 2002:a17:906:3019:: with SMTP id 25mr38033771ejz.280.1574200326188; Tue, 19 Nov 2019 13:52:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574200326; cv=none; d=google.com; s=arc-20160816; b=KTPmlcSugBb2eSsXqtXowtl4GPoWeEoh95Xk3spTQLfoeYXlnGKi17U0Xd4b7AwPy0 UK/82bSlBEWKaYo4lX57bQKb0POds816Sr6cC2FGjK6EwyONJ/caWsAtD8O4JryTZE/O u51kMp2ghdoW6S6MrCz+fQGiyC11k/Gso2b5hOJ1eMdlYeM2pzZTTlBNIVZt8n9/kVMN c2yasd6K7cmwrgTlvL2z981m3Seg2ZbqqsnYD43M05ao9r089OnnKsRSCOZFNAOarimO lCll+3zNOhJamn8Z+aOkUoz47s89NRfZz1KwMHfI98D4vRvNy/Wd4KvZOmwc0IhpM4sm OgNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=z0/O1Vpuw+xwM/4jaTJh2/ARW1/nXxwQlkmSxUL0re0=; b=LVdwrwGAIGujKKpefG2vCCAyRsF+cVz4QezUhZhA6ULbjjRD/9YfwQI1ZEEkOJdrn7 /aNyoTCZAlzXvemjjvAW5xM+mvrn8fX8XxK+TDJjwIUFX5kPkwWe80m2eNfJqmEMIQhc XFD6md7ACarhKjxKQg5A1hfUe4RB8hEl1rMAULhSs12dW2DlVbrPqHuYMyDrLtgOt9Nr r0qe7I0pBUweaALwMZbBjhsTpgrEbAJkvQ3/A8uXhE48bgkL234N8gtmm2UzhQpMsFYl TUB5Cl6UZdK+itdg/9G4ZlpDEO49bchked+kjU378exoz7N0uZR+ZJ73MAqVEJesw4rD 8UvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BaCMkMwB; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pv22si14911324ejb.337.2019.11.19.13.51.42; Tue, 19 Nov 2019 13:52:06 -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=@chromium.org header.s=google header.b=BaCMkMwB; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727705AbfKSVrL (ORCPT + 99 others); Tue, 19 Nov 2019 16:47:11 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:39522 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727674AbfKSVrK (ORCPT ); Tue, 19 Nov 2019 16:47:10 -0500 Received: by mail-pj1-f67.google.com with SMTP id t103so3201208pjb.6 for ; Tue, 19 Nov 2019 13:47:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:subject:from:cc:to:user-agent:date; bh=z0/O1Vpuw+xwM/4jaTJh2/ARW1/nXxwQlkmSxUL0re0=; b=BaCMkMwBvnUDcFn2Afgbc832ylHb3Li4n3kiBHbNDNumcoZCz28vAMJbW9E0ee0vie gSUwrOjPqwiC8bWK7cnfgMYXiHMRHknJYIUvuXa/h5fR2taBOM0UNkJ9m2/t/mqot34I rvM8AecLG/bdb1/PuULA0s5swchRu1MwkrVhk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:subject:from:cc:to :user-agent:date; bh=z0/O1Vpuw+xwM/4jaTJh2/ARW1/nXxwQlkmSxUL0re0=; b=HVYJDvwfEAz56al5QJLD80JMLy2MN81GOr0xxYe4RWg/7ltzKSgpTPYE6MoRZZdAVJ HJM6cMmLLvCKMYmfiMvpaosKAMx96oau59QzUXvyUwcjQwD+jxwAPQr4z6Aoqeh21G1I 8gP6JTDaiqWNeHCcbd8IWOOgWQgTF0AeC2SEBc/4MUCpD2bQBA4FUCvt0BNu/21iF0aJ Di3VjEe9sEnYykeIQXo0FbiqHRsAWE+rEeuUzDalbC5mMXO9t3ysGYNt/9sJcLPsQzkL 28GZmon1gyQT3Bg9uiNgwTkuThwhTMbiaRfCp7ofsXmwcu1N7EfMAiSLOptaF5hv+1Oq 10pQ== X-Gm-Message-State: APjAAAUq5JRbDA39cQySF3ZRVrzEf0OSAy5MxNiX7LphDyTBj/w/FPxd Y1qsYPU0u3hW3CrEQdVumbUpOw== X-Received: by 2002:a17:90a:4803:: with SMTP id a3mr9371388pjh.101.1574200029396; Tue, 19 Nov 2019 13:47:09 -0800 (PST) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id y8sm25901244pfl.8.2019.11.19.13.47.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 13:47:08 -0800 (PST) Message-ID: <5dd462dc.1c69fb81.b84c3.e950@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <4b63daf69f7b49ce8304b5cd85e39b22@codeaurora.org> References: <1573593774-12539-1-git-send-email-eberman@codeaurora.org> <1573593774-12539-2-git-send-email-eberman@codeaurora.org> <5dcf345b.1c69fb81.df1ea.f7f6@mx.google.com> <4b63daf69f7b49ce8304b5cd85e39b22@codeaurora.org> Subject: Re: [PATCH v2 01/18] firmware: qcom_scm: Rename macros and structures From: Stephen Boyd Cc: agross@kernel.org, bjorn.andersson@linaro.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 To: eberman@codeaurora.org User-Agent: alot/0.8.1 Date: Tue, 19 Nov 2019 13:47:07 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting eberman@codeaurora.org (2019-11-15 17:19:13) > On 2019-11-15 15:27, Stephen Boyd wrote: > > ... to here I don't understand why any of it needs to change. It looks > > like a bunch of churn and it conflates qcom SCM calls with SMCCC which > > is not desirable. Those two concepts are different. >=20 > I can see the confusion. The goal with this patch is to make it more=20 > clear which > macros and structures are for SCM interface from those which deal with=20 > the > implementation of how an SCM call is implemented with the smc=20 > instruction. It's > not presently clear that struct qcom_scm_response (for instance) is only > relevant in the context of legacy convention. >=20 > I choose the name "legacy" since only older firmwares use it and having > "scm_buffer_get_command_buffer" seems even more confusing to me! "SMCCC" = > was > chosen for lack of a better name. >=20 > Additionally, the concern with having qcom_scm_ prefix on these=20 > functions > (especially legacy_get_*_buffer()) is you get long function names which=20 > didn't > seem desirable. If the long names are preferable, I can update series=20 > with the > longer form of the names. >=20 This is the hardest problem in computer science. Figuring out a name. ;-) Maybe call it scm_buffer_*? Because it _is_ scm communication with shared buffers? The newer calling convention passes arguments in registers, but the original calling convention passed a buffer around from non-secure to secure world and then back again and had a embryonic register based calling convention. That buffer passing still sort of happens with the new style but it isn't done unless the register count is larger than 5 or so and the return buffer isn't unbounded in size like it was done. It also sort of follows the ARM SMC Calling Convection spec now.