Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1830534pxb; Fri, 18 Feb 2022 16:58:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwM+sSjEnFegniWJSWEVack47eq39qPs9fJoFVnyQn+UmZBLvnl8u7d6Ck/ekrmUdeeVXuf X-Received: by 2002:aa7:8d42:0:b0:4bd:265:def4 with SMTP id s2-20020aa78d42000000b004bd0265def4mr10110948pfe.24.1645232282896; Fri, 18 Feb 2022 16:58:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645232282; cv=none; d=google.com; s=arc-20160816; b=0A+2JH0jrCSj87H771BUBeSY5Trxs8Ja9h0V19LKv57pNjXuQWN8gc3tveANdRkHUh efe9+fSs8mcE9Xk9iomeunEUKooQdQbGcNR1fmtXFSW+eo4zbtIJBa27qLqTa0aRLcGL oFsc3E/s31S5CPBxlsF8Pzn4HiFzWAGytkGDAyBT2MzRT0ybXF5TnMrX0KfBaZk7gA4R RDg+on/14aCqL1yItSkDQw2fg6zya9spjgHYj9ICw1ZgZvECssZsFhKOoaVteCK7R1nf nx2rUEhs7L56zBPjkdAveHtDkFNVuV85wpSNw5tEODcZjNpWnnJNrNGqUchb9MzzB3SY goaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=KK4LIfRjQ7XdJ65sijjMTA8KL2jena4OMb/vo+SZgDA=; b=KmFaa9DPdqPZ+FBQ8T2yjTJpYT1tuoYAenOudvbB6JJRJbF26xlU314+tlp2it8pvr FuRl69eKsMX+W5cyIa0WfLaIrK6pySeDm1hjcSwP9KP6JlHasP2sOtH+3L0B7fbN4Obo eYHCx9HmIWcwWmQD3DovPrT+XWVmsqwhG0JzfEHXqgdMhhMcRfZaBs8Ajk1Cvvrt4jXK MM9U+3UhJug9PhwrJy/ktBXliOj5ugNlU2UBded0AsPaSb95vLlcmlqOEMg3JLL4L4PD Qv2DS7l1Ide6jC2HVu3RPbRXpgrT5jDp/ebtF9lEHB1jgfKVv4PtNHAAuSGWnfwtHWYf +u/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=O4lADO++; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b10si15350035plg.598.2022.02.18.16.57.46; Fri, 18 Feb 2022 16:58:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=O4lADO++; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S238996AbiBRUJT (ORCPT + 99 others); Fri, 18 Feb 2022 15:09:19 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:57840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235188AbiBRUJS (ORCPT ); Fri, 18 Feb 2022 15:09:18 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CE7324B2A5 for ; Fri, 18 Feb 2022 12:09:00 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id d27so16328553wrc.6 for ; Fri, 18 Feb 2022 12:09:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=KK4LIfRjQ7XdJ65sijjMTA8KL2jena4OMb/vo+SZgDA=; b=O4lADO++B26IWMN04OttFj1+9ZaHx1e8RuhuGH3Z0GIc9ZqRqR01W6LYQfqUvFIBK9 unVe+v8x2ugV8R88ZNSqd2yntgbwm8NfRHFoovqACbIAmJiYAdp/d/YSXVde1vGEqeHj BkJttgPyNSwWbdFFNx5z0VWbIRrite7ZeFVqU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KK4LIfRjQ7XdJ65sijjMTA8KL2jena4OMb/vo+SZgDA=; b=WImId9w9XIy81aX3WvqiD8+Hx3fC92ubDH/Z12RRL5XZMrnkeDVUqC0e1pQ9H/2zrK hpgKepW/jCDM7oLNSapFLJOJyFiMBYt2HXJetLU1WCW3IBjVCh+kJfa0DIcwXOc2cJFi UBMmx9Lprat/xHw9vChIgUp/sH1xZ5VXwj+m6TdeXzsXlqzni0SJd1tbCZ3GTsRwzoDw xMOdWhYzgAUiDiwZsHPzUOojCjDAHHNMuXZDx/RZcTAgV5gF8sN7SEVMYy0q32FTwvxo OU8EPmSpOv6PZwMIKzEomvrX2D2QMITrkWAd6xMAUP/sq2wkFfRpl22qTAHmPTHl6Tmd /Zdw== X-Gm-Message-State: AOAM5331XAkAq+ERYEOuMVDcV1gZaO4aJoJgpnkFbwPKmuP+KnvlDiHZ mPLRX1oODhFAofpdXh6DQ60FUQ== X-Received: by 2002:a5d:47ce:0:b0:1e8:88b7:446a with SMTP id o14-20020a5d47ce000000b001e888b7446amr7305907wrc.459.1645214938824; Fri, 18 Feb 2022 12:08:58 -0800 (PST) Received: from dy890235-Precision-Tower-3620.ric.broadcom.net ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id g8sm32904815wrd.9.2022.02.18.12.08.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 12:08:57 -0800 (PST) From: Desmond Yan To: Scott Branden , Arnd Bergmann , Greg Kroah-Hartman Cc: bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, Desmond Yan Subject: [PATCH v1 1/1] misc: bcm-vk: add kconfig for supporting viper chip Date: Fri, 18 Feb 2022 12:08:11 -0800 Message-Id: <20220218200811.17136-1-desmond.yan@broadcom.com> X-Mailer: git-send-email 2.17.1 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="00000000000007c8bc05d850747f" X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, MIME_HEADER_CTYPE_ONLY,MIME_NO_TEXT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,T_TVD_MIME_NO_HEADERS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --00000000000007c8bc05d850747f Add kconfig for enabling bcm-vk driver to support the viper chip. Default is off and only explicitly configured that the viper chip would be discovered by the driver and loaded for usage. Tested-by: Desmond Yan Signed-off-by: Desmond Yan --- drivers/misc/bcm-vk/Kconfig | 10 ++++++++++ drivers/misc/bcm-vk/bcm_vk_dev.c | 2 ++ 2 files changed, 12 insertions(+) diff --git a/drivers/misc/bcm-vk/Kconfig b/drivers/misc/bcm-vk/Kconfig index 68a972772b99..43910a378163 100644 --- a/drivers/misc/bcm-vk/Kconfig +++ b/drivers/misc/bcm-vk/Kconfig @@ -16,6 +16,16 @@ config BCM_VK If unsure, say N. +config BCM_VK_VIPER + bool "VK driver for VIPER" + depends on BCM_VK + help + Turn on to enable using the vk driver for the viper variant. + Used for development environments where viper uses VK driver + and VK firmware rather than an alternate firmware and driver. + + If unsure, say N. + config BCM_VK_TTY bool "Enable tty ports on a Broadcom VK Accelerator device" depends on TTY diff --git a/drivers/misc/bcm-vk/bcm_vk_dev.c b/drivers/misc/bcm-vk/bcm_vk_dev.c index ad639ee85b2a..41dbfa4fa4a5 100644 --- a/drivers/misc/bcm-vk/bcm_vk_dev.c +++ b/drivers/misc/bcm-vk/bcm_vk_dev.c @@ -1633,7 +1633,9 @@ static void bcm_vk_shutdown(struct pci_dev *pdev) static const struct pci_device_id bcm_vk_ids[] = { { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_VALKYRIE), }, +#if defined(CONFIG_BCM_VK_VIPER) { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_VIPER), }, +#endif { } }; MODULE_DEVICE_TABLE(pci, bcm_vk_ids); -- 2.17.1 --00000000000007c8bc05d850747f Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQagYJKoZIhvcNAQcCoIIQWzCCEFcCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3BMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnye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