Re: [Nouveau] [kbuild-all] Re: [PATCH v3 8/8] drm: Upcast struct drm_device.dev to struct pci_device; replace pdev

2021-01-08 Thread Daniel Vetter
On Fri, Jan 08, 2021 at 09:04:44AM +0100, Thomas Zimmermann wrote:
> Hi
> 
> Am 08.01.21 um 02:25 schrieb Rong Chen:
> > Hi Thomas,
> > 
> > Thanks for the feedback, do you mean the patch was applied to a wrong base?
> 
> I'm on drm-tip, which already has the patches that fix these issues. I think
> I should start using git's --base option when sending out patchsets.

>From today all the patches should also be in linux-next. Our maintainer
script didn't push the branches to the right tags because drm-misc-fixes
wasn't rolled forward yet (there's some trickery to make sure we don't
push patches to linux-next for the subsequent merge window before -rc1 is
tagged).
-Daniel

> 
> Best regards
> Thomas
> 
> > 
> > Best Regards,
> > Rong Chen
> > 
> > On 1/7/21 6:45 PM, Thomas Zimmermann wrote:
> > > AFAICT these are false positives. The instances have been fixed already.
> > > 
> > > Am 07.01.21 um 10:45 schrieb kernel test robot:
> > > > Hi Thomas,
> > > > 
> > > > I love your patch! Yet something to improve:
> > > > 
> > > > [auto build test ERROR on drm-tip/drm-tip]
> > > > [cannot apply to drm-intel/for-linux-next linus/master v5.11-rc2
> > > > next-20210104]
> > > > [If your patch is applied to the wrong git tree, kindly drop us a note.
> > > > And when submitting patch, we suggest to use '--base' as documented in
> > > > https://git-scm.com/docs/git-format-patch]
> > > > 
> > > > url: 
> > > > https://github.com/0day-ci/linux/commits/Thomas-Zimmermann/drm-Move-struct-drm_device-pdev-to-legacy/20210107-161007
> > > > 
> > > > base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
> > > > config: x86_64-randconfig-s021-20210107 (attached as .config)
> > > > compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
> > > > reproduce:
> > > >  # apt-get install sparse
> > > >  # sparse version: v0.6.3-208-g46a52ca4-dirty
> > > >  # 
> > > > https://github.com/0day-ci/linux/commit/380912f7b62c23322562c40e19efd7ad84d57e9c
> > > > 
> > > >  git remote add linux-review https://github.com/0day-ci/linux
> > > >  git fetch --no-tags linux-review 
> > > > Thomas-Zimmermann/drm-Move-struct-drm_device-pdev-to-legacy/20210107-161007
> > > > 
> > > >  git checkout 380912f7b62c23322562c40e19efd7ad84d57e9c
> > > >  # save the attached .config to linux build tree
> > > >  make W=1 C=1 CF='-fdiagnostic-prefix
> > > > -D__CHECK_ENDIAN__' ARCH=x86_64
> > > > 
> > > > If you fix the issue, kindly add following tag as appropriate
> > > > Reported-by: kernel test robot 
> > > > 
> > > > All errors (new ones prefixed by >>):
> > > > 
> > > >     drivers/gpu/drm/gma500/oaktrail_device.c: In function
> > > > 'oaktrail_chip_setup':
> > > > > > drivers/gpu/drm/gma500/oaktrail_device.c:509:26: error:
> > > > > > 'struct drm_device' has no member named 'pdev'; did you
> > > > > > mean 'dev'?
> > > >   509 |  if (pci_enable_msi(dev->pdev))
> > > >   |  ^~~~
> > > >   |  dev
> > > > -- 
> > > >     drivers/gpu/drm/gma500/oaktrail_lvds.c: In function
> > > > 'oaktrail_lvds_set_power':
> > > > > > drivers/gpu/drm/gma500/oaktrail_lvds.c:63:25: error:
> > > > > > 'struct drm_device' has no member named 'pdev'; did you
> > > > > > mean 'dev'?
> > > >    63 |   pm_request_idle(>pdev->dev);
> > > >   | ^~~~
> > > >   | dev
> > > > -- 
> > > >     drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c: In function 'get_clock':
> > > >     drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c:69:11: warning:
> > > > variable 'tmp' set but not used [-Wunused-but-set-variable]
> > > >    69 |  u32 val, tmp;
> > > >   |   ^~~
> > > >     drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c: In function 'get_data':
> > > >     drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c:83:11: warning:
> > > > variable 'tmp' set but not used [-Wunused-but-set-variable]
> > > >    83 |  u32 val, tmp;
> > > >   |   ^~~
> > > >     drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c: In function
> > > > 'oaktrail_lvds_i2c_init':
> > > > > > drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c:148:35:
> > > > > > error: 'struct drm_device' has no member named 'pdev';
> > > > > > did you mean 'dev'?
> > > >   148 |  chan->adapter.dev.parent = >pdev->dev;
> > > >   |   ^~~~
> > > >   |   dev
> > > > -- 
> > > >     drivers/gpu/drm/vmwgfx/vmwgfx_drv.c: In function 'vmw_driver_load':
> > > > > > drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:661:22: error:
> > > > > > 'struct drm_device' has no member named 'pdev'; did you
> > > > > > mean 'dev'?
> > > >   661 |  pci_set_master(dev->pdev);
> > > >   |  ^~~~
> > > >   |  dev
> > > >     In file included from drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:31:
> > > >     drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:690:47: error: 'struct
> > > > 

Re: [Nouveau] [kbuild-all] Re: [PATCH v3 8/8] drm: Upcast struct drm_device.dev to struct pci_device; replace pdev

2021-01-08 Thread Thomas Zimmermann

Hi

Am 08.01.21 um 02:25 schrieb Rong Chen:

Hi Thomas,

Thanks for the feedback, do you mean the patch was applied to a wrong base?


I'm on drm-tip, which already has the patches that fix these issues. I 
think I should start using git's --base option when sending out patchsets.


Best regards
Thomas



Best Regards,
Rong Chen

On 1/7/21 6:45 PM, Thomas Zimmermann wrote:

AFAICT these are false positives. The instances have been fixed already.

Am 07.01.21 um 10:45 schrieb kernel test robot:

Hi Thomas,

I love your patch! Yet something to improve:

[auto build test ERROR on drm-tip/drm-tip]
[cannot apply to drm-intel/for-linux-next linus/master v5.11-rc2 
next-20210104]

[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url: 
https://github.com/0day-ci/linux/commits/Thomas-Zimmermann/drm-Move-struct-drm_device-pdev-to-legacy/20210107-161007 


base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: x86_64-randconfig-s021-20210107 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
 # apt-get install sparse
 # sparse version: v0.6.3-208-g46a52ca4-dirty
 # 
https://github.com/0day-ci/linux/commit/380912f7b62c23322562c40e19efd7ad84d57e9c 


 git remote add linux-review https://github.com/0day-ci/linux
 git fetch --no-tags linux-review 
Thomas-Zimmermann/drm-Move-struct-drm_device-pdev-to-legacy/20210107-161007 


 git checkout 380912f7b62c23322562c40e19efd7ad84d57e9c
 # save the attached .config to linux build tree
 make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 
ARCH=x86_64


If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 

All errors (new ones prefixed by >>):

    drivers/gpu/drm/gma500/oaktrail_device.c: In function 
'oaktrail_chip_setup':
drivers/gpu/drm/gma500/oaktrail_device.c:509:26: error: 'struct 
drm_device' has no member named 'pdev'; did you mean 'dev'?

  509 |  if (pci_enable_msi(dev->pdev))
  |  ^~~~
  |  dev
--
    drivers/gpu/drm/gma500/oaktrail_lvds.c: In function 
'oaktrail_lvds_set_power':
drivers/gpu/drm/gma500/oaktrail_lvds.c:63:25: error: 'struct 
drm_device' has no member named 'pdev'; did you mean 'dev'?

   63 |   pm_request_idle(>pdev->dev);
  | ^~~~
  | dev
--
    drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c: In function 'get_clock':
    drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c:69:11: warning: 
variable 'tmp' set but not used [-Wunused-but-set-variable]

   69 |  u32 val, tmp;
  |   ^~~
    drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c: In function 'get_data':
    drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c:83:11: warning: 
variable 'tmp' set but not used [-Wunused-but-set-variable]

   83 |  u32 val, tmp;
  |   ^~~
    drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c: In function 
'oaktrail_lvds_i2c_init':
drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c:148:35: error: 'struct 
drm_device' has no member named 'pdev'; did you mean 'dev'?

  148 |  chan->adapter.dev.parent = >pdev->dev;
  |   ^~~~
  |   dev
--
    drivers/gpu/drm/vmwgfx/vmwgfx_drv.c: In function 'vmw_driver_load':
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:661:22: error: 'struct 
drm_device' has no member named 'pdev'; did you mean 'dev'?

  661 |  pci_set_master(dev->pdev);
  |  ^~~~
  |  dev
    In file included from drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:31:
    drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:690:47: error: 'struct 
drm_device' has no member named 'pdev'; did you mean 'dev'?

  690 |  dev_priv->io_start = pci_resource_start(dev->pdev, 0);
  |   ^~~~
    include/linux/pci.h:1854:40: note: in definition of macro 
'pci_resource_start'
 1854 | #define pci_resource_start(dev, bar) 
((dev)->resource[(bar)].start)

  |    ^~~
    drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:691:49: error: 'struct 
drm_device' has no member named 'pdev'; did you mean 'dev'?

  691 |  dev_priv->vram_start = pci_resource_start(dev->pdev, 1);
  | ^~~~
    include/linux/pci.h:1854:40: note: in definition of macro 
'pci_resource_start'
 1854 | #define pci_resource_start(dev, bar) 
((dev)->resource[(bar)].start)

  |    ^~~
    drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:692:49: error: 'struct 
drm_device' has no member named 'pdev'; did you mean 'dev'?

  692 |  dev_priv->mmio_start = pci_resource_start(dev->pdev, 2);
  |  

Re: [Nouveau] [kbuild-all] Re: [PATCH v3 8/8] drm: Upcast struct drm_device.dev to struct pci_device; replace pdev

2021-01-08 Thread Rong Chen

Hi Thomas,

Thanks for the feedback, do you mean the patch was applied to a wrong base?

Best Regards,
Rong Chen

On 1/7/21 6:45 PM, Thomas Zimmermann wrote:

AFAICT these are false positives. The instances have been fixed already.

Am 07.01.21 um 10:45 schrieb kernel test robot:

Hi Thomas,

I love your patch! Yet something to improve:

[auto build test ERROR on drm-tip/drm-tip]
[cannot apply to drm-intel/for-linux-next linus/master v5.11-rc2 
next-20210104]

[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url: 
https://github.com/0day-ci/linux/commits/Thomas-Zimmermann/drm-Move-struct-drm_device-pdev-to-legacy/20210107-161007

base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: x86_64-randconfig-s021-20210107 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
 # apt-get install sparse
 # sparse version: v0.6.3-208-g46a52ca4-dirty
 # 
https://github.com/0day-ci/linux/commit/380912f7b62c23322562c40e19efd7ad84d57e9c

 git remote add linux-review https://github.com/0day-ci/linux
 git fetch --no-tags linux-review 
Thomas-Zimmermann/drm-Move-struct-drm_device-pdev-to-legacy/20210107-161007

 git checkout 380912f7b62c23322562c40e19efd7ad84d57e9c
 # save the attached .config to linux build tree
 make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 
ARCH=x86_64


If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 

All errors (new ones prefixed by >>):

    drivers/gpu/drm/gma500/oaktrail_device.c: In function 
'oaktrail_chip_setup':
drivers/gpu/drm/gma500/oaktrail_device.c:509:26: error: 'struct 
drm_device' has no member named 'pdev'; did you mean 'dev'?

  509 |  if (pci_enable_msi(dev->pdev))
  |  ^~~~
  |  dev
--
    drivers/gpu/drm/gma500/oaktrail_lvds.c: In function 
'oaktrail_lvds_set_power':
drivers/gpu/drm/gma500/oaktrail_lvds.c:63:25: error: 'struct 
drm_device' has no member named 'pdev'; did you mean 'dev'?

   63 |   pm_request_idle(>pdev->dev);
  | ^~~~
  | dev
--
    drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c: In function 'get_clock':
    drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c:69:11: warning: 
variable 'tmp' set but not used [-Wunused-but-set-variable]

   69 |  u32 val, tmp;
  |   ^~~
    drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c: In function 'get_data':
    drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c:83:11: warning: 
variable 'tmp' set but not used [-Wunused-but-set-variable]

   83 |  u32 val, tmp;
  |   ^~~
    drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c: In function 
'oaktrail_lvds_i2c_init':
drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c:148:35: error: 'struct 
drm_device' has no member named 'pdev'; did you mean 'dev'?

  148 |  chan->adapter.dev.parent = >pdev->dev;
  |   ^~~~
  |   dev
--
    drivers/gpu/drm/vmwgfx/vmwgfx_drv.c: In function 'vmw_driver_load':
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:661:22: error: 'struct 
drm_device' has no member named 'pdev'; did you mean 'dev'?

  661 |  pci_set_master(dev->pdev);
  |  ^~~~
  |  dev
    In file included from drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:31:
    drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:690:47: error: 'struct 
drm_device' has no member named 'pdev'; did you mean 'dev'?

  690 |  dev_priv->io_start = pci_resource_start(dev->pdev, 0);
  |   ^~~~
    include/linux/pci.h:1854:40: note: in definition of macro 
'pci_resource_start'
 1854 | #define pci_resource_start(dev, bar) 
((dev)->resource[(bar)].start)

  |    ^~~
    drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:691:49: error: 'struct 
drm_device' has no member named 'pdev'; did you mean 'dev'?

  691 |  dev_priv->vram_start = pci_resource_start(dev->pdev, 1);
  | ^~~~
    include/linux/pci.h:1854:40: note: in definition of macro 
'pci_resource_start'
 1854 | #define pci_resource_start(dev, bar) 
((dev)->resource[(bar)].start)

  |    ^~~
    drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:692:49: error: 'struct 
drm_device' has no member named 'pdev'; did you mean 'dev'?

  692 |  dev_priv->mmio_start = pci_resource_start(dev->pdev, 2);
  | ^~~~
    include/linux/pci.h:1854:40: note: in definition of macro 
'pci_resource_start'
 1854 | #define pci_resource_start(dev, bar) 
((dev)->resource[(bar)].start)

  |   

[Nouveau] [PATCH 00/40] [Set 11] Rid W=1 warnings from GPU

2021-01-08 Thread Lee Jones
This set is part of a larger effort attempting to clean-up W=1
kernel builds, which are currently overwhelmingly riddled with
niggly little warnings.

300 out of 5000 left!

Lee Jones (40):
  drm/nouveau/nvkm/subdev/bios/init: Demote obvious abuse of kernel-doc
  drm/nouveau/dispnv50/disp: Remove unused variable 'ret'
  drm/msm/dp/dp_display: Remove unused variable 'hpd'
  drm/amd/amdgpu/amdgpu_ih: Update 'amdgpu_ih_decode_iv_helper()'s
function header
  drm/amd/amdgpu/vega20_ih: Add missing descriptions for 'ih' and fix
spelling error
  drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0: Provide description
of 'call_back_func'
  drm/amd/pm/powerplay/hwmgr/ppatomctrl: Fix documentation for
'mpll_param'
  drm/amd/pm/powerplay/hwmgr/vega12_hwmgr: Fix legacy function header
formatting
  drm/amd/pm/powerplay/hwmgr/vega20_hwmgr: Fix legacy function header
formatting
  drm/amd/pm/powerplay/hwmgr/smu7_hwmgr: Fix formatting and spelling
issues
  drm/amd/pm/powerplay/hwmgr/hwmgr: Move prototype into shared header
  drm/amd/pm/powerplay/hwmgr/vega10_hwmgr: Fix a bunch of kernel-doc
formatting issues
  drm/amd/display/dc/basics/conversion: Demote obvious kernel-doc abuse
  drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs: Demote non-kernel-doc
comment blocks
  drm/amd/display/dc/bios/command_table_helper: Fix kernel-doc
formatting
  drm/amd/display/dc/bios/command_table_helper2: Fix legacy formatting
problems
  drm/amd/display/dc/bios/bios_parser: Make local functions static
  drm/amd/display/dc/bios/bios_parser: Fix a whole bunch of legacy doc
formatting
  drm/amd/display/dc/bios/command_table: Remove unused variable
  include: drm: drm_atomic: Make use of 'new_plane_state'
  drm/amd/display/dc/calcs/dce_calcs: Remove unused variables
'v_filter_init_mode' and 'sclk_lvl'
  drm/amd/display/dc/bios/bios_parser2: Fix some formatting issues and
missing parameter docs
  drm/amd/display/dc/dce/dce_audio: Make function invoked by reference
static
  drm/amd/display/dc/dce/dce_stream_encoder: Remove unused variable
'regval'
  drm/amd/display/dc/dce/dce_link_encoder: Make functions invoked by
reference static
  drm/amd/display/dc/dce/dce_clock_source: Fix formatting/spelling of
worthy function headers
  drm/amd/pm/powerplay/hwmgr/vega10_hwmgr: Fix worthy function headers,
demote barely documented one
  drm/amd/display/dc/dce/dce_transform: Remove 3 unused/legacy variables
  drm/amd/display/dc/dce/dce_dmcu: Staticify local function call
'dce_dmcu_load_iram'
  drm/amd/display/dc/dce/dce_dmcu: Move 'abm_gain_stepsize' to only
source file it's used in
  drm/amd/display/dc/dce/dce_opp: Make local functions and ones invoked
by reference static
  drm/amd/display/dc/dce/dce_aux: Remove unused function
'get_engine_type'
  drm/nouveau/nvkm/subdev/volt/gk20a: Demote non-conformant kernel-doc
headers
  drm/amd/display/dc/bios/bios_parser: Fix misspelling of function
parameter
  drm/amd/display/dc/bios/command_table: Remove unused variable and
associated comment
  drm/amd/display/dc/dce/dce_i2c_hw: Make functions called by reference
static
  drm/amd/display/dc/dce/dce_i2c_sw: Make a bunch of local functions
static
  drm/amd/display/dc/dce/dce_panel_cntl: Remove unused variables
'bl_pwm_cntl' and 'pwm_period_cntl'
  drm/amd/display/dc/dce/dmub_psr: Demote non-conformant kernel-doc
headers
  drm/amd/display/dc/gpio/hw_factory: Delete unused function
'dal_hw_factory_destroy'

 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c|   2 +
 drivers/gpu/drm/amd/amdgpu/vega20_ih.c|   5 +-
 .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.c |   4 +-
 .../drm/amd/display/dc/basics/conversion.c|   9 +-
 .../gpu/drm/amd/display/dc/bios/bios_parser.c | 119 +-
 .../drm/amd/display/dc/bios/bios_parser2.c|  29 ++-
 .../drm/amd/display/dc/bios/command_table.c   |  16 +-
 .../display/dc/bios/command_table_helper.c|  20 +-
 .../display/dc/bios/command_table_helper2.c   |  20 +-
 .../gpu/drm/amd/display/dc/calcs/dce_calcs.c  |   8 +-
 .../gpu/drm/amd/display/dc/dce/dce_audio.c|   2 +-
 drivers/gpu/drm/amd/display/dc/dce/dce_aux.c  |   6 -
 .../drm/amd/display/dc/dce/dce_clock_source.c |  57 +++--
 drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c |   6 +-
 drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h |   2 -
 .../gpu/drm/amd/display/dc/dce/dce_i2c_hw.c   |   4 +-
 .../gpu/drm/amd/display/dc/dce/dce_i2c_sw.c   |   9 +-
 .../drm/amd/display/dc/dce/dce_link_encoder.c |   6 +-
 drivers/gpu/drm/amd/display/dc/dce/dce_opp.c  |   8 +-
 .../drm/amd/display/dc/dce/dce_panel_cntl.c   |   8 +-
 .../amd/display/dc/dce/dce_stream_encoder.c   |   3 +-
 .../drm/amd/display/dc/dce/dce_transform.c|  13 --
 drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c |  22 +-
 .../gpu/drm/amd/display/dc/gpio/hw_factory.c  |  14 --
 .../gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c|   2 +-
 .../drm/amd/pm/powerplay/hwmgr/ppatomctrl.c   |   4 +-
 

Re: [Nouveau] [patch V3 13/37] mips/mm/highmem: Switch to generic kmap atomic

2021-01-08 Thread Paul Cercueil

Hi Thomas,

5.11 does not boot anymore on Ingenic SoCs, I bisected it to this 
commit.


Any idea what could be happening?

Cheers,
-Paul


___
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau


[Nouveau] [PATCH 01/40] drm/nouveau/nvkm/subdev/bios/init: Demote obvious abuse of kernel-doc

2021-01-08 Thread Lee Jones
Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:584: warning: Function 
parameter or member 'init' not described in 'init_reserved'
 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:611: warning: Function 
parameter or member 'init' not described in 'init_done'
 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:622: warning: Function 
parameter or member 'init' not described in 'init_io_restrict_prog'
 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:659: warning: Function 
parameter or member 'init' not described in 'init_repeat'
 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:685: warning: Function 
parameter or member 'init' not described in 'init_io_restrict_pll'
 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:725: warning: Function 
parameter or member 'init' not described in 'init_end_repeat'

NB: Trimmed for brevity (lots of these!)

Cc: Ben Skeggs 
Cc: David Airlie 
Cc: Daniel Vetter 
Cc: dri-de...@lists.freedesktop.org
Cc: nouveau@lists.freedesktop.org
Signed-off-by: Lee Jones 
---
 .../gpu/drm/nouveau/nvkm/subdev/bios/init.c   | 204 ++
 1 file changed, 68 insertions(+), 136 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c 
b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
index 9de74f41dcd2a..5a91dc4e5c8ec 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
@@ -575,9 +575,8 @@ init_tmds_reg(struct nvbios_init *init, u8 tmds)
  * init opcode handlers
  */
 
-/**
+/*
  * init_reserved - stub for various unknown/unused single-byte opcodes
- *
  */
 static void
 init_reserved(struct nvbios_init *init)
@@ -602,9 +601,8 @@ init_reserved(struct nvbios_init *init)
init->offset += length;
 }
 
-/**
+/*
  * INIT_DONE - opcode 0x71
- *
  */
 static void
 init_done(struct nvbios_init *init)
@@ -613,9 +611,8 @@ init_done(struct nvbios_init *init)
init->offset = 0x;
 }
 
-/**
+/*
  * INIT_IO_RESTRICT_PROG - opcode 0x32
- *
  */
 static void
 init_io_restrict_prog(struct nvbios_init *init)
@@ -650,9 +647,8 @@ init_io_restrict_prog(struct nvbios_init *init)
trace("}]\n");
 }
 
-/**
+/*
  * INIT_REPEAT - opcode 0x33
- *
  */
 static void
 init_repeat(struct nvbios_init *init)
@@ -676,9 +672,8 @@ init_repeat(struct nvbios_init *init)
init->repeat = repeat;
 }
 
-/**
+/*
  * INIT_IO_RESTRICT_PLL - opcode 0x34
- *
  */
 static void
 init_io_restrict_pll(struct nvbios_init *init)
@@ -716,9 +711,8 @@ init_io_restrict_pll(struct nvbios_init *init)
trace("}]\n");
 }
 
-/**
+/*
  * INIT_END_REPEAT - opcode 0x36
- *
  */
 static void
 init_end_repeat(struct nvbios_init *init)
@@ -732,9 +726,8 @@ init_end_repeat(struct nvbios_init *init)
}
 }
 
-/**
+/*
  * INIT_COPY - opcode 0x37
- *
  */
 static void
 init_copy(struct nvbios_init *init)
@@ -759,9 +752,8 @@ init_copy(struct nvbios_init *init)
init_wrvgai(init, port, index, data);
 }
 
-/**
+/*
  * INIT_NOT - opcode 0x38
- *
  */
 static void
 init_not(struct nvbios_init *init)
@@ -771,9 +763,8 @@ init_not(struct nvbios_init *init)
init_exec_inv(init);
 }
 
-/**
+/*
  * INIT_IO_FLAG_CONDITION - opcode 0x39
- *
  */
 static void
 init_io_flag_condition(struct nvbios_init *init)
@@ -788,9 +779,8 @@ init_io_flag_condition(struct nvbios_init *init)
init_exec_set(init, false);
 }
 
-/**
+/*
  * INIT_GENERIC_CONDITION - opcode 0x3a
- *
  */
 static void
 init_generic_condition(struct nvbios_init *init)
@@ -840,9 +830,8 @@ init_generic_condition(struct nvbios_init *init)
}
 }
 
-/**
+/*
  * INIT_IO_MASK_OR - opcode 0x3b
- *
  */
 static void
 init_io_mask_or(struct nvbios_init *init)
@@ -859,9 +848,8 @@ init_io_mask_or(struct nvbios_init *init)
init_wrvgai(init, 0x03d4, index, data &= ~(1 << or));
 }
 
-/**
+/*
  * INIT_IO_OR - opcode 0x3c
- *
  */
 static void
 init_io_or(struct nvbios_init *init)
@@ -878,9 +866,8 @@ init_io_or(struct nvbios_init *init)
init_wrvgai(init, 0x03d4, index, data | (1 << or));
 }
 
-/**
+/*
  * INIT_ANDN_REG - opcode 0x47
- *
  */
 static void
 init_andn_reg(struct nvbios_init *init)
@@ -895,9 +882,8 @@ init_andn_reg(struct nvbios_init *init)
init_mask(init, reg, mask, 0);
 }
 
-/**
+/*
  * INIT_OR_REG - opcode 0x48
- *
  */
 static void
 init_or_reg(struct nvbios_init *init)
@@ -912,9 +898,8 @@ init_or_reg(struct nvbios_init *init)
init_mask(init, reg, 0, mask);
 }
 
-/**
+/*
  * INIT_INDEX_ADDRESS_LATCHED - opcode 0x49
- *
  */
 static void
 init_idx_addr_latched(struct nvbios_init *init)
@@ -942,9 +927,8 @@ init_idx_addr_latched(struct nvbios_init *init)
}
 }
 
-/**
+/*
  * INIT_IO_RESTRICT_PLL2 - opcode 0x4a
- *
  */
 static void
 init_io_restrict_pll2(struct nvbios_init *init)
@@ -977,9 +961,8 @@ init_io_restrict_pll2(struct nvbios_init *init)
trace("}]\n");
 }
 
-/**
+/*
  * 

[Nouveau] [PATCH 02/40] drm/nouveau/dispnv50/disp: Remove unused variable 'ret'

2021-01-08 Thread Lee Jones
Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/nouveau/dispnv50/disp.c:1381:6: warning: variable ‘ret’ set 
but not used [-Wunused-but-set-variable]

Cc: Ben Skeggs 
Cc: David Airlie 
Cc: Daniel Vetter 
Cc: dri-de...@lists.freedesktop.org
Cc: nouveau@lists.freedesktop.org
Signed-off-by: Lee Jones 
---
 drivers/gpu/drm/nouveau/dispnv50/disp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c 
b/drivers/gpu/drm/nouveau/dispnv50/disp.c
index 33fff388dd83c..b615204c2cba6 100644
--- a/drivers/gpu/drm/nouveau/dispnv50/disp.c
+++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c
@@ -1378,10 +1378,9 @@ nv50_mstm_prepare(struct nv50_mstm *mstm)
 {
struct nouveau_drm *drm = nouveau_drm(mstm->outp->base.base.dev);
struct drm_encoder *encoder;
-   int ret;
 
NV_ATOMIC(drm, "%s: mstm prepare\n", mstm->outp->base.base.name);
-   ret = drm_dp_update_payload_part1(>mgr);
+   drm_dp_update_payload_part1(>mgr);
 
drm_for_each_encoder(encoder, mstm->outp->base.base.dev) {
if (encoder->encoder_type == DRM_MODE_ENCODER_DPMST) {
-- 
2.25.1

___
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau


[Nouveau] [PATCH 33/40] drm/nouveau/nvkm/subdev/volt/gk20a: Demote non-conformant kernel-doc headers

2021-01-08 Thread Lee Jones
Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:53: warning: Function 
parameter or member 'speedo' not described in 'gk20a_volt_get_cvb_voltage'
 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:53: warning: Function 
parameter or member 's_scale' not described in 'gk20a_volt_get_cvb_voltage'
 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:53: warning: Function 
parameter or member 'coef' not described in 'gk20a_volt_get_cvb_voltage'
 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:69: warning: Function 
parameter or member 'speedo' not described in 'gk20a_volt_get_cvb_t_voltage'
 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:69: warning: Function 
parameter or member 'temp' not described in 'gk20a_volt_get_cvb_t_voltage'
 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:69: warning: Function 
parameter or member 's_scale' not described in 'gk20a_volt_get_cvb_t_voltage'
 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:69: warning: Function 
parameter or member 't_scale' not described in 'gk20a_volt_get_cvb_t_voltage'
 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:69: warning: Function 
parameter or member 'coef' not described in 'gk20a_volt_get_cvb_t_voltage'

Cc: Ben Skeggs 
Cc: David Airlie 
Cc: Daniel Vetter 
Cc: dri-de...@lists.freedesktop.org
Cc: nouveau@lists.freedesktop.org
Signed-off-by: Lee Jones 
---
 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c 
b/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c
index ce5d83cdc7cf7..207e5278b37ed 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c
@@ -45,7 +45,7 @@ static const struct cvb_coef gk20a_cvb_coef[] = {
/* 852 */ { 1608418, -21643, -269, 0,763,  -48},
 };
 
-/**
+/*
  * cvb_mv = ((c2 * speedo / s_scale + c1) * speedo / s_scale + c0)
  */
 static inline int
@@ -58,7 +58,7 @@ gk20a_volt_get_cvb_voltage(int speedo, int s_scale, const 
struct cvb_coef *coef)
return mv;
 }
 
-/**
+/*
  * cvb_t_mv =
  * ((c2 * speedo / s_scale + c1) * speedo / s_scale + c0) +
  * ((c3 * speedo / s_scale + c4 + c5 * T / t_scale) * T / t_scale)
-- 
2.25.1

___
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau