From owner-soc-status@freebsd.org Mon Jul 9 11:17:43 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 82B581040278 for ; Mon, 9 Jul 2018 11:17:43 +0000 (UTC) (envelope-from lakhanshiva@gmail.com) Received: from mail-oi0-f66.google.com (mail-oi0-f66.google.com [209.85.218.66]) (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 19E4191ED1 for ; Mon, 9 Jul 2018 11:17:43 +0000 (UTC) (envelope-from lakhanshiva@gmail.com) Received: by mail-oi0-f66.google.com with SMTP id c6-v6so35191843oiy.0 for ; Mon, 09 Jul 2018 04:17:43 -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=YS0kyscQBKqaeVXNrGlVwbDVFzgS8hMeDXapg/URYrU=; b=W2Ez97rMHxZigKKSbSpkdq8jjrzqSz3aEoH3mPaKaOkAVLkpI3fQYYSMyAiV6EnAK8 Wqwxo1ayMq+T91fGGq8NNo1ZQvJc/u7hnUxeXhluoiQJcgP4X87M1P96XnYpLuT9e8R0 Vlj0v6SiyXb70GyBqVpqhSHlDQt8Igy10iEpPfGbgf5N9y9TKgPIYXeSpQFSI7mI24/Z /rycW4DaQjl9cuRxLd+OuGbNHVHZk08KTi0aelUpYN7Iq3PNT7NAL21clK0TGgrUaGX1 ftmKcpr1oMovtOgdcPSZ1MuI0/62kK2G8oieiSXtJIbpsN8Z9F4LSgse891tL8sD9pA7 gLgQ== X-Gm-Message-State: APt69E2bDETYqKge9Gh3f3oPhfksyUTDK/5KkhOfOP7vDWdIAQmgsGpC o3uXTgrt1GK/bZNsM6iUBGjju/pT X-Google-Smtp-Source: AAOMgpdOVKQdkl7aVPxS/6m4jdIazSgAeTa6KT8hxR7zQs2VtlOn4yla9I3p3FCcymdjGf1aX5QKow== X-Received: by 2002:aca:bdc4:: with SMTP id n187-v6mr7042492oif.3.1531134633131; Mon, 09 Jul 2018 04:10:33 -0700 (PDT) Received: from mail-oi0-f43.google.com (mail-oi0-f43.google.com. [209.85.218.43]) by smtp.gmail.com with ESMTPSA id k133-v6sm11151922oia.36.2018.07.09.04.10.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 04:10:32 -0700 (PDT) Received: by mail-oi0-f43.google.com with SMTP id n84-v6so35098518oib.9 for ; Mon, 09 Jul 2018 04:10:32 -0700 (PDT) X-Received: by 2002:aca:e30b:: with SMTP id a11-v6mr21274904oih.303.1531134632684; Mon, 09 Jul 2018 04:10:32 -0700 (PDT) MIME-Version: 1.0 From: Lakhan Shiva Kamireddy Date: Mon, 9 Jul 2018 16:40:20 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSOC-18] Convert PCI drivers to be table driven - Week 8 To: soc-status@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.27 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, 09 Jul 2018 11:17:43 -0000 Hi All, As you are aware, my project is to convert PCI drivers to be table driven. This week, I've worked on some of the PCI drivers which needed some modification. As we decided to create a new macro - PCI_MATCH, there was a change in strategy for conversion. Firstly as per the earlier strategy I pushed the code to bsdimp fork. Then from there I began the conversion process to consolidate the PCI drivers to conform to our new strategy. Most of last week went into changing the probe routines to use the new device tables that i created. I have also fixed numerous style issues that came up. I have already started the conversion process after rebasing to the latest FreeBSD build. After the work on probe routines has been completed, I worked on the earlier drivers such as amdsmb, ismt, iir, iwm, ips, ignore [1]. 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. I am also learning the internals of the kernel, this will help our goal ultimately - Automatic module loading. [5] Please find my updated project homepage here. [6] Thank you, Lakhan [1] https://github.com/bsdimp/freebsd/pull/8 [2] https://reviews.freebsd.org/D15995 [3] https://reviews.freebsd.org/D15996 [4] https://reviews.freebsd.org/D15979 [5] http://bsdimp.blogspot.in/2016/01/details-on-coming-automatic-module.html [6] https://wiki.freebsd.org/SummerOfCode2018Projects/ConvertPCIdriverAttachmentsToTables