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=-9.8 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham 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 3DF26C433E1 for ; Thu, 27 Aug 2020 17:30:45 +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 D88772073A for ; Thu, 27 Aug 2020 17:30:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IH27H4In" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D88772073A 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) (envelope-from ) id 1kBLj9-0002T3-Oi; Thu, 27 Aug 2020 13:30:19 -0400 Received: from mail-ej1-x641.google.com ([2a00:1450:4864:20::641]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1kBLj7-0002Sq-IZ for kernelnewbies@kernelnewbies.org; Thu, 27 Aug 2020 13:30:17 -0400 Received: by mail-ej1-x641.google.com with SMTP id o18so8734442eje.7 for ; Thu, 27 Aug 2020 10:30:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=LFXPdcQlZT/b8ScDyMgKIV8NJ9ORZljrs8Qq9Q03ppc=; b=IH27H4InIapJF8JHghq86PoqVjAhHOhAU9OtO8TMuWbGF/S7p1H1fChGPP6TYOwshx EshV3zaGO/ssgfKTH5p5/eMXzKe/yB6x9FCRMzLUjAokmoKxqFz0e+3vlFOdasI3At7w dnCAN3gdYnJCyrucvCNCp9LgdNniXXLBpbWg7ss2uwF+VKvTkcl2TU5vCYx2/Aw5xLH0 yx1Q8K7aanCYaObsSB4PYJUMJItrkYzPDAQNMcIL6dYdbRWeOXlUxpz7Mujd9nvihMLc EhfEJqJyDB/BodjXAMFwP6wWpnWK9o9U2kOxSWibLB6/ysfm2wndqifQmoAjr9R7ZXCt 2CSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=LFXPdcQlZT/b8ScDyMgKIV8NJ9ORZljrs8Qq9Q03ppc=; b=hVtb+9s/J0poCegtjB5r5G6VtHAQAbn+LTzUgdQYsFIrwbWz/jfUTnbiiNEKPkJpAz uv2JxGd7ssBu9vpT9wodKdpi6y+/IBcSXhutM7fa9ImLBzUbMV2rc5cZ4Sr6A3GHNWg7 H5OeAq9KWBsMPZ06JL/o/wdmSK+mA+k4/n49AcTfnpE8nZseKl1iam7tCAVcsxwfLJg7 UnXhzR2NPDfqIehS+wYlKlz3utnFp2KW9l4xI5A1+qH6uZgHPshdjDOACPP7gjAwXqoy Smchzc1Dg8FRCrvXG7KhJUmaoBWG2VC4ANgXWxnCnHCvcBUT9YwK3RkZWiqWP2T15Ssk Ll5A== X-Gm-Message-State: AOAM530ddHfpM406m7Lc5MQQZR2mAvULMY/LlcoWDuDg6Fr/V10P5Xtm AngIM0R+CJ3ahj2372T86x4= X-Google-Smtp-Source: ABdhPJzp+wvPatDebfqf2qct88SDHLWYPxh1JmQN1g1z7u5NanB1MxyxN5CM2kIxuWgk3TqAALgTog== X-Received: by 2002:a17:907:608:: with SMTP id wp8mr12392991ejb.72.1598549414702; Thu, 27 Aug 2020 10:30:14 -0700 (PDT) Received: from felia ([2001:16b8:2d0c:fc00:340b:71b8:4541:aa75]) by smtp.gmail.com with ESMTPSA id v10sm1967619edi.69.2020.08.27.10.30.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Aug 2020 10:30:13 -0700 (PDT) From: Lukas Bulwahn X-Google-Original-From: Lukas Bulwahn Date: Thu, 27 Aug 2020 19:30:07 +0200 (CEST) X-X-Sender: lukas@felia To: Thomas Schmitt Subject: Re: Please give advise about my first patch attempt In-Reply-To: <1623736283545418611@scdbackup.webframe.org> Message-ID: References: <1623736283545418611@scdbackup.webframe.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Cc: lukas.bulwahn@gmail.com, garritfranke@gmail.com, greg@kroah.com, kernelnewbies@kernelnewbies.org 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 Thu, 27 Aug 2020, Thomas Schmitt wrote: > Hi, > > Lukas Bulwahn wrote: > > Just take all maintainers as recipients. > > axboe@kernel.dk linux-kernel@vger.kernel.org jejb@linux.ibm.com > > martin.petersen@oracle.com linux-scsi@vger.kernel.org > > Really that loudly ? > Ain't linux-kernel@vger.kernel.org too general ? > > Don't worry about CCing linux-kernel, at this point, it is more for the purpose of a "pretty complete" email archive. Nobody follows it at full length, some just have some smart scripts to react to senders, keywords, files, etc. > > It is probably best to base it on v5.9-rc2 > > Done. The patch was accepted by git apply. git diff looks good. > (There were indeed changes in cdrom.c and cdrom.h. It's not that dead. :)) > > It compiles, but does not boot: > > [1.099627] nvme nvme0: failed to set APST feature (-10) > Gave up waiting for root filesystem device > > I booted the 5.8 kernel and was happy to see my SSD well and alive. > Then i reverted my changes, compiled and installed the original 5.9-rc2. > Same boot failure (it would have been astonishing if not). > > So i cannot test on 5.9-rc2. > (Had to manually rename vmlinuz-5.9.0-rc2-ts and initrd.img-5.9.0-rc2-ts > before update-grub was willing to create a .cfg which does not boot it > by default. Eww ... whenever i leave the trodden path ...) > > > > check if it cleanly applies on the latest linux-next > > I read > https://www.kernel.org/doc/man-pages/linux-next.html > and did without really knowing why: > > $ git remote add linux-next git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > $ git fetch linux-next > ... > * [new branch] akpm -> linux-next/akpm > * [new branch] akpm-base -> linux-next/akpm-base > * [new branch] master -> linux-next/master > * [new branch] pending-fixes -> linux-next/pending-fixes > * [new branch] stable -> linux-next/stable > * [new tag] next-20200827 -> next-20200827 > $ git checkout master > ... > $ git remote update > ... > Fetching linux-next > $ git checkout -B linux-next-20200827-ts-issue-2 next-20200827 > Switched to a new branch 'linux-next-20200827-ts-issue-2' > $ git apply /home/thomas/v5.9-rc2_issue_2.git.diff > $ > > Compilation succeeds and it boots. > > dd if=/dev/sr0 bs=2048 count=1 of=/dev/null > dd if=/dev/sr1 bs=2048 count=1 of=/dev/null > both succeed starting from open tray with a readable medium in it. > > So shall i base my patch on next-20200827 ? > Yes, you can base it on next-20200827 (it probably applies on the current master as well). You can use git format-patch --base, then maintainers know where it applied cleanly. And if it does not apply on their tree, when they include, they will let you know. > ------------------------------------------------------------------------- > > > > Please also tell me if my mailer (used with this mail) would cause > > > problems. > > > I suggest [...] git send-email ... > > I am not sure whether i can get git send-email to work due to local > network issues. My free software mails go out by a primitive SMTP client > which gets fed with plain text files, usually created by vim. > > Thus i ask whether my mails show any properties which would hamper > acceptance of a patch, which i would generate by git format-patch. > > (I look at patches in https://marc.info/?l=linux-scsi and will try to > mimick them in my text file as good as possible.) > > Do not look at marc.info, it might have already messed up the email. Archives at https://lore.kernel.org/ can give you the raw text and that archive is tested among kernel maintainers for picking patches. You can prepare your patch and send it to kernelnewbies. Then, pick it from https://lore.kernel.org/kernelnewbies/ and try to apply your own patch with git am. If that works, it is probably fine. Lukas _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies