Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50539C433ED for ; Mon, 17 May 2021 15:28:54 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7CC4661108 for ; Mon, 17 May 2021 15:28:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7CC4661108 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1lifAN-000590-Gq; Mon, 17 May 2021 11:28:23 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from <42.hyeyoo@gmail.com>) id 1lifAK-00057c-Gy for kernelnewbies@kernelnewbies.org; Mon, 17 May 2021 11:28:20 -0400 Received: by mail-pg1-x530.google.com with SMTP id l70so4902118pga.1 for ; Mon, 17 May 2021 08:28:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=aOWgvlWCfpZDG9+W036AMjhJTzOxtLKJyM9LZ1+UlL4=; b=WnjxJPD3qJBFy09AT//vv0HBnY6KRyB+F7/c+dPWHJ79watndBX07WhjL0wvTk7FJ5 kKLHclB9khhDDILWQ337KB3+F67TbsjPO1NgBDr6xR+Cx+hPypmk+t0FkjL9P9wAazDL yWPR3nQ5IDAz+Xs1XO/mHRlI6sr/Yeb4CLyrOXJ1KfgN9d+xCOGbfIvzk5ZDC/mhkYid YLJK4dPixrhvY3eSTwMXgb+v6QTqeQ4st5LC1kQ6/WtpSoGoP44T4bYGQK+mH+IBSSI5 Po+yukzNlNetE5LT2t0pfOFvTZu72wWSGdWA/LmMzeixanX0bLYCrfdN1tvJvpNNkYMo P46Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=aOWgvlWCfpZDG9+W036AMjhJTzOxtLKJyM9LZ1+UlL4=; b=NmvbVEkmfZp8Odzd7XSuSgLlaIo/hMGHCFMNaOGbHshfO/N346g+5u/ztq3DvoWU46 OAL6sHuFCStQ3mFrWFWYbRXOu83Jaj/SZXZo8mpjRiWMtSQjXJN8cHydsxJBCrYLMvht HQ2NolPaK49jnspEGZqWEsBXgRRWaVl690mZZScqgkjaPFyQr94fBOcAjNqAXPcuqZgK qIwoM+0JX4qdb5YAbIEd6Ak6kbkrDNakQnqbawT8EouGw8JwpQvnlhUC6+75P25q8gzQ 7z6dAw0creTb2iOiNjBknGE5NygP10QlJRvxlo/QuaVG2fBfX7llTKmFWf6DfpKhahrZ QRgw== X-Gm-Message-State: AOAM533Lbh6evSGU1ZJdlVLGjpPxq1JRheWi0WcdZED8tPTd1o3+ffaS Sgy/np+AuK9Max62G4paaejcE+yY8QKFHA== X-Google-Smtp-Source: ABdhPJx54PF5avW8o05qPTP+v4UcSXbOdLjjRADHVF+V3Q3FU8rQHNK8c+u9vi8yKepxqcwImY2hSQ== X-Received: by 2002:aa7:8601:0:b029:2da:f3a7:9b41 with SMTP id p1-20020aa786010000b02902daf3a79b41mr106691pfn.74.1621265297835; Mon, 17 May 2021 08:28:17 -0700 (PDT) Received: from hyeyoo ([183.99.11.150]) by smtp.gmail.com with ESMTPSA id g19sm5442080pfj.138.2021.05.17.08.28.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 May 2021 08:28:17 -0700 (PDT) Date: Tue, 18 May 2021 00:28:13 +0900 From: Hyeonggon Yoo <42.hyeyoo@gmail.com> To: kernelnewbies@kernelnewbies.org Subject: How to test device driver? Message-ID: <20210517152813.GA59315@hyeyoo> MIME-Version: 1.0 Content-Disposition: inline Cc: 42.hyeyoo@gmail.com X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org Hello, there are lots of drivers in linux. My questions are: - how can we test driver? is it just using that device for a long time as a user? - what to do if there's a bug (like syzbot report), fixed it, but if we don't have that device? _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies