Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3521597pxb; Mon, 4 Apr 2022 19:45:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqrdf+mXdKvBhEU0ZvvA2IQ7Dl3m/51K59ywVxQOqCfd/CvdxuZH0mAxMDHjGW7pg+GtWW X-Received: by 2002:a63:680a:0:b0:383:dd15:fe68 with SMTP id d10-20020a63680a000000b00383dd15fe68mr1018072pgc.467.1649126747215; Mon, 04 Apr 2022 19:45:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649126747; cv=none; d=google.com; s=arc-20160816; b=e6iRaS022jfcuLklNbEc4Jx+aHB4lMKFZsWsqZj2AhF/D65GtllXczde5EgwkDrvs/ Q8qQu18X/2flGjY93NH0KOzBhvpROcnyjCv+qNwXjBHuC6zFGkV9W44kuDt+z4ajk1JM nMZ19PeyU3XNrzwOPjNqBiSyHkVArRbjFWIue/mcywF5mB0pE4Tcxzt1Ub19D2KgP/y3 v+yh9uiY6oZZO+NwFEGy66FUdd+cippONd5iP2GvdcKae6YlTSblyTg02PDkLQlKdmWY SBsVWD6jJdkzqeHFGX+fohxCJAsVjyHFwztl0fjfP5bvjaEx8pk289sLGGwqCWUU8sQ2 Q4VQ== 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; bh=Tq+S0ZwW64kEhUV42u3bffx/awLpgBYauKTSsN+kozQ=; b=wJr7eOBo1UoMeg4oaWqWj2D8xqttrD7FY/Vogdnf++ylElOxi02ziCcH5NKW27v43J wivdi7tzmmEM2xrMCQc7j1n1KVTqaBnELRhi4z0H0MeHmcOZFkjidLDDw2qWeJFNJf3n j6qIl03JXZieRD3FCe+YqCqdZYSL5b+/CGgstTyY8nc/mgas6KR21nBrOtu9vYZ9/Ni5 2TUGmTjDENRl9TuQSks+I34mZtcin1GyyTtohlttqn6/HALJVXdhjFLgFOHczIMCnUGB mlKsIYDcWvhxE3jcZ13WHd3oxOQ2f+am8KHMaIikfu7akIYaVqNIbZfN7I2EvDQ5SRYT ku+A== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n6-20020a170902e54600b0015408026bbfsi12865061plf.309.2022.04.04.19.45.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 19:45:47 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 724501835A; Mon, 4 Apr 2022 18:08:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346471AbiDDP7j (ORCPT + 99 others); Mon, 4 Apr 2022 11:59:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbiDDP7i (ORCPT ); Mon, 4 Apr 2022 11:59:38 -0400 Received: from mail.marcansoft.com (marcansoft.com [212.63.210.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C2C33EF34; Mon, 4 Apr 2022 08:57:41 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id 09EA9419BC; Mon, 4 Apr 2022 15:57:35 +0000 (UTC) Subject: Re: [PATCH 6/9] nvme-apple: Add initial Apple SoC NVMe driver To: Christoph Hellwig , Sven Peter Cc: Keith Busch , Jens Axboe , Sagi Grimberg , Alyssa Rosenzweig , Rob Herring , Arnd Bergmann , Marc Zyngier , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org References: <20220321165049.35985-1-sven@svenpeter.dev> <20220321165049.35985-7-sven@svenpeter.dev> <20220324061620.GA12330@lst.de> From: Hector Martin Message-ID: <18f3a7e6-16d1-2037-90e7-1c0b1b2fbb1c@marcan.st> Date: Tue, 5 Apr 2022 00:57:33 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20220324061620.GA12330@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: es-ES Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/03/2022 15.16, Christoph Hellwig wrote: >> + >> +//#define DEBUG > > This should not leak into the driverį¹” > >> +#include > > As far as I can tell this driver does not support metadata or PI, > so why is this include needed? > >> +/* NVM Express NVM Command Set Specification, Revision 1.0a, Figure 18 */ >> +#define NVME_OPCODE_DATA_XFER_HOST_TO_CTRL BIT(0) >> +#define NVME_OPCODE_DATA_XFER_CTRL_TO_HOST BIT(1) > > Please just use the nvme_is_write helper where you are using these. > >> +static int apple_nvme_sart_dma_setup(void *cookie, struct apple_rtkit_shmem *bfr, > > Please avoid > 80 character lines. The kernel hard limit is 100-character lines, not 80-character lines. Maintainers for existing drivers are certainly free to stick to 80 chars if they like it that way, but I don't see why we should still be enforcing that for new code. See bdc48fa11e46. And also: https://lkml.iu.edu/hypermail/linux/kernel/2005.3/08168.html Quoth Torvalds, addressing you personally: "If you or Christoph have 80 character lines, you'll get possibly ugly wrapped output. Tough. That's _your_ choice. Your hardware limitations shouldn't be a pain for the rest of us." -- Hector Martin (marcan@marcan.st) Public Key: https://mrcn.st/pub