Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2977722pxj; Sun, 23 May 2021 17:41:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4AMQWT3AhrUdZEuxfesy4P8q/JyT+QLmsqAUVO4DL4rL/vjuHPWIYxgghNlQWuUqMOc2d X-Received: by 2002:a92:2907:: with SMTP id l7mr12912565ilg.64.1621816910331; Sun, 23 May 2021 17:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621816910; cv=none; d=google.com; s=arc-20160816; b=Tn0CpOE4GWoWbjM1a2WQI3qcAgvwilG+SJCjSg4/8JoNfUi5uONNwIaGE6KtS5OL8L Zb2LM32/+LN59QDONg5kExnPD1qQ6SGpGNxvkeEoW9Z6cfX9XT1Ji0qif00KwVUkmnZZ qFmEVEkWPm68Z7CEQF/u1VKEQyshviDBICSkwGx6iFVPded/3bJDPnl7cMO43Jc+Tk2U i6W2z+PG0blH9bpmFffpWZxUdTwjJYnlFbDPaSKpeWh/CzuIdsjcvaBWDKIh6wElwQyk LrQNeiyI8T2beFIeIGKbANILDcgE7BsWvt8S6cr3k+bHab9JWkIEiPM8vo1LTabnPsFF iNRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:dkim-signature:dkim-signature; bh=5sJHMuDvNvV7pHRcupj6QN39aMOCxdcKSDsfy4XDr6I=; b=0alqu5JYHwLO4BKx3FXulAnafUY4C2kTxQWpv1o3NT2My74inR68JFoZiRWxqMVf1h ptqsqAQk6St7cqqG1pEWcuhVK8f4aGo6pNPaT3UHEw2TwSzOjsMVdWbxSK6OV/vwDJeh k7P5qPW9dlhZfQHjVZGllle3byfJD19Ynnn1r7vJT/veajEjwm1DaYqnsEFrKWie3pKx acp8ee3eeqedIR+jI4sEJiVhNzWNFSSyxL/XB2GBNgVEs14066AVF5jjMfRMQdbJWJF7 d3qEszRVMOT8MmWFdXZaHaWN9p/d6+0AIpjriW2WSji9yVCbUthTqEG3tewJWByD1BLw blRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm2 header.b=ojua7Mlz; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=WKANcriZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t3si11632409jaj.67.2021.05.23.17.41.37; Sun, 23 May 2021 17:41:50 -0700 (PDT) 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=@aj.id.au header.s=fm2 header.b=ojua7Mlz; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=WKANcriZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232070AbhEXAl0 (ORCPT + 99 others); Sun, 23 May 2021 20:41:26 -0400 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:53247 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232050AbhEXAlZ (ORCPT ); Sun, 23 May 2021 20:41:25 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 30FAF5803CE; Sun, 23 May 2021 20:39:58 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute3.internal (MEProxy); Sun, 23 May 2021 20:39:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm2; bh=5sJHMuDvNvV7pHRcupj6QN39aMOCxdc KSDsfy4XDr6I=; b=ojua7Mlz3qgeIZbbZumpj7T7jyN+s55eFPhuStyBHdgk/CV wo5DiB1u8wBL6CVKfMRYijetTBDzvIPZ3TgakzOM8T5dpHNbhQ5sWLY4hhxvRjrD mwOTpof5nzRyKtetT6YiGDzT04LCO7GWLrWBRTHluKPVv/Nu+JwbRiS2Cfv/EDQ7 947/GGP6Lk4Z6/KL30TLuG0lPZ7pUwsrjWPjfm0N8dHfIJbiiwL0GmNiFvwlu1Y2 P7+KgcSLLf5RHrokkLWhWWS2Y475TX4oVCqo9fG7WzQxMnqMVhz1OxjeTu66IH7T qeY8y25pR3e28l4+jkH3aTE4Qimn9V6CgIqFbYA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=5sJHMu DvNvV7pHRcupj6QN39aMOCxdcKSDsfy4XDr6I=; b=WKANcriZt27VBFBijYR5F1 1550UhiqtynvZmOvUbdRSZsJyXl8TAC9JYHKdMblZZpfLYMupncWt2UBq13Ia787 GjcSR4YTbrp+O8Tu/A1uPJcvq6hmhUloepfkcQ1EsZDnpy+rx2NWcH/iv5kHsII8 Se2MMfEE0QDHDb28tDqhBU8hZGUPbYurDaLbRQ2HVnubfO6xtC/sdUpQWPIXo0mH H6NKiAFDOcFGwXIwzxrPPq9xIJCBS8ZhTvYqjuWjLZx4kR1YI/nakEjIXxFNfssn Ex7y3VM3gDSiYCTjnuwR5Ix9pkBo6PUr00vAGJJ1CGY6dAl/uadeYFIm4yqxGfAw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdejkedgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreerjeenucfhrhhomhepfdetnhgu rhgvficulfgvfhhfvghrhidfuceorghnughrvgifsegrjhdrihgurdgruheqnecuggftrf grthhtvghrnhepuddttdekueeggedvtddtueekiedutdfguedutdefieeuteefieelteet vddthfeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvgifsegrjhdrihgurdgruh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 06E6DA004B1; Sun, 23 May 2021 20:39:55 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-448-gae190416c7-fm-20210505.004-gae190416 Mime-Version: 1.0 Message-Id: <0ea513bc-f8c8-43c5-969f-b9db9fdb15d7@www.fastmail.com> In-Reply-To: <20210521173007.GJ2921206@minyard.net> References: <20210510054213.1610760-1-andrew@aj.id.au> <20210510054213.1610760-11-andrew@aj.id.au> <20210521173007.GJ2921206@minyard.net> Date: Mon, 24 May 2021 10:09:22 +0930 From: "Andrew Jeffery" To: "Corey Minyard" Cc: openipmi-developer@lists.sourceforge.net, openbmc@lists.ozlabs.org, devicetree@vger.kernel.org, "Tomer Maimon" , linux-aspeed@lists.ozlabs.org, "Avi Fishman" , "Patrick Venture" , linux-kernel@vger.kernel.org, "Tali Perry" , "Rob Herring" , "Chia-Wei, Wang" , linux-arm-kernel@lists.infradead.org, "Benjamin Fair" , "Arnd Bergmann" , "Zev Weiss" Subject: =?UTF-8?Q?Re:_[PATCH_v3_10/16]_ipmi:_kcs=5Fbmc:_Don't_enforce_single-ope?= =?UTF-8?Q?n_policy_in_the_kernel?= Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 22 May 2021, at 03:00, Corey Minyard wrote: > On Mon, May 10, 2021 at 03:12:07PM +0930, Andrew Jeffery wrote: > > Soon it will be possible for one KCS device to have multiple associated > > chardevs exposed to userspace (for IPMI and raw-style access). However, > > don't prevent userspace from: > > > > 1. Opening more than one chardev at a time, or > > 2. Opening the same chardev more than once. > > > > System behaviour is undefined for both classes of multiple access, so > > userspace must manage itself accordingly. > > I don't understand why you want to allow this. If the second open won't > work right, then why allow it? Why remove code that causes the second > open to error? Really I was just shifting the problem to userspace so it wasn't something I needed to address in the kernel. It seems I'm alone in thinking this is a good idea, as yourself, Zev, William and Joel (privately) have pushed back against it. Initially the idea was tied up in how I was doing some interrupt handling, but in revising the code that problem has gone away. I'll just drop this patch and save everyone the heartburn of arguing about it :) Andrew