Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp270936rdb; Tue, 19 Dec 2023 16:50:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IG88dQ9/1QzT9mX9iloR+syXlmFITZ/USJJPie7XUQJ57TtPWteFCKO1HQZA4IggsqVvIQ4 X-Received: by 2002:a05:6871:4193:b0:204:c23:8831 with SMTP id lc19-20020a056871419300b002040c238831mr153235oab.37.1703033457828; Tue, 19 Dec 2023 16:50:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1703033457; cv=pass; d=google.com; s=arc-20160816; b=x43FaQEfNSPcL8UJOJdtij8REutT+XkWd53qB2yDCHhsWnmLpzs24q2xv2mVmN6Hku Rz7Gfs9cZ2Qa7hQmGK4o7mqdJ5gVYq5RowDCf5aXn15jj6BUAVpRe2tFW5wn7xb9W8RC jA1IE5hrSwtrtSdA2pp1a3JWNKYTgCjUYKniJ8qxR+MMgzv7Ofa2Ha80OydMOqRC7yiK y5kj745WkQO+Du6GoVjfVGN/LZElbXSTr060bc6fBwA6QZv2VvLRoUMgChxO9n5dcihV FvYKgQQIq/KcZx7RpvJ3xUxZdX3HVab1m3Xsp/K/+VYEBnsahxoYP5V2BTjZmwL60OBq Saow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:date:message-id:dkim-signature; bh=wKgtDuo4K64g8KjGqRWE9yfxiLByjiQiN0r54wPsLqU=; fh=xRX7gG5awg/IAdwfuegQmgjFMKPyn/CCx1hzoQCUFSA=; b=vh1uX3Ymh5WKrW567fdNdcsG5RyeHukmfCzOd6kKvc4keTPDbj3NMmV8OrJBhRKuFZ eRumqs+KTkCkoT8LErwON09nuf/J4RNSFuBsLRO8ri3jMxRBCPCLtXez6a/eA6mvwSWf QIJCUtD1Efa+TLbuZjlVom5+aSJ/3EQaVyyCt3e/0Ohw7cok3NnwbuLgvR/xjdPsm8u1 uAjqJTP5g1wP9RU/uZ7H7TixxtQluchwNzPzMPvJOqbWmlsNICUpvH6JObHo/tXV7whp OXGGqM+As7YabMNycgHfX+s0hZ9XTcx5kDpv3E+NWQIACFYF1IIKKzgyQykTZGk1mQxh 4kbg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=iNjN6uOn; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel+bounces-6209-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6209-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y20-20020a63e254000000b005c1ce3c9617si19882251pgj.901.2023.12.19.16.50.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 16:50:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6209-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=iNjN6uOn; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel+bounces-6209-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6209-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 67705B246E6 for ; Wed, 20 Dec 2023 00:50:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D816ABE67; Wed, 20 Dec 2023 00:50:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="iNjN6uOn" X-Original-To: linux-kernel@vger.kernel.org Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2057.outbound.protection.outlook.com [40.107.220.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8DB15BE4E for ; Wed, 20 Dec 2023 00:50:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ShrY5s2efz9TnKgOUh1KTLb/SxTUqDLSCRw8Cw0uhcltT0FvNFOdldS453MamocDj3BgFOmMctkAxfCjChcWb/cK+edB3cRk3g5IkJHUCb30fIkVjgDy8cERy9EQZFYVd9t4550qj9u8OtQM1QUT/1p5ucFDK7rWrwcUpZif9lsvpwzrlvVdHZ3WSNA7UOj41AJ1InlkSR6zi7yde/NUEvCl8U/StJ8l1dATfzTJqQo5b2Ea/Q/wdZgXP2MVxCq/qaOuK1WJ+n1m6FV8GmrXCdoxeNcUyEG2cGEbeYqjIfyiFQ2rZW1MQoayd8j+F4vQiabIh0HEolJvHhjzdY0XVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wKgtDuo4K64g8KjGqRWE9yfxiLByjiQiN0r54wPsLqU=; b=B6aC/yqasMRIbY8Aj1YgKey1PTwZqxf0KfPFrbeDcrkQeR0QCffjwNMr3xPNPICCX0/b10elW3izijQKgIITr5UGpp1bOjxs5chPix+K0Tyx3PyLs/JQGHX1m8Br7s8cTXjxGPN3hpORps6HTMqTL6MX3VdZPya/ex63F/gzstu66TMxG8d05TSCfZ1/kmsUcm7i7VRsUQodHSGcbMqALMm0qjC2gfJG91/9g5vhS4JhIOEaJ2vEUJsCKi7EnQ5Sr4TsoAk7JmCFrfw6uIANzMhjM18+z23BwOXbDWtiScJr+txveYslLbZAMVn0eBqJDDellkNW+NsILLNcb4I8IA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wKgtDuo4K64g8KjGqRWE9yfxiLByjiQiN0r54wPsLqU=; b=iNjN6uOnMfE+6OVZyaNiPcBMSzC3CHOBe6g8gDo6/+Gp+g5B27+oaDMMGPWN9GYn6XfYmyv7xI5XhPuRXTTja5N+U/CDASjKBABz/soTVAwSqMtdk/s4PAHA/FP6UAivtV21RkwFZumIAeORYFnqLNVDqMCIx3S/WckbuKRR/gYJHHXbAqwAyDazSl4hVzEfKEaJMVg+SpBOp61CREz/4fZGuIKeA89JGShSjKHj0xwBDEHjFIX41fkh4ZHLpK/qXdNhZvfEPZCJtYuQItw/9oJNVeEBwEMtr8lv7adH+AoLcwNdaFJnuw6S65Jo4QvR2oz6I3vWNw9yna9pH8rz3g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from DM4PR12MB5040.namprd12.prod.outlook.com (2603:10b6:5:38b::19) by DM4PR12MB7693.namprd12.prod.outlook.com (2603:10b6:8:103::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.18; Wed, 20 Dec 2023 00:50:41 +0000 Received: from DM4PR12MB5040.namprd12.prod.outlook.com ([fe80::6f3c:cedb:bf1e:7504]) by DM4PR12MB5040.namprd12.prod.outlook.com ([fe80::6f3c:cedb:bf1e:7504%4]) with mapi id 15.20.7091.034; Wed, 20 Dec 2023 00:50:41 +0000 Message-ID: <6a308db3-d487-413a-9ee9-9206463d6308@nvidia.com> Date: Wed, 20 Dec 2023 02:50:34 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 01/16] nvmet: report ioccsz and iorcsz for disc ctrl Content-Language: en-US To: Christoph Hellwig , Daniel Wagner Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Sagi Grimberg , Keith Busch , James Smart , Hannes Reinecke References: <20231218153105.12717-1-dwagner@suse.de> <20231218153105.12717-2-dwagner@suse.de> <20231219042717.GB30580@lst.de> From: Max Gurtovoy In-Reply-To: <20231219042717.GB30580@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0056.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:60::20) To DM4PR12MB5040.namprd12.prod.outlook.com (2603:10b6:5:38b::19) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR12MB5040:EE_|DM4PR12MB7693:EE_ X-MS-Office365-Filtering-Correlation-Id: d3eeb3f2-73b0-41d1-4605-08dc00f5b090 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WpUgH6thdFD2VamTfPKftFlj+IUn8cbV/055MjEohR4B6kJcd2Rd/GiZqtAAvxZfQMJjTuvvt87NeORWtH0tfn3HYxtWTnmCcCbcARCV03kzB43NoxIz15KAY5h+py1+/s4Wk3bNZp922rEoOW9NXxeNV610M1cg21y4EybAaY+KaJIH/hkaHIDBiIAoj+1OTU6WU4r8Zt64KL73mTn6/TpuxakahRyZXiEY+gWHw7BiNMSXK18avwev/dBbd3eAA4a3rM/z1Dqh76fUyaLiyVu5X9GJUS7scUzu66lfWLRuuMpq2W2USXEuR0RngxBgV9eJq5LFOG0uZuU/qcNJGgPV+cizp3IYOsJtZCOecWQgXEI9wiPJTgXYidAfNAeN36dXIeXFXpcEWa+6M6bXdHCFaY4VYZTbmQ4uuiE9foI3GVao/9pqSKLJ+Dx04ikEPfiSaMiX/t9CkkI8BKu7tNeyMzkz+cuyj9dnbMwSas+M07+mdUPBkjGleLRcCpmkyZnJvZFl9d1jIUwgdFgz8d7Ennmydqq+WZuHDBbkYHww1N74+1d6jsQZX0OHwkZopHnmS28dC/wV6r0Y52goJswZs85vMFyI/pnayAnaSPOGHToQgBDusjBnIZHMGN89LlnNtEnLQgsEogZnUfva1g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR12MB5040.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(396003)(376002)(366004)(39860400002)(346002)(230922051799003)(64100799003)(1800799012)(451199024)(186009)(110136005)(31686004)(4744005)(2906002)(5660300002)(4326008)(8936002)(8676002)(66476007)(66946007)(66556008)(6512007)(6506007)(6666004)(316002)(54906003)(86362001)(478600001)(31696002)(6486002)(83380400001)(53546011)(26005)(2616005)(41300700001)(38100700002)(36756003)(43740500002)(45980500001);DIR:OUT;SFP:1101;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PRUNna2kyY3VWZkNmVUh0WTlvcTJT?= =?utf-8?B?MDVzUVZWUHNoRkgzdXhJVXB1NU1iaXh5N2JSNmU0UkN0TVFCbVJ1bjUzOFF5?= =?utf-8?B?a2IvYWlDYzZyNG54bS9rUFNyNnpxQ2ZPSDRQK2ZPRjIrS3F0YzFiS0hlV0Vx?= =?utf-8?B?Z1YyUWhCQnRlc1BnNndreWhDLzdSdklsUk0vd1JuVFQwVThVNHpwRTdmNUpu?= =?utf-8?B?elpLd3lHTVFlWE1HRnVaM21LYlI4OEkzVDRUL3Z4RjA2R2NTeXRWTU5iTndu?= =?utf-8?B?WjFKZVJja21GS0UwRWFsWHZhMWEvUmFTcTZlL3BYNU45MWJyVkpwaSt1MzlQ?= =?utf-8?B?K3dUMXl1Mi92bk9JZDJwaEI3eTJyZU5pejdZNWtsalcySDFXWW5ackRTS3B3?= =?utf-8?B?RTNOSFJUeDkxbXAybU1GajBoOStFRTZ6Q05Fc3VvNkdwT2lvZkxyYUcwVlBn?= =?utf-8?B?bGc9PQ==?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: d3eeb3f2-73b0-41d1-4605-08dc00f5b090 X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5040.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2023 00:50:41.1624 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9cikHssyZu7Mj8jQ9iugsnXRnlf6uNWKx/VXkSqr+mKtkGPDlUCHe1IYeaK0VX3PeHm4V+nuHHcl1i6OphOLCg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB7693 On 19/12/2023 6:27, Christoph Hellwig wrote: > On Mon, Dec 18, 2023 at 04:30:49PM +0100, Daniel Wagner wrote: >> + /* >> + * Max command capsule size is sqe + in-capsule data size. >> + * Disable in-capsule data for Metadata capable controllers. > > A why on the disable would be useful here - the fact that it is disabled > is pretty obvious from the code. > We have another thread on this patch that I think is wrong since the discovery controller shouldn't set these values according to the spec. It is explicitly say that ioccsz and iorcsz are reserved for discovery controllers. I've sent a proposal to fix the initiator/host code.