From owner-freebsd-drivers@freebsd.org Wed Sep 26 08:17:32 2018 Return-Path: Delivered-To: freebsd-drivers@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 7883B10A4EC6 for ; Wed, 26 Sep 2018 08:17:32 +0000 (UTC) (envelope-from shreyankfbsd@gmail.com) Received: from mail-yw1-xc36.google.com (mail-yw1-xc36.google.com [IPv6:2607:f8b0:4864:20::c36]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F39D173922 for ; Wed, 26 Sep 2018 08:17:31 +0000 (UTC) (envelope-from shreyankfbsd@gmail.com) Received: by mail-yw1-xc36.google.com with SMTP id z143-v6so10450921ywa.7 for ; Wed, 26 Sep 2018 01:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=kiHLP+/G2hw1OAE/7b1WE5i/LwYZEBtNExWxMLE+p3o=; b=KNivtwxlaSuXqc2ZsQTso0BCAODfZwSHNW+F0/Bi9/dq1fPoby0TOwk/Ug1g4hA6nQ Iso2Bji3BYAZcYokmf9ImVEqtyvY+tQumsMDJWYd8TYAhRxrffAOEc3/QOmRZSqj0yOb CCFcW67EKPe9zLqxj3acJvaKbMxtKY52sz7p3o9/oVLFuikQODipSe6CzwIBC1gc6/NU hF9Oo90YPF8uJ07skCkqPjQpjn2PZGcmmaHyBHTFUpfIig2DHjDMvsa5ECofosetyQQi BLLcpC1xUtB+in0oIY035V0eqyKPjIzVnYbk1KalTvlI3cmAQHyrH1WJRoU1xBMQgAvG 0A0g== 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=kiHLP+/G2hw1OAE/7b1WE5i/LwYZEBtNExWxMLE+p3o=; b=R5cXrzHxZWXNBDhdR88lbY/j3yI0ngUNJNgJv2zNh6McFbv3LYV5HkKqQoWAAUMOie hTbrk4WsgBUAYoMQWlr6536xhIRVKqFbhdQeAFsQvlREF4gw29MAWcVPSpJfWY842Y+W cJxpqgYfrPLF1NbnrdTyJ/COLKy31Vd4u8EJS/YuUPXs+gPoGS3MxFWUW6TSqOrQvRxS +69/yh6dSfpXjOD3kV7aGQY57mZo4K/sj9unPtRwPj+n/ldVoSLV83Mt/7jZe+boZk/B PjKcZGaDCY/K1p9Fz8tNBZeXtnU/FVBSYj+PSuwHJGMGzujtZfHEY08hVtkShOBFxu/4 X2JQ== X-Gm-Message-State: ABuFfohv9pePE1vUDcXWF52/lUsSEgNDmiL7dbzl4jb15cq2LtmWrJju a+2I5CVAW6H1b5wCJ7aj6KS4RjvFLqweOrOszBNz X-Google-Smtp-Source: ACcGV60HUur8uCfII4t2hw+RAjxP55AmHq7rm+53+wsUJjST3775DRArRiF3bdipETePjD9UV8Yq9qqymus2Ubm9ZWw= X-Received: by 2002:a81:72d5:: with SMTP id n204-v6mr2311140ywc.57.1537949851272; Wed, 26 Sep 2018 01:17:31 -0700 (PDT) MIME-Version: 1.0 From: shreyank amartya Date: Wed, 26 Sep 2018 13:47:20 +0530 Message-ID: Subject: Device Driver Debugging To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2018 08:17:32 -0000 Hi, I have modified a driver source for eMMC controller (added a new device in the table) and I want to debug an issue (HS400 mode not working) with the device. I compiled and loaded the sdhci_acpi module, now I'm new to FreeBSD and device driver development, so I was wondering what are the ways I can debug this issue, any resources, and utilities that would make it easier to debug this problem. I see there is a debug flag (hw.sdhci_acpi.debug), which I enabled using sysctl, but I'm not sure how to utilize it. Any help is appreciated :) Thanks Shreyank