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=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FSL_HELO_FAKE, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL 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 05A96C432BE for ; Thu, 22 Jul 2021 22:56:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D523960EB4 for ; Thu, 22 Jul 2021 22:56:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232300AbhGVWPb (ORCPT ); Thu, 22 Jul 2021 18:15:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232242AbhGVWPb (ORCPT ); Thu, 22 Jul 2021 18:15:31 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84A28C061760 for ; Thu, 22 Jul 2021 15:56:04 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id m38-20020a05600c3b26b02902161fccabf1so2450168wms.2 for ; Thu, 22 Jul 2021 15:56:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=IA1VbfCE0XhvLNla6VhKBZi1IOWHetcg7Adztz386vQ=; b=tDQZihy5zIWb38ficSC58M4Lv2GJc/Chu8kZMuPp+SIGEeS7WY4a3H9lDctfzdbv0I DvnLxNxUhbBKQwJSQ+InAfvZtF5mWCQM1VuzOWAFevhdYqEEruucp/Jugpx23+HSfkdW pN/AuljpBwVjsdDrI1+ufPl5bzLN82cVyTjbkK27gkxtVlpFP7Eh35o3C1DcMotWoEVV /rZMVCsZxx3XbSkYOEdHlJqYjMl/iNKNHEBqgOWSqsPqdJ29B3eHuiAyk0fylyRAFOaa J6x1hfnAtllmgKeR+9JKvZh3yLYN2E6JhBlsqqGEuQhWDXaBzykqjfDJ6DTn5w318m5u MKeQ== 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=IA1VbfCE0XhvLNla6VhKBZi1IOWHetcg7Adztz386vQ=; b=JI2zYCGYQBaoNBDI/upCGCpfjs+KkYGA0B5y5xH45nT9ejtDYQBDpJhP+RJ1F+V9LR LpGBez9PpXuEHhAJ8RhEOBsQMZmC4e0M6oHpKr0bALqUt6XrGL0CF3CUL2Ppym7xBQcM JJSsuOjbozPdocGgoYXmLy/E6eJTiLBrailfpzbrHBOvKb6adDDfS+tSqx3lQNFLL88T XGrX/Fc0xdjyQLrCHx3TNH/5Ug9JgXyCAf/EfoxNUtqpXoMHMfl5F+cLzwMssO8EjIAi 5u8lwF9qYCWSaXmhrKP8LYsl3wCiJv+h9DUWvVXDsdodUWFDbEnIfONH3dBxy+PPC/to zsdw== X-Gm-Message-State: AOAM531/offqFmBErVQeq2fbfGYD+28ji+SiNnyC38Csx15JXzQGyr46 EDzNv/sBcAjz8MeIRAHamvuU X-Google-Smtp-Source: ABdhPJy/btBS+ckSaWVgeDzTRKZZIrQZaP0axVhrjkHwwUrxODcWWr77Z9TCISNFbdreFF20YV+YzA== X-Received: by 2002:a1c:7f54:: with SMTP id a81mr6144382wmd.107.1626994562893; Thu, 22 Jul 2021 15:56:02 -0700 (PDT) Received: from google.com ([2a00:79e0:d:209:7bb:435c:1528:220e]) by smtp.gmail.com with ESMTPSA id n18sm29939899wrt.89.2021.07.22.15.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 15:56:02 -0700 (PDT) Date: Thu, 22 Jul 2021 23:55:58 +0100 From: Wedson Almeida Filho To: Matthew Wilcox Cc: Finn Behrens , Greg Kroah-Hartman , Miguel Ojeda , Christoph Hellwig , Miguel Ojeda , Linus Torvalds , rust-for-linux , Linux Kbuild mailing list , Linux Doc Mailing List , linux-kernel Subject: Re: [PATCH 00/17] Rust support Message-ID: References: <20210704202756.29107-1-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: rust-for-linux@vger.kernel.org Hey Matthew, On Thu, Jul 08, 2021 at 01:58:32AM +0100, Matthew Wilcox wrote: > Why are you so resistant to writing a real driver that deals with actual > hardware? I don't think it was so much resistance but rather a prioritisation thing. Have you by any chance seen the gpio driver I posted a couple of days ago? > A simple NVMe driver is less than a thousand lines of C. > I know the one in the kernel now is ridiculously complicated and has > been thoroughly messed up with abstractions to support NVMeoF instead > of having a separate driver, but it's really a simple interface at heart. The latest NVMe spec is 452 pages long, which seems to contradict your claim that it's simple. In any case, translating less than 1K lines of C shouldn't be too hard (after I've built the abstractions, of course). Would you mind sharing the simple driver you mention above? Thanks, -Wedson