Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp733325ybi; Fri, 21 Jun 2019 07:16:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTXu++Plr1I15HKh7m8yXnASBtR861vs4FAGV+jkJGazF3HCq4Bg6TR5bNBYLKGobA7aPS X-Received: by 2002:a63:b90d:: with SMTP id z13mr18373918pge.16.1561126604581; Fri, 21 Jun 2019 07:16:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561126604; cv=none; d=google.com; s=arc-20160816; b=seieoyXi1MJb6oZLx14C3midrhMR8DODzJyzGUzxJTft/93Gjfi7f/+CwxvJnTxXcd UafG5jofpO3vFl3ultzMRimIjlzCd819LC83YPfc+cP5PoC+ZeJLUHjfbe+diR+JoRkA s5+/NdB53+EuZnQZrVdnMotmlVTYIj1pCaTntbdMWJLC+PJjmWHkzuvF3DgBLAsU7xfs QeNZulmE8OEwa0l2f1/VkvvNuiXAAFrksde8/76YOVXuQjHlWsXcArWHpu9u1rfUCecV 08G6JdNdGpA+20vR3iwsO8ptnr2EUWTPVkrM8x8F4VgPpVd9dwEvrNL/mZh0RskPobI+ L5ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=P7VdaSPS8+P0VAa6liCN/fsaD6jnTggjynvo9nIG2dU=; b=PEeHXXRz9w6GLeSrZR6qHxgQxDPkvLzavbtLvKR9jTAiM50jWRLpoX5paQ5TOC+nwA EZtoy1KqjfzvgygOyWm35SE1h/1S2dl9pN0tRGsJrhBwVRzUrtZl1ocZ2am90rtOWqMO 9VvbdvRHpuQQ9yEMD7L1x9obG0YFLS2RTpQSKyPQdtAGtWXanYl6mwaQYBfc+PWgQvd6 6HVyHyBfiTecZpW2S35+P51StHzMpk1n4Dnldzt7fO2mbAhyu6FLQVj/yC5fbHvRKi9G Xswr6f0BafaNvpzg0djBs88o6AtVpNOq11QCs8Xqf0/pOyGPydHyeTdwEzhwstxn5IRt rfyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zWVUnpPZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z21si2676855pgi.335.2019.06.21.07.16.28; Fri, 21 Jun 2019 07:16:44 -0700 (PDT) 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=@kernel.org header.s=default header.b=zWVUnpPZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726311AbfFUOP5 (ORCPT + 99 others); Fri, 21 Jun 2019 10:15:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:46104 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725975AbfFUOP5 (ORCPT ); Fri, 21 Jun 2019 10:15:57 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A38C12083B; Fri, 21 Jun 2019 14:15:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561126556; bh=KnheiynqKeoZwoHdCdEweRfN/gvyS/gjMvNh7Bd20eE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zWVUnpPZJ6u936vpwxIZB5uRenD2hXnnNmZsh6i9lHoSSfk8z8IG6f/5l4FNXo9hX uki+1fApoZuYR4y6sKBVHHcCkkV/bMN4VzVtIT07SN2VO92alMF7LA5jOGiD1lnHKt SW4n3+4UZVS//VzA3YqSXo+EBntGNX8cSBHEJbqk= Date: Fri, 21 Jun 2019 16:15:53 +0200 From: Greg KH To: Dragan Cvetic Cc: arnd@arndb.de, michal.simek@xilinx.com, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Derek Kiernan Subject: Re: [PATCH V7 00/11] misc: xilinx sd-fec drive Message-ID: <20190621141553.GA16650@kroah.com> References: <1560274185-264438-1-git-send-email-dragan.cvetic@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1560274185-264438-1-git-send-email-dragan.cvetic@xilinx.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 11, 2019 at 06:29:34PM +0100, Dragan Cvetic wrote: > This patchset is adding the full Soft Decision Forward Error > Correction (SD-FEC) driver implementation, driver DT binding and > driver documentation. > > Forward Error Correction (FEC) codes such as Low Density Parity > Check (LDPC) and turbo codes provide a means to control errors in > data transmissions over unreliable or noisy communication > channels. The SD-FEC Integrated Block is an optimized block for > soft-decision decoding of these codes. Fixed turbo codes are > supported directly, whereas custom and standardized LDPC codes > are supported through the ability to specify the parity check > matrix through an AXI4-Lite bus or using the optional programmable > (PL)-based support logic. For the further information see > https://www.xilinx.com/support/documentation/ip_documentation/ > sd_fec/v1_1/pg256-sdfec-integrated-block.pdf > > This driver is a platform device driver which supports SDFEC16 > (16nm) IP. SD-FEC driver supports LDPC decoding and encoding and > Turbo code decoding. LDPC codes can be specified on > a codeword-by-codeword basis, also a custom LDPC code can be used. > > The SD-FEC driver exposes a char device interface and supports > file operations: open(), close(), poll() and ioctl(). The driver > allows only one usage of the device, open() limits the number of > driver instances. The driver also utilize Common Clock Framework > (CCF). > > The control and monitoring is supported over ioctl system call. > The features supported by ioctl(): > - enable or disable data pipes to/from device > - configure the FEC algorithm parameters > - set the order of data > - provide a control of a SDFEC bypass option > - activates/deactivates SD-FEC > - collect and provide statistical data > - enable/disable interrupt mode Is there any userspace tool that talks to this device using these custom ioctls yet? Doing a one-off ioctl api is always a risky thing, you are pretty much just creating brand new system calls for one piece of hardware. Anyway, I took the first 3 patches here because they looked sane. and stopped when I ran into the ioctl problem... thanks, greg k-h