Commit Graph

643325 Commits

Author SHA1 Message Date
qwx495460 7304d83b6c apply usb camera apps working for hikey970
Signed-off-by: qwx495460 <qwx495460@notesmail.huawei.com>
2018-08-13 11:12:13 +08:00
Xiubin Zhang 1f8c6de4da drivers/DRM:Support 10.1 inch special HDMI displays.
Adjust pixel clock for compatibility with 10.1 inch special displays.

Signed-off-by: Xiubin Zhang <zhangxiubin1@huawei.com>
2018-05-31 11:11:08 +08:00
Xiubin Zhang ade06f4298 drivers/DRM:HDMI display debug.
Signed-off-by: Xiubin Zhang <zhangxiubin1@huawei.com>
2018-05-18 19:35:51 +08:00
Siwei Xu cf1add9c89 Drivers/IPU: remove some logs and compile warnings
Signed-off-by: Siwei Xu <xusiwei1@hisilicon.com>
2018-05-12 10:47:35 +08:00
qwx495460 f58d6a749f Add ramoops for hikey970 debug
Signed-off-by: qwx495460 <qwx495460@notesmail.huawei.com>
2018-05-11 15:05:05 +08:00
Xiubin Zhang 4b883bda96 drivers/DRM:Solve SR test reset problem for hikey970.
Add HDMI/DSS power on&off in the SR flow.

Signed-off-by: Xiubin Zhang <zhangxiubin1@huawei.com>
2018-05-11 15:04:57 +08:00
qwx495460 d2fa7b9893 fix bug for BT open/close test
Signed-off-by: qwx495460 <qwx495460@notesmail.huawei.com>
2018-05-11 15:04:42 +08:00
Xiubin Zhang bcfcfbff04 drivers/DRM:Support MIPI DSI 3 lanes for hikey970.
Modfiy mipi dsi lanes to improve HDMI compatibility.

Signed-off-by: Xiubin Zhang <zhangxiubin1@huawei.com>
Signed-off-by: Liuyao An <anliuyao@huawei.com>
2018-04-11 13:54:26 +08:00
w00345465 2cee16acad PCI: Powersaving: Poweroff the switch
Signed-off-by: wanghaoxiang <wanghaoxiang@huawei.com>
2018-04-04 14:32:09 +08:00
Li Wei 9c5bc08a55 key970_defconfig/hikey960_defconfig: enable sdcard fs.
When Android P adaptable to the 4.9 kernel,
we need to open the CONFIG_SDCARD_FS macro.

Fix android P tomstone when run antutu apk:
logs:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
......
03-16 02:38:19.067  3435  3435 W sdcard  : Failed to mount sdcardfs with options fsuid=1023,fsgid=1023,multiuser,derive_gid,mask=6,userid=0,gid=1015: No such device
03-16 02:38:19.076  3435  3435 W sdcard  : Failed to mount sdcardfs with options fsuid=1023,fsgid=1023,multiuser,derive_gid,mask=6,userid=0,gid=1015: No such device
03-16 02:38:19.076  3435  3435 W sdcard  : Failed to mount sdcardfs with options fsuid=1023,fsgid=1023,multiuser,mask=6,userid=0,gid=1015: No such device
03-16 02:38:19.077  3435  3435 W sdcard  : Failed to mount sdcardfs with options fsuid=1023,fsgid=1023,mask=6,userid=0,gid=1015: No such device
03-16 02:38:19.077  3435  3435 F sdcard  : sdcard.cpp:123] failed to sdcardfs_setup
......
--------------------------------------------------------------------------------------------------------------------------------------------------------------------

Signed-off-by: Li Wei <liwei213@huawei.com>
2018-04-03 18:52:42 +08:00
Xiubin Zhang e4a37c358b drivers/DRM:Solve HDMI compatibility Problem.
Modfiy pix_clk and dsi lanes to improve HDMI compatibility for hikey970.

Signed-off-by: Xiubin Zhang <zhangxiubin1@huawei.com>
2018-04-03 12:53:56 +08:00
Kevin Wangtao c873669343 arm64: dts: kirin970: raise target trip point to 85
raise target trip point to 85 for better performance

Signed-off-by: Kevin Wangtao <kevin.wangtao@hisilicon.com>
2018-04-03 12:52:23 +08:00
Xiubin Zhang b9b54e1fba drivers/DRM:Solve SR Cannot Display Problems.
Add suspend and resume interface to solve SR Cannot Display Problems.

Signed-off-by: Xiubin Zhang <zhangxiubin1@huawei.com>
2018-03-28 18:26:32 +08:00
Xiubin Zhang 539f39f823 drivers/DRM:Rename the drm driver to be compatible with hikey960 and hikey970.
Rename DRM driver kirin960 to kirin9xx to be compatible with hikey960 and hikey970.

Signed-off-by: Xiubin Zhang <zhangxiubin1@huawei.com>
2018-03-28 18:25:49 +08:00
Li Wei b91872a9d3 BACKPORT: scsi: ufs: Factor out ufshcd_read_desc_param
Since in UFS 2.1 specification some of the descriptor lengths differs
from 2.0 specification and some devices, which are reporting spec
version 2.0 have different descriptor lengths we can not rely on
hardcoded values taken from 2.0 specification. This patch introduces
reading these lengths per each device from descriptor headers at probe
time to ensure their correctness.

Signed-off-by: Michal' Potomski <michalx.potomski@intel.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit a4b0e8a4e92b1baa860e744847fbdb84a50a5071)
Signed-off-by: Li Wei <liwei213@huawei.com>
2018-03-19 15:46:15 +08:00
Li Wei 6d345c70e2 BACKPORT: scsi: ufs: refactor device descriptor reading
Pull device descriptor reading out of ufs quirk so it can be used also
for other purposes.

Revamp the fixup setup:

1. Rename ufs_device_info to ufs_dev_desc as very similar name
   ufs_dev_info is already in use.

2. Make the handlers static as they are not used out of the ufshdc.c
   file.

[mkp: applied by hand]

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 93fdd5ac64bbe80dac6416f048405362d7ef0945)
Signed-off-by: Li Wei <liwei213@huawei.com>
2018-03-19 15:46:14 +08:00
qwx495460 20793d3f5d support ip regulator
add ip power driver based on regulator framework for hikey970
2018-03-16 09:28:30 +08:00
Siwei Xu 495c89ef5b Drivers/IPU: fix a potential panic issue and remove unsed codes.
Signed-off-by: Siwei Xu <xusiwei1@hisilicon.com>
2018-03-15 16:01:23 +08:00
Kevin Wangtao 1d2cd9e4bd cpufreq: cpufreq-dt: fix NETLINK wake up during suspend
during suspend, non-boot cpu will be pluged off, and when
the last cpu of big cluster be pluged off, the related cpu
cooling device will be unregistered, it will trigger an
uevent, this will cause early wakeup if there are not enough
time for the uevent to be handled before suspend.

This patch fixes the issue by not unregistering cpu cooling
device during suspend, this may not be a perfect solution.

Signed-off-by: Kevin Wangtao <kevin.wangtao@hisilicon.com>
2018-03-08 16:12:47 +08:00
Yao Chen 09fd0174c5 Drivers/PCIe: Bugfix for MSI interrupts missing.
This patch fixes MSI interrupts missing problem.

Signed-off-by: Yao Chen <chenyao11@huawei.com>
2018-03-08 10:56:43 +08:00
zwx305167 cf21836d0d Drivers/IPU: add IPU driver for hikey970
Add IPU device driver and device tree source for HiKey970.

Signed-off-by: zwx305167 <zwx305167@notesmail.huawei.com>
2018-03-07 20:55:15 +08:00
qwx495460 d02cfc90a2 Add WIFI/BT/GPS Driver For Hikey970.
Signed-off-by: qwx495460 <qwx495460@notesmail.huawei.com>
2018-03-07 15:17:21 +08:00
l00401870 41e8a414ad drivers: vcodec: Modify the IOMMU related interface in the vcodec driver
Modify the IOMMU related interface in the vcodec driver.

Signed-off-by: l00401870 <l00401870@notesmail.huawei.com>
2018-03-05 17:55:13 +08:00
Li Wei b39ab2d98c drivers:iommu: muti-domain for smmu on hikey970 platform
On the hikey960 platform, only one domain is supported,
and you can see that the media business is all used by the domain created by the ion.

After adding IPU (AI) to Hikey970 platform, it uses its own domain,
so the underlying layer needs to support multiple page mapping of domain,
otherwise IPU and DRM mapping will conflict, resulting in IPU recognition of image failure.

Signed-off-by: Li Wei <liwei213@huawei.com>
2018-03-05 17:55:11 +08:00
xwx495457 b18aa48f36 media: Hisilicon isp: add Hisilicon isp driver on Hikey970 board. support for yuv sensor ov5640 & D3 Camera board.
Signed-off-by: xwx495457 <xwx495457@notesmail.huawei.com>
2018-03-05 16:14:41 +08:00
Guodong Xu bb3fd43c36 hikey970_defconfig: enable hdmi audio
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
2018-03-05 15:58:35 +08:00
houxiaoyong 08c3eee43a Hifi_dsp: add hikey970 memmap and fix a bug about memory overflow
Signed-off-by: houxiaoyong <houxiaoyong1@huawei.com>
2018-03-05 15:44:31 +08:00
houxiaoyong 5ec9e7ade8 Hifi_dsp: support hifi for hikey970
Add HiFi DSP support for HiKey970

Signed-off-by: houxiaoyong <houxiaoyong1@huawei.com>
[clean up failure when applying support_hifi.patch]
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
2018-03-05 15:41:44 +08:00
xwx495457 8094511eee Drivers/VCODEC: support vcodec function for hikey970.
Add VCODEC code in kernel to support vcodec for hikey970.

Signed-off-by: xwx495457 <xwx495457@notesmail.huawei.com>
2018-03-05 15:18:46 +08:00
zwx305167 cae64574fd dts: arm64: add drm for hikey970.
Add dts and defconfig support HDMI&LCD display function for hikey970.

Signed-off-by: zwx305167 <zwx305167@notesmail.huawei.com>
2018-03-02 15:24:26 +08:00
zwx342317 3db63453bc Drivers/DRM: support display function for hikey970.
Add HDMI & LCD driver code use DRM/KMS subsystem for hikey970.

Signed-off-by: cailiwei@hisilicon.com
Signed-off-by: zhangxiubin1@huawei.com
2018-03-02 15:24:14 +08:00
zwx305167 4c2a034fd7 MALI: Hikey970 GPU Dirver Porting 2018-03-02 15:21:49 +08:00
Li Wei b743e0961e BACKPORT: staging: android: ion: Stop butchering the DMA address
Now that we have proper caching, stop setting the DMA address manually.
It should be set after properly calling dma_map.

Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 62b3a094cb9e4a3c5a5be4a20b72e0ced3af0e31)
Signed-off-by: Li Wei <liwei213@huawei.com>
2018-03-02 14:12:45 +08:00
Li Wei a92f30866f BACKPORT: staging: android: ion: Remove crufty cache support
Now that we call dma_map in the dma_buf API callbacks there is no need
to use the existing cache APIs. Remove the sync ioctl and the existing
bad dma_sync calls. Explicit caching can be handled with the dma_buf
sync API.

Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 5dc3bafb4217e021a38fe67445dac5b659909c36)
Signed-off-by: Li Wei <liwei213@huawei.com>
2018-03-02 14:12:45 +08:00
Li Wei a065b7aaa8 BACKPORT: staging: android: ion: Call dma_map_sg for syncing and mapping
Technically, calling dma_buf_map_attachment should return a buffer
properly dma_mapped. Add calls to dma_map_sg to begin_cpu_access to
ensure this happens. As a side effect, this lets Ion buffers take
advantage of the dma_buf sync ioctls.

Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 2a55e7b5e5446c970e00be1bca8536f4a58bf21c)
Signed-off-by: Li Wei <liwei213@huawei.com>
2018-03-02 14:12:44 +08:00
Laura Abbott e0ac735734 BACKPORT: staging: android: ion: Duplicate sg_table
Ion currently returns a single sg_table on each dma_map call. This is
incorrect for later usage.

Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 17fd283f3870dd63c91c99591aab14e21799c119)
Signed-off-by: Li Wei <liwei213@huawei.com>
2018-03-02 14:12:44 +08:00
wanghaoxiang1 ab5d241d7b eth: hisilicon: Solve the "no buffer space available" problem of Ethernet 2018-03-01 15:12:03 +08:00
Yao Chen 1bc151858c Drivers/PCIe: Fix the failure of enumerating devices under root subordinate
Bugfix for the commit of a20c7f36bd3d ("PCI: Do not allocate more buses than available in
parent").With this patch enumeration stops digging deeper downstream as soon as bus num 0x01 has been assigned, which is always the case for a bridge device.This results in all devices behind a bridge bus to remain undetected, as these would be connected to bus 0x02 or higher.

Reference to https://patchwork.ozlabs.org/patch/857566/

Signed-off-by: Yao Chen <chenyao11@huawei.com>
2018-03-01 10:40:01 +08:00
Wanglai Shi a5e090208b dts: arm64: Add CoreSight trace support for kirin970 included
This patch includes the CoreSight dts into the device tree.
2018-02-28 13:18:43 +08:00
Wanglai Shi d5222b5ab6 dts: arm64: Add CoreSight trace support for kirin970
This patch adds devicetree entries for the CoreSight trace components
on the kirin970.
2018-02-28 13:18:43 +08:00
Wanglai Shi 1a4bac00ad coresight: ETM: Add support for ARM Cortex-A73
Add ARM Cortex A-73 ETM PIDs to the known ETM ips. While at it
also add description of the CPU to which the ETM belongs, to make
it easier to identify the ETM devices.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
2018-02-28 13:18:42 +08:00
Mathieu Poirier b667a2035b coresight: tmc: implementing TMC-ETR AUX space API
This patch implement the AUX area interfaces required to
use the TMC (configured as an ETR) from the Perf sub-system.

The ETR is configured to work with contiguous memory only.
Although not optimal, it allows the IP block to be used
while the scatter-gather mode of operation is being worked
on.

The heuristic is heavily borrowed from the ETB10 and TMC-ETF
implementation.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
(cherry picked from commit ea817df0ff9e657c2bc1014787562dbf49bfdccd)
2018-02-28 13:18:41 +08:00
Quentin Lambert 61c6ef2dc8 coresight: perf: Add a missing call to etm_free_aux
Most error branches following the call to alloc_event_data contain a call
to etm_free_aux. This patch add a call to etm_free_aux to an error branch
that does not call it.

This issue was found with Hector.

Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
(cherry picked from commit 285fb22a8f3b242727da09d43262ef8dfd6424dd)
2018-02-28 13:18:41 +08:00
Suzuki K. Poulose 1825a7db86 coresight: tmc: Remove duplicate memset
The tmc_etr_enable_hw() fills the buffer with 0's before enabling
the hardware. So, we don't need an explicit memset() in
tmc_enable_etr_sink_sysfs() before calling the tmc_etr_enable_hw().
This patch removes the explicit memset from tmc_enable_etr_sink_sysfs.

Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
(cherry picked from commit 80445970ae1c928e503aefc66033e825b9668884)
2018-02-28 13:18:41 +08:00
Suzuki K. Poulose d0d63cb9c1 coresight: tmc: Get rid of mode parameter for helper routines
Get rid of the superfluous mode parameter and the check for
the mode in tmc_etX_enable_sink_{perf/sysfs}. While at it, also
remove the unnecessary WARN_ON() checks.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
(cherry picked from commit 63c0930d10ced04a542a526c9641b512d4074f02)
2018-02-28 13:18:40 +08:00
Suzuki K. Poulose 701f480ade coresight: tmc: Cleanup operation mode handling
The mode of operation of the TMC tracked in drvdata->mode is defined
as a local_t type. This is always checked and modified under the
drvdata->spinlock and hence we don't need local_t for it and the
unnecessary synchronisation instructions that comes with it. This
change makes the code a bit more cleaner.

Also fixes the order in which we update the drvdata->mode to
CS_MODE_DISABLED. i.e, in tmc_disable_etX_sink we change the
mode to CS_MODE_DISABLED before invoking tmc_disable_etX_hw()
which in turn depends on the mode to decide whether to dump the
trace to a buffer.

Applies on mathieu's coresight/next tree [1]

https://git.linaro.org/kernel/coresight.git next

Reported-by: Venkatesh Vivekanandan <venkatesh.vivekanandan@broadcom.com>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
(cherry picked from commit 034cd3ad350f05718a11271b64ec7634edafe89a)
2018-02-28 13:18:40 +08:00
Mathieu Poirier 1b3b4dca3e coresight: reset "enable_sink" flag when need be
When using coresight from the perf interface sinks are specified
as part of the perf command line.  As such the sink needs to be
disabled once it has been acknowledged by the coresight framework.
Otherwise the sink stays enabled, which may interfere with other
sessions.

This patch removes the sink selection check from the build path
process and make it a function on it's own.  The function is
then used when operating from sysFS or perf to determine what
sink has been selected.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
(cherry picked from commit 286665518b31be5f7b8e27fe7468941438046d16)
2018-02-28 13:18:40 +08:00
Yao Chen a27c9208e8 Drivers/PCIe: change mode of pcie driver files
This patch change the mode of pcie driver files

Signed-off-by: Yao Chen <chenyao11@huawei.com>
2018-02-14 12:12:35 +08:00
wanghaoxiang1 c2ddf9217f eth: hisilicon: hikey970: enable r8168 Ethernet driver for hikey970 2018-02-13 15:33:34 +08:00
liwei213 33bca63281 drivers/scsi:ufs: enable the ufs feature
Open the kernel macros of ufs for hikey platform.

Signed-off-by: liwei213 <liwei213@huawei.com>
2018-02-13 15:17:58 +08:00