- 01 6月, 2016 3 次提交
-
-
由 Daniel Vetter 提交于
With Benjanim's patch to remove the dev->struct_mutex cargo cult the sti driver is now also entirely legacy locking free. Let's convert it too. Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org> Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1464630800-30786-20-git-send-email-daniel.vetter@ffwll.ch
-
由 Benjamin Gaignard 提交于
No need to protect debugfs functions with dev->struct_mutex Signed-off-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org> Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1464630800-30786-19-git-send-email-daniel.vetter@ffwll.ch
-
由 Tomi Valkeinen 提交于
Commit 652353e6 ("drm/sti: set CRTC modesetting parameters") added a hack to avoid warnings related to setting mode with atomic API. With the previous patch, the hack should no longer be necessary. Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com> Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org> Cc: Vincent Abriou <vincent.abriou@st.com> Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: NDave Airlie <airlied@redhat.com>
-
- 28 5月, 2016 1 次提交
-
-
由 Arnd Bergmann 提交于
Most users of IS_ERR_VALUE() in the kernel are wrong, as they pass an 'int' into a function that takes an 'unsigned long' argument. This happens to work because the type is sign-extended on 64-bit architectures before it gets converted into an unsigned type. However, anything that passes an 'unsigned short' or 'unsigned int' argument into IS_ERR_VALUE() is guaranteed to be broken, as are 8-bit integers and types that are wider than 'unsigned long'. Andrzej Hajda has already fixed a lot of the worst abusers that were causing actual bugs, but it would be nice to prevent any users that are not passing 'unsigned long' arguments. This patch changes all users of IS_ERR_VALUE() that I could find on 32-bit ARM randconfig builds and x86 allmodconfig. For the moment, this doesn't change the definition of IS_ERR_VALUE() because there are probably still architecture specific users elsewhere. Almost all the warnings I got are for files that are better off using 'if (err)' or 'if (err < 0)'. The only legitimate user I could find that we get a warning for is the (32-bit only) freescale fman driver, so I did not remove the IS_ERR_VALUE() there but changed the type to 'unsigned long'. For 9pfs, I just worked around one user whose calling conventions are so obscure that I did not dare change the behavior. I was using this definition for testing: #define IS_ERR_VALUE(x) ((unsigned long*)NULL == (typeof (x)*)NULL && \ unlikely((unsigned long long)(x) >= (unsigned long long)(typeof(x))-MAX_ERRNO)) which ends up making all 16-bit or wider types work correctly with the most plausible interpretation of what IS_ERR_VALUE() was supposed to return according to its users, but also causes a compile-time warning for any users that do not pass an 'unsigned long' argument. I suggested this approach earlier this year, but back then we ended up deciding to just fix the users that are obviously broken. After the initial warning that caused me to get involved in the discussion (fs/gfs2/dir.c) showed up again in the mainline kernel, Linus asked me to send the whole thing again. [ Updated the 9p parts as per Al Viro - Linus ] Signed-off-by: NArnd Bergmann <arnd@arndb.de> Cc: Andrzej Hajda <a.hajda@samsung.com> Cc: Andrew Morton <akpm@linux-foundation.org> Link: https://lkml.org/lkml/2016/1/7/363 Link: https://lkml.org/lkml/2016/5/27/486 Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> # For nvmem part Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
- 11 5月, 2016 1 次提交
-
-
由 Arnd Bergmann 提交于
The sti drm driver has a lot of debugfs interface that cause build errors in some configurations when seq_file.h is not included implicitly: drm/sti/sti_mixer.c: In function 'mixer_dbg_ctl': drm/sti/sti_mixer.c:88:2: error: implicit declaration of function 'seq_puts' [-Werror=implicit-function-declaration] drm/sti/sti_mixer.c:91:4: error: implicit declaration of function 'seq_printf' [-Werror=implicit-function-declaration] drm/sti/sti_gdp.c: In function 'gdp_dbg_ctl': drm/sti/sti_gdp.c:146:2: error: implicit declaration of function 'seq_puts' [-Werror=implicit-function-declaration] drm/sti/sti_gdp.c:149:4: error: implicit declaration of function 'seq_printf' [-Werror=implicit-function-declaration] drm/sti/sti_gdp.c: In function 'gdp_dbg_show': drm/sti/sti_gdp.c:208:32: error: dereferencing pointer to incomplete type 'struct seq_file' This adds an explicit #include statement in all of the affected files. Signed-off-by: NArnd Bergmann <arnd@arndb.de> Acked-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org> Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1462830733-1710590-2-git-send-email-arnd@arndb.de
-
- 02 5月, 2016 1 次提交
-
-
由 Maarten Lankhorst 提交于
The async name is deprecated and should be changed to nonblocking. Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org> Cc: Vincent Abriou <vincent.abriou@st.com> Signed-off-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com> Acked-by: NVincent Abriou <vincent.abriou@st.com> Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1461679905-30177-9-git-send-email-maarten.lankhorst@linux.intel.com
-
- 18 3月, 2016 1 次提交
-
-
由 Arnd Bergmann 提交于
Commit 8a2fa38f removed the mode_fixup because it was empty, but 652353e6 modified it to call drm_mode_set_crtcinfo() instead. Both commits are correct, but the merge of the two kept the nonempty version without the reference to it, as shown by the gcc warning: drm/sti/sti_crtc.c:54:13: error: 'sti_crtc_mode_fixup' defined but not used This restores the callback pointer to fix the merge. Signed-off-by: NArnd Bergmann <arnd@arndb.de> Reverts: 8a2fa38f ("drm/sti: removed optional dummy crtc mode_fixup function.") Fixes: 652353e6 ("drm/sti: set CRTC modesetting parameters") Fixes: cf481068 ("Merge branch '2016-02-26-st-drm-next' of http://git.linaro.org/people/benjamin.gaignard/kernel into drm-next") Acked-by: NVincent ABRIOU <vincent.abriou@st.com> Signed-off-by: NDave Airlie <airlied@redhat.com>
-
- 09 3月, 2016 1 次提交
-
-
由 Luis R. Rodriguez 提交于
Rename dma_*_writecombine() to dma_*_wc(), so that the naming is coherent across the various write-combining APIs. Keep the old names for compatibility for a while, these can be removed at a later time. A guard is left to enable backporting of the rename, and later remove of the old mapping defines seemlessly. Build tested successfully with allmodconfig. The following Coccinelle SmPL patch was used for this simple transformation: @ rename_dma_alloc_writecombine @ expression dev, size, dma_addr, gfp; @@ -dma_alloc_writecombine(dev, size, dma_addr, gfp) +dma_alloc_wc(dev, size, dma_addr, gfp) @ rename_dma_free_writecombine @ expression dev, size, cpu_addr, dma_addr; @@ -dma_free_writecombine(dev, size, cpu_addr, dma_addr) +dma_free_wc(dev, size, cpu_addr, dma_addr) @ rename_dma_mmap_writecombine @ expression dev, vma, cpu_addr, dma_addr, size; @@ -dma_mmap_writecombine(dev, vma, cpu_addr, dma_addr, size) +dma_mmap_wc(dev, vma, cpu_addr, dma_addr, size) We also keep the old names as compatibility helpers, and guard against their definition to make backporting easier. Generated-by: Coccinelle SmPL Suggested-by: NIngo Molnar <mingo@kernel.org> Signed-off-by: NLuis R. Rodriguez <mcgrof@suse.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: airlied@linux.ie Cc: akpm@linux-foundation.org Cc: benh@kernel.crashing.org Cc: bhelgaas@google.com Cc: bp@suse.de Cc: dan.j.williams@intel.com Cc: daniel.vetter@ffwll.ch Cc: dhowells@redhat.com Cc: julia.lawall@lip6.fr Cc: konrad.wilk@oracle.com Cc: linux-fbdev@vger.kernel.org Cc: linux-pci@vger.kernel.org Cc: luto@amacapital.net Cc: mst@redhat.com Cc: tomi.valkeinen@ti.com Cc: toshi.kani@hp.com Cc: vinod.koul@intel.com Cc: xen-devel@lists.xensource.com Link: http://lkml.kernel.org/r/1453516462-4844-1-git-send-email-mcgrof@do-not-panic.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
-
- 05 3月, 2016 1 次提交
-
-
由 Carlos Palminha 提交于
This patch set nukes all the dummy crtc mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Signed-off-by: NCarlos Palminha <palminha@synopsys.com> Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/08d27e27582fb2daa48555ab542245c6cf0a2268.1455630967.git.palminha@synopsys.com
-
- 03 3月, 2016 2 次提交
-
-
由 Arnd Bergmann 提交于
The STi drm driver correctly warns about invalid format strings when built with 64-bit dma_addr_t: sti_hqvdp.c: In function 'sti_hqvdp_vtg_cb': sti_hqvdp.c:605:119: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t {aka long long unsigned int}' [-Wformat=] sti_hqvdp.c: In function 'sti_hqvdp_atomic_update': sti_hqvdp.c:931:118: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t {aka long long unsigned int}' [-Wformat=] This could be changed to using the %pad format string, but that does not work when printing an rvalue, so instead I'm changing the type in the sti_hqvdp structure to u32, which is what gets written into the registers anyway. Signed-off-by: NArnd Bergmann <arnd@arndb.de> Reviewed-by: NVincent Abriou <vincent.abriou@st.com>
-
由 Benjamin Gaignard 提交于
Thanks to "drm: prime: Honour O_RDWR during prime-handle-to-fd" commit we don't need to hack flags anymore. Signed-off-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org> Reviewed-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
-
- 26 2月, 2016 29 次提交
-
-
由 Vincent Abriou 提交于
Display fps on demand for each used plane: cat /sys/kernel/debug/dri/0/fps_get Display fps in live in the console for each used plane: echo 255 > /sys/kernel/debug/dri/0/fps_show Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Vincent Abriou 提交于
Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Vincent Abriou 提交于
Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Vincent Abriou 提交于
Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Vincent Abriou 提交于
Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Vincent Abriou 提交于
Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Vincent Abriou 提交于
Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Vincent Abriou 提交于
Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Vincent Abriou 提交于
Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Vincent Abriou 提交于
Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Vincent Abriou 提交于
Configures the framer of the HDMI connection. By default starts in HDMI mode and can be swtich to DVI. Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Vincent Abriou 提交于
Make the value of the colorspace of the HDMI infoframe configurable. HDMI colorspace could be: RGB, YUV422 or YUV444 Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Vincent Abriou 提交于
Vendor specific infoframe is mandatory for 4K2K resolution. Without this, the HDMI protocol compliance fails. Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Vincent Abriou 提交于
Clear all infoframe registers when the HDMI link is stopped. Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Vincent Abriou 提交于
Set the infoframe transmission mode according to the type of the infoframe. Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Vincent Abriou 提交于
Make sure the HD DACS are disabled when the HDA connector is created. Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Bich Hemon 提交于
Modify AWG algorithm in order to handle more than 1023 lines Signed-off-by: NBich Hemon <bich.hemon@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org> Reviewed-by: NVincent Abriou <vincent.abriou@st.com>
-
由 Bich Hemon 提交于
Modify delay to display last pixel column on DVO Signed-off-by: NBich Hemon <bich.hemon@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org> Reviewed-by: NVincent Abriou <vincent.abriou@st.com>
-
由 Vincent Abriou 提交于
Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Vincent Abriou 提交于
The DVO connector is tag as disconnect because of a wrong management of the panel detection. Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Vincent Abriou 提交于
Disable the clipping mode for hdmi, dvo and hda connectors. Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Bich Hemon 提交于
Use BT601 for SD/ED resolution and BT709 for HD resolution Signed-off-by: NBich Hemon <bich.hemon@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org> Reviewed-by: NVincent Abriou <vincent.abriou@st.com>
-
由 Vincent Abriou 提交于
Atomic update should never fail. Thus all checks must be done in the atomic_check function for each plane (gdp, hqvdp and cursor). Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Fabien Dessenne 提交于
It may happen that the cursor is displayed with wrong colors which can be explained by a CLUT wrongly fetched at the first display. Fetching the CLUT at each commit (=move) ensures that the right colors are used, at least from the first cursor move. Signed-off-by: NFabien Dessenne <fabien.dessenne@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org> Reviewed-by: NVincent Abriou <vincent.abriou@st.com>
-
由 Vincent Abriou 提交于
GDP source width should be equal to the destination width to get rid of this issue. Signed-off-by: NVincent Abriou <vincent.abriou@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
-
由 Bich Hemon 提交于
When a GDP gets a scale request (which it does not support), it accepts it but crops or clamps and outputs a warning message. Signed-off-by: NBich Hemon <bich.hemon@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org> Reviewed-by: NVincent Abriou <vincent.abriou@st.com>
-
由 Bich Hemon 提交于
Only RGB formats supported by GDP planes Signed-off-by: NBich Hemon <bich.hemon@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org> Reviewed-by: NVincent Abriou <vincent.abriou@st.com>
-
由 Fabien Dessenne 提交于
When a frame or a field is skipped, output a Warning message instead of an Error message. Signed-off-by: NFabien Dessenne <fabien.dessenne@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org> Reviewed-by: NVincent Abriou <vincent.abriou@st.com>
-
由 Bich Hemon 提交于
data_en is a local variable that doesn't need to be set as awg_generate_instr can be called directly with the requested value. Signed-off-by: NBich Hemon <bich.hemon@st.com> Reviewed-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org> Reviewed-by: NVincent Abriou <vincent.abriou@st.com>
-