Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp705147ybi; Fri, 14 Jun 2019 01:54:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1JJ2RcCeKYZz+dIgG1IBpuWmMnuvxl4p0FymHXMI1NBEnlgqYPQyT51ByW15gQUJokiww X-Received: by 2002:a17:902:222:: with SMTP id 31mr37802709plc.55.1560502473491; Fri, 14 Jun 2019 01:54:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560502473; cv=none; d=google.com; s=arc-20160816; b=SPEz4UeL1SpOeXIzQoo9UyfE8SwBuBc+dbxmfjbSVoUzf2+PLOgx5ukEoZNaqyV8vt qtVMuaXlq430BmqrdhC62gS4kRBNT533gfWlUCfI+F42Rwkl9ppgV3mXLnVNwtwOBm1K 0DAG2toiSODMGMNT6AtFvT1ig05Wz8QVwNt2MP6dc6jJpJRoTv0CSNSifG9eU9L7E5Q2 YLzIBtj9kGAeSPWFfhwyg6GWpGwcNv0mAnNXzICFyIr+bNVk3YA/NtjNSNbmpbnAWAUu uOUlqPFvuhEKKKcLvVa0J3SKeP4B2XXUT61oV/H+ORekI5efi6tZCfZDGlLQTRurWtGz GCuA== 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:date:to:from:subject:message-id; bh=Vi2OECZ9uZpe7PWMGfTeDVu5UoaIIMU1Iip5B78Dp3A=; b=zLFXtGeA8I+psWyb4s8cZpM4JKeIPBoao6vnR12KzCFHS84RrNrtHVyfK3GhVp0zHY DRhTOT+lYhJbz/JVrvgd7VTEvPTmb/3dLY6+5QxiFj2apsGJoV+DL/lLLnctkRplNkAD jtr4GuMVW9aIGj/QkgTKOjWeRe6f8qJ2uhCF6bne2HaUwCqiUEURm/TRFQYC4QIRUlDC kuOqN8orec9ZmReA8aMqfJB+psG1Cmn2fmFIPors90piaFGG2ud78PZwVwxSQy6murUZ DVCbNlDgVG/yv1ZU8O44viFQRx7Y9aKqa4XQdoiiYSp7YlW1V9SmkitY9G9hkwkIH4XM nRKA== ARC-Authentication-Results: i=1; mx.google.com; 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 l21si1944932pgb.409.2019.06.14.01.54.17; Fri, 14 Jun 2019 01:54:33 -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; 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 S1726971AbfFNIxH (ORCPT + 99 others); Fri, 14 Jun 2019 04:53:07 -0400 Received: from mx2.suse.de ([195.135.220.15]:48802 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726881AbfFNIxB (ORCPT ); Fri, 14 Jun 2019 04:53:01 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 59C2CB02E; Fri, 14 Jun 2019 08:52:59 +0000 (UTC) Message-ID: <1ed66b4e9090b802259aa0fce5da1e22bcaeaafc.camel@suse.de> Subject: Re: Regression post "HID: core: move Usage Page concatenation to Main item" From: Nicolas Saenz Julienne To: Jean-Baptiste =?ISO-8859-1?Q?Th=E9ou?= , Jiri Kosina , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Tissoires Date: Fri, 14 Jun 2019 10:52:58 +0200 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-vUvVMdc+hnSw80DDq5QT" User-Agent: Evolution 3.32.2 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-vUvVMdc+hnSw80DDq5QT Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2019-06-14 at 09:02 +0900, Jean-Baptiste Th=C3=A9ou wrote: > Sorry - Please find the public link: >=20 >=20 https://android.googlesource.com/platform/cts/+/master/tests/tests/hardware= /res/raw/asus_gamepad_register.json >=20 > Best regards >=20 > On Fri, Jun 14, 2019 at 9:01 AM Jean-Baptiste Th=C3=A9ou wrote: > > Hi, > >=20 > > This patch (58e75155009cc800005629955d3482f36a1e0eec) is triggering a > > regression with the following descriptor (report not working as > > expected) > >=20 > >=20 https://partner-android.googlesource.com/platform/cts/+/refs/heads/q-fs-rel= ease/tests/tests/hardware/res/raw/asus_gamepad_register.json > >=20 > > Didn't see anything obviously wrong with this gamepad descriptor, so > > not sure what's trigger the regression. > >=20 > > Thanks a lot > >=20 > > Best regards Added Benjamin to the mail thread. For the record here's the report descritor, I have the feeling the issue is related to the Usage Page being defined in the middle of the Usage ennumeration. 0x05, 0x01, /* Usage Page (Desktop), */ 0x09, 0x05, /* Usage (Gamepad), */ 0xA1, 0x01, /* Collection (Application), */ 0x85, 0x01, /* Report ID (1), */ 0x05, 0x09, /* Usage Page (Button), */ 0x0A, 0x01, 0x00, /* Usage (01h), */ 0x0A, 0x02, 0x00, /* Usage (02h), */ 0x0A, 0x04, 0x00, /* Usage (04h), */ 0x0A, 0x05, 0x00, /* Usage (05h), */ 0x0A, 0x07, 0x00, /* Usage (07h), */ 0x0A, 0x08, 0x00, /* Usage (08h), */ 0x0A, 0x0E, 0x00, /* Usage (0Eh), */ 0x0A, 0x0F, 0x00, /* Usage (0Fh), */ 0x0A, 0x0D, 0x00, /* Usage (0Dh), */ 0x05, 0x0C, /* Usage Page (Consumer), */ 0x0A, 0x24, 0x02, /* Usage (AC Back), */ 0x0A, 0x23, 0x02, /* Usage (AC Home), */ 0x15, 0x00, /* Logical Minimum (0), */ 0x25, 0x01, /* Logical Maximum (1), */ 0x75, 0x01, /* Report Size (1), */ 0x95, 0x0B, /* Report Count (11), */ 0x81, 0x02, /* Input (Variable), */ 0x75, 0x01, /* Report Size (1), */ 0x95, 0x01, /* Report Count (1), */ 0x81, 0x03, /* Input (Constant, Variable), */ 0x05, 0x01, /* Usage Page (Desktop), */ 0x75, 0x04, /* Report Size (4), */ 0x95, 0x01, /* Report Count (1), */ 0x25, 0x07, /* Logical Maximum (7), */ 0x46, 0x3B, 0x01, /* Physical Maximum (315), */ 0x66, 0x14, 0x00, /* Unit (Degrees), */ 0x09, 0x39, /* Usage (Hat Switch), */ 0x81, 0x42, /* Input (Variable, Null State), */ 0x66, 0x00, 0x00, /* Unit, */ 0x09, 0x01, /* Usage (Pointer), */ 0xA1, 0x00, /* Collection (Physical), */ 0x09, 0x30, /* Usage (X), */ 0x09, 0x31, /* Usage (Y), */ 0x09, 0x32, /* Usage (Z), */ 0x09, 0x35, /* Usage (Rz), */ 0x05, 0x02, /* Usage Page (Simulation), */ 0x09, 0xC5, /* Usage (C5h), */ 0x09, 0xC4, /* Usage (C4h), */ 0x15, 0x00, /* Logical Minimum (0), */ 0x26, 0xFF, 0x00, /* Logical Maximum (255), */ 0x35, 0x00, /* Physical Minimum (0), */ 0x46, 0xFF, 0x00, /* Physical Maximum (255), */ 0x75, 0x08, /* Report Size (8), */ 0x95, 0x06, /* Report Count (6), */ 0x81, 0x02, /* Input (Variable), */ 0xC0, /* End Collection, */ 0x85, 0x02, /* Report ID (2), */ 0x05, 0x08, /* Usage Page (LED), */ 0x0A, 0x01, 0x00, /* Usage (01h), */ 0x0A, 0x02, 0x00, /* Usage (02h), */ 0x0A, 0x03, 0x00, /* Usage (03h), */ 0x0A, 0x04, 0x00, /* Usage (04h), */ 0x15, 0x00, /* Logical Minimum (0), */ 0x25, 0x01, /* Logical Maximum (1), */ 0x75, 0x01, /* Report Size (1), */ 0x95, 0x04, /* Report Count (4), */ 0x91, 0x02, /* Output (Variable), */ 0x75, 0x04, /* Report Size (4), */ 0x95, 0x01, /* Report Count (1), */ 0x91, 0x03, /* Output (Constant, Variable), */ 0xC0, /* End Collection, */ 0x05, 0x0C, /* Usage Page (Consumer), */ 0x09, 0x01, /* Usage (Consumer Control), */ 0xA1, 0x01, /* Collection (Application), */ 0x85, 0x03, /* Report ID (3), */ 0x05, 0x01, /* Usage Page (Desktop), */ 0x09, 0x06, /* Usage (Keyboard), */ 0xA1, 0x02, /* Collection (Logical), */ 0x05, 0x06, /* Usage Page (Device), */ 0x09, 0x20, /* Usage (20h), */ 0x15, 0x00, /* Logical Minimum (0), */ 0x26, 0xFF, 0x00, /* Logical Maximum (255), */ 0x75, 0x08, /* Report Size (8), */ 0x95, 0x01, /* Report Count (1), */ 0x81, 0x02, /* Input (Variable), */ 0x06, 0xBC, 0xFF, /* Usage Page (FFBCh), */ 0x0A, 0xAD, 0xBD, /* Usage (BDADh), */ 0x75, 0x08, /* Report Size (8), */ 0x95, 0x06, /* Report Count (6), */ 0x81, 0x02, /* Input (Variable), */ 0xC0, /* End Collection, */ 0xC0 /* End Collection */ Regads, Nicolas --=-vUvVMdc+hnSw80DDq5QT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl0DYGoACgkQlfZmHno8 x/7ezQf9EQ5JRPsaKyw22IbaVutfURgVDxl7aIYP0GoM4XdS/1kyx/Yb98dLZoQa S+6EbrRCAowQCyK4+MfI5a/zK4rO+dMTvg8MH7En8D7AfbKAFINylZ7eSwcDOksB j+8uixX+t8v7rruTts888F2hKEYdVyCzdjj/IQPvvd0Oo7f+JdfTCHoaPnWJfXx3 9o+HpZ+G3RnuVfxW0eDi6ZjGfz3TVZTPiCP0cGNQgPD/5yt0HuUdoEY28I3a1pKp JT5oyggC1P846WmhSr5ypZPK8JCpd3azX7utoc+cV71E0wg5XQx8thNFyiFaIrRk F9ZCPohqQzVGT4ZxgYEZU1EZPnWcmA== =Q7cT -----END PGP SIGNATURE----- --=-vUvVMdc+hnSw80DDq5QT--