Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp774472pxb; Fri, 22 Apr 2022 10:52:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysFnGkzb3zbMHnOsRrAedtAa6UqhjKSbNlVH97j+2t3iDU5efqoTjmMR6RIZvLMVx8zfRc X-Received: by 2002:a17:902:c215:b0:153:8d90:a108 with SMTP id 21-20020a170902c21500b001538d90a108mr5765713pll.172.1650649960815; Fri, 22 Apr 2022 10:52:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650649960; cv=none; d=google.com; s=arc-20160816; b=zOK5ADniW0fKNTydoHWk/XemczJhooeXXlDQvosjMNfuDulhxUgj6mqs8n4NCeVo3O f/aP3KiLNudK8eMAcddZiuvw27i4eRh90GEv45sUyd5aeGR0FM4ZMZ+w26M0YN3W5C43 ttM9W7g27ie+8grDV1CaJcTxLwno9wE4/A8XuS9AVbBbPyOfy6oTBi5mL3bp45oN4k7/ 2bsqzkKYi8/Ux+EMWAPjIK6H5oireRbPj4zYQrTP/4iPB1sT4S7cGTycZAaxUYUA0VjV VbgV6uZPIHoBqP5jTcyXiJ63kqMxSLvOpqDRRKNmxXrdW+rBUtzGTj4ggwNDCq0mk/HC OOlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dwoAMZ5QeMLklLZtGYNvpOdQbI7bSX2hW7iFA/OYWVE=; b=lUhE0NiZYFMUkVYe2Gp5wM4jYc7q69bs8wlPRz7r9JXzA7Q7EBbfaEgm9g7mc1N2C7 kqZ2czczSu5mgLfVK7j8/vv8E9JrpjZ0Sc2fgdms1ijbASE6CpPe9Ddujj+IcaYHgRBi pi6PvjrMlZEWia7ZER6PkVYKcs7z9XADJbR0J5UZV97byp+/9PTZUkhJb3EdX7HebSL5 XbL9HVGo4tu5spR4JZlNGSVyaDCSHbDcuW/yUbvq72Zt31GYID2JwERod/uHaVsuNaEp GT/GTOdluR4ll861pLhPd3oV9aaOTO+9Tblbnv81tJ5WH6A9+TJZXLD43tfWzieUsRGY 59Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pOlkMTGM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n6-20020a6543c6000000b003aa7f4f1a32si6786858pgp.588.2022.04.22.10.52.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 10:52:40 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pOlkMTGM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AD6CFD76CD; Fri, 22 Apr 2022 10:36:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376405AbiDTHwC (ORCPT + 99 others); Wed, 20 Apr 2022 03:52:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235722AbiDTHwC (ORCPT ); Wed, 20 Apr 2022 03:52:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B92B340E0; Wed, 20 Apr 2022 00:49:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 96CBC61902; Wed, 20 Apr 2022 07:49:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EC32C385A1; Wed, 20 Apr 2022 07:49:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650440955; bh=f//ddCb1kg1OUp3nBiyVRIMPPYnTIOUqEVT0YxYxFNY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pOlkMTGMogFALyUhAiodmRVJkTER+iPBmeuHteiMlxC8bXyAVLZqqCgaYPtpflvTC QS4Kd3pUP+RF7B2cyWw9fMkwf9ZqW8ZFLqE9m4BhKpFgQKwFpwNhzu42stTQdbacpX BRqOhbJ7X2mZ1wjgYIBxU59iBp4C8mUKdyJFZIKk= Date: Wed, 20 Apr 2022 09:49:13 +0200 From: Greg KH To: Dan Williams Cc: Tony Luck , Hans de Goede , markgross@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , X86 ML , "H. Peter Anvin" , Jonathan Corbet , Andy Shevchenko , "Joseph, Jithu" , "Raj, Ashok" , Steven Rostedt , Linux Kernel Mailing List , Linux Doc Mailing List , platform-driver-x86@vger.kernel.org, patches@lists.linux.dev, Ravi V Shankar Subject: Re: [PATCH v3 03/11] platform/x86/intel/ifs: Create device for Intel IFS (In Field Scan) Message-ID: References: <20220407191347.9681-1-jithu.joseph@intel.com> <20220419163859.2228874-1-tony.luck@intel.com> <20220419163859.2228874-4-tony.luck@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 19, 2022 at 03:28:26PM -0700, Dan Williams wrote: > On Tue, Apr 19, 2022 at 11:09 AM Dan Williams wrote: > > > > On Tue, Apr 19, 2022 at 9:48 AM Greg KH wrote: > > > > > > On Tue, Apr 19, 2022 at 09:38:51AM -0700, Tony Luck wrote: > > > > The initial implementation of IFS is model specific. Enumeration is > > > > via a combination of family-model-stepping and a check for a bit in the > > > > CORE_CAPABILITIES MSR. > > > > > > > > Linux has handled this lack of enumeration before with a code stub to > > > > create a device. See arch/x86/kernel/pmem.c. Use the same approach > > > > here. > > > > > > Ick, why? Why not just create a simple virtual device and use that? Do > > > you really want to bind a driver to this? Or do you already "know" the > > > only driver that you have will bind to this? > > > > With the realization that there may be multiple instances of an > > IFS-like capability going forward, and that ideally those capabilities > > would move away from a CPU capability bit to an ACPI description, then > > it seemed to me that a simulated platform_device for this is a > > reasonable fit. I.e. when / if an ACPI _HID is assigned for this > > capability the same platform_driver can be reused for those instances. > > Turns out the ACPI enumeration for this may not materialize, so this > can indeed move to a simple / driver-less device. Hey, see, doing extra work now was not a good idea :)