Received: by 10.192.165.148 with SMTP id m20csp480750imm; Wed, 9 May 2018 16:40:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo4z1+Zgbm3um02UqGC9JndkIoQnjNTvfiDfrFqmzhMUlOl49qF2N4eqsPH4tUQA0yKmKZL X-Received: by 2002:a17:902:4545:: with SMTP id m63-v6mr47983078pld.268.1525909225423; Wed, 09 May 2018 16:40:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525909225; cv=none; d=google.com; s=arc-20160816; b=amHNjBLwMZqrSLuw8T8QL8qwl2fsi+BYLT+zwQAaP3YQ08f84u8IY3CIg+arN0ajxr /6OLGtwlMgCoaOp617ARgwXJrnIll+sZ1WgFdPPiTLz84Ug4yS2+0J0dPIeWGIIR4dWa /s4Yds0X9zvZKa5mwsrpHNVWu7ufGIecG3q1u7c/aHjtE2AxtU37G97yBJdukX24AJdP b4zS5C36MtSfJ1vx5pXn48kQF83Ea9Ojqay1/iq3LGVtjxF11kQDqQrlV3tgBw4RAzKA fuI9unEHJ1/3NTsKHQu9I+Bm1BYHxKeXW8CZ9Jn1WODwvBPNrTQowCndoAjM8B6VQGGF u1kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=WaW9oDkWz5q5VYAbP3OhHQlBbHt8tmcRI6gT6Gqt8YY=; b=0d4hwW8V3MFammAtDqmohhOpHkU48Ix6q0hyVnF/9uQBbe0ZyhIGj9n0TVGlEJAjOK yHzaOVkXgDejo6v8Wd8I3kwHJgOO56Eh0ZXNTfFX85sAeRFzhzBxI6Ih5mq2noahtpZt oh9TT1onv72znvmo0dpuHOB6KOfXTVBXiVZmpxVBKVvvqMHlMD6w38lZ7xqcTShfn9z4 51PqT/WTMM+KfZ1weieO6XO0sYrtqNAZY39vq4t8vnxQjuqyj98Jir6flLRt9yE9/nFR w/g3mxt3Apb+orDGDeA6X9MzvfncuuZ0vZ6AKT1oSZsM5WEpJBY5S7z3c3ZYuJvJyV7h DYzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cJbtl6wA; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o184-v6si22148361pga.128.2018.05.09.16.40.09; Wed, 09 May 2018 16:40:25 -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; dkim=pass header.i=@chromium.org header.s=google header.b=cJbtl6wA; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965994AbeEIXjO (ORCPT + 99 others); Wed, 9 May 2018 19:39:14 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:45278 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965408AbeEIXjM (ORCPT ); Wed, 9 May 2018 19:39:12 -0400 Received: by mail-pg0-f66.google.com with SMTP id w3-v6so109434pgv.12 for ; Wed, 09 May 2018 16:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=WaW9oDkWz5q5VYAbP3OhHQlBbHt8tmcRI6gT6Gqt8YY=; b=cJbtl6wADDqhJwAh5b3s55QuSJZaUFPcuLwEljzUblFbPyOwWN4mTlD1XrOiGvqnn9 al8mYPj1NN3YCK4d3flo3KczhFweHHPCgpUFjl0hq7eZfJbDEO13EpsnTtf2vqCeO4A0 Ds3rhqNaLFQPnz1uMjX5z+CN5F2GQeDJeUuLQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=WaW9oDkWz5q5VYAbP3OhHQlBbHt8tmcRI6gT6Gqt8YY=; b=LJ3AYXNk21YYemUeWudPN2hJQiR/KJGF1sHKonNbq+cRk1OEo7ZCs0gn8dEJE3OoiF yp5qqb2taoyLQKCZTHLJ0RS0Z4vV7msa/o0UHPte2eLXFzzersaJb3RP+ztfS/R688Tu Q0/GFvaKet/H9rrhh5PGHpSvwVCdDjRSe37LLefkb1k80cZKSv9IFkMfT8QAunIwQXoh oUonVg54ZrWLY8QewHv8ZZwbcK99E8UO7VMPFvmrGgTQz3ZaLAAgpWTNVf8cbEH79CwM 5uhaFnuhsmuo07tJgU0Fur+BiLF6gGIx6irdrNwu5VFJ7+x7UJO43Kg9Xx1oIPjp9Z2z Cyfw== X-Gm-Message-State: ALQs6tAWMZZgLvad4dQvQ9uTXwB9w+pLn+ugJ26+4K6aK3qX0mqVBWEb cq0hLKGLSgFnFbJ2VAM467dNvA== X-Received: by 10.98.18.212 with SMTP id 81mr45744906pfs.243.1525909151953; Wed, 09 May 2018 16:39:11 -0700 (PDT) Received: from localhost ([2620:0:1000:1501:8e2d:4727:1211:622]) by smtp.gmail.com with ESMTPSA id z83sm26062452pfd.103.2018.05.09.16.39.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 May 2018 16:39:11 -0700 (PDT) Date: Wed, 9 May 2018 16:39:10 -0700 From: Matthias Kaehlcke To: Lina Iyer Cc: andy.gross@linaro.org, david.brown@linaro.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, rnayak@codeaurora.org, bjorn.andersson@linaro.org, linux-kernel@vger.kernel.org, sboyd@kernel.org, evgreen@chromium.org, dianders@chromium.org, rplsssn@codeaurora.org Subject: Re: [PATCH v8 08/10] drivers: qcom: rpmh: allow requests to be sent asynchronously Message-ID: <20180509233910.GK19594@google.com> References: <20180509170159.29682-1-ilina@codeaurora.org> <20180509170159.29682-9-ilina@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180509170159.29682-9-ilina@codeaurora.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 09, 2018 at 11:01:57AM -0600, Lina Iyer wrote: > Platform drivers that want to send a request but do not want to block > until the RPMH request completes have now a new API - > rpmh_write_async(). > > The API allocates memory and send the requests and returns the control > back to the platform driver. The tx_done callback from the controller is > handled in the context of the controller's thread and frees the > allocated memory. This API allows RPMH requests from atomic contexts as > well. > > Signed-off-by: Lina Iyer Reviewed-by: Matthias Kaehlcke