Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1701004pxa; Fri, 28 Aug 2020 23:28:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+s5VxV5LM/6k+7u2Yx3Za1MHNIuSn9PIJl3iSh84Z5fJvIdeyT+zZVOX0MQNq5YF7cLUP X-Received: by 2002:a17:906:e0c2:: with SMTP id gl2mr2266935ejb.160.1598682513857; Fri, 28 Aug 2020 23:28:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598682513; cv=none; d=google.com; s=arc-20160816; b=kjXYHHDnmnzUSsp6SmWe/1Ob7QFg/sLbUg2HTTPMpdIc34z+g5r1o/RNoJaTuM38P3 HdfT+DBQUZs7HbQNYGhdU0yywFhhFuJZtii4rVoHPe1pThvcQZcsLdHDFfgJQPm8cxyB dcYHWju135mHNBcYgpuz6Q7VQDennTw4+pdkXI1cptdaOc3qAH4rnGdFqkHOOpbN1txh yCbrPpVx/LvL4imWRq7gnwflTV/09Pq81hPFW3Eb8GRirpkc4QZCU3OO5tuGXBMKOTeF 2ikfge5f74meNSEGXplLAUZI+f3KQoZ4S8gBq0fTHfTHKney5x1KKT7Soin2jcg1aRnH ACKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3GxQtHQr/1N3a0e6bn0tTWgun7EaMNwInymFzL90nHY=; b=kW8VdfvkUX1E5UN6sQ3WF282lv+9htmu+Orfiu6hkrERJCvHwmQHDT4CyBKTTw3zkM ZVOh7asmEGYAJsAnC59rORstxn2XSLgiVn9WT9dln06jvkOffSLJi3a7Gjf3whnEnRCp uQaFtJQm1srmpKDnnI82fV9NBnDqK/vy0sgG8KCg4Lvzchlp4KH1AHT1NcuDERcGqUVo zNeVrsCGiz1FZTrhmKrFN0ccDd+L5f2xibocoFQaF7qoo8Gcy48tB3Z5/cjc290xafyJ qv5vmPcPFYpvqQt3ZsHTFbk5dUeHon9KMDqADiWI4sEv2QbkRcRl/Yf69qx1EikzI54Z TwSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oyZgoHlz; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q23si969894eju.181.2020.08.28.23.28.11; Fri, 28 Aug 2020 23:28:33 -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=@kernel.org header.s=default header.b=oyZgoHlz; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726310AbgH2G1X (ORCPT + 99 others); Sat, 29 Aug 2020 02:27:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:58030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725886AbgH2G1X (ORCPT ); Sat, 29 Aug 2020 02:27:23 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A177E20936; Sat, 29 Aug 2020 06:27:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598682442; bh=nmPv6vDLuaeXHEYBEjQxMedQhS6gWik2Zx2Xfd6Z2rs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oyZgoHlz2pgoYTLWrnFmo74kMioGJkgPCP1NRq+fVd7PJUqXibhyxvSyKSumdkiDE 9aqwGIuCeubslJ3WGVgY6u/TH/7Tj7Gd+q1D+d+ra0jFquK6gPaPj4p/p0733JprTB EH3rYPFsdo73/1bCtWAn+jU8J24hIHG9zROoeHA8= Date: Sat, 29 Aug 2020 08:27:19 +0200 From: Greg Kroah-Hartman To: "Mani, Rajmohan" Cc: Heikki Krogerus , Darren Hart , Andy Shevchenko , Mika Westerberg , Dmitry Torokhov , Lee Jones , Ayman Bagabas , Masahiro Yamada , "Joseph, Jithu" , =?utf-8?B?Qmxhxb4=?= Hrastnik , Srinivas Pandruvada , "linux-kernel@vger.kernel.org" , "platform-driver-x86@vger.kernel.org" , "linux-usb@vger.kernel.org" , "pmalani@chromium.org" , "bleung@chromium.org" Subject: Re: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager (IOM) driver Message-ID: <20200829062719.GA80106@kroah.com> References: <20200822040508.23510-1-rajmohan.mani@intel.com> <20200822040508.23510-2-rajmohan.mani@intel.com> <20200828074359.GC942935@kroah.com> <20200828090832.GB174928@kuha.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 28, 2020 at 03:20:22PM +0000, Mani, Rajmohan wrote: > Hi Greg, > > > Subject: Re: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager > > (IOM) driver > > > > Hi Greg, > > > > On Fri, Aug 28, 2020 at 09:43:59AM +0200, Greg Kroah-Hartman wrote: > > > I still find this crazy that a whole separate driver is created just > > > to read a single 32bit value. > > > > > > Why not put this logic in the driver that wants to read that value? > > > That would be much simpler, smaller, and more obvious. > > > > That would mean that we start maintaining something like DMI quirk table in > > those drivers. Unfortunately the IOM device is not available on every platform. > > Also, even on platforms that do have it, there is no guarantee that the device is > > always going to be mapped to the same address. > > > > Nevertheless, I was originally hoping that we could hide the handling of IOM > > somehow in ACPI without the need for an actual device object, but it now > > turns out that the other features of the IOM chip have created interest. At > > least our i915 guys probable have some use for it (I don't know exactly what > > they are planning to use it for). > > > > So the fact that we may later need the device for something else, on top of the > > clumsiness and most importantly risks involved with using ACPI to take care of > > extra tasks (ASL tends to have bugs - bugs that may never ever get fixed), I > > think the IOM device object, and the driver that binds to it, do have a valid > > reason for existing. > > > > Intel PMC USB mux device is part of the PCH, while IOM is part of the SoC. I have no idea what a "PCH" is, what "IOM" is, and how any of this relates to a "SoC" :) Don't impose arbritrary hardware "splits" to kernel code when the kernel has no such "partitioning" please. > This was another reason we had to have a separate ACPI device. That sounds like a firmware issue you can solve in UEFI. I think this is the most TLA-laden email I have ever written, and I used to work at IBM :) greg k-h