Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7599054rdb; Thu, 4 Jan 2024 01:19:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFou8sA8DyP2KoKGgvRT+1JV0QpRwUpA97uo/yGDtRmP0gMX8Ouco+moiC71whkIQM8cZTB X-Received: by 2002:a05:6359:4112:b0:175:3524:f2ec with SMTP id kh18-20020a056359411200b001753524f2ecmr242232rwc.7.1704359958663; Thu, 04 Jan 2024 01:19:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704359958; cv=none; d=google.com; s=arc-20160816; b=Uys5iLFiyZaCyJEhuvkVHICkVBcyXJbYaUYT3RSkdZUyRVyKPabeao9ofneEAS15dw 4HP6nnYl+eEpPbDxg5hyqFehP8kOiT8D2DDh0ccmD5eDCiacEMYyuBqlIYHrJ2SdZleY WtJWCWjeUtnVhvLbOic8DOlYG4UzD4keJhb6rEWyTEZI0SPA5fb+L8kU0yrX9o+y7Ocl lS2IMFTkjakZTKLZVHtt3gIBOI3BYfdFgIBaicFa/839lHn7uEu+Mi3b/zBCiJwiE/7Z uiLlUYliw2PS4yWm09F4XfAvGixD5V77/IfawB/+Cy+oMzWV6Lv+8oWC8AwwUmKxVKFP Prlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:message-id:references:in-reply-to:subject :cc:to:from:date:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=lXRPsGig1zfXAJEqZ5WsosnvTXdu5XuvfozB99Nn1mo=; fh=NpgnDmcAUaQVGVcGsxmoBrYr6aVAhVjgGfBBZl/uE+A=; b=MZjGT6J//2XltiQPkEPmUDIntqE0A9B98aIDEAbUyXxKMixyBztGbdY3CitnSCBmgb 0gzGPksAMfuSiNPUMBhd3/GE/RfFHR6hLHemtCjKmmZcf10C5zJdKKaqhVy7qcA2y44B R2REzthvFblStF95YmEx1owcwrz+a8xji1/8FaggBWto/nhsQ+G43QHUrCPZ5VdKF9+i CFCPOjbktl4EBbSn+OtHbbzGqo5+5hGJX0+/zB+iCu4mglU6YTvW87kVfvctUUrVz613 EeUQ/BDDc5zTcE3vkvk8riDLXFLvWTo4JdC8pduUC+SC9ea33QyDLRsvM6+dtmx/qwD+ 9vdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="sJU1/A+d"; spf=pass (google.com: domain of linux-kernel+bounces-16430-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16430-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id eb17-20020a056a004c9100b006d9be274aa1si16394899pfb.321.2024.01.04.01.19.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 01:19:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16430-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="sJU1/A+d"; spf=pass (google.com: domain of linux-kernel+bounces-16430-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16430-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6ED1CB218A3 for ; Thu, 4 Jan 2024 09:19:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F9BB20338; Thu, 4 Jan 2024 09:19:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sJU1/A+d" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8D6DE20303; Thu, 4 Jan 2024 09:19:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B682BC433C7; Thu, 4 Jan 2024 09:19:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704359944; bh=TRHwajs8+C7HLWNDMoS9D2FjvoKe9s7pha9pe1gRf1k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=sJU1/A+dXUT7eRNZ5GbqqTcstHEhhb7hiKxyTVRc7PesI4jdkvrA9X+E06yJWA/gq HxC+cTLwX/L08azbq6crYpfxJ7M6Qr/9FTMRffNrdkjoYWuT3XhmWXmTmXA9ZY0eCB LByHyNdKfbx3a8IG8K9yY6xaMiM21j1OKQSii/omQ6rT/2gdlU93rQhR9nSHM054r5 EIHgQo2nCORnzvYV95+XIjdKlMMHqavkMwStSEm8lNNGk5srxoWvg5U6KI1z4f0sHP em2lkuhGNgBhJs7Ts2jBRgud22ElLLT8ivGL+DX91FU6KjrQ3YeTWRoOhFmOrwYoix Qc1fyx8swmOiw== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Thu, 04 Jan 2024 10:18:59 +0100 From: Michael Walle To: Benjamin Bara Cc: Wolfram Sang , Lee Jones , Dmitry Osipenko , peterz@infradead.org, Tor Vic , Erhard Furtner , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Bara , stable@vger.kernel.org Subject: Re: [PATCH] i2c: core: Fix atomic xfer check for non-preempt config In-Reply-To: <20240104-i2c-atomic-v1-1-a3a186f21c36@skidata.com> References: <20240104-i2c-atomic-v1-1-a3a186f21c36@skidata.com> Message-ID: <1650596292790607a5739fa295fd259e@kernel.org> X-Sender: mwalle@kernel.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit > From: Benjamin Bara > > Since commit aa49c90894d0 ("i2c: core: Run atomic i2c xfer when > !preemptible"), the whole reboot/power off sequence on non-preempt > kernels > is using atomic i2c xfer, as !preemptible() always results to 1. > > During device_shutdown(), the i2c might be used a lot and not all > busses > have implemented an atomic xfer handler. This results in a lot of > avoidable noise, like: > > [ 12.687169] No atomic I2C transfer handler for 'i2c-0' > [ 12.692313] WARNING: CPU: 6 PID: 275 at drivers/i2c/i2c-core.h:40 > i2c_smbus_xfer+0x100/0x118 > ... > > Fix this by allowing non-atomic xfer when the interrupts are enabled, > as > it was before. > > Fixes: aa49c90894d0 ("i2c: core: Run atomic i2c xfer when > !preemptible") > Cc: stable@vger.kernel.org # v5.2+ > Signed-off-by: Benjamin Bara Tested-by: Michael Walle Thanks for the fix, if there will be a -rc9 this should definitely go in. -michael