Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp73900ima; Tue, 5 Feb 2019 18:17:44 -0800 (PST) X-Google-Smtp-Source: AHgI3IYwkY94YKyWAzGfUO1Du0nAV7cGsNTeUns+BBsl7cY4X0ZUdpy02edTh0Lp+pUAEKcSLveg X-Received: by 2002:a62:d448:: with SMTP id u8mr8131818pfl.105.1549419464596; Tue, 05 Feb 2019 18:17:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549419464; cv=none; d=google.com; s=arc-20160816; b=jbhdDB1PjJxVoydG0KdNCgMe0n4URtAUMJub+HjZTJoTIQ5UpNNzaaiqmIRJan9JrV WIDKmQYya2sPIgEQ3ZJdp6aU7WN1NAKlcbmMvWYC1bQY9qmIG/qZyOlJ+mdbDEt2PXV+ XCqhRP9YrI3QHEkLN0YNXUXdrfWyUemk7RPRMdAMfx7iWBTxYdD1F4zdAF46FGoyRA+Y FmajywE/hg73ec3fdl8Efoj+6CjaqELCglSf5Xd7CPsXmZTeqhvHhaS7CFRGMETjLuTG s0eEAOFNpXsMdpVDY813vwIX/oLNmbso9se1RZ2mDLtlJwt8J25a1UB41glbM6SqMToG BX7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=wq9CuyTmHIWwBeo0tm4z4CJiibirnV4mdE3wUyq5Koc=; b=esOTcfAL8i5YqMeHCTaiJvXgq4mXCy89payWpA0taFffKE2/+jHr+czniVuZaQBVQW g3yzi8YwrLz+UruSJT0+Ef8ZSiuXq3Wh3ZbusrMejz11IkeZaWURc9YlkWdpPbAUw835 i/7LdQ9dYxe5EcmWmFi1WjrrrfneFd0PNUYq/AAFZMG+6BEawszH9HkTKV41uJsp+X3P eqI4ZsuzuDL1buR+2vulqioSTtujzVRKjqPM9lRMh8CXJ9BJL2+ebhi+weyyFJh5KC6P jLG/+WiQsh14ywSTLH7XjuH/7BRiNuhTvj48h/0X6YOfy4lj9KjqjUPRmz+tnVCYgLju 4AZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=BnlCa8lv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g69si4850496pfg.225.2019.02.05.18.17.28; Tue, 05 Feb 2019 18:17:44 -0800 (PST) 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=@synopsys.com header.s=mail header.b=BnlCa8lv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728524AbfBFBBw (ORCPT + 99 others); Tue, 5 Feb 2019 20:01:52 -0500 Received: from smtprelay4.synopsys.com ([198.182.47.9]:36578 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726062AbfBFBBv (ORCPT ); Tue, 5 Feb 2019 20:01:51 -0500 Received: from mailhost.synopsys.com (badc-mailhost1.synopsys.com [10.192.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtprelay.synopsys.com (Postfix) with ESMTPS id 690EF24E2855; Tue, 5 Feb 2019 17:01:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1549414911; bh=WRm+NlFKL/HMLQZK/vcyhJnFrWM9FuCLqplQGDjlpMg=; h=Subject:To:CC:References:From:Date:In-Reply-To:From; b=BnlCa8lvJ6Mtb/jNCEuU9FoKDi3NBIAxS5Kxj1BqF8cRw3to5nhcVKgzN08RlaNjD YxPZr1i9yMdZjBveTsRcbuwBHyc/9ChX/WbsEF8u1VV1/p58GUu9AYZeFj0TiURpes iya2JpNnHlwaErb+zqk74a5wiR/g6XblB6LbysaktCeVZsVB/+VvrFqh3CrY/CjmG7 aqv3CFMLctZDwmHjC7aQeiOaJhdsOC5gSPbwfCqf+8HG6t+BcUY85hBAhnYbhBk8XC WTN360dclUNVkZH+nrZ5Y6N41XXziHtsVM7YW6tbIIljcNci960shPNSKGi0xavk8k AtxxnKwpZNsag== Received: from US01WEHTC3.internal.synopsys.com (us01wehtc3.internal.synopsys.com [10.15.84.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mailhost.synopsys.com (Postfix) with ESMTPS id 09EF7A0079; Wed, 6 Feb 2019 01:01:50 +0000 (UTC) Received: from US01WEHTC1.internal.synopsys.com (10.12.239.236) by US01WEHTC3.internal.synopsys.com (10.15.84.232) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 5 Feb 2019 17:01:40 -0800 Received: from [10.0.2.15] (10.12.81.173) by us01wehtc1.internal.synopsys.com (10.12.239.231) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 5 Feb 2019 17:01:40 -0800 Subject: Re: [PATCH RESEND] PCI: Check for USB xHCI class for HAPS platform To: Bjorn Helgaas , Thinh Nguyen CC: "linux-kernel@vger.kernel.org" , "linux-pci@vger.kernel.org" , "Lukas F. Hartmann" , Trent Piepho , John Youn , Richard Zhu , Lucas Stach References: <20190205233159.GC7268@google.com> From: John Youn Message-ID: <5d78ac08-0809-d219-ff7c-5cea5f7aba8b@synopsys.com> Date: Tue, 5 Feb 2019 17:01:18 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20190205233159.GC7268@google.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.12.81.173] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/05/2019 03:32 PM, Bjorn Helgaas wrote: > [+cc Richard, Lucas] > > On Tue, Feb 05, 2019 at 01:04:28PM -0800, Thinh Nguyen wrote: >> The Synopsys HAPS USB controller has a VID PID (16c3,abcd) that matches >> to an existing PCIe controller. This quirk is intended for USB HAPS >> devices only. To fix this, check for the PCI class USB xHCI to prevent >> matching the PCIe controllers. > > So there are at least three different parts with the same Vendor & > Device ID ([16c3:abcd]): > > 1) Synopsys HAPS USB3 controller > 2) Synopsys PCIe IP in the NXP i.MX6QP (reported by Lukas) > 3) Synopsys PCIe IP in the NXP i.MX7D (reported by Trent) > > I don't know if Synopsys is to blame for 2 & 3, or if NXP was expected > to change the Vendor ID when incorporating the Synopsys IP into the > i.MX designs. But even leaving the default Device ID of the PCIe IP > the same as another Synopsys device was probably a bad idea. Hi Bjorn, From talking with our PCIe folks, our best guess is a vendor misconfiguration. The PCIe IP ships with a different PID by default and does not collide with USB. > dwc3-haps claims by Vendor & Device ID; it doesn't look at the Class > Code. What happens when it tries to claim the PCIe IP in i.MX? We can add the class code to dwc3-haps to account for this. John