public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drm/msm:  CONFIG_MSM_OCMEM?
@ 2014-02-11 15:39 Paul Bolle
  2014-02-11 17:29 ` Rob Clark
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Bolle @ 2014-02-11 15:39 UTC (permalink / raw)
  To: Rob Clark; +Cc: Richard Weinberger, David Airlie, dri-devel, linux-kernel

Rob,

Commit 55459968176f ("drm/msm: add a330/apq8x74") added preprocessor
checks for CONFIG_MSM_OCMEM. But I couldn't find a Kconfig symbol
MSM_OCMEM (nor a preprocessor define for a macro of that name). Why were
those preprocessor checks added?

Please note that lines 197-201 currently read:
    /* Set the OCMEM base address for A330, etc */
    if (a3xx_gpu->ocmem_hdl) {
            gpu_write(gpu, REG_A3XX_RB_GMEM_BASE_ADDR,
                    (unsigned int)(a3xx_gpu->ocmem_base >> 14));
    }

ocmem_hdl and ocmem_base are used uninitialized here, aren't they? So it
seems these lines should be wrapped with a preprocessor check for
CONFIG_MSM_OCMEM too.


Paul Bolle


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-11 20:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-11 15:39 drm/msm: CONFIG_MSM_OCMEM? Paul Bolle
2014-02-11 17:29 ` Rob Clark
2014-02-11 20:00   ` Paul Bolle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox