All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chuck Lever <chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
To: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: linux-rdma <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] ib_core: Enable and expose force_mr module parameter
Date: Wed, 21 Jun 2017 10:46:44 -0400	[thread overview]
Message-ID: <B34E95B2-A7D9-4725-B7C2-3DA4DACD29B7@oracle.com> (raw)
In-Reply-To: <20170620184046.GW17846-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>

[ Removing Doug since all mail to him seems to be bouncing ]

> On Jun 20, 2017, at 2:40 PM, Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> 
> On Tue, Jun 20, 2017 at 02:23:21PM -0400, Chuck Lever wrote:
>> 
>>> On Jun 20, 2017, at 2:03 PM, Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
>>> 
>>> On Tue, Jun 20, 2017 at 11:43:56AM -0400, Chuck Lever wrote:
>>>> Hi Leon-
>>>> 
>>>> 
>>>>> On Jun 20, 2017, at 3:32 AM, Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
>>>>> 
>>>>> On Mon, Jun 19, 2017 at 11:26:40AM -0400, Chuck Lever wrote:
>>>>>> The fourth parameter of the module_param_named macro is a set of
>>>>>> file permissions. Passing 0 there means that module parameter is
>>>>>> not created and that adding "options ib_core force_mr=1" to a
>>>>>> modprobe.conf file has no effect.
>>>>>> 
>>>>>> The default setting of rdma_rw_force_mr continues to be 0, or false.
>>>>>> 
>>>>>> Fixes: a060b5629ab0 ("IB/core: generic RDMA READ/WRITE API")
>>>>>> Signed-off-by: Chuck Lever <chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
>>>>>> ---
>>>>>> Hi Doug-
>>>>>> 
>>>>>> This doesn't seem appropriate to go through Bruce's tree for 4.13.
>>>>>> 
>>>>>> Last discussion didn't seem to conclude with full consensus.
>>>>>> Probably people don't care enough one way or another. But I'd like
>>>>>> to see this get fixed if there aren't strong objections. Would you
>>>>>> take it for 4.13?
>>>>> 
>>>>> I care and believe that it should be removed from exposure to users.
>>>>> The variable force_mr should be leaved in the code for the debug,
>>>>> but module_param should be removed.
>>>> 
>>>> I don't understand the technical grounds of your objection.
>>>> Why is
>>>> 
>>>> options mlx4_core internal_err_reset=0
>>>> 
>>>> acceptable, but
>>>> 
>>>> options ib_core force_mr=1
>>>> 
>>>> not?
>>> 
>>> That mlx4 variable was exposed before I started to follow after
>>> Mellanox's submissions.
>>> 
>>> The force_mr parameter is for debug of new ULP and/or conversion of
>>> existing ULP to RW API. This is not very common situation and it is
>>> for the developers and not for the users.
>> 
>> No disagreement on that, but that's still not an argument
>> not to expose it. What is the risk, as you see it?
> 
> It will be "marked" as UAPI and we won't be able to change it,
> which IMHO bad for the debug. It also invites users to set it
> and in perfect world, we should test our HCAs with this flag
> on and off, because curious user can set it.

We have loads of legacy debugging interfaces. 

And yes, ULP developers should be aware of it and test with
both settings.

I'm not convinced any of this is a problem for this particular
setting. However, I guess the thing for you to do is propose a
patch.


> Thanks
> 
>> 
>> 
>>> Thanks
>>> 
>>>> 
>>>> 
>>>>> Thanks
>>>>> 
>>>>> 
>>>>>> 
>>>>>> 
>>>>>> drivers/infiniband/core/rw.c |    2 +-
>>>>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>>>> 
>>>>>> diff --git a/drivers/infiniband/core/rw.c b/drivers/infiniband/core/rw.c
>>>>>> index dbfd854..1cc8f07 100644
>>>>>> --- a/drivers/infiniband/core/rw.c
>>>>>> +++ b/drivers/infiniband/core/rw.c
>>>>>> @@ -23,7 +23,7 @@ enum {
>>>>>> };
>>>>>> 
>>>>>> static bool rdma_rw_force_mr;
>>>>>> -module_param_named(force_mr, rdma_rw_force_mr, bool, 0);
>>>>>> +module_param_named(force_mr, rdma_rw_force_mr, bool, 0644);
>>>>>> MODULE_PARM_DESC(force_mr, "Force usage of MRs for RDMA READ/WRITE operations");
>>>>>> 
>>>>>> /*
>>>>>> 
>>>>>> --
>>>>>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>>>>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>>>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>> 
>>>> --
>>>> Chuck Lever
>> 
>> --
>> Chuck Lever
>> 
>> 
>> 

--
Chuck Lever



--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2017-06-21 14:46 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-19 15:26 [PATCH] ib_core: Enable and expose force_mr module parameter Chuck Lever
     [not found] ` <20170619152351.2866.11046.stgit-Hs+gFlyCn65vLzlybtyyYzGyq/o6K9yX@public.gmane.org>
2017-06-19 15:30   ` Christoph Hellwig
2017-06-20  7:24   ` Sagi Grimberg
2017-06-20  7:32   ` Leon Romanovsky
     [not found]     ` <20170620073236.GO17846-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-20 15:43       ` Chuck Lever
     [not found]         ` <DE0C511C-A4CB-4D76-8BA7-6BFF81F590B3-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2017-06-20 18:03           ` Leon Romanovsky
     [not found]             ` <20170620180348.GV17846-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-20 18:23               ` Chuck Lever
     [not found]                 ` <C27E2410-44B7-451E-8069-DF1444048158-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2017-06-20 18:40                   ` Leon Romanovsky
     [not found]                     ` <20170620184046.GW17846-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-21 14:46                       ` Chuck Lever [this message]
     [not found]                         ` <B34E95B2-A7D9-4725-B7C2-3DA4DACD29B7-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2017-06-21 14:56                           ` Leon Romanovsky
2017-06-27  9:24                           ` Sagi Grimberg
     [not found]                             ` <16d52534-5564-8137-a8b3-6c66df6bb508-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org>
2017-06-28  9:56                               ` Leon Romanovsky
     [not found]                                 ` <20170628095640.GB1248-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-28 10:15                                   ` Sagi Grimberg
     [not found]                                     ` <64eae30c-9490-b801-550d-d871473f0d29-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org>
2017-06-28 13:45                                       ` Leon Romanovsky
     [not found]                                         ` <20170628134528.GE1248-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-28 14:48                                           ` Sagi Grimberg
     [not found]                                             ` <275acec0-215e-8157-e6a0-4c0f48fe3d75-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org>
2017-06-28 15:40                                               ` Leon Romanovsky
2017-06-28 14:49                                   ` Chuck Lever
     [not found]                                     ` <373E6A00-8505-468C-A974-DCDAC15A3B7B-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2017-06-28 15:41                                       ` Leon Romanovsky
  -- strict thread matches above, loose matches on Subject: below --
2017-05-15 14:52 Chuck Lever
     [not found] ` <20170515145203.10708.16921.stgit-Hs+gFlyCn65vLzlybtyyYzGyq/o6K9yX@public.gmane.org>
2017-05-15 14:57   ` Leon Romanovsky
     [not found]     ` <20170515145757.GI3616-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-05-15 15:09       ` Chuck Lever
     [not found]         ` <02AFF424-A387-47F7-BD24-61C7734B9008-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2017-05-15 17:00           ` Leon Romanovsky
     [not found]             ` <20170515170021.GJ3616-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-05-15 17:22               ` Chuck Lever
     [not found]                 ` <AE3152CC-B7C8-4C51-ADDE-C3822533BB94-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2017-05-15 17:46                   ` Jason Gunthorpe
     [not found]                     ` <20170515174646.GC6229-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-05-15 18:55                       ` Leon Romanovsky
2017-05-16  5:42                   ` Christoph Hellwig
     [not found]                     ` <20170516054256.GA4013-jcswGhMUV9g@public.gmane.org>
2017-05-16  7:22                       ` Sagi Grimberg
     [not found]                         ` <d46b0a41-92c2-2ce2-5cf2-ac5c6c3811cd-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org>
2017-05-16 14:57                           ` Chuck Lever

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B34E95B2-A7D9-4725-B7C2-3DA4DACD29B7@oracle.com \
    --to=chuck.lever-qhclzuegtsvqt0dzr+alfa@public.gmane.org \
    --cc=leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.