Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3971621pxk; Tue, 29 Sep 2020 10:40:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfzcl5IfNL0tFJ8pZA3I46c9BTE9H6qPEqGS8G2rLMiXKM5Bim6R8MxmN1GkLW3IGdTTcO X-Received: by 2002:a50:ed02:: with SMTP id j2mr4710886eds.137.1601401220104; Tue, 29 Sep 2020 10:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601401220; cv=none; d=google.com; s=arc-20160816; b=J4VgLHu1L5aueoQNDa751rMweog+R377r1wRAJFXX9DwOlIEfCXEr2fgCW0kOUybow nxxZY4SgOpLE8O1ltE3+7BqamQKdoBMEeOp4BDY+pRPWcw8tVKIynZwaLRN2gPZzhXkT TLvtxHA/B68NbqNvpg/l0A4Jwai8pxAN+2Za81UMReQ2E5I14AkCGVDd3WIHY/oG3cS/ NIrGXWPujVUNqS1VrmGMpih1hDjeY76j9WNgUmH2VnrJVIDq1VB6T0SR5Kt7OIgONClG /+ktInK0DD10yOWl8Hp1f7viYJtwBsCLD/hehFIYJ7vaZMpdH0Fj3mlwZg1/F0QImL2P txLg== 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=jnkDY2QU+7WYX0jlaRgqHdfMgEPafXAYuLV8yXn/Z68=; b=HuMYTkELglwPiwUaDpV64Hg/2tsNH/3SS3Yd1dex1GfMjHUUzef1nD8SMfEh6wKIAw aJz6bn1bh7wSdUXECH7M6z1Sm+KDlLVyJpEtDiQM0+HAHCqGgjpipEIw++t6n6a+ICdL 3PpLQzOJWCynhny3j7X+KhrWxSh1qawEnpGUjYHBgU1dCpFYS7H4rZQiIoN3VlliS0CK dcqzfFzmNjFZExowfhTMDER2tKNILfoPEAxMRNhFvYUQoL7cCcqC/8iDuYaRDwAOvpc4 3aMyrq85yYIHJEXfW4su74N1CFza4J0d7mTbt2OWiMNTzVfiBWEqfD1vkGi8CdC4dG3A PyHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=ImjpgXaF; 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 rh24si3141735ejb.283.2020.09.29.10.39.56; Tue, 29 Sep 2020 10:40:19 -0700 (PDT) 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=ImjpgXaF; 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 S1728557AbgI2RiQ (ORCPT + 99 others); Tue, 29 Sep 2020 13:38:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbgI2RiQ (ORCPT ); Tue, 29 Sep 2020 13:38:16 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90E3FC061755 for ; Tue, 29 Sep 2020 10:38:16 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id q4so3037878pjh.5 for ; Tue, 29 Sep 2020 10:38:16 -0700 (PDT) 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=jnkDY2QU+7WYX0jlaRgqHdfMgEPafXAYuLV8yXn/Z68=; b=ImjpgXaFtkarE0Nbkk7RhzATSrR3HBtIcMHQkcBZS1XRoU4jDfl5+DqiS74VRlC2y8 QuWw8uDTsT4dQZU5JNmkZRa7h0XaSk+gqH2WcZjA37aM9LlzZX8Cr8dSqFDZMJ3ZvbbW Zp9R1XbLj9zXJ1oyZnWUUwr3uJ+1RBeTEDvFU= 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=jnkDY2QU+7WYX0jlaRgqHdfMgEPafXAYuLV8yXn/Z68=; b=mEF2gJU1C8p4Zi2C1e3SNNjeA3wgMn8W8Aks/5hA3CRZwADoGTHN1aEykfHzo+PmI8 NIWomb+hg3SD6QBDOq0PkB8Lak7DQscP5vNcVGxVoy7O2b+rmj00ZA9QsaruaGitdBXp uwPXDyLjNqtn6hO73tWUlLuv0WZ32KJdTzcm7R2zq9b1cN0V3+D9tEEEsQPGQ1MvAOnI kRbDpipOWfc47Ku1tbZp8zI0f2LzTX74EI4P+aALFYGjwyvIumd3qchki5rQFrusfgjr jGzJPEAAQBfzN8OaEVEcveKpHOSwx6+GOdbHS2jKdPs5tlDnQxzIEJZOw42JBpZeHbnU mNFw== X-Gm-Message-State: AOAM5325a3a7fis4pVYxyg4vMomATHL2zytNA8PmtaQGOr/KmoOQ92L6 02YC8SD/RX9YjjgMPCungsI40A== X-Received: by 2002:a17:90a:5206:: with SMTP id v6mr4738427pjh.40.1601401095890; Tue, 29 Sep 2020 10:38:15 -0700 (PDT) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id j18sm5414355pgm.30.2020.09.29.10.38.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Sep 2020 10:38:15 -0700 (PDT) Subject: Re: [PATCH v4 01/16] bcm-vk: add bcm_vk UAPI To: Greg Kroah-Hartman Cc: Arnd Bergmann , Kees Cook , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com References: <20200929001209.16393-1-scott.branden@broadcom.com> <20200929001209.16393-2-scott.branden@broadcom.com> <20200929102554.GB951772@kroah.com> <20200929170856.GA1351851@kroah.com> From: Scott Branden Message-ID: <2bba4292-fec4-c9e7-65e6-59133a815bb4@broadcom.com> Date: Tue, 29 Sep 2020 10:38:09 -0700 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: <20200929170856.GA1351851@kroah.com> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000007dafbe05b0773f86" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0000000000007dafbe05b0773f86 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-CA On 2020-09-29 10:08 a.m., Greg Kroah-Hartman wrote: > On Tue, Sep 29, 2020 at 09:44:51AM -0700, Scott Branden wrote: >> >> On 2020-09-29 3:25 a.m., Greg Kroah-Hartman wrote: >>> On Mon, Sep 28, 2020 at 05:11:54PM -0700, Scott Branden wrote: >>>> Add user space api for bcm-vk driver. >>>> >>>> Provide ioctl api to load images and issue reset command to card. >>>> FW status registers in PCI BAR space also defined as part >>>> of API so that user space is able to interpret these memory locations >>>> as needed via direct PCIe access. >>>> >>>> Signed-off-by: Scott Branden >>>> --- >>>> include/uapi/linux/misc/bcm_vk.h | 84 ++++++++++++++++++++++++++++++++ >>>> 1 file changed, 84 insertions(+) >>>> create mode 100644 include/uapi/linux/misc/bcm_vk.h >>>> >>>> diff --git a/include/uapi/linux/misc/bcm_vk.h b/include/uapi/linux/misc/bcm_vk.h >>>> new file mode 100644 >>>> index 000000000000..5f1fc403bc67 >>>> --- /dev/null >>>> +++ b/include/uapi/linux/misc/bcm_vk.h >>>> @@ -0,0 +1,84 @@ >>>> +/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) */ >>> Why do you need BSD-2 if you already have the syscall-note license? >> We include the header file outside of linux user space and use the defines in BSD and other code. >> Hence releasing the header as BSD-2 as well. > Are you _sure_ you need that extra license? I ask as this is not the > "norm" for Linux api .h files. Will remove BSD-2 Clause for now. > Also note, given that you are the copyright holder, you can provide a > version in any other license in any other project, no need to put it > here. > > I recommend going and talking to your license lawyers about this. > > thanks, > > greg k-h --0000000000007dafbe05b0773f86 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 ZVChn6hKneVG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