Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6131192iog; Thu, 23 Jun 2022 12:01:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1toIErxxLiiXj0IBuX+JNsckG48D0vQBGP1/oxEDXBmALvSIWn5oejxrk2JHkMgvTNnyZVV X-Received: by 2002:a17:903:214c:b0:16a:13bd:8447 with SMTP id s12-20020a170903214c00b0016a13bd8447mr28097376ple.127.1656010869866; Thu, 23 Jun 2022 12:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656010869; cv=none; d=google.com; s=arc-20160816; b=MHgppReUBlSyY/t6qIPa5DfO6xLWlJe9a4jrmKbBunF92mhfwEXgC4wv7H2lCqcqGn vIellx4dTvbKSTHlCeJqIByDvoeCcOCBBofZ0lme9OsYXwqLX/2+yA55gCEbypUijgAp J0OoJa+hrFVkaSV1x6Vr5x6axX9eurJUpQbpM7sORxBsJbx8Sykb/WiXSflRaDKwgkk/ OrRRubrXUxcGZJl9maTgAHsPLhD+SfMfNRex/OnrlyuXYYZq/vv28DdztmIzdVyhLjpt SByGG0AGwAn/Dk/+eze2XPfLrSYSRyEyegnsDVf20aezMjbXHS7y/3wkGnPtNLEAexxN iFlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Mr87RJJYkpeWWUALiDMAIBYJwlnU7nlLsuE+HRNsuUI=; b=LQx2tDTnaqsGJuezq/MhYchiwhIUygTVgJ0pOF9/H0UOKJlA9Oak1Hkwr4TFYFqGm6 9uD2kd3sxMF2qTewjwG9lxZE9ZmJrhD9qdZPGoJOr+flNj1uGov1zhQY+yDvKePiXFhc dv/rqiN+AFVHlwJ37bdS1yjanvRoFiSYKN9Ii+vouqP1DxwoIpOyXnYp+rpSsOMkaL/s 0xgFkY4peyPU9dXxAkz/LsM2iLUHGD+1Dzqh8ctVAReDyVy4q63OLXMc+NSWTzjSDdy6 1TWzxZ+lLCV7fzr10RIqY0DMM44SAKXy1wyuFAcS6LuBg2arwtiCyd0+6sLfPISkCm9a rWvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j3n7wqYm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x79-20020a633152000000b0040cd22c380fsi8443215pgx.846.2022.06.23.12.00.57; Thu, 23 Jun 2022 12:01:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j3n7wqYm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231500AbiFWRKu (ORCPT + 99 others); Thu, 23 Jun 2022 13:10:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233845AbiFWRIS (ORCPT ); Thu, 23 Jun 2022 13:08:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC2C453A74; Thu, 23 Jun 2022 09:56:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 88F77603E0; Thu, 23 Jun 2022 16:56:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75255C3411B; Thu, 23 Jun 2022 16:56:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656003412; bh=PW9Uc52kYeo+JHHe0JnPlr9wT9JEcdBrvx+CeZ24egk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j3n7wqYm98cdzLZzdsn5dLq+noSq+k/P4k+2njsYDWZg1WTMDsPwxn69B5tfET7ta N8PsqtHVJ6R2FuVrE+KsiemeuN9tSSvR7tPtXR6GGzNsT3NbGDfBd6M92KCSTbz+2D PIUUpf4dWV/GEzcxDbpCqlol2OTFsJnFY0KJWqxg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wentao Wang , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.9 231/264] scsi: vmw_pvscsi: Expand vcpuHint to 16 bits Date: Thu, 23 Jun 2022 18:43:44 +0200 Message-Id: <20220623164350.614354027@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623164344.053938039@linuxfoundation.org> References: <20220623164344.053938039@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Wentao Wang [ Upstream commit cf71d59c2eceadfcde0fb52e237990a0909880d7 ] vcpuHint has been expanded to 16 bit on host to enable routing to more CPUs. Guest side should align with the change. This change has been tested with hosts with 8-bit and 16-bit vcpuHint, on both platforms host side can get correct value. Link: https://lore.kernel.org/r/EF35F4D5-5DCC-42C5-BCC4-29DF1729B24C@vmware.com Signed-off-by: Wentao Wang Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/vmw_pvscsi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/vmw_pvscsi.h b/drivers/scsi/vmw_pvscsi.h index d41292ef85f2..98ad17cb6643 100644 --- a/drivers/scsi/vmw_pvscsi.h +++ b/drivers/scsi/vmw_pvscsi.h @@ -333,8 +333,8 @@ struct PVSCSIRingReqDesc { u8 tag; u8 bus; u8 target; - u8 vcpuHint; - u8 unused[59]; + u16 vcpuHint; + u8 unused[58]; } __packed; /* -- 2.35.1