Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2012066pxb; Mon, 23 Aug 2021 09:53:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY6vDED9ulnjpKtSspat6RkJREK15EOw2SUhBoiJIdaEkrdFb4ZyIRHX1/pTZ2WhDBvOgN X-Received: by 2002:a17:906:715b:: with SMTP id z27mr8434895ejj.521.1629737608027; Mon, 23 Aug 2021 09:53:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629737608; cv=none; d=google.com; s=arc-20160816; b=hCX/bUgFu04h0mNC+WHQiT+NTcqEWJzL+HzEj8QCUEe78mrKQmaYcsK4PYQgmJe8pP 562P5qsfR7WRTMnx1g/zMEVlagKGWvgNFosJzne2jj+DNNNCUgyw/En11lwRYlfR3Md/ lvoDMjoT6oLbew8JB1GtPawNz0dusRLw9lnBA0UrwTy11UPvM4Ott0OTJCb7RMl/i+0e A2NrgmQBaJJnY4N8JDPTzu5uT5qSzaw4GkBddT2gsqZU2mtAiXisaMWNa2W5FEidiWIR xJMJIkEkon7IcySYXonIvuKxTf9aSAVECPq5MihtOFJV3TtW2vXQ/DOSGS4dS2kbSyf6 p3xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=eyRUi1erXIf9vdU9EaE7gDkitJbqBl0J6BSh9JWvOs8=; b=eeh8dVtB8fTUgKWa2NqWSLP+e84/SjH7lhz5Suz91nxXQXQ2Ad5XVg1HYEm6FVsekk wU/584Elulswuq0Yc6EnsZX+OetfbbLHjGNhKhVAyttf2+VgG5I5NzMc1Q588tb0Pbq2 QjjlabPm9YT4BKvbxhhu/bfBpEK/55SgBZFn5RuJZQt9cxgqhaSkUf/LO4KD4f+CmQEP Fwa8Tv8SBaHyjO3nEbYKQEmic8qjjD8siQvsn52E3VEH8FfvfEmtCPZcpFfcghh2W79z 6syzPV/XwnS9KsvCtcFy7415CvdX9Kr+zEsNeICyBiHuPW4nAZ74NDc4sqmuONw+REcC 8w4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Ze5YMe0e; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r25si14458111ejc.100.2021.08.23.09.53.03; Mon, 23 Aug 2021 09:53:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Ze5YMe0e; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229912AbhHWQvz (ORCPT + 99 others); Mon, 23 Aug 2021 12:51:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbhHWQvs (ORCPT ); Mon, 23 Aug 2021 12:51:48 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EFA2C061575; Mon, 23 Aug 2021 09:51:05 -0700 (PDT) Date: Mon, 23 Aug 2021 18:51:02 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1629737463; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eyRUi1erXIf9vdU9EaE7gDkitJbqBl0J6BSh9JWvOs8=; b=Ze5YMe0eX14wZObuQDmHIMNEdCm6fyJ7bOVqh+kU2LASIB7N4fF0IPemTS6LoL5TSSsGku YvsoU9xRaw8KQv1x17K2G7p8WK4Cebpk5tkyU0Abu0P5pF1xg6tpdonT3vNnDunn1CghiR KWif6bO4XTZEe6gTO1mh8ZgyRaU3MsBSqlipfNWE7cy9C1gxbc4tERbS96xYuOCRhKeZNi cgPVcNKXS4osMpyxJ+FqeRVtcQ8hT0LS4KxC+i2/mYn895oDsaaYk4HMZSuo/+qtTR4tnG ghCjKxLvIjiVhbML2onlQmLhNprOf8/rH1HLGgPev6SFSYZIkOzFYHk12Isozw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1629737463; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eyRUi1erXIf9vdU9EaE7gDkitJbqBl0J6BSh9JWvOs8=; b=xbCGbipYA9FSFod8hQ26tLdNwIYEZkpOkSopBIRYVrPxbVvL51DP5qypIh5R14XdHEzARx 7Paq2owVKsBnXnAQ== From: Sebastian Andrzej Siewior To: Jeaho Hwang Cc: Peter Chen , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , linux-rt-users@vger.kernel.org, Linux team , =?utf-8?B?67OA66y06rSRKEJ5ZW9uIE1vbyBLd2FuZykv7J6Q64+Z7ZmU7JewKUF1dG9t?= =?utf-8?B?YXRpb24gUGxhdGZvcm3sl7DqtaztjIA=?= , =?utf-8?B?7LWc6riw7ZmNKENob2kgS2kgSG9uZykv7J6Q64+Z7ZmU7JewKUF1dG9tYXRp?= =?utf-8?B?b24gUGxhdGZvcm3sl7DqtaztjIA=?= Subject: Re: [PATCH v2] usb: chipidea: local_irq_save/restore added for hw_ep_prime Message-ID: <20210823165102.gk5ibzgi6qlgvrxf@linutronix.de> References: <20210817095313.GA671484@ubuntu> <20210818161752.vu6abfv3e6bfqz23@linutronix.de> <20210819084759.stnmit32vs2be46m@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-08-20 14:15:55 [+0900], Jeaho Hwang wrote: > So we protect irqs inside hw_ep_priming not to make error cases and > also add a timeout inside the hw_ep_set_halt loop for a walkaround. > The timeout patch is submitted to linux-usb. > ( https://marc.info/?l=linux-usb&m=162918269024007&w=2 ) > > We withdrew this patch since we don't know if disabling irq is the > best solution to solve the problem and udc would work fine with > hw_ep_set_halt walkaround even though hw_ep_prime fails. > But we are still trying to find out the cause of this symptom so We'd > so appreciate it if RT or USB experts share some ideas or ways to > report somewhere. Xilinx doesn't provide any support without their > official kernel :( The UDC driver sometimes drops the lock and acquires it again. On UP it would not matter but on SMP/RT the other may acquire lock and do something with the HW. One thing that you could check if there is any HW access in between which would affect the behaviour. > Thanks for the discussion Sebastian. > > Jeaho Hwang. Sebastian