From owner-soc-status@freebsd.org Mon Jun 11 13:25:02 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 83EC71002C66 for ; Mon, 11 Jun 2018 13:25:02 +0000 (UTC) (envelope-from lakhanshiva@gmail.com) Received: from mail-ot0-f195.google.com (mail-ot0-f195.google.com [74.125.82.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 249C985498 for ; Mon, 11 Jun 2018 13:25:02 +0000 (UTC) (envelope-from lakhanshiva@gmail.com) Received: by mail-ot0-f195.google.com with SMTP id q17-v6so23738723otg.2 for ; Mon, 11 Jun 2018 06:25:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=vZF1EBPyDHsGtZXO50yKIKkSWEjUow+Uj780fl/VoME=; b=L4lofjP7AUqrKv5wI16kFsxsomuaiIGlSHmQmY1FXefKFS6khmGUambi6//LHk1xyY nCO0YPDWEsnNcsLXd5psrwMSLGzRMuS4X9nAR9Cff+x1X3LV8FOdI7PCZ+lZMrM6mwq/ T2jOroRl3sk8+bWRRiBBsICV1t5eQFWvyHhNOFmxJZKh+VDRrfc2KNioJcCGMRkgJsCx SCSzSduqU5B5IJidgWVjnZQc+y+N5pz4Gkm2SZut6ZyR2aa+vbslkkv6VTrQo8q/GHE9 pEIH0RXEboLG4REAqNQdCT1OTTf49+7uvT+esi59Sm6SlcS366cAeHEkeYIUExaBAjkL hrEA== X-Gm-Message-State: APt69E2DNtg3s8/xj5kOUQwYVglfbmKDsufoqtmOhFFv55zAqAEM0HV8 SAgQr7Vofl/uPl5pbUJ/ho4OlPgs X-Google-Smtp-Source: ADUXVKL8WN9iMm6bkwRYglQclROxaAvWM2rIltK60i5sqWko4VSAgKIBDGJVRHX8onL30STY24CodA== X-Received: by 2002:a9d:2183:: with SMTP id s3-v6mr9148836otb.142.1528723501233; Mon, 11 Jun 2018 06:25:01 -0700 (PDT) Received: from mail-oi0-f52.google.com (mail-oi0-f52.google.com. [209.85.218.52]) by smtp.gmail.com with ESMTPSA id 5-v6sm1237607oid.50.2018.06.11.06.25.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jun 2018 06:25:00 -0700 (PDT) Received: by mail-oi0-f52.google.com with SMTP id 14-v6so17857963oie.3 for ; Mon, 11 Jun 2018 06:25:00 -0700 (PDT) X-Received: by 2002:aca:5bd5:: with SMTP id p204-v6mr4288070oib.91.1528723500803; Mon, 11 Jun 2018 06:25:00 -0700 (PDT) MIME-Version: 1.0 From: Lakhan Shiva Kamireddy Date: Mon, 11 Jun 2018 18:54:49 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSOC-18] Convert PCI drivers to be table driven - Week 4 To: soc-status@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 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: Mon, 11 Jun 2018 13:25:02 -0000 Hi All, As you are aware, my project is to convert PCI drivers to be table driven. This week I have worked on other PCI drivers. I converted ciss, cp, dc, dpt, cas, ena, cy, esp, bktr, cxgb, fxp PCI drivers. I worked with hard drivers as well. [1] [2]. Some drivers had revisions which had to be dealt with. I have also discussed with my mentors the need for U64 support in descriptor string in PNP INFO - required for aic7xxx PCI driver. Also, i am on track for the first evaluation and have converted about 35-40 drivers. The plan was to convert about 30-40 drivers before the first evaluation and learn to convert some different kinds of drivers with varying levels of complexity. The integration however is pending with the FreeBSD respository - which my mentor will be performing soon. For the final goal of completing the project- "To convert most/all of the PCI drivers" however there are still many different kinds of drivers, some hard, some medium and some easy to be converted and we shall chalk out a plan for the conversion in the subsequent weeks. As there are different kinds - like sound drivers, powerpc, etc. some new methods may need to be explored. I have added the Plug and Play information for them and found them to be used by devmatch to match them with modules automatically. I resolved all build issues. We need to convert the drivers in a certain way so that kldxref can find it and record it in linker hints. I am working on PCI drivers so as to make it easy for kldxref to find them. In a couple of drivers I have added tables and modified the probe function. At the same time, I am also learning the internals of the kernel, this will help our goal ultimately - Automatic module loading. [3] Please find my updated project homepage here. [4] Thank you, Lakhan [1] https://github.com/bsdimp/freebsd/pull/4/files [2] https://github.com/bsdimp/freebsd/pull/5/files [3] http://bsdimp.blogspot.in/2016/01/details-on-coming-automatic-module.html [4] https://wiki.freebsd.org/SummerOfCode2018Projects/ConvertPCIdriverAttachmentsToTables