| Message ID | 20241107131356.2796969-1-alexander.usyskin@intel.com |
|---|---|
| Headers | show
Return-Path:
<linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>
X-Original-To: incoming@patchwork.ozlabs.org
Delivered-To: patchwork-incoming@legolas.ozlabs.org
Authentication-Results: legolas.ozlabs.org;
dkim=pass (2048-bit key;
secure) header.d=lists.infradead.org header.i=@lists.infradead.org
header.a=rsa-sha256 header.s=bombadil.20210309 header.b=BdFnVCmr;
dkim=fail reason="signature verification failed" (2048-bit key;
unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256
header.s=Intel header.b=QnL5okzk;
dkim-atps=neutral
Authentication-Results: legolas.ozlabs.org;
spf=none (no SPF record) smtp.mailfrom=lists.infradead.org
(client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;
envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;
receiver=patchwork.ozlabs.org)
Received: from bombadil.infradead.org (bombadil.infradead.org
[IPv6:2607:7c80:54:3::133])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384)
(No client certificate requested)
by legolas.ozlabs.org (Postfix) with ESMTPS id 4XkjXW4F7mz1xyW
for <incoming@patchwork.ozlabs.org>; Fri, 8 Nov 2024 00:26:49 +1100 (AEDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=lists.infradead.org; s=bombadil.20210309; h=Sender:
Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:
List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc
:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:
Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:
List-Owner; bh=zzLJZwcRZW9A+GIuB3K65P4evrA1vxiab+jyjcxxonM=; b=BdFnVCmrhke9Zr
LlrvjxtsJoCDHWY4rk1vZfZu4Rha0Gx2NRwbfRulsYAgrC/wmF8wP0gtWzcabWLW+pdcKbDxcU2Ao
MgiIcInQcdkPy4KsTp3v3np8tcjgUBjKkJ/SLawkGahSoOdXu/YXABTQk8ojjy/TBCF03SkKt57ls
UYEEse44l9+GwMKY1RS1pgHnnVdV8Nbn7hbMXdPpJMu8KXQdZAPA3O+UB6u6o1O3iPHzMoQVCmSLl
BabJmhGTyCa0oc9C1J5e7lTOFh8sl94tNYz4mlOImxVNZVL7jDlisCZu5CDo9c2vbKEcxpHp7UQ7I
ttBhs9ehcMpoBKUq8PQw==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux))
id 1t92Wm-000000075JY-0Io2;
Thu, 07 Nov 2024 13:26:24 +0000
Received: from mgamail.intel.com ([192.198.163.12])
by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux))
id 1t92WM-0000000756i-16Sj
for linux-mtd@lists.infradead.org;
Thu, 07 Nov 2024 13:25:59 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
d=intel.com; i=@intel.com; q=dns/txt; s=Intel;
t=1730985958; x=1762521958;
h=from:to:cc:subject:date:message-id:mime-version:
content-transfer-encoding;
bh=uagjKtC12kGaC+BTqNdpDCd/i2XVgyCLnpN+l3FezaY=;
b=QnL5okzkEM5N4ffxrQUwSBrEDmof37RFf0iNOMIrWx5ei0Wg7zdfprX0
8lrL+jrJVOhMmQhPfqi7tyR8Giocv2iXLihb4ZkxYITyggkFGobNk1ChG
0FZi3ol8RV4HrmbG1XO/5D/5EKyitEszQ+vBJj09Ed2pRQxXOok+79eMm
ISX1kP+GNW9myz86vtWQ7Q7FQG2GBOJPFMxGNgEG+yp7MpIJtbh6LpDPO
cS7SOb2I6opAhD74ozje8cfgXNYg14ZEfgzxLlkKEt5CF+9ADGB6dD2Tq
/EE7/+gAyjMGoEKoemMCy0VI76iXNh3QKBN1uZnZU+GHlz77FR/L6APwM
w==;
X-CSE-ConnectionGUID: fOS2Gx6WRZCMxHqfW+Vfyg==
X-CSE-MsgGUID: W2VzK//USLeRFNGe5t8WzQ==
X-IronPort-AV: E=McAfee;i="6700,10204,11249"; a="34750687"
X-IronPort-AV: E=Sophos;i="6.12,266,1728975600";
d="scan'208";a="34750687"
Received: from orviesa005.jf.intel.com ([10.64.159.145])
by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
07 Nov 2024 05:25:54 -0800
X-CSE-ConnectionGUID: HVp9CwlkTHynF0nt3JWBsw==
X-CSE-MsgGUID: VbVMrnp3TB2Uzjo8b9i9pw==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="6.12,266,1728975600";
d="scan'208";a="89921611"
Received: from sannilnx-dsk.jer.intel.com ([10.12.231.107])
by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
07 Nov 2024 05:25:50 -0800
From: Alexander Usyskin <alexander.usyskin@intel.com>
To: Miquel Raynal <miquel.raynal@bootlin.com>,
Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com>,
Lucas De Marchi <lucas.demarchi@intel.com>,
=?utf-8?q?Thomas_Hellstr=C3=B6m?= <thomas.hellstrom@linux.intel.com>,
Rodrigo Vivi <rodrigo.vivi@intel.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Jani Nikula <jani.nikula@linux.intel.com>,
Joonas Lahtinen <joonas.lahtinen@linux.intel.com>,
Tvrtko Ursulin <tursulin@ursulin.net>
Cc: Oren Weil <oren.jer.weil@intel.com>,
linux-mtd@lists.infradead.org,
dri-devel@lists.freedesktop.org,
intel-gfx@lists.freedesktop.org,
linux-kernel@vger.kernel.org,
Alexander Usyskin <alexander.usyskin@intel.com>
Subject: [PATCH v2 00/10] mtd: add driver for Intel discrete graphics
Date: Thu, 7 Nov 2024 15:13:46 +0200
Message-ID: <20241107131356.2796969-1-alexander.usyskin@intel.com>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20241107_052558_323387_12622F9E
X-CRM114-Status: GOOD ( 12.14 )
X-Spam-Score: -4.7 (----)
X-Spam-Report: Spam detection software,
running on the system "bombadil.infradead.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: Add driver for access to Intel discrete graphics card
internal
NVM device. Expose device on auxiliary bus by i915 and Xe drivers and
provide
mtd driver to register this device with MTD framework. This is a rewrite
of "drm/i915/spi: spi access for discrete graphics" and "spi: add driver
for
Intel discrete graphics" series with connection to the Xe driver and
splitting
the spi driver part to sep [...]
Content analysis details: (-4.7 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
-2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/,
medium trust
[192.198.163.12 listed in list.dnswl.org]
0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to
Validity was blocked. See
https://knowledge.validity.com/hc/en-us/articles/20961730681243
for more information.
[192.198.163.12 listed in sa-accredit.habeas.com]
0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The
query to Validity was blocked. See
https://knowledge.validity.com/hc/en-us/articles/20961730681243
for more information.
[192.198.163.12 listed in
sa-trusted.bondedsender.org]
-0.0 SPF_PASS SPF: sender matches SPF record
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
-0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from
envelope-from domain
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
author's
domain
0.1 DKIM_SIGNED Message has a DKIM or DK signature,
not necessarily valid
-0.1 DKIM_VALID Message has at least one valid DKIM or DK
signature
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to
Validity was blocked. See
https://knowledge.validity.com/hc/en-us/articles/20961730681243
for more information.
[192.198.163.12 listed in
bl.score.senderscore.com]
-0.3 DKIMWL_WL_HIGH DKIMwl.org - High trust sender
X-BeenThere: linux-mtd@lists.infradead.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>
List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>,
<mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>
List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/>
List-Post: <mailto:linux-mtd@lists.infradead.org>
List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help>
List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>,
<mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org>
Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org
|
| Series |
mtd: add driver for Intel discrete graphics
|
expand
|
Hello Alexander, On 07/11/2024 at 15:13:46 +02, Alexander Usyskin <alexander.usyskin@intel.com> wrote: > Add driver for access to Intel discrete graphics card > internal NVM device. > Expose device on auxiliary bus by i915 and Xe drivers and > provide mtd driver to register this device with MTD framework. > > This is a rewrite of "drm/i915/spi: spi access for discrete graphics" > and "spi: add driver for Intel discrete graphics" > series with connection to the Xe driver and splitting > the spi driver part to separate module in mtd subsystem. > > This series intended to be pushed through drm-xe-next. Overall the mtd bits look fine, I don't want to block this series further so you can add on the mtd patches my Acked-by: Miquel Raynal <miquel.raynal@bootlin.com> Thanks, Miquèl
Add driver for access to Intel discrete graphics card internal NVM device. Expose device on auxiliary bus by i915 and Xe drivers and provide mtd driver to register this device with MTD framework. This is a rewrite of "drm/i915/spi: spi access for discrete graphics" and "spi: add driver for Intel discrete graphics" series with connection to the Xe driver and splitting the spi driver part to separate module in mtd subsystem. This series intended to be pushed through drm-xe-next. V2: Replace dev_* prints with drm_* prints in drm (xe and i915) patches. Enable NVM device on Battlemage HW (xe driver patch) Fix overwrite register address (xe driver patch) Add Rodrigo's r-b Alexander Usyskin (10): mtd: add driver for intel graphics non-volatile memory device mtd: intel-dg: implement region enumeration mtd: intel-dg: implement access functions mtd: intel-dg: register with mtd mtd: intel-dg: align 64bit read and write mtd: intel-dg: wake card on operations drm/i915/nvm: add nvm device for discrete graphics drm/i915/nvm: add support for access mode drm/xe/nvm: add on-die non-volatile memory device drm/xe/nvm: add support for access mode MAINTAINERS | 7 + drivers/gpu/drm/i915/Makefile | 4 + drivers/gpu/drm/i915/i915_driver.c | 6 + drivers/gpu/drm/i915/i915_drv.h | 3 + drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_nvm.c | 117 ++++ drivers/gpu/drm/i915/intel_nvm.h | 15 + drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/regs/xe_gsc_regs.h | 4 + drivers/gpu/drm/xe/xe_device.c | 3 + drivers/gpu/drm/xe/xe_device_types.h | 8 + drivers/gpu/drm/xe/xe_heci_gsc.c | 5 +- drivers/gpu/drm/xe/xe_nvm.c | 130 ++++ drivers/gpu/drm/xe/xe_nvm.h | 15 + drivers/gpu/drm/xe/xe_pci.c | 6 + drivers/mtd/devices/Kconfig | 11 + drivers/mtd/devices/Makefile | 1 + drivers/mtd/devices/mtd-intel-dg.c | 841 ++++++++++++++++++++++++++ include/linux/intel_dg_nvm_aux.h | 27 + 19 files changed, 1201 insertions(+), 4 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_nvm.c create mode 100644 drivers/gpu/drm/i915/intel_nvm.h create mode 100644 drivers/gpu/drm/xe/xe_nvm.c create mode 100644 drivers/gpu/drm/xe/xe_nvm.h create mode 100644 drivers/mtd/devices/mtd-intel-dg.c create mode 100644 include/linux/intel_dg_nvm_aux.h