summaryrefslogtreecommitdiff
path: root/drivers/gpu
AgeCommit message (Collapse)AuthorFilesLines
2022-07-12Merge branch 'CR_1352_DRM_plane_overlay_515_Jack.Zhu' into 'jh7110-5.15.y-devel'Jason Zhou1-0/+8
[VOUT][DRM]fix redmine #1352: disable plane overlay in close flow See merge request sdk/linux!259
2022-07-12riscv:driver:drm:DC8200keith.zhao1-6/+10
1、fix issue #1496(#1320 is the same issue) Signed-off-by:keith.zhao <keith.zhao@statfivetech.com>
2022-07-11riscv:linux:drm:mipidsishengyang.chen2-3/+29
fix mipi display color problem Signed-off-by:shengyang.chen<shengyang.chen@starfivetech.com>
2022-07-11drm: verisilicon: inno_hdmi: Fix an i2c failure during kernel startupHal Feng1-1/+0
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2022-07-08[VOUT][DRM]fix redmine #1352: disable plane overlay in close flowjack.zhu1-0/+8
2022-07-04riscv:driver:drm:DC8200keith.zhao6-7933/+0
delete FW MACRO head file Signed-off-by:keith.zhao <keith.zhao@statfivetech.com>
2022-07-04riscv:driver:drm:DC8200keith.zhao4-72/+47
fix tda hdmi color error display Signed-off-by:keith.zhao <keith.zhao@statfivetech.com>
2022-07-01driver:GPU: use pm runtime interfaceshanlong.li2-4/+13
use pm runtime interface Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
2022-07-01riscv:linux:driver:drmshengyang.chen1-3/+0
remove some useless comment after review Signed-off-by:shengyang.chen<shengyang.chen@starfivetech.com>
2022-07-01riscv:linux:driver:drmshengyang.chen1-5/+15
replace standard pmu interface Signed-off-by:shengyang.chen<shengyang.chen@starfivetech.com>
2022-06-30riscv:linux:driver:drmshengyang.chen1-20/+1
remove some useless comment Signed-off-by:shengyang.chen<shengyang.chen@starfivetech.com>
2022-06-30riscv:linux:driver:drmshengyang.chen2-12/+26
fix display problem of inno with mipi config opened fix starup problem Signed-off-by:shengyang.chen<shengyang.chen@starfivetech.com>
2022-06-28Merge branch 'CR_1407_7110evb_5.10_vout_shengyang.chen' into ↵andy.hu1-1/+0
'jh7110-5.15.y-devel' riscv:linux:driver:drm See merge request sdk/linux!183
2022-06-28riscv:linux:driver:drmshengyang.chen1-1/+0
remove printk of function update_fb() in vs_dc.c Signed-off-by:shengyang.chen<shengyang.chen@starfivetech.com>
2022-06-28riscv:driver:drm:innokeith.zhao1-22/+2
delete some unnecessary comments fix bug about Dynamic switching resolution Signed-off-by:keith.zhao <keith.zhao@statfivetech.com>
2022-06-27fix build warningkeith.zhao3-35/+12
Signed-off-by:keith.zhao <keith.zhao@statfivetech.com>
2022-06-27riscv:driver:drm:DC8200keith.zhao6-199/+747
1、support 1080P 720P 480P display mode 2、replace some FW interface by using system api Signed-off-by:keith.zhao <keith.zhao@statfivetech.com>
2022-06-24dts: starfive: Add overlay dts and fix pin conflictJianlong Huang2-1/+48
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-06-17riscv:linux:driver:drm:rgb2hdmishengyang.chen1-2/+3
update README Signed-off-by:shengyang.chenshengyang.chen@starfivetech.com
2022-06-17riscv:linux:driver:drm:rgb2hdmishengyang.chen4-8/+114
update rgb2hdmi driver support Signed-off-by:shengyang.chenshengyang.chen@starfivetech.com
2022-06-13riscv:linux:driver:drm:mipi-dsishengyang.chen6-111/+18
update mipi-dsi driver support improvement after reviewing Signed-off-by:shengyang.chen<shengyang.chen@starfivetech.com>
2022-06-12riscv:linux:driver:drm:mipi-dsishengyang.chen9-69/+437
update mipi-dsi driver support Signed-off-by:shengyang.chen<shengyang.chen@starfivetech.com>
2022-06-09driver:GPU: Using the GPU driver release versionshanlong.li3-10/+6
Using the GPU driver release version Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
2022-06-09driver:GPU: Disable apm to resolve pvrdebug -dd suspension errorshanlong.li1-1/+1
Disable apm to resolve pvrdebug -dd suspension error Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
2022-06-07regulator: stf7110: Add regulator APIs for hdmi & csi drivermason.huo1-0/+26
The hdmi & csi driver use the legacy pmic driver APIs to power on/off related LDOs. After employed regulator framework for pmic, add the regulator APIs to control the LDOs. Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2022-06-07soc: starfive: Remove pmic drivermason.huo1-5/+0
The pmic driver should employ regulator framework, rather than a driver in soc. Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2022-06-07driver:GPU: adjust ClockSpeed to 409.6MHzshanlong.li1-1/+1
adjust ClockSpeed to 409.6MHz Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
2022-06-05riscv:linux:driver:drmkeith.zhao1-1/+1
driver name "vs-drm" change to "starfive", gpu need name with no "-" Signed-off-by: keith.zhao<keith.zhao@statfivetech.com>
2022-06-05riscv:linux:driver:inno hdmikeith.zhao5-415/+848
replace drm clock&pin api , add edid and HPD function Signed-off-by: keith.zhao<keith.zhao@statfivetech.com>
2022-05-29riscv:linux:driver:inno hdmikeith.zhao1-55/+8
delete some clock ,DC8200 unuse but other module used (gpu.vpu..) Signed-off-by: keith.zhao<keith.zhao@statfivetech.com>
2022-05-28driver:drm:hdmikeith.zhao12-112/+9627
add inno hdmi driver,only support 1080P mode Signed-off-by: keith.zhao <keith.zhao@starfivetech.com>
2022-05-07Driver:DRM:DC8200keith.zhao33-5790/+5764
fix warning&error checked by script checkpatch.pl Signed-off-by: keith <keith.zhao@statfivetech.com>
2022-05-06driver:GPU: fix compile warningsshanlong.li2-9/+7
fix compile warnings Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
2022-04-28driver:GPU: add gpu drivershanlong.li581-0/+264808
add gpu driver use clk/rst api and pmu api Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
2022-04-28driver:GPU: add gpu configshanlong.li2-0/+3
add gpu config Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
2022-04-27riscv:linux:driver:DC8200keith.zhao34-1237/+1398
for DC8200 drm driver,update clk reset pinctrl and syscon api Signed-off-by: keith.zhao<keith.zhao@statfivetech.com>
2022-01-14riscv:uboot:starfive:dc8200keith.zhao43-1/+15685
update drdc8200iver kenerl version from 5.10 to 5.13 Signed-off-by:keith.zhao<keith.zhao@statfivetech.com>
2021-10-28Merge tag 'drm-intel-fixes-2021-10-28' of ↵Dave Airlie5-43/+9
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes drm/i915 fixes for v5.15 final: - Remove unconditional clflushes - Fix oops on boot due to sync state on disabled DP encoders - Revert backend specific data added to tracepoints - Remove useless and incorrect memory frequence calculation Signed-off-by: Dave Airlie <airlied@redhat.com> From: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/8735olh27y.fsf@intel.com
2021-10-28drm/i915: Revert 'guc_id' from i915_request tracepointJoonas Lahtinen1-5/+2
Avoid adding backend specific data to the tracepoints outside of the LOW_LEVEL_TRACEPOINTS kernel config protection. These bits of information are bound to change depending on the selected submission method per platform and are not necessarily possible to maintain in the future. Fixes: dbf9da8d55ef ("drm/i915/guc: Add trace point for GuC submit") Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Cc: John Harrison <john.c.harrison@intel.com> Cc: Matthew Brost <matthew.brost@intel.com> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211027093255.66489-1-joonas.lahtinen@linux.intel.com (cherry picked from commit 64512a66b67e6546e2db15192b3603cd6d58b75c) Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
2021-10-28Merge tag 'drm-misc-fixes-2021-10-28' of ↵Dave Airlie1-0/+6
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes One patch to fix the default screen orientation on the GPD Win3 Signed-off-by: Dave Airlie <airlied@redhat.com> From: Maxime Ripard <maxime@cerno.tech> Link: https://patchwork.freedesktop.org/patch/msgid/20211028072300.b4gqexq6zfhby24g@gilmour
2021-10-28Merge tag 'drm-misc-fixes-2021-10-26' of ↵Dave Airlie3-0/+8
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes drm-misc-fixes for v5.15-rc8: - Fix fence leak in ttm_transfered_destroy. - Add quirk for Aya Neo 2021 - Reset property count for each drm damage selftest so full run will work correctly. Signed-off-by: Dave Airlie <airlied@redhat.com> From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/4a133970-ff4b-aa62-d346-b269b1b9236e@linux.intel.com
2021-10-28drm/amd/display: Fix deadlock when falling back to v2 from v3Nicholas Kazlauskas1-4/+2
[Why] A deadlock in the kernel occurs when we fallback from the V3 to V2 add_topology_to_display or remove_topology_to_display because they both try to acquire the dtm_mutex but recursive locking isn't supported on mutex_lock(). [How] Make the mutex_lock/unlock more fine grained and move them up such that they're only required for the psp invocation itself. Fixes: bf62221e9d0e ("drm/amd/display: Add DCN3.1 HDCP support") Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Reviewed-by: Aric Cyr <aric.cyr@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
2021-10-28drm/amd/display: Fallback to clocks which meet requested voltage on DCN31Michael Strauss1-3/+10
[WHY] On certain configs, SMU clock table voltages don't match which cause parser to behave incorrectly by leaving dcfclk and socclk table entries unpopulated. [HOW] Currently the function that finds the corresponding clock for a given voltage only checks for exact voltage level matches. In the case that no match gets found, parser now falls back to searching for the max clock which meets the requested voltage (i.e. its corresponding voltage is below requested). Signed-off-by: Michael Strauss <michael.strauss@amd.com> Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
2021-10-28drm/amdgpu: Fix even more out of bound writes from debugfsPatrik Jakobsson1-9/+9
CVE-2021-42327 was fixed by: commit f23750b5b3d98653b31d4469592935ef6364ad67 Author: Thelford Williams <tdwilliamsiv@gmail.com> Date: Wed Oct 13 16:04:13 2021 -0400 drm/amdgpu: fix out of bounds write but amdgpu_dm_debugfs.c contains more of the same issue so fix the remaining ones. v2: * Add missing fix in dp_max_bpc_write (Harry Wentland) Fixes: 918698d5c2b5 ("drm/amd/display: Return the number of bytes parsed than allocated") Signed-off-by: Patrik Jakobsson <pjakobsson@suse.de> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
2021-10-27Merge tag 'amd-drm-fixes-5.15-2021-10-21' of ↵Dave Airlie7-21/+27
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes amd-drm-fixes-5.15-2021-10-21: amdgpu: - Fix a potential out of bounds write in debugfs - Fix revision handling for Yellow Carp - Display fixes for Yellow Carp Signed-off-by: Dave Airlie <airlied@redhat.com> From: Alex Deucher <alexander.deucher@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211021203430.4578-1-alexander.deucher@amd.com
2021-10-26drm: panel-orientation-quirks: Add quirk for GPD Win3Mario1-0/+6
Fixes screen orientation for GPD Win 3 handheld gaming console. Signed-off-by: Mario Risoldi <awxkrnl@gmail.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20211026112737.9181-1-awxkrnl@gmail.com
2021-10-26drm/i915/dp: Skip the HW readout of DPCD on disabled encodersImre Deak1-0/+3
Reading out the DP encoders' DPCD during booting or resume is only required for enabled encoders: such encoders may be modesetted during the initial commit and the link training this involves depends on an initialized DPCD. For DDI encoders reading out the DPCD is skipped, do the same on pre-DDI platforms. Atm, the first DPCD readout without a sink connected - which is a likely scneario if the encoder is disabled - leaves intel_dp->num_common_rates at 0, which resulted in intel_dp_sync_state()->intel_dp_max_common_rate() in a intel_dp->common_rates[-1] access. This by definition results in an undefined behaviour, though to my best knowledge in all HW/compiler configurations it actually results in accessing the array item type value preceding the array. In this case the preceding value happens to be intel_dp->num_common_rates, which is 0, so this issue - by luck - didn't cause a user visible problem. Nevertheless it's still an undefined behaviour and in CONFIG_UBSAN builds leads to a kernel BUG() (which revealed this problem for us), hence CC:stable. A related problem in case the encoder is enabled but the sink is not connected or the DPCD readout fails is fixed by the next patch. v2: Amend the commit message describing the root cause of the CONFIG_UBSAN BUG(). Fixes: a532cde31de3 ("drm/i915/tc: Fix TypeC port init/resume time sanitization") References: https://gitlab.freedesktop.org/drm/intel/-/issues/4297 Reported-and-tested-by: Mat Jonczyk <mat.jonczyk@o2.pl> Cc: Mat Jonczyk <mat.jonczyk@o2.pl> Cc: José Roberto de Souza <jose.souza@intel.com> Cc: Jani Nikula <jani.nikula@intel.com> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: <stable@vger.kernel.org> Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Acked-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211018094154.1407705-2-imre.deak@intel.com (cherry picked from commit 4ec5ffc341cecbea060739aea1d53398ac2ec3f8) Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2021-10-26drm/i915: Catch yet another unconditioal clflushVille Syrjälä1-1/+1
Replace the unconditional clflush() with drm_clflush_virt_range() which does the wbinvd() fallback when clflush is not available. This time no justification is given for the clflush in the offending commit. Cc: stable@vger.kernel.org Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com> Fixes: 2c8ab3339e39 ("drm/i915: Pin timeline map after first timeline pin, v4.") Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211014090941.12159-4-ville.syrjala@linux.intel.com Reviewed-by: Dave Airlie <airlied@redhat.com> (cherry picked from commit 9ced12182d0d8401d821e9602e56e276459900fc) Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2021-10-26drm/i915: Convert unconditional clflush to drm_clflush_virt_range()Ville Syrjälä1-1/+1
This one is apparently a "clflush for good measure", so bit more justification (if you can call it that) than some of the others. Convert to drm_clflush_virt_range() again so that machines without clflush will survive the ordeal. Cc: stable@vger.kernel.org Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Cc: Thomas Hellström <thomas.hellstrom@intel.com> #v1 Fixes: 12ca695d2c1e ("drm/i915: Do not share hwsp across contexts any more, v8.") Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211014090941.12159-3-ville.syrjala@linux.intel.com Reviewed-by: Dave Airlie <airlied@redhat.com> (cherry picked from commit af7b6d234eefa30c461cc16912bafb32b9e6141c) Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2021-10-22drm/i915/selftests: Properly reset mock object propers for each testDaniel Vetter1-0/+1
I forgot to do this properly in commit 6f11f37459d8f9f74ff1c299c0bedd50b458057a Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Fri Jul 23 10:34:55 2021 +0200 drm/plane: remove drm_helper_get_plane_damage_clips intel-gfx CI didn't spot this because we run each selftest in each own invocations, which means reloading i915.ko. But if you just run all the selftests in one go at boot-up, then it falls apart and eventually we cross over the hardcoded limited of how many properties can be attached to a single object. Fix this by resetting the property count. Nothing else to clean up since it's all static storage anyway. Reported-and-tested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Fixes: 6f11f37459d8 ("drm/plane: remove drm_helper_get_plane_damage_clips") Cc: José Roberto de Souza <jose.souza@intel.com> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com> Cc: Hans de Goede <hdegoede@redhat.com> Cc: Daniel Vetter <daniel.vetter@intel.com> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Cc: Maxime Ripard <mripard@kernel.org> Cc: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211021202048.2638668-1-daniel.vetter@ffwll.ch