- Apr 20, 2023
-
-
Rodrigo Vivi authored
This is already useful because it avoids some extra reads where registers might have changed after the timeout decision. But also, it will be important to end the kill of i915's wait_for. Signed-off-by:
Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by:
Matthew Brost <matthew.brost@intel.com>
-
Rodrigo Vivi authored
Let's do it directly. Signed-off-by:
Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by:
Matthew Brost <matthew.brost@intel.com>
-
Rodrigo Vivi authored
Then, move the i915_utils.h include to its user. The overall goal is to kill all the usages of the i915_utils stuff. Yes, wait_for also depends on <linux/delay.h>, so they go together to where it is needed. It will be likely needed anyway directly for udelay or usleep_range. Signed-off-by:
Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by:
Matthew Brost <matthew.brost@intel.com>
-
Rodrigo Vivi authored
Xe, is a new driver for Intel GPUs that supports both integrated and discrete platforms starting with Tiger Lake (first Intel Xe Architecture). The code is at a stage where it is already functional and has experimental support for multiple platforms starting from Tiger Lake, with initial support implemented in Mesa (for Iris and Anv, our OpenGL and Vulkan drivers), as well as in NEO (for OpenCL and Level0). The new Xe driver leverages a lot from i915. As for display, the intent is to share the display code with the i915 driver so that there is maximum reuse there. But it is not added in this patch. This initial work is a collaboration of many people and unfortunately the big squashed patch won't fully honor the proper credits. But let's get some git quick stats so we can at least try to preserve some of the credits: Co-developed-by:
Matthew Brost <matthew.brost@intel.com> Co-developed-by:
Matthew Auld <matthew.auld@intel.com> Co-developed-by:
Matt Roper <matthew.d.roper@intel.com> Co-developed-by:
Thomas Hellström <thomas.hellstrom@linux.intel.com> Co-developed-by:
Francois Dugast <francois.dugast@intel.com> Co-developed-by:
Lucas De Marchi <lucas.demarchi@intel.com> Co-developed-by:
Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Co-developed-by:
Philippe Lecluse <philippe.lecluse@intel.com> Co-developed-by:
Nirmoy Das <nirmoy.das@intel.com> Co-developed-by:
Jani Nikula <jani.nikula@intel.com> Co-developed-by:
José Roberto de Souza <jose.souza@intel.com> Co-developed-by:
Rodrigo Vivi <rodrigo.vivi@intel.com> Co-developed-by:
Dave Airlie <airlied@redhat.com> Co-developed-by:
Faith Ekstrand <faith.ekstrand@collabora.com> Co-developed-by:
Daniel Vetter <daniel.vetter@ffwll.ch> Co-developed-by:
Mauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by:
Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by:
Matthew Brost <matthew.brost@intel.com>
-
Matthew Brost authored
When changing the DRM scheduler from a kthread to a work queue the MSM driver was not updated to reflect this change. Fix this. Signed-off-by:
Matthew Brost <matthew.brost@intel.com> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com> Signed-off-by:
Rodrigo Vivi <rodrigo.vivi@intel.com>
-
Maarten Lankhorst authored
Xe, is a new driver for Intel GPUs that supports both integrated and discrete platforms starting with Tiger Lake. Let's ensure mei/hdcp can accept xe instead of i915 whenever that is in use. Cc: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by:
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
-
Maarten Lankhorst authored
This was only used to allow modprobing i915, now that we use the -EPROBE_DEFER mechanism, it can be completely removed, and is in fact counterproductive since EPROBE_DEFER otherwise won't propagate. When upstreaming, this should be merged with or put before "sound/hda: Allow XE as i915 replacement for sound" as the -EPROBE_DEFER probing will be broken otherwise. Signed-off-by:
Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Acked-by:
Matthew Auld <matthew.auld@intel.com>
-
Maarten Lankhorst authored
Xe, is a new driver for Intel GPUs that supports both integrated and discrete platforms starting with Tiger Lake. Let's ensure sound can accept xe instead of i915 whenever that is in use. Cc: Kai Vehmanen <kai.vehmanen@linux.intel.com> Signed-off-by:
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
-
Jani Nikula authored
A lot of places include i915_reg.h implicitly via i915_irq.h, which gets included implicitly via intel_display_trace.h. Remove the includes from the headers, and include i915_reg.h and i915_irq.h explicitly where needed. Signed-off-by:
Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230419094243.366821-1-jani.nikula@intel.com Signed-off-by:
Rodrigo Vivi <rodrigo.vivi@intel.com>
-
Jani Nikula authored
Observe that intel_pm.[ch] is now purely about clock gating, so rename them to intel_clock_gating.[ch]. Rename the functions to intel_clock_gating_*() to follow coding conventions. Reviewed-by:
Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by:
Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230403122428.3526263-1-jani.nikula@intel.com (cherry picked from commit d670c78e) Signed-off-by:
Rodrigo Vivi <rodrigo.vivi@intel.com>
-
Jani Nikula authored
Add stubs for !I915. Signed-off-by:
Jani Nikula <jani.nikula@intel.com> Reviewed-by:
Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by:
Rodrigo Vivi <rodrigo.vivi@intel.com>
-
Jani Nikula authored
The declaration was removed earlier, but got accidentally resurrected in i915xx_wm.[ch] refactoring. Remove harder. Signed-off-by:
Jani Nikula <jani.nikula@intel.com> Reviewed-by:
Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230419115449.422214-1-jani.nikula@intel.com (cherry-picked from ba1fb317) Signed-off-by:
Rodrigo Vivi <rodrigo.vivi@intel.com>
-
Jani Nikula authored
Leftovers from before display debugfs was separated to its own file. Signed-off-by:
Jani Nikula <jani.nikula@intel.com> Reviewed-by:
Nirmoy Das <nirmoy.das@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230411131922.401602-1-jani.nikula@intel.com (cherry picked from commit 1bf38363) Signed-off-by:
Jani Nikula <jani.nikula@intel.com> Acked-by:
Lucas De Marchi <lucas.demarchi@intel.com>
-
Jani Nikula authored
Add stubs for !I915. Signed-off-by:
Jani Nikula <jani.nikula@intel.com> Acked-by:
Lucas De Marchi <lucas.demarchi@intel.com>
-
Jani Nikula authored
Add stubs for !I915. Signed-off-by:
Jani Nikula <jani.nikula@intel.com> Acked-by:
Lucas De Marchi <lucas.demarchi@intel.com>
-
Jani Nikula authored
Add stubs for !I915. Signed-off-by:
Jani Nikula <jani.nikula@intel.com> Acked-by:
Lucas De Marchi <lucas.demarchi@intel.com>
-
Jani Nikula authored
Add stubs for !I915. Signed-off-by:
Jani Nikula <jani.nikula@intel.com> Acked-by:
Lucas De Marchi <lucas.demarchi@intel.com>
-
Jani Nikula authored
We can't have this in upstream i915, so don't try that here either. Note: This reverts local changes in xe branch, and should be squashed to commit a09f88e4("drm/i915/display: Remaining changes to make xe compile"). Reviewed-by:
Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by:
Jani Nikula <jani.nikula@intel.com> Signed-off-by:
Lucas De Marchi <lucas.demarchi@intel.com> Link: https://lore.kernel.org/r/20230303105222.3550161-2-jani.nikula@intel.com
-
Maarten Lankhorst authored
In case of xe, stolen is not initialised until much later, so just assume it works, and check at runtime if required. Signed-off-by:
Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by:
Philippe Lecluse <philippe.lecluse1@gmail.com> Signed-off-by:
Rodrigo Vivi <rodrigo.vivi@intel.com>
-
Maarten Lankhorst authored
Initialise the stolen memory allocator earlier to make it available when FBC is initialised, so we can check if it's succesfull there. With this, we can easily implement FBC by hooking a few calls inside intel_fbc.c Signed-off-by:
Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by:
Matthew Brost <matthew.brost@intel.com> Signed-off-by:
Rodrigo Vivi <rodrigo.vivi@intel.com>
-
Maarten Lankhorst authored
Signed-off-by:
Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by:
Matthew Brost <matthew.brost@intel.com> Signed-off-by:
Rodrigo Vivi <rodrigo.vivi@intel.com>
-
Maarten Lankhorst authored
enum i915_drm_suspend_mode suspend_mode is only used in intel_display_power, while we only care about whether we perform a s2idle. Remove it and use a simple bool. Signed-off-by:
Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by:
Matthew Brost <matthew.brost@intel.com> Signed-off-by:
Rodrigo Vivi <rodrigo.vivi@intel.com>
-
Maarten Lankhorst authored
Xe, the new Intel GPU driver, will re-use the i915 display. At least for now, the plan is to use symbolic links and adjust the build so we are building the display either for i915 or for xe. The display can be split out if needed. Also the compilation is optional at this time Signed-off-by:
Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by:
Rodrigo Vivi <rodrigo.vivi@intel.com>
-
Maarten Lankhorst authored
We enable the DP aux channel during probe, but may free the connector soon afterwards. Ensure the DP aux display power put is completed before everything is freed, to prevent a use-after-free in icl_aux_pw_to_phy(), called from icl_combo_phy_aux_power_well_disable. Signed-off-by:
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
-
Maarten Lankhorst authored
Only required for some old pre-gen9 platforms, not for Xe. Signed-off-by:
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
-
Maarten Lankhorst authored
Signed-off-by:
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
-
- Apr 07, 2023
-
-
Maarten Lankhorst authored
Signed-off-by:
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
-
Maarten Lankhorst authored
Remove intel_frontbuffer type, and use fb->bits. Signed-off-by:
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
-
Maarten Lankhorst authored
Frontbuffer update handling should be done explicitly by using dirtyfb calls only. Signed-off-by:
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
-
Jani Nikula authored
Add stubs for !I915. Signed-off-by:
Jani Nikula <jani.nikula@intel.com>
-
Jani Nikula authored
Add stubs for !I915. Signed-off-by:
Jani Nikula <jani.nikula@intel.com>
-
Jani Nikula authored
Add stubs for !I915. Signed-off-by:
Jani Nikula <jani.nikula@intel.com>
-
Jani Nikula authored
Add stubs for !I915. Signed-off-by:
Jani Nikula <jani.nikula@intel.com>
-
Jani Nikula authored
Add stubs for !I915. Signed-off-by:
Jani Nikula <jani.nikula@intel.com>
-
Jani Nikula authored
Add stubs for !I915. Signed-off-by:
Jani Nikula <jani.nikula@intel.com>
-
Jani Nikula authored
Add stubs for !I915. Signed-off-by:
Jani Nikula <jani.nikula@intel.com>
-
Jani Nikula authored
Add stubs for !I915. Signed-off-by:
Jani Nikula <jani.nikula@intel.com>
-
Jani Nikula authored
We'll want to be able to distinguish between building the i915 display code for i915 and xe. Define I915 when building i915. Signed-off-by:
Jani Nikula <jani.nikula@intel.com>
-
- Mar 27, 2023
-
-
Thomas Hellström authored
Add a gpu page table walker similar in functionality to the cpu page-table walker in mm/pagewalk.c. This is made a drm helper in the hope that it might prove useful to other drivers, but we could of course make it single-driver only and rename the functions initially. Also if remaining a DRM helper, we should consider making it a helper kernel module of its own. Signed-off-by:
Thomas Hellström <thomas.hellstrom@linux.intel.com>
-
Matthew Brost authored
Add helper to set TDR timeout and restart the TDR with new timeout value. This will be used in XE, new Intel GPU driver, to trigger the TDR to cleanup drm_sched_entity that encounter errors. Signed-off-by:
Matthew Brost <matthew.brost@intel.com>
-