Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1913185imm; Thu, 24 May 2018 02:50:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrYKcg8gYmz3IWek6sy1Nz9SWC1Tg/NTg1k72MROu8dDQUrkTdl0Z7J/XYNgHTwFbg6Z2qk X-Received: by 2002:a62:5959:: with SMTP id n86-v6mr6504404pfb.217.1527155400187; Thu, 24 May 2018 02:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527155400; cv=none; d=google.com; s=arc-20160816; b=0k4x0VLwBuhDS6zo8wNMsFl5D3hg+7cXvrJCRBnga7+5zDT0wLUCAfTvKQ/ReFmQsE 2Gm0P8Fdj78oV1bZ3+cC0h+sztt0OtdEcOXKfv3zNWGCZHu8SYHFEir/h0O0tXqTXZwe ix9C4JUF6V0OjCcxtVUSVa/M0usB/FpHb6qgErNhMvcjt+OY/DV2FwyPtHkBicR7XhO6 xZh/yf2jFZxqL5ES8xoNb+/Le7902vdP27Ys6PJKINH00MM7gjI31u/Et3YXpMCT7FIO 2sKD89fU5fqLY8nbWc15vYAeeCuLRsdKqpm9i9kGP0sSsNX/iQGwJN8r5aEtpqzZG+rh SSwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=zHo9V7tam3X+oPb47tCPhUb/tBQhmn378JgCY5noqpQ=; b=SZuXoKcl/cI/MjJ+kbPdWOz34pTDavMU/vyfo5iYQVTNTH4mJMwEPbHM7IaxXgA9+o bZJmbf3Y3GAxhwGJR1Kim305NAQoG+/M6ytNJM8wQ6rSs6Qjxunmoe+HiwvJTgNsodb/ almwCKAuSar5DnleXbB47fJ1UbX3Q1y08GGMRXNchgOyfbGkLA9W9medrnTBz1bBx3Sn 9uYZNAKyTmF0qpuflNWBGmMDu3Se9wa2uWwyuPtNZKWVyN7PfMQNTXABAiCYmWqhhW9f E5m/C0pZwCkpk39B2a9eJS8UlIY6R3MGoNk8FURbvabwPjy0wZUit+2DqZAu0t1nc/3q i7Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=b7OH1gAi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l125-v6si10129300pgl.410.2018.05.24.02.49.45; Thu, 24 May 2018 02:50:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=b7OH1gAi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967284AbeEXJsw (ORCPT + 99 others); Thu, 24 May 2018 05:48:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:34380 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966976AbeEXJsq (ORCPT ); Thu, 24 May 2018 05:48:46 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BFF69208A2; Thu, 24 May 2018 09:48:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155326; bh=WHogdxGmNpt7QI2L+KdqsuiS5fctlznviTxPFO6iuqw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b7OH1gAi4CpWg7KCZyC7/g35E+NQ6gNLoYI7+oFaTjTHC435wqdMYMSEk2aBME2cZ L8Bp7IULrr7ZUisYH93H06Udu8XFGjUk1Y0UjOp+oGttj1klLSF7NmYC7fNF4lWgtc hgZj5fTVxY+Qbfgm64l4Ke5fRUIaxvuerCgKp1wc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Brad Love , Michael Ira Krufky , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.9 45/96] media: em28xx: USB bulk packet size fix Date: Thu, 24 May 2018 11:38:28 +0200 Message-Id: <20180524093608.084797265@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093605.602125311@linuxfoundation.org> References: <20180524093605.602125311@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Brad Love [ Upstream commit c7c7e8d7803406daa21e96d00c357de8b77b6764 ] Hauppauge em28xx bulk devices exhibit continuity errors and corrupted packets, when run in VMWare virtual machines. Unknown if other manufacturers bulk models exhibit the same issue. KVM/Qemu is unaffected. According to documentation the maximum packet multiplier for em28xx in bulk transfer mode is 256 * 188 bytes. This changes the size of bulk transfers to maximum supported value and have a bonus beneficial alignment. Before: After: This sets up USB to expect just as many bytes as the em28xx is set to emit. Successful usage under load afterwards natively and in both VMWare and KVM/Qemu virtual machines. Signed-off-by: Brad Love Reviewed-by: Michael Ira Krufky Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/media/usb/em28xx/em28xx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/media/usb/em28xx/em28xx.h +++ b/drivers/media/usb/em28xx/em28xx.h @@ -189,7 +189,7 @@ USB 2.0 spec says bulk packet size is always 512 bytes */ #define EM28XX_BULK_PACKET_MULTIPLIER 384 -#define EM28XX_DVB_BULK_PACKET_MULTIPLIER 384 +#define EM28XX_DVB_BULK_PACKET_MULTIPLIER 94 #define EM28XX_INTERLACED_DEFAULT 1