Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp836744pxb; Thu, 19 Nov 2020 15:19:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZcxA3dGkw12fAdEi1mw1Fbj11Yqh8g9AQ9+JSwK9ATpHZGMmSFI9CH0At+u4Tge5oMG75 X-Received: by 2002:a50:ab07:: with SMTP id s7mr1119263edc.374.1605827947999; Thu, 19 Nov 2020 15:19:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605827947; cv=none; d=google.com; s=arc-20160816; b=Sq8/NaiC1u2p5W8Dmi4+ElyidFHrnn6IhPo7ImhJF6eZNfO829lPmGuIc1c1zVs3B3 9Fkl0/Xm9u15C/hMajhPIdLjJpBXe3LKUPhvL7Dh+ECKH5h5k8dqr9ugR9cXoMgdfVwc hUBdvV30Pdl2h6qwNv2WzohvmrZZxZdnzSOybxVAbFIekHgd3OqDLQNCIKmeBeH/Ncyc m52a7HAaQtwZxYa66CA7PXjn4gUzcF3dF9LoWnLwVIg/X0oOmj5BOFDTufweR0kYoNRE rkD7a05yiz68X18U65AJ/srMeWeiSHe5+lRWMmOw75KZA7tVkjWw+b1B8nAZMTFsTMsV XcEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=7V6HW0uZuPxD4oivZNUKIuh1HcZCqZcN06gwsTMyfHY=; b=i8Bwni2FgrOV0037PSNOmy/LeQxN+zo8nBiZxM4/Q6jZpL7NBlYKSdkDEIxQ+J/drI whuk0Ovxi6crJ71DvcztnYNQrKC0DXRDa6SiQxTfdAF0IVWmYjCySy0XkB5alELYXP33 TrKspbxCyHi3QnCsN6mJsR6NDA999/uGAOnsnlQNCOYAaeuVgcW5YgHfLnwX1VQqOM69 /6WECBsDCdsqlKBdyyYXB+kpxGoblZ/B0YhSotqm1bCH4bsurUzEjD//1XacGE0+YA58 4geQddYL6ahG/8lMoGlGGrgCZd63w6E/gSftIcDGlYgL8/WSqtWdwFcnpc6pz+n33wh3 1hEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Nhrn61zr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o6si362724edr.50.2020.11.19.15.18.40; Thu, 19 Nov 2020 15:19:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Nhrn61zr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726463AbgKSXQy (ORCPT + 99 others); Thu, 19 Nov 2020 18:16:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726433AbgKSXQx (ORCPT ); Thu, 19 Nov 2020 18:16:53 -0500 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC7DEC0613CF for ; Thu, 19 Nov 2020 15:16:53 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id a18so6012941pfl.3 for ; Thu, 19 Nov 2020 15:16:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to; bh=7V6HW0uZuPxD4oivZNUKIuh1HcZCqZcN06gwsTMyfHY=; b=Nhrn61zr8B2jey4iFaGBScLhgVVLhUCA+2D/s04CbHQYpVlWyTrZwYBaZi+xx3GXgq 58zK0gyCYbE1F01oBgy962FWG60Dqt/XejTlxq+avHqEVoCwJ9w3oh4otR4P45TfNQmc 6rlOmTZz0d1v2AHU5dJtPz4TMblVBg4B9mQd4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=7V6HW0uZuPxD4oivZNUKIuh1HcZCqZcN06gwsTMyfHY=; b=EIAyb4I9JZV+KGcyiaxfguDxPgW26k3JQbh9jJ8PzGPgjKntSzgzgM1qDzihBIEUIm Y5Evr9W6+8MWbz2Bbis8IIN2vnqcGiDr0DorRlw5fP1uHnhEe3PWsAQoP4O1KNNUbsQr xFxZBxBe6mGYbxz31vsXlUChHF9BOubdw2vNnOCpvEhlZQUe1T7Zy38YeyPXyshstNso xvVwtQ9Tm7IRkXsHkXpgrCmsfKrn5LcuRW4VKDhhaeJrZNGXIU17P/6T0clpEO+zRz0u xbIausmMfCBXfb6sWXjoOCl0Vg0gItcSXG60Oovstsy9uX72AOHa8uuH1uS1VMADc1SW Fynw== X-Gm-Message-State: AOAM531KI70iArkyZ4CmFH9oEYWNPfK9BRVuaEuxVJQNQNE9BcA47tya V+gaN+uzYR+4/FxTARSUEbgA4bxYmkHsBvWY X-Received: by 2002:a17:90b:508:: with SMTP id r8mr2282396pjz.151.1605827813060; Thu, 19 Nov 2020 15:16:53 -0800 (PST) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id a18sm1055446pfa.151.2020.11.19.15.16.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Nov 2020 15:16:52 -0800 (PST) Subject: Re: [PATCH v7 02/13] misc: bcm-vk: add Broadcom VK driver To: Pavel Machek Cc: Arnd Bergmann , Greg Kroah-Hartman , Desmond Yan , Kees Cook , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Olof Johansson References: <20201117232320.4958-1-scott.branden@broadcom.com> <20201117232320.4958-3-scott.branden@broadcom.com> <20201119224256.GA16032@duo.ucw.cz> From: Scott Branden Message-ID: <4ffc8ed7-5b35-0867-d1c3-8ea7ac66d014@broadcom.com> Date: Thu, 19 Nov 2020 15:16:44 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201119224256.GA16032@duo.ucw.cz> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000006416fd05b47decc0" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0000000000006416fd05b47decc0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Content-Language: en-CA Hi Pavel, On 2020-11-19 2:42 p.m., Pavel Machek wrote: > Hi! > >> Add initial version of Broadcom VK driver to enumerate PCI device IDs >> of Valkyrie and Viper device IDs. >> >> VK based cards provide real-time high performance, high throughput, >> low latency offload compute engine operations. >> They are used for multiple parallel offload tasks as: >> audio, video and image processing and crypto operations. >> >> Further commits add additional features to driver beyond probe/remove. >> >> Signed-off-by: Scott Branden >> +++ b/drivers/misc/bcm-vk/Kconfig >> @@ -0,0 +1,15 @@ >> +# SPDX-License-Identifier: GPL-2.0-only >> +# >> +# Broadcom VK device >> +# >> +config BCM_VK >> + tristate "Support for Broadcom VK Accelerators" >> + depends on PCI_MSI >> + help >> + Select this option to enable support for Broadcom >> + VK Accelerators. VK is used for performing >> + specific offload processing. >> + This driver enables userspace programs to access these >> + accelerators via /dev/bcm-vk.N devices. >> + >> + If unsure, say N. > Could we > > a) align the text the usual way Please explain what "the usual way" is? > > b) explain what the VK is here? What kind of offloads does it do? What > does "VK" mean? Sure I can add some more details to the menu. Offloads such as many parallel crypto, video, compression, and transcode operations are some such offloads. VK has no real meaning, it is just short for Valkyrie, the first device in the "VK" family. > > c) explain where such accelerators might be found. Such accelerators won't be found in any consumer devices but in high compute data center type locations. > > (Is remoteproc framework unusable for this?) remoteproc has been discussed previously [1] and doesn't suite this application. [1] https://lore.kernel.org/lkml/CAOesGMg6f2pK4ZZ8bz=0nMgCJG-8JhLZe41prZoGsBhgGs6_jA@mail.gmail.com/ > > Thanks, > Pavel --0000000000006416fd05b47decc0 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQRQYJKoZIhvcNAQcCoIIQNjCCEDICAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg2aMIIE6DCCA9CgAwIBAgIOSBtqCRO9gCTKXSLwFPMwDQYJKoZIhvcNAQELBQAwTDEgMB4GA1UE CxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMT Ckdsb2JhbFNpZ24wHhcNMTYwNjE1MDAwMDAwWhcNMjQwNjE1MDAwMDAwWjBdMQswCQYDVQQGEwJC RTEZMBcGA1UEChMQR2xvYmFsU2lnbiBudi1zYTEzMDEGA1UEAxMqR2xvYmFsU2lnbiBQZXJzb25h bFNpZ24gMiBDQSAtIFNIQTI1NiAtIEczMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA tpZok2X9LAHsYqMNVL+Ly6RDkaKar7GD8rVtb9nw6tzPFnvXGeOEA4X5xh9wjx9sScVpGR5wkTg1 fgJIXTlrGESmaqXIdPRd9YQ+Yx9xRIIIPu3Jp/bpbiZBKYDJSbr/2Xago7sb9nnfSyjTSnucUcIP ZVChn6hKneVGBI2DT9yyyD3PmCEJmEzA8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