From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7EADC4332E for ; Mon, 23 Mar 2020 08:36:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 877362072D for ; Mon, 23 Mar 2020 08:36:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bg5dByMq" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727577AbgCWIgA (ORCPT ); Mon, 23 Mar 2020 04:36:00 -0400 Received: from mail-pj1-f67.google.com ([209.85.216.67]:37841 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727534AbgCWIf7 (ORCPT ); Mon, 23 Mar 2020 04:35:59 -0400 Received: by mail-pj1-f67.google.com with SMTP id o12so2014120pjs.2 for ; Mon, 23 Mar 2020 01:35:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:cc:references:in-reply-to:mime-version :user-agent:message-id:content-transfer-encoding; bh=jQgBNOBetT+Yt9L1iBVToV2z/HpT1STYDN2GnLPUbZ8=; b=bg5dByMqk4E50hNtbCGMlTCXC+I0n8bJZ9aiwyEplK2n7k9vgIaCOpIo3QClPkMKz/ 85ciSI97m1kFKD05Ooad8bX73r+jiCvd0EAaoODmKHv1dABp3eMmND+0KJQTpnQEaiFs +IEUliXpab40z/XgujvQTd47DVYDSCAXLtVNfaEpx31AP9Tc5m0tueizkvs+mktm4I18 mvLFQ5GxeLFZVlSgkMiqIgLjNOECvpJWrh5xEb+/I5YREitAWtiunmnjm3EIo5cu+v3u +H/oybtYojuw+y4tVERBq0gOsQ5ZDwxGBDqY2BrUtwYyoSyW4R7d0Ejx6aqufybfYHqb iwMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :mime-version:user-agent:message-id:content-transfer-encoding; bh=jQgBNOBetT+Yt9L1iBVToV2z/HpT1STYDN2GnLPUbZ8=; b=SgKn9Y6iSGypWokWwEcowc7Ez4IAHI7YXyhOoI/OVSx7RgoC4equMQOd8dt3mx02+7 DBfSMdxzku9/Pj0pQWA1indob1xH2T+uVTqXtwi8DUdZ80H7B6RvAaWZRvpY5e2T9GIW F/L5vG5Il7G5bCw+ZEPPeTXw/Inp8ElPad7MGlKq1lv+Bhp1jLcEYdCG/OLEcGD6bsJ4 XAkfQKHGLJ+QVJa66XhSCWiWrePUmKwRU5fDqVXbjSjl5WywQ/wMi8Bs4CZhesQpeS+F BEYqriHcb2zjLlxDY/IyBsGo0DavC39Fm97Es19slttS2ITXoYwP92V9l25FBBjkrqIV IK4w== X-Gm-Message-State: ANhLgQ1cZa/QkcTKs047kSi9FoPaGJvc6IdrUWrnG/cM4xlOazFo9cwL bM5zFRmTakaRi2UjRJq/Zj0= X-Google-Smtp-Source: ADFU+vtupVzZlv9Wxpzbv3+cZe0iswidB3CHNo7sIqsXoz8TGh6+KBE0yoI525zLJ1j5YLwnlRkUkw== X-Received: by 2002:a17:90a:a795:: with SMTP id f21mr23950941pjq.29.1584952559231; Mon, 23 Mar 2020 01:35:59 -0700 (PDT) Received: from localhost (14-202-190-183.tpgi.com.au. [14.202.190.183]) by smtp.gmail.com with ESMTPSA id h132sm12937462pfe.118.2020.03.23.01.35.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2020 01:35:58 -0700 (PDT) Date: Mon, 23 Mar 2020 18:32:12 +1000 From: Nicholas Piggin Subject: Re: [PATCH v3 9/9] Documentation/powerpc: VAS API To: Haren Myneni , herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, mikey@neuling.org, mpe@ellerman.id.au, sukadev@linux.vnet.ibm.com References: <1583540877.9256.24.camel@hbabu-laptop> <1583541541.9256.50.camel@hbabu-laptop> In-Reply-To: <1583541541.9256.50.camel@hbabu-laptop> MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1584950507.6q5ilutvon.astroid@bobo.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Haren Myneni's on March 7, 2020 10:39 am: >=20 > Power9 introduced Virtual Accelerator Switchboard (VAS) which allows > userspace to communicate with Nest Accelerator (NX) directly. But > kernel has to establish channel to NX for userspace. This document > describes user space API that application can use to establish > communication channel. Agree with Daniel this is good documentation. But I don't see mention of the word 'signal' anywhere. The signal stuff is one of the trickiest parts this code being added. It would be great if that could be documented and even with example code or at least a description of why it's required and can't be done some other way. Does something like io_uring require signals in such cases? Thanks, Nick = From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44790C4332B for ; Mon, 23 Mar 2020 08:37:50 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 91E222072D for ; Mon, 23 Mar 2020 08:37:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bg5dByMq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 91E222072D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48m76z3ts9zDqrM for ; Mon, 23 Mar 2020 19:37:47 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::1042; helo=mail-pj1-x1042.google.com; envelope-from=npiggin@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=bg5dByMq; dkim-atps=neutral Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48m74x49NxzDqn5 for ; Mon, 23 Mar 2020 19:36:01 +1100 (AEDT) Received: by mail-pj1-x1042.google.com with SMTP id ck23so5759542pjb.4 for ; Mon, 23 Mar 2020 01:36:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:cc:references:in-reply-to:mime-version :user-agent:message-id:content-transfer-encoding; bh=jQgBNOBetT+Yt9L1iBVToV2z/HpT1STYDN2GnLPUbZ8=; b=bg5dByMqk4E50hNtbCGMlTCXC+I0n8bJZ9aiwyEplK2n7k9vgIaCOpIo3QClPkMKz/ 85ciSI97m1kFKD05Ooad8bX73r+jiCvd0EAaoODmKHv1dABp3eMmND+0KJQTpnQEaiFs +IEUliXpab40z/XgujvQTd47DVYDSCAXLtVNfaEpx31AP9Tc5m0tueizkvs+mktm4I18 mvLFQ5GxeLFZVlSgkMiqIgLjNOECvpJWrh5xEb+/I5YREitAWtiunmnjm3EIo5cu+v3u +H/oybtYojuw+y4tVERBq0gOsQ5ZDwxGBDqY2BrUtwYyoSyW4R7d0Ejx6aqufybfYHqb iwMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :mime-version:user-agent:message-id:content-transfer-encoding; bh=jQgBNOBetT+Yt9L1iBVToV2z/HpT1STYDN2GnLPUbZ8=; b=AhHr9xJG9iQtUsNkcukqtcos6rgPDc4BAzv5IdHeCaCVes0ho8cuskUzj98dwX7U7W m0tlNDUR8WRn9pzerQ3cf+dYjB0EUWVSQvGx2LcWfjz5Vd0jp8GETZuSuvZvvWXEDeDw lvQyiihuarJRifktAR/+VGhH9UoJtu4i7hx/6I+6+NzB26u2EURZc55ggQftS+s7Dr1w vefLMM3KrA0Jow2sGdd/paZ99kSb7s2BrfoPkzsRL+Z+yD3+x3DrQcBLDYNV0IS4Ew9f DKoFMaumwfxryrRabp23XGFiPKyU0dAdblAkKqrg3gxOXRaStE9spblFp0zu/ymir8nC +Qxg== X-Gm-Message-State: ANhLgQ3w5sqAZoGr2znYq/nG5XgBU8TqGI6emZVGNo/w6BNTB4+R57in DbOezTNM+laEJSWKeacfkDM= X-Google-Smtp-Source: ADFU+vtupVzZlv9Wxpzbv3+cZe0iswidB3CHNo7sIqsXoz8TGh6+KBE0yoI525zLJ1j5YLwnlRkUkw== X-Received: by 2002:a17:90a:a795:: with SMTP id f21mr23950941pjq.29.1584952559231; Mon, 23 Mar 2020 01:35:59 -0700 (PDT) Received: from localhost (14-202-190-183.tpgi.com.au. [14.202.190.183]) by smtp.gmail.com with ESMTPSA id h132sm12937462pfe.118.2020.03.23.01.35.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2020 01:35:58 -0700 (PDT) Date: Mon, 23 Mar 2020 18:32:12 +1000 From: Nicholas Piggin Subject: Re: [PATCH v3 9/9] Documentation/powerpc: VAS API To: Haren Myneni , herbert@gondor.apana.org.au References: <1583540877.9256.24.camel@hbabu-laptop> <1583541541.9256.50.camel@hbabu-laptop> In-Reply-To: <1583541541.9256.50.camel@hbabu-laptop> MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1584950507.6q5ilutvon.astroid@bobo.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mikey@neuling.org, sukadev@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org, linux-crypto@vger.kernel.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Haren Myneni's on March 7, 2020 10:39 am: >=20 > Power9 introduced Virtual Accelerator Switchboard (VAS) which allows > userspace to communicate with Nest Accelerator (NX) directly. But > kernel has to establish channel to NX for userspace. This document > describes user space API that application can use to establish > communication channel. Agree with Daniel this is good documentation. But I don't see mention of the word 'signal' anywhere. The signal stuff is one of the trickiest parts this code being added. It would be great if that could be documented and even with example code or at least a description of why it's required and can't be done some other way. Does something like io_uring require signals in such cases? Thanks, Nick =