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=-4.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,INCLUDES_CR_TRAILER, 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 ADC6CC433ED for ; Mon, 17 May 2021 23:54:25 +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 010BB60231 for ; Mon, 17 May 2021 23:54:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 010BB60231 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 1lin3o-0000xo-2T; Mon, 17 May 2021 19:54:08 -0400 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) 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 1lin3l-0000xS-UL for kernelnewbies@kernelnewbies.org; Mon, 17 May 2021 19:54:06 -0400 Received: by mail-pl1-x62c.google.com with SMTP id z4so1869676plg.8 for ; Mon, 17 May 2021 16:54:05 -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:references:mime-version :content-disposition:in-reply-to; bh=2WwZl4o2d9EH0djkr1I9d5vSr+o8UtAUMy/goexxclk=; b=ETwr+yokdzmTPGP/q1MqgTL/TPb0TqEjeQhjypu2XVmFgdmBpM/yfwtmkuwfFSH4Al Qbaq40thOi5uZc9JngcSsQ685JZCvMFoL2eW7gbsJUMTeMzy5ppsO1xQ5K/IcCh/5uH8 F/Cr51W+ONC+x2qgyqbuv+zrjqpqK1mncqPMfSrxUnOWj7zNhsExBvLncQ2jmOogg6J8 hloMX1GBZdwCt7EDMof1DbgKUQwoGbfgWFNGXkFfEa5Y5RN90kOzf/JwO8T1Tjrmh94k Jab3oDF2SeoN3arWZ1NWsr7+0PjeIS5zRypTDsTAQUjTnVDDLMIBw58nliJf/ShiL44Z OJZw== 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:references :mime-version:content-disposition:in-reply-to; bh=2WwZl4o2d9EH0djkr1I9d5vSr+o8UtAUMy/goexxclk=; b=s5eG2LhOCQomTlHRgBBhbIwRr1+/sVjVM4rfoAaLhC89T9ybd7L/IvUnulTLvPYF6b WfTIEaYh1CMRCIky53+x8Iyms14JHcKXgdroxI0x3I8ut28uFxReMgehVAVeRYmxxAHX Mp4vIJmaJ+hhGtHWjvOkp+iLDRnKac9twrEElzjk4IU+VolwR3VzM2IAz5tPotjuYzMp m2dK9qThKMbWtPckds0LU3D1JEFjz4b5ofh7NbCFHoeLAyE/q/VFiVkpJyscwo7NwZEl wn7m7DVfaJA6LkSt6t6J4G7yeKuF/PV4GfMBXjKVqNNz1LZaV0QY9jikM/2JVmXbi2qx GkNw== X-Gm-Message-State: AOAM533Fmic3/BmsFgsRLmVhpx5As3DotnAApEQ3H9NEJtLJm8T4eQlZ q1z20C4NKtmUdTvHQHECOcQ= X-Google-Smtp-Source: ABdhPJx0AVEN7JMXUQhUUzMHWG9marHM92N0KIVHb+gwu1RjKvCFmfGRRu8WoHfT8KT3qpmfyllazw== X-Received: by 2002:a17:902:e883:b029:f1:25e2:ff1e with SMTP id w3-20020a170902e883b02900f125e2ff1emr1161812plg.85.1621295643463; Mon, 17 May 2021 16:54:03 -0700 (PDT) Received: from hyeyoo ([183.99.11.150]) by smtp.gmail.com with ESMTPSA id g13sm5754387pfr.75.2021.05.17.16.54.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 May 2021 16:54:03 -0700 (PDT) Date: Tue, 18 May 2021 08:53:58 +0900 From: Hyeonggon Yoo <42.hyeyoo@gmail.com> To: jim.cromie@gmail.com Subject: Re: How to test device driver? Message-ID: <20210517235358.GA80297@hyeyoo> References: <20210517152813.GA59315@hyeyoo> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Cc: kernelnewbies 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 On Mon, May 17, 2021 at 12:48:38PM -0600, jim.cromie@gmail.com wrote: > On Mon, May 17, 2021 at 9:28 AM Hyeonggon Yoo <42.hyeyoo@gmail.com> wrote: > > > > 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? > > > testing is hard. Having the device is highly recommended. > ISTM essential if adding a Tested-by: tag > Do you have a particular device in mind ? I recently was tracking syzbot report that is occured in sound driver. I don't have the device, but was curious about what the test method is. > You could reply to that report email, with your patch included. > 0day/lkp robot watches many email lists, and might test your patch > automatically, for you on different architectures > > at least Ive seen it happening on kbuild, kbuild-all lists well, build tests are useful but it is not enough, we should run the code on actual device. is it possible to make the bot test the device (which I don't have) even if there is no syzbot reproducer? I think I need to learn about bots more.. Thanks, Hyeongogn Yoo _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies