Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp722608pxk; Wed, 23 Sep 2020 14:30:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZJzlQpiMdftnDgAyTQPgqLmmPUlaodkB1wqa573AXNtLW+4hfdVKs/G8l8UFyEEQnNHyB X-Received: by 2002:a17:906:4046:: with SMTP id y6mr1669408ejj.148.1600896610852; Wed, 23 Sep 2020 14:30:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600896610; cv=none; d=google.com; s=arc-20160816; b=l6LBxos6ewtxQ7RGZP9/lyyFt7/7vxmzt7q4CDEJrzM0d6IFwRZ9C8t4ndpS680A5m cYmgxx704Bcd3BO1HtSTmc7PLbNA9CIHF4eLeSorTVjky8WEwT/mg6jkY+YoguBHlTI8 5pZAMwqWrJiMdGjef70Ua4iXR8bVEynnKDby4D/ECxxw/oVUI0ZLAP8joZkrbSDHy/6m XoPjpqCcwUwAsx2bOkzW/hNqytybE959+R+Dbi2SLGuyVqLG38L3S1T1S+CTzUg2LmQi hpNgFsVN6cUUHZI0LV8fpJ9Zf1QNybWp1f9JgrjmMzU1d+11KHRJ0EguS0ZcWK+/EHla hwXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=NhcHxkvfB7BL71DayU4kKwQuHllId4i9VfQatxYCkY4=; b=FetHvslM4SCWXgrmz4t34KIZm0vpC9/F8VRU9pIid4D2x79Mu/dR8FZy/ZijhsJM1K lNAwnVPtRn91GNo/Pvtc5SKtek7WZu5P95kIJAe0ezktLczNwbR1MigA+ArAf1HJz4qQ 9PILpszTmcn6WKC0xPX6OxB0yN1+RdOgmQvO9tKBDrYZfQ3ByiJMLaYrnh1OI0zij0o8 Ikdb26PQX/CN40aTxyNlHXXa7b9qdW8G8UutbwD14MxmHrkSZeUzqu0eDFNt/C3gmd8p r39+1t6MbW2iOeIe1DUoR/QHjHNmmkXuKvivvDPX2gLrQfcJMqt4lqAGPUFCHLEr4MGN KuDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sGzNgmQ4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by2si706979edb.324.2020.09.23.14.29.47; Wed, 23 Sep 2020 14:30:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sGzNgmQ4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726599AbgIWV2Y (ORCPT + 99 others); Wed, 23 Sep 2020 17:28:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726265AbgIWV2X (ORCPT ); Wed, 23 Sep 2020 17:28:23 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3A13C0613CE; Wed, 23 Sep 2020 14:28:22 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id gx22so1613075ejb.5; Wed, 23 Sep 2020 14:28:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=NhcHxkvfB7BL71DayU4kKwQuHllId4i9VfQatxYCkY4=; b=sGzNgmQ4o+F9PW63vKdOE90jc5Bt/m2DIz1adWlm72MOtvEx9pugeR13iq605nZ69b BN3h87PkxSnIfsDKFu1qDUyAeQ8DW1Ug1Qq3LtG1HEhjRm6bz0wv0tjKvs3Jnv4+vlBu rG134aYGFQ274iWtg8wizDQgDNzNNFtHvDDovs69XT95Z6FB2SqLBf6+JGM2q6ZLLmqB S/Fs6PXgX7IK6gk3WCknl35jkavJK83jlSfCIgDTN9ilDJCsbjG0i7CO6MLN/C1kj0ks spW5LjbN47jbEwRIfVcC2Ukp6/wObP2reaCPDzTzt+k5BC+2VGWptNTSyHS0HS/vGuAQ D4CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NhcHxkvfB7BL71DayU4kKwQuHllId4i9VfQatxYCkY4=; b=R4ooa0EqyvPfv46tWfC7dZXF+l4L/qUUxiKqH169bSrytXMh2pRgDc6oCwcJQ71YNe fWBvFEsI4rQpL84Nq9+qsaus0yZAJyqY6gpsELaN1EPgJEKq+j9wp7SiUaHlroSvTgU6 RVlGovXy6Pkpc7tBmVZ4xKaZBDXsMUNrIywo5EtPMHMUh50zkabhisEe+U65N9LP9iof u7PnX1OfXYOsG3uAIGIrHDnx4HAJzf7Mwi/09YOIuignJt91jdYSUzH0xkSUMdKywCZ+ EW9wE/5C/Za9X9wRvVYCMRNmvqUhdYpI6XWzrILNG7fD4nIMHOYF2qOLq19X1ciBpwCQ y/LA== X-Gm-Message-State: AOAM532/4ivlDCqKBgS+1IVwjJGNcPuuogO0wd31AI9IfcDnt3+YDJYC Zo3DfKeN/ROVz8m/FvQ8JlY= X-Received: by 2002:a17:906:c113:: with SMTP id do19mr1392188ejc.219.1600896501643; Wed, 23 Sep 2020 14:28:21 -0700 (PDT) Received: from [192.168.2.202] (pd9e5a9df.dip0.t-ipconnect.de. [217.229.169.223]) by smtp.gmail.com with ESMTPSA id o3sm795193edq.63.2020.09.23.14.28.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Sep 2020 14:28:20 -0700 (PDT) Subject: Re: [RFC PATCH 5/9] surface_aggregator: Add error injection capabilities To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Arnd Bergmann , Rob Herring , Jiri Slaby , =?UTF-8?Q?Bla=c5=be_Hrastnik?= , Dorian Stoll References: <20200923151511.3842150-1-luzmaximilian@gmail.com> <20200923151511.3842150-6-luzmaximilian@gmail.com> <20200923174543.GA102853@kroah.com> From: Maximilian Luz Message-ID: <11657eb7-88a8-0c24-f7ee-fef9679c7837@gmail.com> Date: Wed, 23 Sep 2020 23:28:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200923174543.GA102853@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/23/20 7:45 PM, Greg Kroah-Hartman wrote: > On Wed, Sep 23, 2020 at 05:15:07PM +0200, Maximilian Luz wrote: >> This commit adds error injection hooks to the Surface Serial Hub >> communication protocol implementation, to: >> >> - simulate simple serial transmission errors, >> >> - drop packets, requests, and responses, simulating communication >> failures and potentially trigger retransmission timeouts, as well as >> >> - inject invalid data into submitted and received packets. >> >> Together with the trace points introduced in the previous commit, these >> facilities are intended to aid in testing, validation, and debugging of >> the Surface Aggregator communication layer. >> >> Signed-off-by: Maximilian Luz > > Ok, this is ridiculous. > > You are dropping a whole new subsystem on us, with full documentation, > correct driver model integration, crazy debugfs interactions (I made fun > of the patch, but the code did work, you just did more work than was > needed), proper auto-loading of modules, tracing, documentation for more > things than is ever expected, and now you are adding error injection > support? > > You just made all other code submissions of new subsystems I have gotten > in the past 2 months look like total crud. Which, to be fair, they > probably were, but wow, you just stepped up the level of professionalism > to a whole new height. > > I can only dream that "real Linux companies" take note and try to follow > this example. I think I will point them all at this in the future and > say, "go do it like this one." > > very very very nice work, we owe you the beverage of your choice. > > greg k-h Wow, thank you very much for those kind words! That means quite a lot to me. To be fair, I've been working on this whole project for about two years now and a large part of the code has been rewritten in the last half a year, specifically to get it ready for the kernel. So I guess that might relativize things a bit :) Thanks again, Max