From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 99405C433B4 for ; Tue, 18 May 2021 01:10:07 +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 227AD613C1 for ; Tue, 18 May 2021 01:10:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 227AD613C1 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 1lioEy-0002RM-2D; Mon, 17 May 2021 21:09:44 -0400 Received: from mail-vk1-xa33.google.com ([2607:f8b0:4864:20::a33]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1lioEw-0002QR-Ek for kernelnewbies@kernelnewbies.org; Mon, 17 May 2021 21:09:42 -0400 Received: by mail-vk1-xa33.google.com with SMTP id n7so1723884vkl.2 for ; Mon, 17 May 2021 18:09:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yv7lVTu3jh3K7aJ26upIQZKYqjIWUmJ8wJNh1Cp26xk=; b=d02wP41z38bngLswPyf1s8yge7TdHytq/hrPneRhDZbOy7To5qlr77EQErbWk5NLNJ ud2JZuPtXZrtp3HD6KqHwkfE3zDHHiNSJb1zktCTNg8BUgop0vCc8LGtzUZvYVEldDPd vP+yYPY1T6I2ne98ioMhI6O+79JfBQj8Koy+KXIinxJY+6CSm2Trl+foPUDdi6QgW8Bb UTVBxBM62HJPs8SbS7zd//vjvWoxiLS+oO3bRrBGWdP+v7plJp2IXxQyAy5c4qa/xLig Ikj8Ja51Ph75FQKwLeLX616nLEBzXJhzw7PEZYO8L36fAntkiL8+IqSZyy50Z1ygsE5G quNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yv7lVTu3jh3K7aJ26upIQZKYqjIWUmJ8wJNh1Cp26xk=; b=Lgt7VONf3gHatv1JUn1KiMcX5v5eMK2S01tGbm8Oj7MZpmm4ca8J8F5WwaglNwowYd 3XXVXLwxW/A+C7MLN9a1DjfESmlURB3x/uLB2kj4fZuAVloMS0vNqt6nGI2xYoYwT0t+ 76Hkz7puGnpkNF301NZVXDNkJtlFNrT78hg0yJLhWwc7dcJxnWKOx8OxNzvxZsPFJNWz A6nXHmalRESK0PqCWrrnJZRSyuWtLjoTQFy3uaha5jDSkjmEwrak3db+5KOp0sY/6zUt Ju/OCJVOni4Qc7KE3683p4izskGj3AyusqR5uNfu5oQI7U7L50T0iHKWJSGg/kKh/htA ZUiA== X-Gm-Message-State: AOAM532FdktCjhozfuuxtv6r2fKCRqyXf1Vme1ZvtpnCqaZg14AmXc3K gSzB0dJPDKPoib4RZyeI1Z3bkyDC94EUw2wmpLY= X-Google-Smtp-Source: ABdhPJxtYKurezhsh5qH2ybiCEtKhLUCo0VXEc9blgPNbZ5eUXMKKgTZpBv6eDV/7Py/vbTSjP6xTlYnZgJ2k1/TX1c= X-Received: by 2002:a1f:a681:: with SMTP id p123mr3289580vke.22.1621300181692; Mon, 17 May 2021 18:09:41 -0700 (PDT) MIME-Version: 1.0 References: <20210517152813.GA59315@hyeyoo> <20210517235358.GA80297@hyeyoo> In-Reply-To: <20210517235358.GA80297@hyeyoo> From: jim.cromie@gmail.com Date: Mon, 17 May 2021 19:09:15 -0600 Message-ID: Subject: Re: How to test device driver? To: Hyeonggon Yoo <42.hyeyoo@gmail.com> 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 5:54 PM Hyeonggon Yoo <42.hyeyoo@gmail.com> wrote: > > 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. well, it surely depends on the bug - and whether its reproducible. if you could defend the patch as "obviously correct" you could reasonably send it without extensive testing, case by case Id guess. > > > 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? > its possible / practical to disqualify patches robotically, but to bless them takes a priest. Robots win by prequalifying submissions. > I think I need to learn about bots more.. > Now think about how its a real-life turing test. 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org _______________________________________________ kbuild-all mailing list -- kbuild-all@lists.01.org To unsubscribe send an email to kbuild-all-leave@lists.01.org theres also a wiki, which helped me make sense of things a bit better than the torrent of reports > Thanks, > Hyeongogn Yoo > _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies