Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1236862ybv; Thu, 20 Feb 2020 16:07:08 -0800 (PST) X-Google-Smtp-Source: APXvYqydt3k1yZZW90MGbFy5WV88Wx2MLMZoneA+yI3Dv2inNBMlQjwFTOPGePgblVNCZXhsmNiB X-Received: by 2002:a9d:7305:: with SMTP id e5mr24572808otk.64.1582243628737; Thu, 20 Feb 2020 16:07:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582243628; cv=none; d=google.com; s=arc-20160816; b=gyjhJaFFG21zramUyHlqbzCgh40G2wlygJ78wUUYECcT0cAL8Hv29CaZm3XHA8bmU+ Ks8Awz0/AvJ3f8yCNEZBRwYdRFYEL/kIn5/kVA1NZrsJsRT+H8QFEFX5COyI0rXZs/Tj mwmdiXG6Bd1AVqFdxVCLc2XYFAcuMO8QY+cMAoqNk90CQka3RjomFxqxNyLG95bBbyKa 1ERU0gWR0+YyEaOfJsCSPQLQofy1rW78yk5Ux8jCfy+X55OQVV/Fea+fFFvQI2CXVKtI DwHGBcJ/I22PyNgTHwnSakUgbtjh6p5T+dh1S7oMrwCTLb4TE4IY/scF9rlvn25N7v5c E6Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=2SZEgD5g5TBz11BF0RQOXvwvVsuErja6hQBhQx9iqtI=; b=VvQ8pARiZWqjDNnWAldN1fMsRgntnhYEbg0o3dbU5YhJ0Ee8yY9PCLCgkkSKMPwtJz PdFYx4LvMTGtJaL/k7gxpdP1iMCuIM0FhAcxqHDeb/L3FXqsOyMiy4uAt541AI6hStyF C52aFKeauTGZQl5guHSVCbKPTX5iHlAUm3eu3h2WQi5Ig9Z5VfL8d9sP1vS/QijbbHWT y32y7BZR32JFKvoGKR+v+Xmw1WSFWErva5GmalxPpKP7cctsm/zoOi69SATUbDrGeuM8 H0hRP7Y0U+WMFmW+M9ariU1S8c4LncyIu63Uzn8ORrAmgP87JIQJJPSPGiMdoOkxD0RC xsIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=YaGJ1WcJ; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si549389otk.154.2020.02.20.16.06.56; Thu, 20 Feb 2020 16:07:08 -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=@broadcom.com header.s=google header.b=YaGJ1WcJ; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729373AbgBUAGu (ORCPT + 99 others); Thu, 20 Feb 2020 19:06:50 -0500 Received: from mail-pj1-f68.google.com ([209.85.216.68]:37774 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729353AbgBUAGu (ORCPT ); Thu, 20 Feb 2020 19:06:50 -0500 Received: by mail-pj1-f68.google.com with SMTP id m13so213949pjb.2 for ; Thu, 20 Feb 2020 16:06:49 -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:content-transfer-encoding:content-language; bh=2SZEgD5g5TBz11BF0RQOXvwvVsuErja6hQBhQx9iqtI=; b=YaGJ1WcJmrZ9+UccHzdSAh0ocSCrEkLtIKG+wxpLLF5UCP4a9dn/4qDx6NEQEadWCH K6NzCNrgRJZaIu8hAHddRJAPGjbZSsZTwPOdqZtEpnYEay7Gouyomz3ZPxoyE78CDS+Y 0/yJ9nzBOwSj/1cvAmJByGdfRF82SHRVeKCiQ= 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:content-transfer-encoding :content-language; bh=2SZEgD5g5TBz11BF0RQOXvwvVsuErja6hQBhQx9iqtI=; b=sqfCnhFvVayUTo4/udRXsodLPWAngD55zVPAYGK9ASB5JjOAp+6Uzb1dFGL/eu6yie b/vZpsyAvnUclBbOdJ+1bAPgiTnP44xYHnTHCOpRRXjHEvx1FPZ5Upjwa3ylWsvN7NnG Ees23sD5BYRIOHk3pCaRqFCbsTMUsQRIqSS2HzXOKZ2ADiQ1Tw1/4ydU6ykHbmw6NDbS KjKTZzIGPESbhEAuIvXKfB+YhLqZfeqMw/nWVZNy2G78uUN7ncdPwgNyxTL3bji/52yk PwoUsCrZQl9WsZ0fap2oskG6fZo7eKVJbvE/JgWIMqYA9E5h24EuDztNBjVdX8uz6mmM rRRQ== X-Gm-Message-State: APjAAAVj/h6zM5d5Ai3pKEz+VABwAqkkeAMAjqOXHSMZyy6nwqKGobP4 Vt1YNrymtTIP3xQbZnzl3AHmfw== X-Received: by 2002:a17:90a:8545:: with SMTP id a5mr6523527pjw.43.1582243609242; Thu, 20 Feb 2020 16:06:49 -0800 (PST) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id x10sm706267pfi.180.2020.02.20.16.06.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Feb 2020 16:06:48 -0800 (PST) Subject: Re: [PATCH v2 6/7] misc: bcm-vk: add Broadcom VK driver To: Randy Dunlap , Luis Chamberlain , Greg Kroah-Hartman , David Brown , Alexander Viro , Shuah Khan , bjorn.andersson@linaro.org, Shuah Khan , Arnd Bergmann Cc: "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-fsdevel@vger.kernel.org, BCM Kernel Feedback , Olof Johansson , Andrew Morton , Dan Carpenter , Colin Ian King , Kees Cook , Takashi Iwai , linux-kselftest@vger.kernel.org, Andy Gross , Desmond Yan , James Hu References: <20200220004825.23372-1-scott.branden@broadcom.com> <20200220004825.23372-7-scott.branden@broadcom.com> <827a4520-95ce-5264-90d9-ed730e5918e6@infradead.org> From: Scott Branden Message-ID: <22c48aaf-21e2-56ab-3f40-e497a69cd936@broadcom.com> Date: Thu, 20 Feb 2020 16:06:44 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <827a4520-95ce-5264-90d9-ed730e5918e6@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Randy, On 2020-02-19 5:04 p.m., Randy Dunlap wrote: > Hi, > > On 2/19/20 4:48 PM, Scott Branden wrote: >> diff --git a/drivers/misc/bcm-vk/Kconfig b/drivers/misc/bcm-vk/Kconfig >> new file mode 100644 >> index 000000000000..c75dfb89a38d >> --- /dev/null >> +++ b/drivers/misc/bcm-vk/Kconfig >> @@ -0,0 +1,42 @@ >> +# SPDX-License-Identifier: GPL-2.0-only >> +# >> +# Broadcom VK device >> +# >> +config BCM_VK >> + tristate "Support for Broadcom VK Accelerators" >> + depends on PCI_MSI >> + default m > Need to justify default m. Normally we don't add drivers as enabled unless > they are required for basic (boot) operation. Will remove default m as not needed to boot.  Interesting other offload engines misc/ocxl/Kconfig and misc/cxl/Kconfig have default m. > >> + help >> + Select this option to enable support for Broadcom >> + VK Accelerators. VK is used for performing >> + specific video offload processing. This driver enables >> + userspace programs to access these accelerators via /dev/bcm-vk.N >> + devices. >> + >> + If unsure, say N. >> + >> +if BCM_VK >> + >> +config BCM_VK_H2VK_VERIFY_AND_RETRY >> + bool "Host To VK Verifiy Data and Retry" > Verify > >> + help >> + Turn on to verify the data passed down to VK is good, >> + and if not, do a retry until it succeeds. > No timeout on that retry? This is only enabled for debug purposes or fpga workarounds - no need for a timeout. > >> + This is a debug/workaround on FPGA PCIe timing issues >> + but may be found useful for debugging other PCIe hardware issues. >> + Small performance loss by enabling this debug config. >> + For properly operating PCIe hardware no need to enable this. >> + >> + If unsure, say N. >> + >> +config BCM_VK_QSTATS >> + bool "VK Queue Statistics" >> + help >> + Turn on to enable Queue Statistics. >> + These are useful for debugging purposes. >> + Some performance loss by enabling this debug config. >> + For properly operating PCIe hardware no need to enable this. >> + >> + If unsure, say N. >> + >> +endif > cheers.