From owner-soc-status@freebsd.org Thu Jun 14 09:33:37 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 021031015D9A for ; Thu, 14 Jun 2018 09:33:37 +0000 (UTC) (envelope-from uddka@student.kit.edu) Received: from scc-mailout-kit-02.scc.kit.edu (scc-mailout-kit-02.scc.kit.edu [IPv6:2a00:1398:9:f712::810d:e752]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 92A53804BE; Thu, 14 Jun 2018 09:33:36 +0000 (UTC) (envelope-from uddka@student.kit.edu) Received: from tr-v1239-fse.scc.kit.edu ([2a00:1398:e:28::2] helo=server-01.fs-etec.kit.edu) by scc-mailout-kit-02.scc.kit.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (envelope-from ) id 1fTOdH-0002uA-9q; Thu, 14 Jun 2018 11:33:34 +0200 Received: from Chris-TP.fritz.box (p200300D2EF0FDC00C9BE401B3B2E59B7.dip0.t-ipconnect.de [IPv6:2003:d2:ef0f:dc00:c9be:401b:3b2e:59b7]) by server-01.fs-etec.kit.edu (Postfix) with ESMTPSA id 73994DCA; Thu, 14 Jun 2018 11:33:30 +0200 (CEST) Date: Thu, 14 Jun 2018 11:32:37 +0200 From: Christian =?ISO-8859-1?Q?Kr=E4mer?= To: soc-status@freebsd.org Cc: Chuck Tuffli , Luiz Otavio O Souza Subject: User space interface for GPIO interrupts / Status Report Week 4 Message-Id: <20180614113237.8bf0f6eb4cfcf31c5c0d0930@student.kit.edu> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd11.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2018 09:33:37 -0000 Hi, during last week I fixed the handler for the poll() and select() syscalls and implemented a ioctl request to retrieve the configuration. I also made some improvements to the test utilities and the driver. Furthermore I thought about automated long-term test scenarios and came up with two practical ideas: - Implementation of a pseudo random number generator on a second device whose output is connected to a GPIO pin of the device under test. This scenario can be validated by implementing edge recovery and replaying the PRNG with the same seed on the DUT. - Implementation of a discrete-time stochastic process as source for GPIO interrupts. For validation of this method either the PRGN can also be replayed on the DUT with the same seed to predict the timestamps when events should occur and compare it to the actual timestamp when the event arrives or another communication channel between the two devices to share information (like the count of occurred events for instance) can be used. In the course of this week I am going to implement a handler for the kqueue()/kevent() syscalls and start to prepare everything for the hardware tests an start with their implementation. The source code of the driver can be found in my fork of the FreeBSD src tree on GitHub [1]. The utilities for configuration and testing are located in a seperate repository [2]. Regards, Chris [1] [2]