Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1440964pxb; Thu, 4 Feb 2021 13:05:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJx9CjnRJfS80XBYB7bk9CG8PJqXMfn7iQsKoSAvgKM4NTxZg3WOvN3wN/h58Xaslc7S3pe+ X-Received: by 2002:a05:6402:1342:: with SMTP id y2mr469945edw.105.1612472732371; Thu, 04 Feb 2021 13:05:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612472732; cv=none; d=google.com; s=arc-20160816; b=zbE+mGaGImxduyFe7xP9nCeyfgkIz8uWGu5BvGRSLZpTx+qrPggS81Dn4Og2za2iR+ oLLARxFd80WzU3iRhQ8rh2z7e251o95nKu1uG00VLNtHDGAw+6JJSqAG3panvO6voquD +4smEs3oMbMuN25UwsopM/yBJukm7vofAFadBUY4kkhFckOKzVlzMy68fR/YJCWyyNPz hYXR0CUyLqn0rrWeY9lXD1nldmgK/hUZkPvyS/Cozg/dgg5nZ8kJ/OsNUEbf7oY5pz+n xGRkU/rvrvNLkYTF4NpWpGetXE/K+KZiImTuz7tkIKgvwxSWtBsF8wiqozdmyohMgb7A huyg== 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=3s/yIzssAJEogX8QL3PckAQf7VpPhtvWTp1CrCg9cJI=; b=r4i5e6TlLPui6ujnojjuavFO275Dk5bjry3woJBcJS3MMdamym2IBVUdyePy/29cKa jGfG7GvUY3+v9SECHYR6bWizwrBZXhbXQoyjZ6drngEcGDidY2Rt83HmEur2wF6AUrIS n6oXJXNVw7Bt2u7OFLzaKUuy/Cbo68LYbOHlKEEMzIXrqElLggIl96XoEfIWBFxrlHsa w2dc/Tr0hxQHPla63GM/6OaEGhi74V/8TZqvnqMckCt939JD2pdwrXGAR7L7wuNcvRwP iLIealDJiHU9D8fsccV2LggvIz2J/hF3wGKK0jSS9qfmDBwhBH4qA8b5RYYkXLneKiuz BQuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=LVKt1Jlg; 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 l26si1743479eje.14.2021.02.04.13.05.07; Thu, 04 Feb 2021 13:05:32 -0800 (PST) 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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=LVKt1Jlg; 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 S229611AbhBDVCZ (ORCPT + 99 others); Thu, 4 Feb 2021 16:02:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbhBDVCR (ORCPT ); Thu, 4 Feb 2021 16:02:17 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6963C061786 for ; Thu, 4 Feb 2021 13:01:36 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id w1so7867850ejf.11 for ; Thu, 04 Feb 2021 13:01:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3s/yIzssAJEogX8QL3PckAQf7VpPhtvWTp1CrCg9cJI=; b=LVKt1Jlg3viOJCnY9KgBaZrpObq3g8tFou+0PefdJnZLo6tvXDeCkMkUhDvJZ07B3g lTidacUKRZ1vCypk6VTJ5SuTfea3fUaMCdK9Bv8rmr6R/sOHmhRwtZrtxrUoWAo4absE m9RM2D02QLapaVpgAI6iyiLk48DoxHPiWNys7RIl+4fPi1YAqxCWWyoaOecXPrIHAXZ5 hDIRSUEeOz0OSO+pSEfJ1sf+M5TKBhUA6UHdbSMVd+l+GXCRHLNVE3q7aTpK8zJkluMT hfc+Jgi+5RjaJX8OAeCcCvAxwMeDCMboKnHsWrWkYRtZq15chxB+vgbbT3QWMcyKsf6M lkKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3s/yIzssAJEogX8QL3PckAQf7VpPhtvWTp1CrCg9cJI=; b=c+/zI+TmUefZSz2V663ZDehTvQcqSeC3dGLJPeJ8wyun5sS1EaipW265dV56YNgeLc QiFQD2TpnCx1a3NPj0DSJ4SmX/A/wxP5txMWQaTXdKJdgufRwL7is0LRoHEj8tTaXCZy DpxSm1QZndQjHnQtLyuJ5BZ0XPTZc3Dt2zZwLMd8jYaDiqJkWLTxfnapB+7CEw2Mwh0W XA5kRfZbrZp0dP26CZNUULuYHmz0Y0XbakHavAJqcd4WZYOh6832mEQbycr1/nonToZ6 CSdWWEoNSU/9PiLZwmsj5EzkkS97sCubuQyEby2E2pCjBKCSkyrxwkRSaDSfkpW7DTbu l4yw== X-Gm-Message-State: AOAM530yY2zeoUWQe+k0zahLPCt6ZvsE3ktP3Q2YwEzKSv5ROjEBsjxy exYzJEgZO6o661kV/Kg7LzoVeFk6JRD0zWe4SAqmwQ== X-Received: by 2002:a17:906:d8a1:: with SMTP id qc1mr920058ejb.523.1612472495097; Thu, 04 Feb 2021 13:01:35 -0800 (PST) MIME-Version: 1.0 References: <20210130002438.1872527-1-ben.widawsky@intel.com> <20210130002438.1872527-14-ben.widawsky@intel.com> <20210201182848.GL197521@fedora> <20210202235103.v36v3znh5tsi4g5x@intel.com> <20210203171610.2y2x4krijol5dvkk@intel.com> <20210204185540.oxwurggwd7a37a2o@intel.com> In-Reply-To: <20210204185540.oxwurggwd7a37a2o@intel.com> From: Dan Williams Date: Thu, 4 Feb 2021 13:01:35 -0800 Message-ID: Subject: Re: [PATCH 13/14] cxl/mem: Add limited Get Log command (0401h) To: Ben Widawsky Cc: Konrad Rzeszutek Wilk , linux-cxl@vger.kernel.org, Linux ACPI , Linux Kernel Mailing List , linux-nvdimm , Linux PCI , Bjorn Helgaas , Chris Browy , Christoph Hellwig , Ira Weiny , Jon Masters , Jonathan Cameron , Rafael Wysocki , Randy Dunlap , Vishal Verma , daniel.lll@alibaba-inc.com, "John Groves (jgroves)" , "Kelley, Sean V" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 4, 2021 at 10:56 AM Ben Widawsky wrote: [..] > It actually got pushed into cxl_mem_raw_command_allowed() > > static bool cxl_mem_raw_command_allowed(u16 opcode) > { > int i; > > if (!IS_ENABLED(CONFIG_CXL_MEM_RAW_COMMANDS)) > return false; > > if (security_locked_down(LOCKDOWN_NONE)) > return false; > > if (raw_allow_all) > return true; > > if (is_security_command(opcode)) > return false; > > for (i = 0; i < ARRAY_SIZE(disabled_raw_commands); i++) > if (disabled_raw_commands[i] == opcode) > return false; > > return true; > } > > That work for you? Looks good to me.