[Freedreno] [PATCH v5 0/7] qcom: add OCMEM support

2019-08-05 Thread Brian Masney
This patch series adds support for Qualcomm's On Chip MEMory (OCMEM) that is needed in order to support some a3xx and a4xx-based GPUs upstream. This is based on Rob Clark's patch series that he submitted in October 2015 and I am resubmitting updated patches with his permission. See the individual p

[Freedreno] [PATCH v5 7/7] ARM: qcom_defconfig: add ocmem support

2019-08-05 Thread Brian Masney
Add ocmem driver that's needed for some a3xx and a4xx based systems. Signed-off-by: Brian Masney --- This is a new patch that was introduced in v5. arch/arm/configs/qcom_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/qcom_defconfig b/arch/arm/configs/qcom_defconf

[Freedreno] [PATCH v5 5/7] soc: qcom: add OCMEM driver

2019-08-05 Thread Brian Masney
The OCMEM driver handles allocation and configuration of the On Chip MEMory that is present on some Snapdragon SoCs. Devices which have OCMEM do not have GMEM inside the GPU core, so the GPU must instead use OCMEM to be functional. Since the GPU is currently the only OCMEM user with an upstream dri

[Freedreno] [PATCH v5 4/7] firmware: qcom: scm: add support to restore secure config to qcm_scm-32

2019-08-05 Thread Brian Masney
From: Rob Clark Add support to restore the secure configuration for qcm_scm-32.c. This is needed by the On Chip MEMory (OCMEM) that is present on some Snapdragon devices. Signed-off-by: Rob Clark [masn...@onstation.org: ported to latest kernel; set ctx_bank_num to spare parameter.] Signed-off-

[Freedreno] [PATCH v5 2/7] dt-bindings: display: msm: gmu: add optional ocmem property

2019-08-05 Thread Brian Masney
Some A3xx and A4xx Adreno GPUs do not have GMEM inside the GPU core and must use the On Chip MEMory (OCMEM) in order to be functional. Add the optional ocmem property to the Adreno Graphics Management Unit bindings. Signed-off-by: Brian Masney --- Changes since v4: - None Changes since v3: - cor

[Freedreno] [PATCH v5 1/7] dt-bindings: soc: qcom: add On Chip MEMory (OCMEM) bindings

2019-08-05 Thread Brian Masney
Add device tree bindings for the On Chip Memory (OCMEM) that is present on some Qualcomm Snapdragon SoCs. Signed-off-by: Brian Masney Reviewed-by: Rob Herring --- Changes since v4: - remove qcom from path in $id Changes since v3: - add ranges property - remove unnecessary literal block | - add

[Freedreno] [PATCH v5 3/7] firmware: qcom: scm: add OCMEM lock/unlock interface

2019-08-05 Thread Brian Masney
From: Rob Clark Add support for the OCMEM lock/unlock interface that is needed by the On Chip MEMory (OCMEM) that is present on some Snapdragon devices. Signed-off-by: Rob Clark [masn...@onstation.org: ported to latest kernel; minor reformatting.] Signed-off-by: Brian Masney Reviewed-by: Bjorn

[Freedreno] [PATCH v5 6/7] drm/msm/gpu: add ocmem init/cleanup functions

2019-08-05 Thread Brian Masney
The files a3xx_gpu.c and a4xx_gpu.c have ifdefs for the OCMEM support that was missing upstream. Add two new functions (adreno_gpu_ocmem_init and adreno_gpu_ocmem_cleanup) that removes some duplicated code. Signed-off-by: Brian Masney --- Changes since v4: - None Changes since v3: - None Change

[Freedreno] [PATCH] drm/msm: Use struct_size() helper

2019-08-05 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct msm_gem_submit { ... struct { ... } bos[

Re: [Freedreno] [PATCH v4 5/6] soc: qcom: add OCMEM driver

2019-08-05 Thread Bjorn Andersson
On Sat 03 Aug 07:20 PDT 2019, Brian Masney wrote: > diff --git a/drivers/soc/qcom/ocmem.c b/drivers/soc/qcom/ocmem.c > new file mode 100644 > index ..7c28ad3108a6 > --- /dev/null > +++ b/drivers/soc/qcom/ocmem.c > @@ -0,0 +1,433 @@ > +// SPDX-License-Identifier: GPL-2.0-only [..] > +MOD

[Freedreno] [PATCH 2/2] drm/msm: use drm_cache when available

2019-08-05 Thread Rob Clark
From: Rob Clark For a long time drm/msm had been abusing dma_map_* or dma_sync_* to clean pages for buffers with uncached/writecombine CPU mmap'ings. But drm/msm is managing it's own iommu domains, and really doesn't want the additional functionality provided by various DMA API ops. Let's just

[Freedreno] [PATCH v2] drivers: qcom: Add BCM vote macro to header

2019-08-05 Thread Jordan Crouse
The macro to generate a Bus Controller Manager (BCM) TCS command is used by the interconnect driver but might also be interesting to other drivers that need to construct TCS commands for sub processors so move it out of the sdm845 specific file and into the header. Signed-off-by: Jordan Crouse --

[Freedreno] XDC 2019: Schedule published & Workshops CfP reopened!

2019-08-05 Thread Mark Filion
Hello, The preliminary schedule for XDC 2019 has been published! https://xdc2019.x.org/event/5/timetable/#20191002.detailed XDC 2019 will take place at the Concordia University Conference Centre in Montréal, Canada on October 2-4, 2019. If you haven't already done so, now is the time to book you

Re: [Freedreno] [PATCH v4 1/6] dt-bindings: soc: qcom: add On Chip MEMory (OCMEM) bindings

2019-08-05 Thread Rob Herring
On Sat, Aug 3, 2019 at 8:20 AM Brian Masney wrote: > > Add device tree bindings for the On Chip Memory (OCMEM) that is present > on some Qualcomm Snapdragon SoCs. > > Signed-off-by: Brian Masney > --- > Changes since v3 > - add ranges property > - remove unnecessary literal block | > - add #addre

Re: [Freedreno] [PATCH 1/7] drm/msm/mdp4: Drop unused GPIO include

2019-08-05 Thread Linus Walleij
On Sun, Jul 28, 2019 at 12:02 PM Linus Walleij wrote: > On Sat, Jun 29, 2019 at 3:01 PM Linus Walleij > wrote: > > > This file is not using any symbols from so just > > drop this include. > > > > Cc: Rob Clark > > Cc: Sean Paul > > Cc: linux-arm-...@vger.kernel.org > > Cc: freedreno@lists.fre

Re: [Freedreno] [PATCH 12/13] drm/tilcdc: Provide ddc symlink in connector sysfs directory

2019-08-05 Thread Jyri Sarha
On 31/07/2019 19:58, Andrzej Pietrasiewicz wrote: > Use the ddc pointer provided by the generic connector. > > Signed-off-by: Andrzej Pietrasiewicz > Acked-by: Sam Ravnborg > Reviewed-by: Emil Velikov Acked-by: Jyri Sarha > --- > drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | 6 -- > 1 file c