Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1051890pxa; Fri, 28 Aug 2020 02:11:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYZdp2y3Qrclxuh5PtA6s4BH1aTMLYFbxGg9n+yu7EHQ63W07+fDsGNbhQIXlLNnti2K9Y X-Received: by 2002:aa7:c60c:: with SMTP id h12mr840546edq.42.1598605917307; Fri, 28 Aug 2020 02:11:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598605917; cv=none; d=google.com; s=arc-20160816; b=nvOvAFN1+APSzzGp/jj1f/i8n8kpMgmkeI7EnPln/zakobO//p7bYQq7HuJCaw7w6G 05yMyq+Vbw8WNZTIAtOgz6GK100o7t1BuI0yX3iGNnzFb83ry39DC25F75TIBqqcX6tC 2ap5QSrxdgsSzifAV16asCMTEA2YcXWhA88j55/H9EwbiCW62V+8YyAEpDDs0YD68Arz +n3UISGuVxaeT7uAznnAhClzhX/w2Jg6wBG++P6QFhKq+kRSriCIwoBnEHxqGe/fuH0h m000awjlAFtEDzrg8wWSUQq92um5dtFi0ybIoHbhW4muOqo9+4hoczQGasSbF/VtcJ3q Upkw== 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 :ironport-sdr:ironport-sdr; bh=QLhmblKne54iPY3sorZhaBDnXM+EZiH7C1fk34Le9Pw=; b=rcfadQxwm6kQTP5Qw+DmEofFKdmFVmtwinJ34ITFg8FIikW+KBpkgEJ6pAz3yQaZnL UWPvPvwmWAF116WlVg7JCzX1EEes4sxgEuzPO4IFlNqswzrKWhLOpnI/OtGZtGSiES9v 7JpKd0JDfMd7WNk6qzG1X+zzlm+Rye3VyoS/bgKR+VV+jyA/z4suzbVaw2FHQmdN7XOv vlMNpZib3ikt1SmPk7fBokVFR1feTgeMgEUFOF63pYvnKMmMgzI3X8g1D5Z9NBQ2fNPh xt2lZ8yqGcSpoHobsBnVH2KYHoidBN27XIwm0llH0hBV37ryM+n7gbAUzfVsEehLClRM C2lA== ARC-Authentication-Results: i=1; mx.google.com; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs18si220619ejb.634.2020.08.28.02.11.34; Fri, 28 Aug 2020 02:11:57 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728827AbgH1JIx (ORCPT + 99 others); Fri, 28 Aug 2020 05:08:53 -0400 Received: from mga07.intel.com ([134.134.136.100]:32332 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728556AbgH1JIw (ORCPT ); Fri, 28 Aug 2020 05:08:52 -0400 IronPort-SDR: L8a78WkmjigQ90vn0e3dLlOoEZMGcfIDSxjEaEpGFTfkIh/CcyRC7hqC9Nnj9T0ScASL8K4diR A5sVNt9Zi8MQ== X-IronPort-AV: E=McAfee;i="6000,8403,9726"; a="220882682" X-IronPort-AV: E=Sophos;i="5.76,363,1592895600"; d="scan'208";a="220882682" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Aug 2020 02:08:38 -0700 IronPort-SDR: A5E330doqR0ANFgd8uqrSRaKrCDQfRcDXTne+VNDyJh2zNQDw0hmFE2L/z7xl+bH71iSO0N1T2 lZkNXOb/uPcA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,363,1592895600"; d="scan'208";a="403696200" Received: from kuha.fi.intel.com ([10.237.72.162]) by fmsmga001.fm.intel.com with SMTP; 28 Aug 2020 02:08:33 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Fri, 28 Aug 2020 12:08:32 +0300 Date: Fri, 28 Aug 2020 12:08:32 +0300 From: Heikki Krogerus To: Greg Kroah-Hartman Cc: Rajmohan Mani , Darren Hart , Andy Shevchenko , Mika Westerberg , Dmitry Torokhov , Lee Jones , Ayman Bagabas , Masahiro Yamada , Jithu Joseph , =?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: <20200828090832.GB174928@kuha.fi.intel.com> References: <20200822040508.23510-1-rajmohan.mani@intel.com> <20200822040508.23510-2-rajmohan.mani@intel.com> <20200828074359.GC942935@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200828074359.GC942935@kroah.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. thanks, -- heikki