Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp680024ybi; Sat, 29 Jun 2019 21:08:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzI5DLo8CdkR6WDjmcWkYyMGm+q1UQPPAlJB+ggnFfuhpghNOg14zcO1raPGDCr0aXmrqcp X-Received: by 2002:a17:90a:28e4:: with SMTP id f91mr22200636pjd.99.1561867732389; Sat, 29 Jun 2019 21:08:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561867732; cv=none; d=google.com; s=arc-20160816; b=G4yQmBWMbkDz6z+Z0TEEzhj7vb00L1nkyFdgzAvKQbtGbs4Xpdfl/HYJjbAocgWk9e i8qP3TbKFmt6vhq602pY+AqnBJcsVN72U3j5+9FeP62JZrbJtQlyARAnncrFZ7RxGCPm LEYKDKmPJxfHSg0Nowww+GvUm5a0bz5ZdNbKrPN1qpZa8oHOgpJUx5dvvvJD+wAcEk7Y BIPxl3BlceDpY4W0il4Ugqq5ubLbGPeMax5hV9k6DPcd7jYU7CWhE5b9r7mPNIQv92SE 07qBJowdFXQGYwdkN4YktH+TsV6Ej6GGAKhApD4EBNos3tSKRZRUca+gp1A0nN70T+wZ frIw== 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; bh=e0I5Wbh2bYaS07xL/I5DH0yq5CBaIl3bDJRvSpz3Cxw=; b=hn1hgw533YFU2A4hoVgIHPLixBLUViHEGHO6hRGu3EmCgmUAwGpxy/2OU0EEVd6N8K tdbr0+oHU87ITH4u1/n7G2ecqi267k9KXeIdmeLOH0bVVov1KhS3gN0y1rtOLTQnIFR9 c/ezTYosfu63fxg2eyPifFWPG8bgr3TXcnAt41FaZb3KVNLY5wo3spcDL4uyd01Y0P+D rWSvaSkpffnk8GzBcGO4ymGBMiHpXKThlO/LuymBJSmoZFY2lRFUAxHMuqSS/2TA3RtJ 5ImDbp7YLaRqmZXVhHT4YxsDH1eHtn1CD6Igmj7gET2gHLrgSkCL0kpFAuwMWrJ9fl58 Lujw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xqjA+u5A; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c7si6267657pgn.464.2019.06.29.21.08.36; Sat, 29 Jun 2019 21:08:52 -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=@linaro.org header.s=google header.b=xqjA+u5A; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726436AbfF3EIc (ORCPT + 99 others); Sun, 30 Jun 2019 00:08:32 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:46776 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725902AbfF3EIc (ORCPT ); Sun, 30 Jun 2019 00:08:32 -0400 Received: by mail-pf1-f194.google.com with SMTP id 81so4876691pfy.13 for ; Sat, 29 Jun 2019 21:08:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=e0I5Wbh2bYaS07xL/I5DH0yq5CBaIl3bDJRvSpz3Cxw=; b=xqjA+u5Ad+vYKVP92a2BTpYUrFDekp/y9vVawsHEjKO7Fg/cSWp1lmsDpDMvwGVdoZ jEeR5kHt6l8rIa0BkmkyGwfIKCqldBKhSBfuGhL350FprtHOurblD5rzXm37Qck3Sk8V Wr6vunL4r9CLygaJMBdavGShvFfFhFmNjKFp1GYQoIYJyl3r/drB2GnTWcKHZPchmUZq +6CPynCiTMXQU0yldwM+CljanzIZFTyD9Ghcs7KT8BMj/w5TPFOOFX0c9s6WNnRLO9lw fzlM8mvdgWjRNcNB/aH7BKa2yDw6J7vMg98azPuC6dmAifTgiiVZfDwr0nN2Fc2cRxtW smWg== 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=e0I5Wbh2bYaS07xL/I5DH0yq5CBaIl3bDJRvSpz3Cxw=; b=pew6awfWaHcg91SMVc25Vt64n90r2aRBUJentZLw2jjXhVI7Z4QsnzvDUQCJcJiym5 2hTH2V3xF79E65NiRGbTsoyo22MPalighjirj8rolnvYItTHge/c2TrJaSWdmxW1O4WA 1oE+dzeSaN/EOhozC7Tq8NpAcs6ZyZ6xBurte/+4ElRQ3OXd2pxTlCphzSdYefC7xRHE 1oWSZqaF7vDLZc8QCPJYY/B80S2uOx86gDqLpBXJDucmgCVrdoOOd6P4gmV1gdHJW7gs WW41UIRwW6Fz031/g2LUvdSu0v1gGOxn1zxaljflZU9iv4PhiV7mOMbn6FnpsZx1wyc/ RvhA== X-Gm-Message-State: APjAAAWJ6MOMXmkKIhiWXybaJgYaoXoxR/msnWqofuKLmhn7U/ajQ2eL 1CJJ5MxREEMEGMPzMBJjryNhpA== X-Received: by 2002:a63:1f47:: with SMTP id q7mr17628956pgm.264.1561867711398; Sat, 29 Jun 2019 21:08:31 -0700 (PDT) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id z11sm5832982pjn.2.2019.06.29.21.08.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 29 Jun 2019 21:08:30 -0700 (PDT) Date: Sat, 29 Jun 2019 21:08:28 -0700 From: Bjorn Andersson To: Fabien Dessenne Cc: Ohad Ben-Cohen , Jonathan Corbet , linux-remoteproc@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Gaignard , Alexandre Torgue Subject: Re: [PATCH 0/2] hwspinlock: add the 'in_atomic' API Message-ID: <20190630040828.GB1263@builder> References: <1551974303-24542-1-git-send-email-fabien.dessenne@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1551974303-24542-1-git-send-email-fabien.dessenne@st.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 07 Mar 07:58 PST 2019, Fabien Dessenne wrote: > In its current implementation, the hwspinlock framework relies on jiffies > to handle the timeout of the hwspin_lock_timeout_xxx() API. > In an atomic context (or more precisely when irq are disabled) jiffies does not > increase, which prevents the timeout to reach its target value (infinite loop). > > Note that there is already an hwspinlock user that runs in atomic context > (drivers/irqchip/irq-stm32-exti.c) and that has to handle by itself the > timeout. > > The first patch of the series completes the Documentation (the 'raw' API > is not documented), and the second patch provides with the 'in_atomic' API. > Applied Thanks, Bjorn > Fabien Dessenne (2): > hwspinlock: document the hwspinlock 'raw' API > hwspinlock: add the 'in_atomic' API > > Documentation/hwspinlock.txt | 81 ++++++++++++++++++++++++++++++++++++ > drivers/hwspinlock/hwspinlock_core.c | 43 +++++++++++++------ > include/linux/hwspinlock.h | 61 +++++++++++++++++++++++++-- > 3 files changed, 169 insertions(+), 16 deletions(-) > > -- > 2.7.4 >