Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2018 18:50:23 +0530
From:      Lakhan Shiva Kamireddy <lakhan@freebsd.org>
To:        soc-status@freebsd.org
Subject:   [GSOC-18] Convert PCI drivers to be table driven - Week 4
Message-ID:  <CAHC0YgeKHgJapudDNfap=4eDFKC27UimRn-7XJ=aPu-jLWe3zA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHC0YgeKHgJapudDNfap=4eDFKC27UimRn-7XJ=aPu-jLWe3zA>