Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2886591lqt; Tue, 23 Apr 2024 04:59:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVD1XMFUCsfEj67NNDuVmZuQjZyQzqu7aQCpV/0cp02pWIJFjppxx8KquDIjyrsSVd6D+qkp+dbFbG3VTg6qP9lkqMpp9i0dw4kdf0onw== X-Google-Smtp-Source: AGHT+IH5+sk0t5adYCcwUdRzI64kdAfJxXFN/wdRYZjKneFMjAXnfio9tP8h9BwWtjBkekpj7zE/ X-Received: by 2002:a05:651c:2010:b0:2da:7934:768e with SMTP id s16-20020a05651c201000b002da7934768emr10123615ljo.36.1713873569649; Tue, 23 Apr 2024 04:59:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713873569; cv=pass; d=google.com; s=arc-20160816; b=aynYfpHDr1rbC7qeE4Hs3Qtorvzvey619fxKs5D/l5JZ2Je1v4FtLMPsVpNHkZInq0 eZQ7mEWITCOZQ0HKzDZawzrnUa4xzA41SLNpwY3EqpoB4JvYD26ew1uo5vqQh2HWTh6z wJGxT3qyge/BFn9/ABfdQZ46NqFQQH3AHt0AQsLfiowE2PvSqb0qBPeMDFPuGi9qvJZ8 LntswKR8rgNzMRvQXm2B1cLHoTdFWLHOt5lcWN4gdayihdnaZAI9iytrQpqrm3XykVg3 6tRPVsSpnqbBigcEUTnFjYjWU1W4gncDJzC/1mHG4jA1afJQ1yraXPkAKHfDDyW5PtMR xUYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=z1sKCCl7ebl0MIJR/f/QkAnKKTThmqv/7gFM9mRIM98=; fh=DrhuY2+HjoEALZ80ZLlJf2Zy/G687yl7KCbdPMJbP0A=; b=oe1JnSmiZnBGSPE/Wd9dmVztLPbRbB2R/0cGWrd0rsPVBzUThpz/4CeRz6MpRf8O4c LmZfRI+yqJLd/HCzwsZak+QBG8M3e1lc1c1NeqZZnC4keHu3nL+Ig38orWLvK9YEO6WO 4qGAt2SlSv8cDxj2HTE1t68SlYOuhR4NP0SyBFHO9uQJ9V/VBUpwme7mUDcnF38oYrDb UzvMrBgGXKDSIBH72W/dohRhOZoPJ3lQYntV+9eHZ2bFspF6V7AoYC2OBLLY8A7kIWL8 OU5bB9Yf7dteKj2FKb5wdUIlDhMbt7of9HXyBUtiz1LyMh89PuajPUzfwqUDgxwAAOwS s98A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=JSjVhsqY; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-155088-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155088-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id se8-20020a170906ce4800b00a5565bd4d24si6947291ejb.522.2024.04.23.04.59.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 04:59:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155088-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=JSjVhsqY; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-155088-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155088-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 37F501F2402E for ; Tue, 23 Apr 2024 11:59:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6592B134428; Tue, 23 Apr 2024 11:44:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="JSjVhsqY" Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD1C484A57 for ; Tue, 23 Apr 2024 11:44:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713872645; cv=none; b=DDBpYmx0yKEpAHIVIybQnYxp9kvh6lsZZcNO6DU38NTwH4GZvONeC6+wT55/BGPgjw/kk25QBsDk7GsUUQbaqA5dDfEtUtAuGP93RAZiIS5izPPmBCGJhj7YcUMIwDorpkQ6u1ieJLYsSMa+3b/AGdihFQvp7n00CWHp7SCkl4Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713872645; c=relaxed/simple; bh=6/0LlvrN1gpGDZp5aJmUVeP9sPWMqO/MFef6cX7kpcs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Mg8tliq6+N1yleCFFswUZotl6RtnKuelaOjHBAvros+zCA/mc80M2elL1qPtRvA3V65Hr0Ry7gY+45MIN2/flGRhqcZc0CrceIBNyGXDiBjBtXmewQ1YmUBP4qL0vm7wEJsVzo0p9hi1anWL+xAL1BW03eeBTZUGiBC/YAyVP4s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=JSjVhsqY; arc=none smtp.client-ip=209.85.128.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-617e6c873f3so60332267b3.2 for ; Tue, 23 Apr 2024 04:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1713872642; x=1714477442; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=z1sKCCl7ebl0MIJR/f/QkAnKKTThmqv/7gFM9mRIM98=; b=JSjVhsqYE+B3o+nKJl2VyqLDdobvhVT0cpe6eAD+nKPEurS1Rfk8FdYebTWlsGc6zA 0DKXF5wv5LwA0JaOo+60p7JRZv/0AcYfXLU4FbBGUxC9wgWiL/CuJMff4AfQiuLr0umm wSC0/uhqQ3w2aML/PMzX8S+e/dWf9IH4RJWZugPlzI7DkmTmDcVxKZ2/QRAl3Ohj5GPh 9lhaNIjLHn5uul2LQBtYcPF5E2ExQFsZkg0Zl8Qfy4e7eE0rw6B1MjeRVlL3SfPvvD4p iimEBcnQJYI0PR6wnA1Tl1DeiQOi7Oj+HesvxY3ukL70qzSeEBwXIy+WEx2qcY5eg4yk 8xlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713872642; x=1714477442; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=z1sKCCl7ebl0MIJR/f/QkAnKKTThmqv/7gFM9mRIM98=; b=LtaTxnt1DnB79wM54lss+o0eP8eJxyG8AaDSjoFbhZu5+SJfHnSVZ9wpl8o3sLs8ll XqQ0+6pQMm9OE05yPFaxL3Ace0Kfe5p4CjWIe2/8xabh/i9rqPwPfbzOUljeLRdQHNVg UlY1wZZCNmXckg8A6lKpH/ptsnZduOqlr9C8HvxMnbaGRadQzntMqvMfEjATtefoXgaI TizMQvWQcjaj+oCCsuSfm4fLEDAqyhoqBvDO98UK0LLdkeltY4Xn57UJMqowIWdfPTnL Ci//tt5/tOvaJg5ZYJmiMf8xNqqZQzYq3eEMlkZ8zUHqJEFfSGpErvXd+DF+Sh2XSFY3 RDKg== X-Forwarded-Encrypted: i=1; AJvYcCV/ZYWx/d96HqWu6ZRkxNbwd7Wvb63JuhVO8KnkrDFT0N1H2ou9LCrAlBAtqkxrh76RcGUxj3r5zzI/H+I8VvC/twaIrRA8MqxLoUYX X-Gm-Message-State: AOJu0Yw2GsGhQSJhKoLXcGZUDhZgulh6yt2Y0XBluL2LQ0fqtylrtxL3 PE+0Z80nHADQHrzK9yXYBlLS7pIL6Sy0V/K1wjxoZXwxHJApngiHKd98YeDtiW7383SDKbUX8XY 9 X-Received: by 2002:a05:690c:3341:b0:614:8185:2946 with SMTP id fk1-20020a05690c334100b0061481852946mr13628124ywb.42.1713872642685; Tue, 23 Apr 2024 04:44:02 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-80-239.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.80.239]) by smtp.gmail.com with ESMTPSA id c3-20020ac85183000000b00436e193f408sm5094927qtn.28.2024.04.23.04.44.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 04:44:02 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1rzEZ7-0038Id-Jp; Tue, 23 Apr 2024 08:44:01 -0300 Date: Tue, 23 Apr 2024 08:44:01 -0300 From: Jason Gunthorpe To: Konstantin Taranov Cc: Nathan Chancellor , Konstantin Taranov , "sharmaajay@microsoft.com" , Long Li , "leon@kernel.org" , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH rdma-next v3 4/6] RDMA/mana_ib: enable RoCE on port 1 Message-ID: <20240423114401.GD231144@ziepe.ca> References: <1712738551-22075-1-git-send-email-kotaranov@linux.microsoft.com> <1712738551-22075-5-git-send-email-kotaranov@linux.microsoft.com> <20240422193728.GA44715@dev-arch.thelio-3990X> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Apr 23, 2024 at 07:15:41AM +0000, Konstantin Taranov wrote: > > I could not really find a consistent return code for when > > netdev_master_upper_dev_get_rcu() fails. -ENODEV? > > Thanks for catching this! Yes, I think ret = -ENODEV; is appropriate fix. > Should I send a patch to rdma-next? Or what should I do now to fix > this? Send a patch Jason