From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC923C43613 for ; Sat, 22 Jun 2019 06:01:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 92D6F2070B for ; Sat, 22 Jun 2019 06:01:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="u+SCmvGS"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="uGFNm22D" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 92D6F2070B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AfD6XiYQB6wpkqX0tiTuWcpGwZ5hv9WlzHH5ZLMqSaU=; b=u+SCmvGSfK9K2X f8dIyUPrWm7bAUQD/wZ2kGLXabtyNCFCvHIAiSR1AjJgiTtDKxEWGoVIrKbrH6qgCdOwZylnSzr08 8gRtjrR7JTUrL0IsA4hrcCiJi/lAerHyHkcva7qXhSqNtBu70ImB9WGUGCZPUOiJR89QMfM4uN/Xm CqRkDdwKH8Byf+tVssSfhs6Pql536ETJIz09kB0AayBXJm+1TDC5YwmTK+HinZYIf7M9lJAqXMYO4 rkJyic1cMu3cDYjPg2bDFr6T+Y+8R+cBT6syQ07D8eESeKsgnUIJ+1Xs5Cj0AtDtpYqcgE7e8b8NI NoDUASLHdLIKTHJAmjtA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1heZ5v-0002M5-RG; Sat, 22 Jun 2019 06:01:47 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1heZ5r-0002L8-JL for linux-arm-kernel@lists.infradead.org; Sat, 22 Jun 2019 06:01:45 +0000 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 442002070B; Sat, 22 Jun 2019 06:01:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561183299; bh=J4nwTNf4TIc77OEmvYy2wd0rsAPfND411jSD0FcgEwE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uGFNm22Dllq5iqArZAVGhwDzlZNbmVJOLcw3Q9yawbOQKMjih0GV7VZhFwNePb0hn inZi6PMD9sbUtc8/bl/LH9ZqUPohCCSW4Lhx5xf+2KpTa54EyGd26OZI2JA5pk2DH1 ImnCX/JHnz0tV2ynOLdB9QwAUkfALEY8Ohf0bJIA= Date: Sat, 22 Jun 2019 08:01:35 +0200 From: Greg KH To: Dragan Cvetic Subject: Re: [PATCH V7 00/11] misc: xilinx sd-fec drive Message-ID: <20190622060135.GB26200@kroah.com> References: <1560274185-264438-1-git-send-email-dragan.cvetic@xilinx.com> <20190621141553.GA16650@kroah.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190621_230143_683330_E7609833 X-CRM114-Status: GOOD ( 23.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , "arnd@arndb.de" , "linux-kernel@vger.kernel.org" , "robh+dt@kernel.org" , Michal Simek , Derek Kiernan , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jun 21, 2019 at 05:49:45PM +0000, Dragan Cvetic wrote: > > > > -----Original Message----- > > From: Greg KH [mailto:gregkh@linuxfoundation.org] > > Sent: Friday 21 June 2019 15:16 > > To: Dragan Cvetic > > Cc: arnd@arndb.de; Michal Simek ; 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 > > > > 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? > > > Tools no, but could be the customer who is using the driver. I don't understand this. Who has written code to talk to these special ioctls from userspace? Is there a pointer to that code anywhere? > > 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. > > > > Why is that wrong and what is the risk? You now have custom syscalls for one specfic piece of hardware that you now have to maintain working properly for the next 40+ years. You have to make sure those calls are correct and that this is the correct api to talk to this hardware. > What would you propose? > Definitely, I have to read about this. What is this hardware and what is it used for? Who will be talking to it from userspace? What userspace workload uses it? What tools need to talk to it? Where is the code that uses these new apis? thanks, greg k-h _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel