Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp891919lqt; Fri, 7 Jun 2024 01:34:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxDcsCo91EIen210PpdQIGQ75QSa2R8Kh8L4i2qu+H+FNW4dGewhD6FROtxku5CnYn1Ti0CwH+UCvDEaxaxxjwjhAUNfYiORWjia9uYg== X-Google-Smtp-Source: AGHT+IHDoaeCQb6IpJ0uThEfcqggC1P31SeXFwSTzYvMWK9bZynT3nVxsJeh86kbXjTkQrFAxe48 X-Received: by 2002:a50:d502:0:b0:578:973d:4fc6 with SMTP id 4fb4d7f45d1cf-57c5086e314mr1076673a12.6.1717749281400; Fri, 07 Jun 2024 01:34:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717749281; cv=pass; d=google.com; s=arc-20160816; b=kyTeJWMZ2iBeUT31lFgYB7bQAWtgCmxmJjxgxy1T87dTSlsfY5FZpmirKc7Gp5WW/7 hr1XrLl6IsJT96GqhrINGE3ocE44FpoEnU0b5s7ZYYFF21R+Sqb4altz/W+5kUssKnc6 520qbSK+MnIre6gLz7HNwvQwxioSXfYLb/sN9pGXmEjxt+MxudKh6lPye3dNVUlEEDmB ZPrCMHVJomJLWEDJyWFiPMYiU4ygsv2E6Itwlp62+6n6e6qPu5Y1XYRXhfu5UOl/JEqL FdaGaQ12Ec31L3lpXmsKec1Vw75tEzpmT/lARpyGLwgYKoKlMCoUQWmaEWFdTiNc3e7B qSvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=R4etCTB/NBjKK0WpeKqWipiUTv2zbFBVaX2GovjFzXA=; fh=WkyLUdp6Fi14QjaX9phFeysjC1qdVlQz2f/bV5GmGck=; b=VJ8lVrnva81CHRCwulTIgNkWyw4ONGSqls//qqbhHXCYxJNeR4J8Xsy2hO3FCmciXk DQwtDbH7igK30IoBg++qfNViKkO/pJTV9w5i2yhLpVMUfz9pEaqv3zA7wDdqbaxlQJOj JVAnGpo8AIBeTyZJV/2qTIWb7tWnc+ojlUdH/jwRzrV5Q0PCc7dqgOXwVpiBWllpbZ4X lm7LWUm2E0QkrtKfi2p+yhjQUSwUDr9k/Zi14H4iFkYASiGbHHF6J6FyGe8iAPUokjzy Sll1rDOp9Psu+CssXip62uB9fVe1zvXxreYk4+0vZ0oA0JE5GI6L/vzg/3o1Rc32y8SJ 6LPw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=O0RSlYsw; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-205609-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c5fcef6e9si148161a12.542.2024.06.07.01.34.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 01:34:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205609-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=O0RSlYsw; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-205609-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1A5A41F22539 for ; Fri, 7 Jun 2024 08:34:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B15715B0FD; Fri, 7 Jun 2024 08:34:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="O0RSlYsw" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C503615AD9B; Fri, 7 Jun 2024 08:34:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717749274; cv=none; b=DDJD4hvU3WWJPe3xvTT0V43l7Xv3giFLqmXSE+S5ijnlVnMeYYpThGE92br/bAW8/2SIGCn8u7knXyXpvrfjoczA3HMovU6DgYtKTINFAen+WpjwV6edz0A9QJKCkUaWcvyabH54Brcl3ruYARvNoZv92FLRfYwwg3ZiQ1WGBo8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717749274; c=relaxed/simple; bh=/Nzeasn5SDIllA/M0CyzgW1HWkP+BnqHZ1wN9YJUFDI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cOiEk/21CPA7PdCn0TPxaHASTxgg+JFr4VRplRcbaAX5StKmdIts9lIK/s3NGTWjOLLULiUNpM0HMCsQAF3GtenZDduJdf2YFzkSp9CN0Y1kS8igoPjB3ywRrvFsP88p3Zw9IMB+m8UltFuoW5lDkKtzZVU9tROexQon7IqjC6o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=O0RSlYsw; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 7B79C40002; Fri, 7 Jun 2024 08:34:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1717749271; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R4etCTB/NBjKK0WpeKqWipiUTv2zbFBVaX2GovjFzXA=; b=O0RSlYswp5a0bEVWELBfy0AZXlKWR4UHGUVWbngpm7eSTs0FAbiTUb8m9+mu8Y14DgxJKv NhIbL6j/hN9ZmcC1jLK6XjFJTSi1AVy4CYioS1vCJuMekVc97+IqQ8K8reai63ZxHv1nxH eMKHHQHcunaxXHbdOfLCLhFkPm/HAtaS5s7KqM6bD8l5INpdwQ8plNM+Ojsz/4LJMHu4Ra a5wTyoPD0LpyKQrmaC80hf5X5R1auF4psJTyTF9dP4+h4PRFan/+TAxEbtOkS/8TEgmUKk MQNUZRVjxgKd7mo2Op5wrzNM48ODJ+yDSZAGgQgB9biPa2qAmUFWAwfOGEO42w== Date: Fri, 7 Jun 2024 10:34:29 +0200 From: Louis Chauvet To: Markus Elfring Cc: dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Brian Xu , Lizhi Hou , Michal Simek , Raj Kumar Rampelli , Vinod Koul , LKML Subject: Re: [PATCH] dmaengine: xilinx: xdma: Fixes possible threading issue Message-ID: Mail-Followup-To: Markus Elfring , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Brian Xu , Lizhi Hou , Michal Simek , Raj Kumar Rampelli , Vinod Koul , LKML References: <20240527-xdma-fixes-v1-1-f31434b56842@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-GND-Sasl: louis.chauvet@bootlin.com Le 27/05/24 - 20:32, Markus Elfring a écrit : > > The current interrupt handler in xdma.c was using xdma->stop_request > > before locking the vchan lock. > > 1. Will an additional imperative wording become helpful here? > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.10-rc1#n94 > > 2. How do you think about to use the summary phrase “Fix data synchronisation in xdma_channel_isr()”? I changed the commit message and summary in the v2. > 3. Will development interests grow for the usage of a statement like “guard(spin)(&xchan->vchan.lock);”? > https://elixir.bootlin.com/linux/v6.10-rc1/source/include/linux/cleanup.h#L124 I don't feel comfortable switching `guard` as the rest of the driver is not using it yet. Since this is a fix, I prefer to maintain consistency with the style of the rest of the driver. Thanks, Louis Chauvet > > Regards, > Markus > -- Louis Chauvet, Bootlin Embedded Linux and Kernel engineering https://bootlin.com