Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp894764pxp; Wed, 16 Mar 2022 20:28:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHUtELTr0ggqM/KklurpaIt14wMcj2jrH/pBnaKe30gD9CSIM9sbXbgPlsthMYCJ/AgBcG X-Received: by 2002:a63:4b1e:0:b0:365:8bc:6665 with SMTP id y30-20020a634b1e000000b0036508bc6665mr2069793pga.445.1647487703033; Wed, 16 Mar 2022 20:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647487703; cv=none; d=google.com; s=arc-20160816; b=J8NCjoworhkNtaGOSRFS2ST6Zr3qly0uUczjg+NjBxtHsyT7ZHytOXkEdCHWWGnuoo o234wehVjhrziW2zM7D2HfaQfmZZ3CV+wNqaGipUFl7LZynp29fg7Yo3lGFWHmI9L6Ja 9Y/xYp4BdJa0tPkqAlldosCusvVuaexRdig/2olcdTIfOwX0KOwXCkcnr3/59bH9bw5l +16uLSG3aTe17eJpuy1tYpzCUs+549ZeEbq7VAJOlJ2NnuVf66m7dFv97yAzY6YcSPPP FKLp8VwyWTLqs/qPTcEIs+qiPwjwZor2TtIcmnAGgqHPlXlzzPFQe8hwfUryZ1jktodf IjwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=L/3evLoiUxyduQgTRbFtXBiM1S258zVm+UJtnMloKak=; b=tLYGOOPH4A+8b27j2418onf0FtqlErURqoXPgEh4NviUJT1RGK0XKyuR58EpitcLh8 MsVZDTcgt2nc0ramPj4pJWtf4l8KVNHIPnE1uQmnV913JWtoFXIYtsTJExohPhMHDDG+ i5qyl7aF5mjwqNBGlhmWaIlj59avr2pSapoRVPCrR6MahT4gYROEsklj2jlr4PzJh1B+ cKuHu0JEzhgilwbu16gyIoDphTDUy7boyYPdivWCAArdJkykfEFFZdKxbl41dgvEz+oL FPZZfNfszQGIlz/u2JjXUyb0g5kObHOBFtYzqjXn4hHbRO7FobfQVHQuEANPcBeCOGP9 ayYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=0YcD70QC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h19-20020a63f913000000b003816043ee44si861917pgi.57.2022.03.16.20.28.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 20:28:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=0YcD70QC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BF250377D5; Wed, 16 Mar 2022 20:26:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349782AbiCOQKo (ORCPT + 99 others); Tue, 15 Mar 2022 12:10:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238095AbiCOQKm (ORCPT ); Tue, 15 Mar 2022 12:10:42 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84ECD42A3A for ; Tue, 15 Mar 2022 09:09:29 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id p8so20448449pfh.8 for ; Tue, 15 Mar 2022 09:09:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=L/3evLoiUxyduQgTRbFtXBiM1S258zVm+UJtnMloKak=; b=0YcD70QC0MgG+ea9Hyfe1KDOhrj7ONcEkvDRV6M9sMdA6lBfa3vlxGaB1+hzovZQOs nurK8WNaWNkB/vGSQtA4Lq31WE9AExhGngDlI+yUnN8qWySuU6IBhWONrdiHFdV6PG6B sbLG2d10zU9EuEgpQQ637mwVNaUrgXnqa/6yF3t6jaDhmTRw/xdLrWfPkJvFyDNuy3Xk WomPnsVYKvLH1B+xPE4kDOTzN85NvKrs+YT5dfMGxH9GSbsYL7HmtJwNrMD/6pGis5Js F89yrxdEhLffsaTI1cft4JLc1BxFIVR1hgR2KurWjoapaPEJuPPbvYpjO/lpEfCcpLue sU7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=L/3evLoiUxyduQgTRbFtXBiM1S258zVm+UJtnMloKak=; b=pp7sz5dQ4LKPOnN1HqxvTHebZNBqXqSmUMeamvmMYVzB1TCDJvywiya21pIVseXtrk dHcTukfAro3EcaoyZMGWqII96fbclOiAgMidP0Gcw/4e0QqEVsMWOimFONRxWF2cFwpo UYIr21cznUv0xw/Xgfmxpc560pIAeGFhXdmiWkoBlF9E+UIH1G6ZSobos3gZqhzIsybk dpDY9niKstQweGlUzNPCPDeBqDpfdhkvFGgt+bUgcV0srDl91ANPEBlILMzIy8lXqsn/ s8WZP1znFqN2nqZvqEJiwnQ9tjUg2WuMU1gQPR2AZS9qM+XM2d55xT3Qh52bvMKqFOba 30Xw== X-Gm-Message-State: AOAM530La2Vb4tQFbkKZI7Ip2uPDMsrbStQ/QVRSCepqd+G6lAwEWaXU 7UnEy+xyv8l+MF/OnvchP4J/QPdnJ8XCN3eu92c72g== X-Received: by 2002:a05:6a00:8ca:b0:4e0:2ed3:5630 with SMTP id s10-20020a056a0008ca00b004e02ed35630mr29577774pfu.3.1647360568827; Tue, 15 Mar 2022 09:09:28 -0700 (PDT) MIME-Version: 1.0 References: <20220301195457.21152-1-jithu.joseph@intel.com> In-Reply-To: From: Dan Williams Date: Tue, 15 Mar 2022 09:09:18 -0700 Message-ID: Subject: Re: [RFC 00/10] Introduce In Field Scan driver To: Greg KH Cc: "Luck, Tony" , "Joseph, Jithu" , "hdegoede@redhat.com" , "markgross@kernel.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "hpa@zytor.com" , "corbet@lwn.net" , "andriy.shevchenko@linux.intel.com" , "Raj, Ashok" , "rostedt@goodmis.org" , "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , "platform-driver-x86@vger.kernel.org" , "patches@lists.linux.dev" , "Shankar, Ravi V" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, Mar 15, 2022 at 9:04 AM Dan Williams wrote: > > On Tue, Mar 15, 2022 at 8:27 AM Greg KH wrote: > > > > On Tue, Mar 15, 2022 at 02:59:03PM +0000, Luck, Tony wrote: > > > >> This seems a novel use of uevent ... is it OK, or is is abuse? > > > > > > > > Don't create "novel" uses of uevents. They are there to express a > > > > change in state of a device so that userspace can then go and do > > > > something with that information. If that pattern fits here, wonderful. > > > > > > Maybe Dan will chime in here to better explain his idea. I think for > > > the case where the core test fails, there is a good match with uevent. > > > The device (one CPU core) has changed state from "working" to > > > "untrustworthy". Userspace can do things like: take the logical CPUs > > > on that core offline, initiate a service call, or in a VMM cluster environment > > > migrate work to a different node. > > > > Again, I have no idea what you are doing at all with this driver, nor > > what you want to do with it. > > > > Start over please. > > > > What is the hardware you have to support? > > > > What is the expectation from userspace with regards to using the > > hardware? > > Here is what I have learned about this driver since engaging on this > patch set. Cores go bad at run time. Datacenters can detect them at > scale. Tony pointed me to this video if you have not seen it: https://www.youtube.com/watch?v=QMF3rqhjYuM