Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2459695ybh; Fri, 24 Jul 2020 13:28:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKWVwF9c818HSmFuR8Hhmf3k8jxOdtMmitjCI2NzgZlSQkaKFS6ukU0J/lP1JDCJ8juJVB X-Received: by 2002:a17:906:270d:: with SMTP id z13mr10695071ejc.281.1595622519591; Fri, 24 Jul 2020 13:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595622519; cv=none; d=google.com; s=arc-20160816; b=VuRRH7hGf5NvPPdtqz6YifgiHaoJe7PrxM8v7QdgmB1bMNWi5Wa5ZeXG+kx2TIKg8o VBqgEjT31avHwdL7Le6oJbvryLayFMXZgp7P1+2+lgF+Y/wQoKiTMPiPTZP5NR+sAjaI zPayTKbzZQZZsyJXv4V0/bCJXfeALiJkyyXWLsLEJfyuzGP9vjtXV+7709F5bNRGtLJe 5d3Q5tvce8b2gVe3TVnBBaA9tO0vcYKtBSlysjmkbRcgdnbRn8DZvsShUQF53tHmHhlt Il4rp3w7mzZZCYbLHuXfX9Prm8u7AvO5dv9TeCOWLkoUg9xT0JjwKG2cRFLuSWqJFbW6 OLSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=FvJp6KRxuCLfQ1LrQuFAFBgfAkQQ7QvIAiuIgT4S7HI=; b=RtnIZfYzl1eJLStLXWgRS9DNRFEuufK1ebMN2gWQYO6PA1vSYGOK/EtiaB4QDi92/n BOEdaam/uqmFsDJccQQevPgf0any1/cMKs1FcEyRAIqxbazhWlwhAPQO7PvsgaCZKAhq SvOGw/VlDHLFhhyAyI9TAn7bpD8EC9Y077pAsrOsNbwbR7ALRp36Z9mmjuaQmoxhwWRn MDn2lzr1+UlcE0KUzp4FIFYy9suxX99GafcGAsFAIGTLoMDxfRKXIonWktzgPT6RYJyQ NouBm1C0G0VKR+3qyklEWwbXc7muuebyTxsEUIj82EAeFvZEilRYIJ5b+IaBYLdNiJEF u5RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bLLtK1Ze; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j8si1220139ejs.237.2020.07.24.13.28.17; Fri, 24 Jul 2020 13:28:39 -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=@chromium.org header.s=google header.b=bLLtK1Ze; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726572AbgGXU1X (ORCPT + 99 others); Fri, 24 Jul 2020 16:27:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726397AbgGXU1W (ORCPT ); Fri, 24 Jul 2020 16:27:22 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79AB2C0619D3 for ; Fri, 24 Jul 2020 13:27:22 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id f7so297149pln.13 for ; Fri, 24 Jul 2020 13:27:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=FvJp6KRxuCLfQ1LrQuFAFBgfAkQQ7QvIAiuIgT4S7HI=; b=bLLtK1ZeE35eR4FeMC+fIRZcgm/BS04TxFnqA147MIiBhcPUrpTjQ8mBLU2R2PtCm9 CUVySufyEYz8uVUJpQ49823cuD7nd7ZhKLAi1xYUsl3Pn6QhRjbfekw074vqy7qJrFyO OmkvtFikiS+cJRmGZVH7c4nQhXUT68Q9nduVM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=FvJp6KRxuCLfQ1LrQuFAFBgfAkQQ7QvIAiuIgT4S7HI=; b=S9wsYKGjBr9+4vVggyLzLXYg9YMKRZ7ZKH+y0oIHqoEfOzX6j41QLnU2Huxh5XvkCl ny6IWvb3xmGzt1bVBjyO4Nj6aWKMG2VnJTA8T1yxMvEvmgs+m1c7YCRD16P2Rgs5mMAk H5dygUS+Ogq+XI5Mugps669XjGkAPJiyDZk+7v0EYByEJEn9QDpHmRppIqZwou/5se6u rGKMN3R9vWKbEtNnS/qLHLU0jeN/wBV8wcyspFU0/2sPhSwJ1uwqU2OnaW5IArWR4x4W E0qHZNUAF0vf2ioKR8DwPphO9WQW0b3x436T+iHwEuRo6edQklEidevWgI84OHnw1jtP baAQ== X-Gm-Message-State: AOAM531Ovbjfjc0m6ogg9IlwNAy+lYJ4vRhDhnvthRWyO+rd4iQJ4pPp +FsRKrj7z84FiW/TzJrKK02k1Q== X-Received: by 2002:a17:90a:d181:: with SMTP id fu1mr6839522pjb.60.1595622442012; Fri, 24 Jul 2020 13:27:22 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:3e52:82ff:fe6c:83ab]) by smtp.gmail.com with ESMTPSA id nh14sm6590084pjb.4.2020.07.24.13.27.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 13:27:21 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20200723010137.3127584-1-swboyd@chromium.org> <159561988523.3847286.14763422711224252201@swboyd.mtv.corp.google.com> <159562087212.3847286.9484527206999948907@swboyd.mtv.corp.google.com> Subject: Re: [PATCH] soc: qcom: rpmh-rsc: Sleep waiting for tcs slots to be free From: Stephen Boyd Cc: Andy Gross , Bjorn Andersson , LKML , linux-arm-msm , Maulik Shah , Lina Iyer To: Doug Anderson Date: Fri, 24 Jul 2020 13:27:20 -0700 Message-ID: <159562244072.3847286.7905035931282026601@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Doug Anderson (2020-07-24 13:11:59) >=20 > I wasn't suggesting adding a timeout. I was just saying that if > claim_tcs_for_req() were to ever return an error code other than > -EBUSY that we'd need a check for it because otherwise we'd interpret > the result as a tcs_id. >=20 Ok that sounds like you don't want a check for -EBUSY so I'll leave this as >=3D 0.