From: Tomas Winkler <tomas.winkler@intel.com> To: Miquel Raynal <miquel.raynal@bootlin.com>, Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com>, Jani Nikula <jani.nikula@linux.intel.com>, Joonas Lahtinen <joonas.lahtinen@linux.intel.com>, Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Alexander Usyskin <alexander.usyskin@intel.com>, Vitaly Lubart <vitaly.lubart@intel.com>, linux-mtd@lists.infradead.org, intel-gfx@lists.freedesktop.org, Tomas Winkler <tomas.winkler@intel.com> Subject: [RFC PATCH 00/10 v2] drm/i915/spi: discrete graphics internal spi Date: Mon, 8 Mar 2021 08:27:38 +0200 [thread overview] Message-ID: <20210308062748.208017-1-tomas.winkler@intel.com> (raw) Intel discrete graphic devices have internal spi storage, that holds firmware and oprom images. The spi device is exposed to the user space via mtd framework to be accessed during manufacturing. The device is hardware locked after manufacturing and only read access is provided. The i915 plays role of a multi function device (mfd) and spi device is exposed as its child device. i915_spi platform driver binds to this device. Because the graphic card may undergo reset at any time and basically hot unplug all its child devices, this series also provides a fix to the mtd framework to make the reset graceful. V2: 1. Adding separate Makefile for i915_spi module 2. Adding MAINTAINERS entry 3. Addressing other small comments 4. Haven't got comments from the MTD maintainers so just resending the patch. Tomas Winkler (10): drm/i915/spi: add spi device for discrete graphics drm/i915/spi: intel_spi_region map drm/i915/spi: add driver for on-die spi device drm/i915/spi: implement regions enumeration drm/i915/spi: implement spi access functions drm/i915/spi: spi register with mtd drm/i915/spi: mtd: implement access handlers drm/i915/spi: serialize spi access MAINTAINERS: add Intel i915 spi driver entry mtd: use refcount to prevent corruption MAINTAINERS | 11 + drivers/gpu/drm/i915/Kconfig | 3 + drivers/gpu/drm/i915/Makefile | 4 + drivers/gpu/drm/i915/i915_drv.c | 7 + drivers/gpu/drm/i915/i915_drv.h | 4 + drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/spi/Kconfig | 17 + drivers/gpu/drm/i915/spi/Makefile | 7 + drivers/gpu/drm/i915/spi/i915_spi.c | 675 +++++++++++++++++++++++++++ drivers/gpu/drm/i915/spi/intel_spi.c | 49 ++ drivers/gpu/drm/i915/spi/intel_spi.h | 22 + drivers/mtd/mtdcore.c | 64 ++- drivers/mtd/mtdcore.h | 1 + drivers/mtd/mtdpart.c | 13 +- include/linux/mtd/mtd.h | 2 +- 15 files changed, 848 insertions(+), 32 deletions(-) create mode 100644 drivers/gpu/drm/i915/spi/Kconfig create mode 100644 drivers/gpu/drm/i915/spi/Makefile create mode 100644 drivers/gpu/drm/i915/spi/i915_spi.c create mode 100644 drivers/gpu/drm/i915/spi/intel_spi.c create mode 100644 drivers/gpu/drm/i915/spi/intel_spi.h -- 2.26.2 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
WARNING: multiple messages have this Message-ID (diff)
From: Tomas Winkler <tomas.winkler@intel.com> To: Miquel Raynal <miquel.raynal@bootlin.com>, Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com>, Jani Nikula <jani.nikula@linux.intel.com>, Joonas Lahtinen <joonas.lahtinen@linux.intel.com>, Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: linux-mtd@lists.infradead.org, intel-gfx@lists.freedesktop.org, Tomas Winkler <tomas.winkler@intel.com>, Alexander Usyskin <alexander.usyskin@intel.com>, Vitaly Lubart <vitaly.lubart@intel.com> Subject: [Intel-gfx] [RFC PATCH 00/10 v2] drm/i915/spi: discrete graphics internal spi Date: Mon, 8 Mar 2021 08:27:38 +0200 [thread overview] Message-ID: <20210308062748.208017-1-tomas.winkler@intel.com> (raw) Intel discrete graphic devices have internal spi storage, that holds firmware and oprom images. The spi device is exposed to the user space via mtd framework to be accessed during manufacturing. The device is hardware locked after manufacturing and only read access is provided. The i915 plays role of a multi function device (mfd) and spi device is exposed as its child device. i915_spi platform driver binds to this device. Because the graphic card may undergo reset at any time and basically hot unplug all its child devices, this series also provides a fix to the mtd framework to make the reset graceful. V2: 1. Adding separate Makefile for i915_spi module 2. Adding MAINTAINERS entry 3. Addressing other small comments 4. Haven't got comments from the MTD maintainers so just resending the patch. Tomas Winkler (10): drm/i915/spi: add spi device for discrete graphics drm/i915/spi: intel_spi_region map drm/i915/spi: add driver for on-die spi device drm/i915/spi: implement regions enumeration drm/i915/spi: implement spi access functions drm/i915/spi: spi register with mtd drm/i915/spi: mtd: implement access handlers drm/i915/spi: serialize spi access MAINTAINERS: add Intel i915 spi driver entry mtd: use refcount to prevent corruption MAINTAINERS | 11 + drivers/gpu/drm/i915/Kconfig | 3 + drivers/gpu/drm/i915/Makefile | 4 + drivers/gpu/drm/i915/i915_drv.c | 7 + drivers/gpu/drm/i915/i915_drv.h | 4 + drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/spi/Kconfig | 17 + drivers/gpu/drm/i915/spi/Makefile | 7 + drivers/gpu/drm/i915/spi/i915_spi.c | 675 +++++++++++++++++++++++++++ drivers/gpu/drm/i915/spi/intel_spi.c | 49 ++ drivers/gpu/drm/i915/spi/intel_spi.h | 22 + drivers/mtd/mtdcore.c | 64 ++- drivers/mtd/mtdcore.h | 1 + drivers/mtd/mtdpart.c | 13 +- include/linux/mtd/mtd.h | 2 +- 15 files changed, 848 insertions(+), 32 deletions(-) create mode 100644 drivers/gpu/drm/i915/spi/Kconfig create mode 100644 drivers/gpu/drm/i915/spi/Makefile create mode 100644 drivers/gpu/drm/i915/spi/i915_spi.c create mode 100644 drivers/gpu/drm/i915/spi/intel_spi.c create mode 100644 drivers/gpu/drm/i915/spi/intel_spi.h -- 2.26.2 _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next reply other threads:[~2021-03-08 6:30 UTC|newest] Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-03-08 6:27 Tomas Winkler [this message] 2021-03-08 6:27 ` [Intel-gfx] [RFC PATCH 00/10 v2] drm/i915/spi: discrete graphics internal spi Tomas Winkler 2021-03-08 6:27 ` [RFC PATCH 01/10 v2] drm/i915/spi: add spi device for discrete graphics Tomas Winkler 2021-03-08 6:27 ` [Intel-gfx] " Tomas Winkler 2021-03-08 6:27 ` [RFC PATCH 02/10 v2] drm/i915/spi: intel_spi_region map Tomas Winkler 2021-03-08 6:27 ` [Intel-gfx] " Tomas Winkler 2021-03-08 6:27 ` [RFC PATCH 03/10 v2] drm/i915/spi: add driver for on-die spi device Tomas Winkler 2021-03-08 6:27 ` [Intel-gfx] " Tomas Winkler 2021-03-08 6:27 ` [RFC PATCH 04/10 v2] drm/i915/spi: implement regions enumeration Tomas Winkler 2021-03-08 6:27 ` [Intel-gfx] " Tomas Winkler 2021-03-08 6:27 ` [RFC PATCH 05/10 v2] drm/i915/spi: implement spi access functions Tomas Winkler 2021-03-08 6:27 ` [Intel-gfx] " Tomas Winkler 2021-03-08 6:27 ` [RFC PATCH 06/10 v2] drm/i915/spi: spi register with mtd Tomas Winkler 2021-03-08 6:27 ` [Intel-gfx] " Tomas Winkler 2021-03-08 6:27 ` [RFC PATCH 07/10 v2] drm/i915/spi: mtd: implement access handlers Tomas Winkler 2021-03-08 6:27 ` [Intel-gfx] " Tomas Winkler 2021-03-08 6:27 ` [RFC PATCH 08/10 v2] drm/i915/spi: serialize spi access Tomas Winkler 2021-03-08 6:27 ` [Intel-gfx] " Tomas Winkler 2021-03-08 6:27 ` [RFC PATCH 09/10 v2] MAINTAINERS: add Intel i915 spi driver entry Tomas Winkler 2021-03-08 6:27 ` [Intel-gfx] " Tomas Winkler 2021-03-08 6:27 ` [RFC PATCH 10/10 v2] mtd: use refcount to prevent corruption Tomas Winkler 2021-03-08 6:27 ` [Intel-gfx] " Tomas Winkler 2021-03-08 6:33 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915/spi: discrete graphics internal spi (rev2) Patchwork
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210308062748.208017-1-tomas.winkler@intel.com \ --to=tomas.winkler@intel.com \ --cc=alexander.usyskin@intel.com \ --cc=intel-gfx@lists.freedesktop.org \ --cc=jani.nikula@linux.intel.com \ --cc=joonas.lahtinen@linux.intel.com \ --cc=linux-mtd@lists.infradead.org \ --cc=miquel.raynal@bootlin.com \ --cc=richard@nod.at \ --cc=rodrigo.vivi@intel.com \ --cc=vigneshr@ti.com \ --cc=vitaly.lubart@intel.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.