[PATCH 05/21] drivers/gpu/drm: Remove unnecessary kmalloc casts

2010-05-31 Thread Joe Perches
Signed-off-by: Joe Perches j...@perches.com --- drivers/gpu/drm/drm_sman.c |4 +--- drivers/gpu/drm/i915/i915_dma.c |3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/drm_sman.c b/drivers/gpu/drm/drm_sman.c index 463aed9..3466458 100644

[PATCH 07/36] drivers/gpu: Remove unnecessary casts of private_data

2010-07-12 Thread Joe Perches
Signed-off-by: Joe Perches j...@perches.com --- drivers/gpu/drm/radeon/radeon_ttm.c |2 +- drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c |2 +- drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon

[PATCH 01/13] drivers/gpu/drm: Remove unnecessary casts of private_data

2010-09-04 Thread Joe Perches
Signed-off-by: Joe Perches j...@perches.com --- drivers/gpu/drm/radeon/radeon_ttm.c |2 +- drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c |2 +- drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon

[PATCH 00/13] trivial: Remove unnecessary casts of private_data

2010-09-05 Thread Joe Perches
Resend removal of remaining casts of private_data Joe Perches (13): drivers/gpu/drm: Remove unnecessary casts of private_data drivers/infiniband: Remove unnecessary casts of private_data drivers/net/wireless/iwlwifi: Remove unnecessary casts of private_data drivers/s390: Remove

[PATCH next 05/16] drivers/gpu: Use static const char * const where possible

2010-09-13 Thread Joe Perches
Signed-off-by: Joe Perches j...@perches.com --- drivers/gpu/drm/ttm/ttm_page_alloc.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc.c b/drivers/gpu/drm/ttm/ttm_page_alloc.c index ca90479..578ea3b 100644 --- a/drivers/gpu/drm/ttm

[PATCH next 00/16] treewide: Use static const char * const where possible

2010-09-14 Thread Joe Perches
Convert the uses that should be const of char *foo[] = {bar, baz}; to const char * const foo[] = {bar, baz}; or static const char * const foo[] = {bar, baz}; Joe Perches (16): arch/alpha: Use static const char * const where possible arch/ia64: Use static const char

Re: [RFC v4]update broken web addresses in the kernel.

2010-09-27 Thread Joe Perches
On Mon, 2010-09-27 at 11:10 -0400, John W. Linville wrote: On Sun, Sep 26, 2010 at 11:31:15AM -0700, Justin P. Mattock wrote: Below is an updated patch from the original fixing broken web addresses in the kernel. Thanks for all the help and info on this to everybody.. Hopefully I didnt

Re: [PATCH] Add Intel GMA500(Poulsbo) Stub Driver

2010-10-20 Thread Joe Perches
On Wed, 2010-10-20 at 13:51 +0800, Lee, Chun-Yi wrote: Currently, there have no GMA500(Poulsbo) native video driver to support intel opregion. So, use this stub driver to enable the acpi backlight control sysfs entry files by requrest acpi_video_register. [] diff --git

[PATCH 0/9] Typo fixes of faild to failed

2010-10-22 Thread Joe Perches
Joe Perches (9): drivers/ata: typo fix of faild to failed drivers/gpu: typo fix of faild to failed drivers/net: typo fix of faild to failed drivers/rtc: typo fix of faild to failed drivers/video: typo fix of faild to failed fs/exofs: typo fix of faild to failed fs/jfs: typo fix

[PATCH 13/39] drivers/gpu/drm: Update WARN uses

2010-10-30 Thread Joe Perches
Coalesce long formats. Align arguments. Add missing newlines. Signed-off-by: Joe Perches j...@perches.com --- drivers/gpu/drm/drm_crtc_helper.c |2 +- drivers/gpu/drm/i915/i915_gem.c |3 +-- drivers/gpu/drm/radeon/evergreen.c|2 +- drivers/gpu/drm/radeon/r100.c

[PATCH 00/39] Cleanup WARN #defines

2010-10-31 Thread Joe Perches
output Remove any KERN_level from WARN uses Coalesce formats Align WARN arguments Add some missing newlines to WARN uses Add some missing first test argument (1, fmt, args) to WARN uses Joe Perches (39): include/asm-generic/bug.h: Update WARN macros arch/alpha: Update WARN uses arch/arm: Update

[PATCH 0/4] Fix k.alloc switched arguments

2010-10-31 Thread Joe Perches
Joe Perches (4): drivers/gpu/drm/vmwgfx: Fix k.alloc switched arguments drivers/scsi/pmcraid.c: Fix k.alloc switched arguments drivers/staging/udlfb/udlfb.c: Fix k.alloc switched arguments scripts/checkpatch.pl: Add check for k.alloc GFP as first argument drivers/gpu/drm/vmwgfx

[PATCH 1/4] drivers/gpu/drm/vmwgfx: Fix k.alloc switched arguments

2010-10-31 Thread Joe Perches
Signed-off-by: Joe Perches j...@perches.com --- drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c |2 +- drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c index

[PATCH 10/49] drivers/gpu: Use vzalloc

2010-11-04 Thread Joe Perches
Signed-off-by: Joe Perches j...@perches.com --- drivers/gpu/drm/via/via_dmablit.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/via/via_dmablit.c b/drivers/gpu/drm/via/via_dmablit.c index 9b5b4d9..3e038a3 100644 --- a/drivers/gpu/drm/via

[PATCH 00/49] Use vzalloc not vmalloc/kmemset

2010-11-05 Thread Joe Perches
Converted vmalloc/memset and vmalloc_node/memset to vzalloc or vzalloc_node using a cocci script and some editing Reduces text a little bit. Compiled x86 only. There are still vmalloc_32 with memset calls still around. Broken out to multiple patches to cc appropriate maintainers. Joe Perches

[PATCH 1/9] drivers/gpu/drm/drm_stub.c: Use printf extension %pV

2010-11-09 Thread Joe Perches
Using %pV reduces the number of printk calls and eliminates any possible message interleaving from other printk calls. Signed-off-by: Joe Perches j...@perches.com --- drivers/gpu/drm/drm_stub.c | 14 +++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm

Re: [PATCH 1/9] drivers/gpu/drm/drm_stub.c: Use printf extension %pV

2010-11-09 Thread Joe Perches
On Tue, 2010-11-09 at 21:16 -0500, Kristian Høgsberg wrote: On Tue, Nov 9, 2010 at 7:35 PM, Joe Perches j...@perches.com wrote: Using %pV reduces the number of printk calls and eliminates any possible message interleaving from other printk calls. Wouldn't it be easier and more convenient

Re: [PATCH 0/9] treewide: convert vprintk uses to %pV

2010-11-10 Thread Joe Perches
On Wed, 2010-11-10 at 14:48 -0800, Luis R. Rodriguez wrote: When was this added upstream BTW? I ask for backport considerations. commit 7db6f5fb65a82af03229eef104dc9899c5eecf33 Author: Joe Perches j...@perches.com Date: Sun Jun 27 01:02:33 2010 + vsprintf: Recursive vsnprintf: Add %pV

[PATCH 01/15] drm: Remove duplicate unlikely from IS_ERR

2010-12-09 Thread Joe Perches
IS_ERR already uses unlikely, remove unlikely from the call sites. Signed-off-by: Joe Perches j...@perches.com --- drivers/gpu/drm/ttm/ttm_tt.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c index af789dc

[trivial PATCH 00/15] remove duplicate unlikely from IS_ERR

2010-12-09 Thread Joe Perches
((unsigned long)ptr); } Sending directly to maintainers for now, will resend in a month or so only to trivial if not picked up. Joe Perches (15): drm: Remove duplicate unlikely from IS_ERR stmmac: Remove duplicate unlikely from IS_ERR rtc: Remove duplicate unlikely from IS_ERR s390

Re: [trivial PATCH 00/15] remove duplicate unlikely from IS_ERR

2010-12-09 Thread Joe Perches
On Thu, 2010-12-09 at 12:03 -0800, Joe Perches wrote: Tobias Klauser tklau...@distanz.ch sent a patch to remove an unnecessary unlikely from drivers/misc/c2port/core.c, https://lkml.org/lkml/2010/12/9/199 It seems that Tobias did send all the appropriate patches, not as a series

[PATCH 1/3] vmwgfx: Remove unnecessary memset(,0,)

2011-01-12 Thread Joe Perches
kzalloc'd memory doesn't need a memset to 0. Signed-off-by: Joe Perches j...@perches.com --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index 10ca97e

[PATCH 1/2] drm: Create and use drm_err

2011-04-17 Thread Joe Perches
256 375335 5ba27 drivers/gpu/drm/built-in.o.old Signed-off-by: Joe Perches j...@perches.com --- drivers/gpu/drm/drm_stub.c | 21 + include/drm/drmP.h | 21 +++-- 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 2/2] drm: Verify debug message arguments

2011-04-17 Thread Joe Perches
Add __attribute__((format (printf, 4, 5))) to drm_ut_debug_printk and fix fallout. Signed-off-by: Joe Perches j...@perches.com --- drivers/gpu/drm/drm_irq.c |9 + drivers/gpu/drm/i915/intel_bios.c |6 +++--- drivers/gpu/drm/i915/intel_display.c|8

[PATCH 0/2] drm: Message logging cleanups

2011-04-17 Thread Joe Perches
Reduce the text space required and verify debug arguments. Joe Perches (2): drm: Create and use drm_err drm: Verify debug message arguments drivers/gpu/drm/drm_irq.c |9 + drivers/gpu/drm/drm_stub.c | 21 + drivers/gpu/drm/i915

Re: [PATCH 1/2] drm: Create and use drm_err

2011-04-18 Thread Joe Perches
On Mon, 2011-04-18 at 15:56 -0700, Ian Romanick wrote: I believe that DRM_NAME is a define, and drm_stub.c is in common code. As a result, won't this change cause something different to get logged? Nope. DRM_NAME is #defined only once. include/drm/drm.h:#define DRM_NAME drm The only

Re: [PATCH 2/2] drm: Verify debug message arguments

2011-04-18 Thread Joe Perches
On Mon, 2011-04-18 at 16:01 -0700, Ian Romanick wrote: @@ -214,9 +214,9 @@ parse_lfp_panel_data(struct drm_i915_private *dev_priv, i915_lvds_downclock) { dev_priv-lvds_downclock_avail = 1; dev_priv-lvds_downclock = temp_downclock; -

Re: [PATCH 2/2] drm: Verify debug message arguments

2011-04-19 Thread Joe Perches
On Tue, 2011-04-19 at 18:26 +0200, Marcin Slusarz wrote: On Mon, Apr 18, 2011 at 04:09:11PM -0700, Joe Perches wrote: On Mon, 2011-04-18 at 16:01 -0700, Ian Romanick wrote: - DRM_DEBUG_KMS(LVDS downclock is found in VBT. , - Normal Clock %dKHz

[Trivial PATCH 0/5] treewide: Use angle brackets for system includes

2011-06-03 Thread Joe Perches
Just neatening. Joe Perches (5): drbd: Use angle brackets for system includes drm: Use angle brackets for system includes aix94xx: Use angle brackets for system includes ALSA: asihpi: Use angle brackets for system includes staging: msm: Use angle brackets for system includes drivers

[Trivial PATCH 2/5] drm: Use angle brackets for system includes

2011-06-03 Thread Joe Perches
Use the normal include style. Signed-off-by: Joe Perches j...@perches.com --- drivers/gpu/drm/drm_ioctl.c |2 +- drivers/gpu/drm/i915/i915_gem_tiling.c|4 ++-- drivers/gpu/drm/nouveau/nouveau_drv.h | 10 +- drivers/gpu/drm/ttm/ttm_agp_backend.c

[PATCH] drm/nouveau: Use vsprintf extension %pV

2011-06-28 Thread Joe Perches
hex filename 743693 20203 174552 938448 e51d0 drivers/gpu/drm/nouveau/built-in.o.new 777371 20203 181936 979510 ef236 drivers/gpu/drm/nouveau/built-in.o.old Signed-off-by: Joe Perches j...@perches.com --- drivers/gpu/drm/nouveau/nouveau_drv.c | 20 ++ drivers/gpu/drm

[PATCH] drm/nouveau: Use vsprintf extension %pV

2011-12-15 Thread Joe Perches
hex filename 781185 25499 176860 983544 f01f8 drivers/gpu/drm/nouveau/built-in.o.new 820650 25499 184356 1030505 fb969 drivers/gpu/drm/nouveau/built-in.o.old Signed-off-by: Joe Perches j...@perches.com --- Modified resend of https://lkml.org/lkml/2011/6/28/505 drivers/gpu/drm

[PATCH 1/2] i915: Add and use pr_fmt and pr_level

2012-03-16 Thread Joe Perches
Use a more current logging style. Ensure that appropriate logging messages are prefixed with i915: . Convert printks to pr_level. Align arguments. Signed-off-by: Joe Perches j...@perches.com --- drivers/gpu/drm/i915/i915_dma.c |6 ++- drivers/gpu/drm/i915/i915_irq.c | 70

[PATCH 2/2] drm/ttm: Use pr_fmt and pr_level

2012-03-16 Thread Joe Perches
Use the more current logging style. Add pr_fmt and remove the TTM_PFX uses. Coalesce formats and align arguments. Signed-off-by: Joe Perches j...@perches.com --- drivers/gpu/drm/ttm/ttm_agp_backend.c|4 +- drivers/gpu/drm/ttm/ttm_bo.c | 72

[PATCH V2] i915: Add and use pr_fmt and pr_level

2012-03-18 Thread Joe Perches
Use a more current logging style. Ensure that appropriate logging messages are prefixed with i915: . Convert printks to pr_level. Align arguments. Signed-off-by: Joe Perches j...@perches.com --- drivers/gpu/drm/i915/i915_dma.c |6 ++- drivers/gpu/drm/i915/i915_irq.c | 70

[PATCH 00/16] treewide: Convert dev_printk(KERN_LEVEL to dev_level(

2012-10-28 Thread Joe Perches
dev_level create smaller objects than dev_printk(KERN_LEVEL. Convert non-debug calls to this form. Joe Perches (16): tile: Convert dev_printk(KERN_LEVEL to dev_level( ata: Convert dev_printk(KERN_LEVEL to dev_level( drivers: base: Convert dev_printk(KERN_LEVEL to dev_level( block: Convert

[PATCH 07/16] gpu: Convert dev_printk(KERN_LEVEL to dev_level(

2012-10-28 Thread Joe Perches
dev_level calls take less code than dev_printk(KERN_LEVEL and reducing object size is good. Coalesce multiline formats for easier grep. Coalesce unnecessarily segmented formats on a single line too. Remove trailing space after newline in a format. Signed-off-by: Joe Perches j...@perches.com

Re: [PATCH 00/16] treewide: Convert dev_printk(KERN_LEVEL to dev_level(

2012-10-28 Thread Joe Perches
On Sun, 2012-10-28 at 14:54 +0400, Sergei Shtylyov wrote: Hello. Hi Sergei. On 28-10-2012 12:05, Joe Perches wrote: dev_level create smaller objects than dev_printk(KERN_LEVEL. Convert non-debug calls to this form. Joe Perches (16): tile: Convert dev_printk(KERN_LEVEL

Re: [PATCH] drm: tegra: Add maintainers entry

2012-11-28 Thread Joe Perches
On Wed, 2012-11-28 at 12:10 +0100, Thierry Reding wrote: Add myself as the maintainer of the NVIDIA Tegra DRM driver. diff --git a/MAINTAINERS b/MAINTAINERS [] @@ -2504,6 +2504,14 @@ S: Supported F: drivers/gpu/drm/exynos F: include/drm/exynos* +NVIDIA TEGRA DRM DRIVER

Re: [PATCHv3 4/7] gpu: host1x: Add debug support

2012-12-13 Thread Joe Perches
On Thu, 2012-12-13 at 16:04 +0200, Terje Bergstrom wrote: Add support for host1x debugging. Adds debugfs entries, and dumps channel state to UART in case of stuck job. trivial note: [] diff --git a/drivers/gpu/host1x/debug.h b/drivers/gpu/host1x/debug.h [] +void host1x_debug_output(struct

Re: [PATCHv3 4/7] gpu: host1x: Add debug support

2012-12-17 Thread Joe Perches
On Mon, 2012-12-17 at 16:01 +0200, Terje Bergström wrote: Considering the amount of feedback I've received from the patches, they must be top notch quality! Maybe. Maybe no one else has the hardware. ___ dri-devel mailing list

Re: radeon 0000:02:00.0: GPU lockup CP stall for more than 10000msec

2012-12-23 Thread Joe Perches
On Sun, 2012-12-23 at 11:01 +, Andy Furniss wrote: Borislav Petkov wrote: [ 28.191072] radeon: `0' invalid for parameter `wb' although the whole driver blubber didn't appear on the console fterwards aso something got turned off allright. Then, I went and tried radeon.no_wb

Re: nouveau lockdep splat

2013-03-06 Thread Joe Perches
On Wed, 2013-03-06 at 12:31 -0700, Stephen Warren wrote: On 03/06/2013 12:14 PM, Marcin Slusarz wrote: On Wed, Mar 06, 2013 at 01:04:29AM +0100, Borislav Petkov wrote: On Tue, Mar 05, 2013 at 05:30:52PM +0100, Lucas Stach wrote: Dropping Tegra ML, it's not the place where Nouveau mails

Re: [PATCH 1/2] get_maintainer: create filename-only regex match type

2013-03-06 Thread Joe Perches
On Wed, 2013-03-06 at 16:36 -0700, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com Create a new N: entry type in MAINTAINERS which performs a regex match against filenames; either those extracted from patch +++ or --- lines, or those specified on the command-line using the -f

Re: [PATCH V2 3/3] get_maintainer: prevent keywords from matching filenames

2013-03-06 Thread Joe Perches
On Wed, 2013-03-06 at 17:29 -0700, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com This reverts most of eb90d08 get_maintainer: allow keywords to match filenames; all except the parts that are required to implement the new N: entry type. Just combine patches 1 and 3 into a

Re: [PATCH V2 3/3] get_maintainer: prevent keywords from matching filenames

2013-03-06 Thread Joe Perches
On Wed, 2013-03-06 at 17:34 -0700, Stephen Warren wrote: On 03/06/2013 05:30 PM, Joe Perches wrote: On Wed, 2013-03-06 at 17:29 -0700, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com This reverts most of eb90d08 get_maintainer: allow keywords to match filenames; all except

Re: [PATCH V2 3/3] get_maintainer: prevent keywords from matching filenames

2013-03-06 Thread Joe Perches
On Wed, 2013-03-06 at 23:47 -0700, Stephen Warren wrote: On 03/06/2013 05:40 PM, Joe Perches wrote: Which is why I showed the whole thing in a single patch. No worries if it's simply to increase the patch count... I'm not sure what showed refers to? The changes I posted

Re: [PATCH] drivers: gpu: drm: i915: Replaced calls to kmalloc memcpy with kmemdup

2013-03-11 Thread Joe Perches
On Mon, 2013-03-11 at 22:39 +0200, Alexandru Gheorghiu wrote: Replaced calls to kmalloc followed by memcpy with a single call to kmemdup. Also removed a now redundant if statement. [] diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c [] @@ -2335,11 +2335,8 @@

Re: [PATCH] drivers/gpu/drm/nouveau: remove erroneous semicolon

2013-04-07 Thread Joe Perches
On Sun, 2013-04-07 at 11:57 +0800, Chen Gang wrote: On 2013年04月07日 11:49, Greg KH wrote: On Sun, Apr 07, 2013 at 09:03:55AM +0800, Chen Gang wrote: Hello Greg KH: when you have time, can you help to check this patch whether OK ? No. Why ? does it also need a test ?? Greg's not the

Re: [PATCH 2/2] i2c.c: Fixed coding style issue for if statement

2013-07-27 Thread Joe Perches
On Sat, 2013-07-27 at 23:18 +0530, santosh.anbu wrote: From: santosh.anbu asantosh.k...@gmail.com [] diff --git a/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c b/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c index cfb9288..e88529c 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c

[PATCH 0/6] treewide: kmem_cache_alloc GFP_ZERO cleanups

2013-08-29 Thread Joe Perches
Just a few cleanups to use zalloc style calls and reduce the uses of __GFP_ZERO for kmem_cache_alloc[_node] uses. Use the more kernel normal zalloc style. Joe Perches (6): slab/block: Add and use kmem_cache_zalloc_node block: Convert kmem_cache_alloc(...GFP_ZERO) to kmem_cache_zalloc

[PATCH 3/6] i915_gem: Convert kmem_cache_alloc(...GFP_ZERO) to kmem_cache_zalloc

2013-08-29 Thread Joe Perches
The helper exists, might as well use it instead of __GFP_ZERO. Signed-off-by: Joe Perches j...@perches.com --- drivers/gpu/drm/i915/i915_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 8a0eb96

Re: [PATCH] gpu: host1x: use %pa to print dma_addr_t

2013-09-16 Thread Joe Perches
On Mon, 2013-09-16 at 08:46 -0700, Olof Johansson wrote: On Mon, Sep 16, 2013 at 8:17 AM, Thierry Reding thierry.red...@gmail.com wrote: On Wed, Sep 11, 2013 at 09:41:49PM -0700, Olof Johansson wrote: This removes two warnings where dma_addr_t variables were printed using %x when built

Re: [PATCH] drm: drm_printer: add __printf validation

2017-02-21 Thread Joe Perches
On Tue, 2017-02-21 at 11:02 +0200, Jani Nikula wrote: > On Tue, 21 Feb 2017, Joe Perches <j...@perches.com> wrote: > > On Tue, 2017-02-21 at 10:26 +0200, Jani Nikula wrote: > > > You know how this stuff works, please split it up to get the stuff > > > mer

Re: [PATCH] drm: drm_printer: add __printf validation

2017-02-20 Thread Joe Perches
On Mon, 2017-02-20 at 12:17 +, Eric Engestrom wrote: > On Wednesday, 2017-02-15 15:33:18 -0800, Joe Perches wrote: > > drm_printf does not currently use the compiler to verify > > format and arguments. Make it do so. > > > > Miscellanea: > > > > o Add

[PATCH 17/35] drivers/gpu: Convert remaining uses of pr_warning to pr_warn

2017-02-16 Thread Joe Perches
To enable eventual removal of pr_warning This makes pr_warn use consistent for drivers/gpu Prior to this patch, there were 15 uses of pr_warning and 20 uses of pr_warn in drivers/gpu Signed-off-by: Joe Perches <j...@perches.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c

Re: [PATCH 00/35] treewide trivial patches converting pr_warning to pr_warn

2017-02-23 Thread Joe Perches
On Thu, 2017-02-23 at 17:41 +, Emil Velikov wrote: > On 23 February 2017 at 17:18, Joe Perches <j...@perches.com> wrote: > > On Thu, 2017-02-23 at 09:28 -0600, Rob Herring wrote: > > > On Fri, Feb 17, 2017 at 1:11 AM, Joe Perches <j...@perches.com> wrote

Re: [PATCH 00/35] treewide trivial patches converting pr_warning to pr_warn

2017-02-23 Thread Joe Perches
On Thu, 2017-02-23 at 09:28 -0600, Rob Herring wrote: > On Fri, Feb 17, 2017 at 1:11 AM, Joe Perches <j...@perches.com> wrote: > > There are ~4300 uses of pr_warn and ~250 uses of the older > > pr_warning in the kernel source tree. > > > > Make the use of pr_

Re: [PATCH] drm: drm_printer: add __printf validation

2017-02-21 Thread Joe Perches
On Tue, 2017-02-21 at 10:26 +0200, Jani Nikula wrote: > You know how this stuff works, please split it up to get the stuff > merged. Quite well actually. Fix it as you think appropriate. But in any case, fix it. ___ dri-devel mailing list

[PATCH] drm: drm_printer: add __printf validation

2017-02-15 Thread Joe Perches
drm_printf does not currently use the compiler to verify format and arguments. Make it do so. Miscellanea: o Add appropriate #include files for __printf and struct va_format o Convert dev_printk to dev_info Signed-off-by: Joe Perches <j...@perches.com> --- drivers/gpu/drm/drm_print

[PATCH 00/35] treewide trivial patches converting pr_warning to pr_warn

2017-02-17 Thread Joe Perches
with 'sed s/\bpr_warning\b/pr_warn/' and some emacsing. Miscellanea: o Coalesce formats and realign arguments Some files not compiled - no cross-compilers Joe Perches (35): alpha: Convert remaining uses of pr_warning to pr_warn ARM: ep93xx: Convert remaining uses of pr_warning to pr_warn

[RFC PATCH] get_maintainer: Look for arbitrary letter prefixes in sections

2016-10-24 Thread Joe Perches
ix types in a section. Signed-off-by: Joe Perches ---  scripts/get_maintainer.pl | 12 +---  1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index aed4511f0304..633f2dd3de27 100755 --- a/scripts/get_maintainer.pl +++ b/scri

[PATCH] drm/amd/powerplay: fix spelling mistake and add KERN_WARNING to printks

2016-10-24 Thread Joe Perches
On Mon, 2016-10-24 at 23:30 +0100, Colin King wrote: > From: Colin Ian King > > Fix trivial spelling mistake cant't -> can't and add KERN_WARNING to > printk messages. trivia: > diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c > b/drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c []

[PATCH 14/14] GPU-DRM-TTM: Mark an array of text strings as "const" in ttm_dma_pool_init()

2016-09-22 Thread Joe Perches
On Thu, 2016-09-22 at 19:46 +0200, SF Markus Elfring wrote: > The local variable "n" was not modified after it was initialized with > a few text strings. > Thus express this detail also by the data type qualifier "const". [] > diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c >

[PATCH 00/15] improve function-level documentation

2016-10-01 Thread Joe Perches
On Sat, 2016-10-01 at 21:46 +0200, Julia Lawall wrote: > These patches fix cases where the documentation above a function definition > is not consistent with the function header. Issues are detected using the > semantic patch below (http://coccinelle.lip6.fr/). Basically, the semantic > patch

[PATCH 0/2] drm: Neaten and reduce object size

2016-09-25 Thread Joe Perches
Joe Perches (2): drm: Simplify logging macros, convert DRM_NOTE to DRM_NOTICE drm: Simplify drm_printk to reduce object size quite a bit drivers/gpu/drm/drm_drv.c | 5 +-- drivers/gpu/drm/i915/intel_guc_loader.c | 22 +++-- include/drm/drmP.h | 56

[PATCH 1/2] drm: Simplify logging macros, convert DRM_NOTE to DRM_NOTICE

2016-09-25 Thread Joe Perches
Use a bit more consistent style with kernel loglevels without using macro argument concatenation. Miscellanea: o Single statement macros don't need do {} while (0) Signed-off-by: Joe Perches --- drivers/gpu/drm/i915/intel_guc_loader.c | 22 -- include/drm/drmP.h

[PATCH 2/2] drm: Simplify drm_printk to reduce object size quite a bit

2016-09-25 Thread Joe Perches
sed and not worth conversion Signed-off-by: Joe Perches --- drivers/gpu/drm/drm_drv.c | 5 +++-- include/drm/drmP.h| 30 ++ 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index 80c

[PATCH 1/2] drm: Simplify logging macros, convert DRM_NOTE to DRM_NOTICE

2016-09-27 Thread Joe Perches
On Tue, 2016-09-27 at 11:58 -0400, Sean Paul wrote: > > On Sun, Sep 25, 2016 at 10:18 PM, Joe Perches wrote: > > Use a bit more consistent style with kernel loglevels > > I'm not convinced this is worth doing if we're going to keep the > WARN/WARNING discrepancy, and I

[PATCH 1/2] drm: Simplify logging macros, convert DRM_NOTE to DRM_NOTICE

2016-09-27 Thread Joe Perches
On Tue, 2016-09-27 at 17:36 +0100, Emil Velikov wrote: > On 27 September 2016 at 17:04, Joe Perches wrote: > > On Tue, 2016-09-27 at 11:58 -0400, Sean Paul wrote: > > > On Sun, Sep 25, 2016 at 10:18 PM, Joe Perches wrote: > > > > Use a bit more consistent style w

[PATCH 1/2] drm: Simplify logging macros, convert DRM_NOTE to DRM_NOTICE

2016-09-27 Thread Joe Perches
On Tue, 2016-09-27 at 17:36 +0100, Emil Velikov wrote: > On 27 September 2016 at 17:04, Joe Perches wrote: > > On Tue, 2016-09-27 at 11:58 -0400, Sean Paul wrote: > > > On Sun, Sep 25, 2016 at 10:18 PM, Joe Perches wrote: > > > > Use a bit more consistent style w

[PATCH 0/2] gpu: drm: Use pr_cont and neaten logging

2017-02-27 Thread Joe Perches
Joe Perches (2): drm: Use pr_cont where appropriate gpu: drm: Convert printk(KERN_ to pr_ drivers/gpu/drm/amd/amdgpu/amdgpu.h| 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c | 4 +- drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 4 +- drivers/gpu/drm/amd

[PATCH 2/2] gpu: drm: Convert printk(KERN_ to pr_

2017-02-27 Thread Joe Perches
Use a more common logging style. Miscellanea: o Coalesce formats and realign arguments o Neaten a few macros now using pr_ Signed-off-by: Joe Perches <j...@perches.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c

[PATCH 1/2] drm: Use pr_cont where appropriate

2017-02-27 Thread Joe Perches
rary const char * instead of multiple printks o Remove trailing space from logging by using a leading space instead Signed-off-by: Joe Perches <j...@perches.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c | 70 drivers/gpu/drm/radeon/r600_

[PATCH 3/3] gpu: drm: drivers: Convert printk(KERN_ to pr_

2017-02-28 Thread Joe Perches
Use a more common logging style. Miscellanea: o Coalesce formats and realign arguments o Neaten a few macros now using pr_ Signed-off-by: Joe Perches <j...@perches.com> --- drivers/gpu/drm/gma500/cdv_intel_lvds.c | 9 - drivers/gpu/drm/gma500/oaktrail_lvds.c

[PATCH 0/3] gpu: drm: Convert printk(KERN_ to pr_

2017-02-28 Thread Joe Perches
Broken up for Daniel Vetter Joe Perches (3): gpu: drm: amd/radeon: Convert printk(KERN_ to pr_ gpu: drm: core: Convert printk(KERN_ to pr_ gpu: drm: drivers: Convert printk(KERN_ to pr_ drivers/gpu/drm/amd/amdgpu/amdgpu.h| 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c

[PATCH 1/3] gpu: drm: amd/radeon: Convert printk(KERN_ to pr_

2017-02-28 Thread Joe Perches
Use a more common logging style. Miscellanea: o Coalesce formats and realign arguments o Neaten a few macros now using pr_ Signed-off-by: Joe Perches <j...@perches.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c

[PATCH 2/3] gpu: drm: core: Convert printk(KERN_ to pr_

2017-02-28 Thread Joe Perches
Use a more common logging style. Miscellanea: o Coalesce formats and realign arguments Signed-off-by: Joe Perches <j...@perches.com> --- drivers/gpu/drm/drm_cache.c | 12 ++-- drivers/gpu/drm/drm_edid.c | 4 ++-- drivers/gpu/drm/drm_ioc32.c | 3 +-- 3 files changed, 9 inse

[PATCH v12 1/2] kernel.h: add u64_to_user_ptr()

2016-04-26 Thread Joe Perches
On Tue, 2016-04-26 at 11:29 -0300, Gustavo Padovan wrote: > 2016-04-26 Lucas Stach : > > Am Donnerstag, den 21.04.2016, 12:38 -0300 schrieb Gustavo Padovan: > > > From: Gustavo Padovan > > > > > > This function had copies in 3 different files. Unify them in ke

[PATCH 6/7] drm: Add ratelimited versions of the DRM_DEBUG* macros

2016-08-06 Thread Joe Perches
On Fri, 2016-08-05 at 20:30 -0400, Lyude wrote: > There's a couple of places where this would be useful for drivers (such > as reporting DP aux transaction timeouts). Maybe a single static _rs or one for each type would be better than an individual _rs per callsite.

[PATCH 1/1] drm/amdgpu/gmc7: remove dead code

2016-08-21 Thread Joe Perches
On Sun, 2016-08-21 at 20:06 +0200, Heinrich Schuchardt wrote: > In an if block for (running == 0) running cannot be non-zero. This code could also be better unindented by one level (all of the block would fit 80 columns) by changing: if (running == 0) { [code...]

[PATCH] drm/gma500: dont expose bytes from kernel stack

2016-08-21 Thread Joe Perches
On Sun, 2016-08-21 at 20:39 +0200, Heinrich Schuchardt wrote: > Components m1, m2, p2, dot, vco of variable clock should be > initialized to avoid bytes from the kernel stack to be > exposed. How was this found? visual code inspection? And isn't this true for mrst_lvds_find_best_pll as well? >

[PATCH 1/1] drm/amdgpu/gmc7: remove dead code

2016-08-21 Thread Joe Perches
On Sun, 2016-08-21 at 20:45 +0200, Heinrich Schuchardt wrote: > On 08/21/2016 08:29 PM, Joe Perches wrote: > > On Sun, 2016-08-21 at 20:06 +0200, Heinrich Schuchardt wrote: > > > In an if block for (running == 0) running cannot be non-zero. > > This code could also be

[PATCH] drm/gma500: dont expose bytes from kernel stack

2016-08-21 Thread Joe Perches
On Sun, 2016-08-21 at 21:35 +0200, Heinrich Schuchardt wrote: > On 08/21/2016 08:46 PM, Joe Perches wrote: > > On Sun, 2016-08-21 at 20:39 +0200, Heinrich Schuchardt wrote: > > > Components m1, m2, p2, dot, vco of variable clock should be > > > initialized to avoid

[PATCH 1/1] drm/radeon: avoid NULL dereference, si_get_vce_clock_voltage

2016-08-21 Thread Joe Perches
On Sun, 2016-08-21 at 22:52 +0200, Heinrich Schuchardt wrote: > It does not make sense to check if table is NULL > and afterwards to dereference it without > considering the result. This makes no sense. > The inconsistency was indicated by cppcheck. Perhaps this is a defect in cppcheck? > An

[PATCH 1/1] drm/radeon: avoid NULL dereference, si_get_vce_clock_voltage

2016-08-21 Thread Joe Perches
On Sun, 2016-08-21 at 23:20 +0200, Heinrich Schuchardt wrote: > On 08/21/2016 11:06 PM, Joe Perches wrote: > > On Sun, 2016-08-21 at 22:52 +0200, Heinrich Schuchardt wrote: > > > > > > It does not make sense to check if table is NULL > > > and

[RFC PATCH] get_maintainer: Look for arbitrary letter prefixes in sections

2016-11-03 Thread Joe Perches
On Thu, 2016-11-03 at 10:07 +0100, Paul Bolle wrote: > On Mon, 2016-10-24 at 11:05 -0700, Joe Perches wrote: > > Jani Nikula proposes patches to add a few new letter prefixes > > for "B:" bug reporting and "C:" maintainer chatting to the > > various sectio

[PATCH 5/7] staging/android: prepare sw_sync files for de-staging

2016-06-20 Thread Joe Perches
On Mon, 2016-06-20 at 12:53 -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > Fix paths in the comments. Why is it useful to have the path or filename embedded in the file at all?

[RFC 00/29] De-stage android's sync framework

2016-01-15 Thread Joe Perches
On Fri, 2016-01-15 at 12:55 -0200, Gustavo Padovan wrote: > From: Gustavo Padovan > > This patch series de-stage the sync framework, and in order to accomplish that > a bunch of cleanups/improvements on the sync and fence were made. Perhaps add/update a MAINTAINERS entry too?

[PATCH v2 0/7] lib: string: add functions to case-convert strings

2016-07-05 Thread Joe Perches
On Tue, 2016-07-05 at 13:47 -0700, Markus Mayer wrote: > This series introduces a family of generic string case conversion > functions. This kind of functionality is needed in several places in > the kernel. Right now, everybody seems to be implementing their own > copy of this functionality. > >

[PATCH v2 0/7] lib: string: add functions to case-convert strings

2016-07-05 Thread Joe Perches
On Tue, 2016-07-05 at 15:36 -0700, Markus Mayer wrote: > On 5 July 2016 at 15:14, Joe Perches wrote: > > On Tue, 2016-07-05 at 13:47 -0700, Markus Mayer wrote: > > > This series introduces a family of generic string case conversion > > > functions. This kind of functio

[PATCH] treewide: Make remaining source files non-executable

2016-12-11 Thread Joe Perches
.c and .h source files should not be executable, change the permissions to 0644. Signed-off-by: Joe Perches --- drivers/gpu/drm/amd/include/asic_reg/dce/dce_11_2_d.h | 0 drivers/gpu/drm/amd/include/asic_reg/dce/dce_11_2_sh_mask.h | 0 drivers/gpu/drm/amd/include/cgs_common.h

[PATCH] treewide: Make remaining source files non-executable

2016-12-12 Thread Joe Perches
.c and .h source files should not be executable, change the permissions to 0644. Signed-off-by: Joe Perches Acked-by: David Howells --- Linus, Andrew Morton suggested privately that you apply this directly as his toolchain doesn't support rename/permission only patches. Apparently, Andrew

[PATCH v9 2/3] kernel.h: add to_user_ptr()

2016-03-17 Thread Joe Perches
On Thu, 2016-03-17 at 14:30 -0300, Gustavo Padovan wrote: > This function had copies in 3 different files. Unify them in > kernel.h. This is only used by gpu/drm. I think this is a poor name for a generic function that would be in kernel.h. Isn't there an include file in linux/drm that's

[PATCH v9 2/3] kernel.h: add to_user_ptr()

2016-03-17 Thread Joe Perches
On Thu, 2016-03-17 at 15:43 -0300, Gustavo Padovan wrote: > 2016-03-17 Gustavo Padovan : > > 2016-03-17 Joe Perches : > > > On Thu, 2016-03-17 at 14:30 -0300, Gustavo Padovan wrote: > > > > > > > > This function had copies in 3 different files. Unify th

[PATCH v9 2/3] kernel.h: add to_user_ptr()

2016-03-17 Thread Joe Perches
On Thu, 2016-03-17 at 16:33 -0400, Rob Clark wrote: > On Thu, Mar 17, 2016 at 4:22 PM, Joe Perches wrote: > > On Thu, 2016-03-17 at 15:43 -0300, Gustavo Padovan wrote: > > > 2016-03-17 Gustavo Padovan : > > > > 2016-03-17 Joe Perches : > > > > > On Th

[PATCH v9 2/3] kernel.h: add to_user_ptr()

2016-03-17 Thread Joe Perches
On Thu, 2016-03-17 at 16:50 -0400, Rob Clark wrote: > On Thu, Mar 17, 2016 at 4:40 PM, Joe Perches wrote: [] > > It's a name that seems like it should be a straightforward > > cast of a kernel pointer to a __user pointer like: > > > > static inline void __user *to_user

[PATCH v9 2/3] kernel.h: add to_user_ptr()

2016-03-17 Thread Joe Perches
On Thu, 2016-03-17 at 18:19 -0300, Gustavo Padovan wrote: > 2016-03-17 Joe Perches : > > On Thu, 2016-03-17 at 16:50 -0400, Rob Clark wrote: > > > On Thu, Mar 17, 2016 at 4:40 PM, Joe Perches wrote: > > [] > > > > It's a name that seems like it should be a stra

[PATCH v10 2/3] kernel.h: add u64_to_user_ptr()

2016-03-18 Thread Joe Perches
On Fri, 2016-03-18 at 10:27 -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > This function had copies in 3 different files. Unify them in > kernel.h. This function might be used more in drm files in a separate patch too: $ git grep -n -E "__user.*\(\s*uintptr_t\s*\)" drivers/gpu/drm

[PATCH] gpu/drm: Use u64_to_user_pointer

2016-03-18 Thread Joe Perches
Use the newly added u64_to_user_pointer a bit more frequently. Signed-off-by: Joe Perches --- drivers/gpu/drm/armada/armada_gem.c| 2 +- drivers/gpu/drm/nouveau/nouveau_gem.c | 7 --- drivers/gpu/drm/tegra/drm.c| 15 --- drivers/gpu/drm/vc4/vc4_bo.c

  1   2   3   4   5   >