diff mbox

[rdma-next] i40iw: Remove pre-production workaround for resource profile 1

Message ID 20180403153228.28340-1-shiraz.saleem@intel.com (mailing list archive)
State Accepted
Headers show

Commit Message

Saleem, Shiraz April 3, 2018, 3:32 p.m. UTC
Support for resource profile 1 is currenlty deprecated due to
a pre-production errata. Remove this workaround as its no longer
needed.

Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
---
 drivers/infiniband/hw/i40iw/i40iw_main.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Jason Gunthorpe April 3, 2018, 8:08 p.m. UTC | #1
On Tue, Apr 03, 2018 at 10:32:28AM -0500, Shiraz Saleem wrote:
> Support for resource profile 1 is currenlty deprecated due to
> a pre-production errata. Remove this workaround as its no longer
> needed.
> 
> Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
> ---
>  drivers/infiniband/hw/i40iw/i40iw_main.c | 2 --
>  1 file changed, 2 deletions(-)

Applied to for-next

Thanks,
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Leon Romanovsky April 4, 2018, 5:38 a.m. UTC | #2
On Tue, Apr 03, 2018 at 10:32:28AM -0500, Shiraz Saleem wrote:
> Support for resource profile 1 is currenlty deprecated due to
> a pre-production errata. Remove this workaround as its no longer
> needed.

The sentence "Support for resource profile 1 is currenlty deprecated"
caused me to wonder What should user expect after he supplies "1"
in resource_profile module parameter?

If he can't supply, you will need to issue warning and change
I40IW_HMC_PROFILE_DEFAULT to be something else than it is now.

Thanks
Saleem, Shiraz April 4, 2018, 1:52 p.m. UTC | #3
On Wed, Apr 04, 2018 at 08:38:50AM +0300, Leon Romanovsky wrote:
> On Tue, Apr 03, 2018 at 10:32:28AM -0500, Shiraz Saleem wrote:
> > Support for resource profile 1 is currenlty deprecated due to
> > a pre-production errata. Remove this workaround as its no longer
> > needed.
> 
> The sentence "Support for resource profile 1 is currenlty deprecated"
> caused me to wonder What should user expect after he supplies "1"
> in resource_profile module parameter?
> 

The resource profile 1 was never deprecated, I misused the word. 
It was a workaround and is no longer needed.

Shiraz
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Leon Romanovsky April 4, 2018, 3:05 p.m. UTC | #4
On Wed, Apr 04, 2018 at 08:52:45AM -0500, Shiraz Saleem wrote:
> On Wed, Apr 04, 2018 at 08:38:50AM +0300, Leon Romanovsky wrote:
> > On Tue, Apr 03, 2018 at 10:32:28AM -0500, Shiraz Saleem wrote:
> > > Support for resource profile 1 is currenlty deprecated due to
> > > a pre-production errata. Remove this workaround as its no longer
> > > needed.
> >
> > The sentence "Support for resource profile 1 is currenlty deprecated"
> > caused me to wonder What should user expect after he supplies "1"
> > in resource_profile module parameter?
> >
>
> The resource profile 1 was never deprecated, I misused the word.
> It was a workaround and is no longer needed.

Ahhh, Thanks

>
> Shiraz
diff mbox

Patch

diff --git a/drivers/infiniband/hw/i40iw/i40iw_main.c b/drivers/infiniband/hw/i40iw/i40iw_main.c
index b088629..9cd0d3e 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_main.c
+++ b/drivers/infiniband/hw/i40iw/i40iw_main.c
@@ -1560,8 +1560,6 @@  static enum i40iw_status_code i40iw_setup_init_state(struct i40iw_handler *hdl,
 	enum i40iw_status_code status;
 
 	memcpy(&hdl->ldev, ldev, sizeof(*ldev));
-	if (resource_profile == 1)
-		resource_profile = 2;
 
 	iwdev->mpa_version = mpa_version;
 	iwdev->resource_profile = (resource_profile < I40IW_HMC_PROFILE_EQUAL) ?