Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3559856pxb; Sun, 31 Jan 2021 21:05:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJw33sVLo9IeP4eAL4CjJG56X4DnS13tichH0jnfzlbqsvEq6VBb+rtlO1ACYCB3BfYa5CnB X-Received: by 2002:a17:907:3e02:: with SMTP id hp2mr15741578ejc.411.1612155947915; Sun, 31 Jan 2021 21:05:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612155947; cv=none; d=google.com; s=arc-20160816; b=CqGdGyTxPWz3+tzLa8qONu9g6me9r9BbnK/qexxAS9sh9EQhbmSap25Las7dLnyR3B 122el0Os6/kOa6kE8Y52q4YlrxMxxrwlR1kWE7DUIsLjar+aNq/i64ecP8RDgMbQVVrF rK6Yyqha5w1LndELmCvRS7nuWkhl/o9/BYmrZ1lWqHcyDFCaW712b5p/RaLWsVT4MDYz U1KAhzhIWkVp5nxHGI82LaCTjFdbVd4+YT8ZI8fmHuYLMWV0ihf8hp6FD+LTCuUvvNLg x31l74VmQbct64cYw9HA6Z3GAd15vibTbRRnyeq4BP6006jDtipQr7spj83WqaZ2CKKl sqsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6P04YIn7VTCZKIsBXsqz8fORy5jSwbNZ/tsNn2Tj9xw=; b=DmgSB2Zjp/S0DzKJiQw06p5SeuCSbK5+JyGGyEWmYKE95evtRkF3TuIj44EUpkPJWZ Nf43J8sC2wbhVjxC/ieZPdg9UsAijWIm0ITvTYui1K6B8L/xo2EbwpofFvh3f/sTacKc jgJ72f66yErp5XRCBUOwhRp8dRk4RG+4/yUohWtU8lYBQZSgeO+j9yVzXhyG5zo0Ird6 Nm8WpSZZ5qcGmW0QmyszKD5++D7xi20mqbIb0dGR7SolqePcoUvjukxvLKaciMNbRoe/ mvFBCTRDXLQSxPxicXbRZJNl5KG5M14L0k2fHyc6GXUAGGMSAOaW+GZwrCBCf4sp1w0s WPSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R5KebApg; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fx25si1623167ejb.58.2021.01.31.21.05.22; Sun, 31 Jan 2021 21:05:47 -0800 (PST) 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=@linaro.org header.s=google header.b=R5KebApg; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229527AbhBAFDa (ORCPT + 99 others); Mon, 1 Feb 2021 00:03:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbhBAFDU (ORCPT ); Mon, 1 Feb 2021 00:03:20 -0500 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0263BC061573 for ; Sun, 31 Jan 2021 21:02:39 -0800 (PST) Received: by mail-lj1-x231.google.com with SMTP id a25so17959625ljn.0 for ; Sun, 31 Jan 2021 21:02:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6P04YIn7VTCZKIsBXsqz8fORy5jSwbNZ/tsNn2Tj9xw=; b=R5KebApgwd2vaKnReg+pWW5FKG+l78XKttlhEdr0T89n1FFto2FNULSavoCid+zWfD yF0HDQPq1YsZidmCcxeR1+YDefO4gT7cpCT/s6TCnDH6nSUGcxE2nSPIinEIO3YH/xvU bHgMwIjQzA3D8byCDRm9ek52WlKllIaG2eRXSFtg30OAniPT+6hTlkUfJODqOuI3VNF2 jieFuRaI0Xb9VeG4igIDIccxUmT9kYFHz9PrIpW+s00e1TEgoDt0ZWvsgFTVLG0ywTjK ZiRT+ST4jI/z+CbQow4YAUPshLiLBDdBfcG8Bhkds5Wp0BPOuxXQmiLV9Bzekc2EH1SC OJuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6P04YIn7VTCZKIsBXsqz8fORy5jSwbNZ/tsNn2Tj9xw=; b=Jqj88OT9gxIEBGoamfzkOqx8e7gf0V1ZcW/eKMl+E8gq9F9t3Qo/njdBWFgWcoVdc9 Y4h6JgKeexoLszDBqnTfS4bwQtCJ0+/VRydATb+S/UQlmIhdrgDn3WIZQ1vCdjjA/MWZ cqYE4Z6yM4KxIW7WeBt04ZB9rvo+vffuSdwRl7BtOrsJGjDylSETNJKPTRE2VLfVzcEp dD0gNjSoIr31gRPrnSY+cI8l4KTZ4zAy3GeazMa+ic9au+JElcRqphA4pdrRW9aDASKw woWXNSKh9jR8WnmGdhpLS4Pl+MkAI8G6RuFlmfWNvxun6vXGyYu4/gKbS4bztYI2vCYi UvdA== X-Gm-Message-State: AOAM531EVSW7+zkl1zrd/zgVhjERQTsW7pGTvUPT14yE3g7qD8YA/RQa cAk2E7LNG0BGwyWKKBf9oLY1daxEiQsMYe9CvUsHUw== X-Received: by 2002:a2e:a58b:: with SMTP id m11mr8768628ljp.152.1612155757599; Sun, 31 Jan 2021 21:02:37 -0800 (PST) MIME-Version: 1.0 References: <20210125095445.1524477-1-jens.wiklander@linaro.org> <0100017738faac80-87e5cf40-6a5a-4727-9c36-382fb909c8ff-000000@email.amazonses.com> In-Reply-To: From: Sumit Garg Date: Mon, 1 Feb 2021 10:32:26 +0530 Message-ID: Subject: Re: [PATCH] tee: optee: remove need_resched() before cond_resched() To: Jens Wiklander Cc: Rouven Czerwinski , Arnd Bergmann , op-tee@lists.trustedfirmware.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jens, On Fri, 29 Jan 2021 at 18:59, Jens Wiklander wrote: > > Hi Rouven and Sumit, > > On Mon, Jan 25, 2021 at 10:58 AM Jens Wiklander via OP-TEE > wrote: > > > > Hi Rouven and Sumit, > > > > On Mon, Jan 25, 2021 at 10:55 AM Jens Wiklander > > wrote: > > > > > > Testing need_resched() before cond_resched() is not needed as an > > > equivalent test is done internally in cond_resched(). So drop the > > > need_resched() test. > > > > > > Fixes: dcb3b06d9c34 ("tee: optee: replace might_sleep with cond_resched") > > > Signed-off-by: Jens Wiklander > > > --- > > > drivers/tee/optee/call.c | 3 +-- > > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > Can you please test to see that this works in your setups too? > > Does this work for you? I'd like to get this patch ready for v5.12. It does work for me as well. Tested-by: Sumit Garg -Sumit > > Thanks, > Jens