summaryrefslogtreecommitdiff
path: root/drivers/gpu (follow)
Commit message (Collapse)AuthorAge
...
* | | | | | | | | Merge "msm: sde: add early display handoff feature"Linux Build Service Account2017-07-28
|\| | | | | | | |
| * | | | | | | | msm: sde: add early display handoff featureGuchun Chen2017-07-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When enabling animation/static splash in LK, drm/kms driver needs to involve handoff code to support smooth transition. In display driver's probe, it will do following items: 1. Check the status in LK for early splash. 2. Add data bus bandwidth voting in function sde_splash_init. 2. Handle SMMU mapping issue to avoid SMMU fault problem. 3. Bypass hardware reset to avoid glitch. And after user's space is up, when first commit's vblank comes, it will call functions to: 1. Tell LK to stop static/animation display and to exit. 2. Set early_domain_map_attr to 1 to enable stage 1 translation in iommu driver. 3. Check the property of commit.If it's for HDMI, release HDMI resource. If for DSI, release DSI resource. 4. Recycle the memory to be available to system. 5. Withdraw the bus bandwidth voting. Change-Id: If425f044e2c40301eed57375a33a26ec1970abd5 Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
* | | | | | | | | Merge "drm/msm/sde: disable vblank ref power on crtc disable"Linux Build Service Account2017-07-28
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | drm/msm/sde: disable vblank ref power on crtc disableClarence Ip2017-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update vblank reference counts via the exposed sde_crtc_vblank function, rather than attempting to zero it on the side during CRTC disable operations. This allows the power voting to be updated correctly based on the vblank reference count value. CRs-Fixed: 2037677 Change-Id: I7026a1b239503a2b1d97ad7bb61fbc0a4a38d7ea Signed-off-by: Clarence Ip <cip@codeaurora.org>
* | | | | | | | | | Merge "drm/msm/sde: output black frame during resume operation"Linux Build Service Account2017-07-28
|\| | | | | | | | |
| * | | | | | | | | drm/msm/sde: output black frame during resume operationClarence Ip2017-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch provides a module parameter to control whether each plane outputs the previously configured content or a black frame during the resume operation. The default is set to output a black frame. CRs-Fixed: 2019307 Change-Id: I48c1a8edfa1e85252a070bda51228ef67dea041c Signed-off-by: Clarence Ip <cip@codeaurora.org>
| * | | | | | | | | drm/msm/sde: dispatch suspend/resume notification to cpClarence Ip2017-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change enables the appropriate callbacks to the color processing component on suspend/resume transitions. CRs-Fixed: 2019307 Change-Id: I7b8c9eb2b32da42e36d32e9d88e74e0c0c7b1ecb Signed-off-by: Clarence Ip <cip@codeaurora.org>
| * | | | | | | | | drm/msm/sde: move power resource handling for vblank to crtcsClarence Ip2017-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the power resource request/release from the sde kms layer into the CRTCs so that proper accounting for suspend/resume operations may be done. A single power resource request is made as long while the CRTC's vblank request ref count is not zero and the driver is not in a suspended state. CRs-Fixed: 2019307 Change-Id: I2d47567ec3dded72faed8bd5441d8d4653d5ef25 Signed-off-by: Clarence Ip <cip@codeaurora.org>
| * | | | | | | | | drm/msm/sde: reset drm state on suspend/resumeClarence Ip2017-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Explicitly disable connector DPMS and CRTC active states on system suspend, and restore the previous state during a system resume. This allows the underlying drivers to trigger a DPMS callback for handling any panel related power disables while still preserving the DRM atomic state. CRs-Fixed: 2019307 Change-Id: Ib9933e4bc8b43c64def777b081d4315e5dbb7365 Signed-off-by: Clarence Ip <cip@codeaurora.org>
| * | | | | | | | | drm/msm/sde: allow forcing of kernel scaler calculationClarence Ip2017-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a debugfs entry to the planes to force the driver to ignore any custom scaler configuration from the user space. CRs-Fixed: 2019305 Change-Id: I98596a1aaa0629ca1bfe81ab5c01a0d7854859e3 Signed-off-by: Clarence Ip <cip@codeaurora.org>
| * | | | | | | | | drm/msm/sde: add null checks to scaler3 lut setupClarence Ip2017-07-21
| | |_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Plane state is set to NULL during color fill operations. This patch adds checks to gracefully handle NULL plane state during the scaler3 setup path. CRs-Fixed: 2019301 Change-Id: I3ac5bd8f26e68afe559bf7c815da904392d3de13 Signed-off-by: Clarence Ip <cip@codeaurora.org>
* | | | | | | | | Merge "msm: kgsl: Fix the syncpoint_fence trace"Linux Build Service Account2017-07-28
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | msm: kgsl: Fix the syncpoint_fence traceSunil Khatri2017-07-24
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We should have a corresponding syncpoint_fence trace for every syncpoint_fence_expire trace. In case the fence is already signaled then make sure to have syncpoint_fence trace before syncpoint_fence_expire trace. Also take an extra refcount for fence which will make sure that the fence pointer is valid in the trace even if the fence is signaled. Change-Id: I2fd8f91c800f89a4a64813a6908eaa0445cf548b Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
* | | | | | | | | Merge "msm: sde: fix kernel booting failure in sde driver"Linux Build Service Account2017-07-28
|\ \ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | / / / / | |_|_|_|/ / / / |/| | | | | | |
| * | | | | | | msm: sde: fix kernel booting failure in sde driverGuchun Chen2017-07-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This issue is caused by change 1974734. With that change, kernel booting will fail in sde driver. [drm:sde_wb_drm_init:601] [sde error]invalid params [drm:_sde_kms_setup_displays:691] [sde error]wb bridge 0 init failed, -22 [drm:_sde_init_phy_plane:2663] [sde error][5]no valid formats for plane [drm:sde_plane_init:2746] [sde error]_sde_init_phy_plane error vp=0 [drm:_sde_kms_drm_obj_init:861] [sde error]sde_plane_init failed [drm:sde_kms_hw_init:1288] [sde error]modeset init failed: -22 msm_drm 900000.qcom,mdss_mdp: kms hw init failed: -22 sblk->format_list should be put back to _sde_sspp_setup_vig, _sde_sspp_setup_rgb, _sde_sspp_setup_cursor,_sde_sspp_setup_dma and sde_wb_parse_dt, otherwise, it will fail when populating the pixel format which pipe supported in sde_plane_init. Change-Id: I479886d7d7e676a10f8a26bd372aad847dd03163 Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
* | | | | | | | Merge "drm/msm: Turn off hardware clock gating before reading A5XX registers"Linux Build Service Account2017-07-26
|\ \ \ \ \ \ \ \
| * | | | | | | | drm/msm: Turn off hardware clock gating before reading A5XX registersJordan Crouse2017-07-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On A5XX GPU hardware clock gating needs to be turned off before reading certain GPU registers via AHB. Turn off HWCG before calling adreno_show() to safely dump all the registers without a system hang. Change-Id: Ic0dedbad550ab5d414cea7837672e586a7acd370 Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
| * | | | | | | | drm/msm: Remember the state of A5XX hardware clock gatingJordan Crouse2017-07-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remember if the A5XX hardware clock gating is currently enabled or disabled to avoid inadvertently enabling it. Change-Id: Ic0dedbada3734a257ac966c041d06695f3521ad4 Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
| * | | | | | | | drm/msm: Keep the power on throughout the entire ->show() operationJordan Crouse2017-07-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enabling and disabling the power at various points in the ->show() call flow may have detrimental effects. For all targets make sure power is on before reading any register and leave it on until we are all done. Change-Id: Ic0dedbad4d37a11634174105fc3ee6fe3713a143 Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
| * | | | | | | | drm/msm: Check value of active_cnt in a5xx power functionsJordan Crouse2017-07-24
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The generic msm_gpu_pm_resume/msm_gpu_pm_suspend functions have built-in reference counting but the a5xx specific functions are doing unconditional a5xx specific setup / teardown that would behave very badly if they were not accompanied by an actual power up / power down. Change-Id: Ic0dedbad549c4ea9a5c68b0ca43eb98e0449d54b Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
* | | | | | | | Merge "msm: kgsl: Update total time at right place for accurate GPU busy"Linux Build Service Account2017-07-25
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | msm: kgsl: Update total time at right place for accurate GPU busyAbhilash Kumar2017-07-21
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For calculation of busy time and total time, KGSL relies on perf counters and CPU clock. These can be a bit out of sync and may give GPU busy greater than 100 percent. Updating time at the right place will give more accurate total time and will avoid crossing 100% in GPU busy calculation. Change-Id: I3cc702492325b9dc44ea2b705e4d9014d95abd33 Signed-off-by: Abhilash Kumar <krabhi@codeaurora.org>
* | | | | | | Merge "drm/msm: add support for HDR playback control sequence"Linux Build Service Account2017-07-21
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | drm/msm: add support for HDR playback control sequenceAbhinav Kumar2017-07-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HDR playback needs metadata to be sent to the sink while the playback is ongoing and needs a proper teardown sequence when the playback has ended with respect to the infoframe being sent to the sink. This needs a state machine to synchronize start/stop of the playback with sending the right metadata along with resetting the infoframe HDMI registers. Add support for this HDR playback control state machine. Change-Id: I229183531f7ccb48579e74d02e0a1dea1cb945ff Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
* | | | | | | Merge "drm/msm: fix Y420CMDB EDID block parsing"Linux Build Service Account2017-07-17
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | drm/msm: fix Y420CMDB EDID block parsingAbhinav Kumar2017-07-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the Y420CMDB EDID block parsing to handle the case where the block does not include a capability bitmap. This case means that all the short video descriptors support the YUV 420 mode as well. Also fix the incorrect length check in the parser API. The capability bitmap has no minimum length field. Change-Id: I5d9c2d3ac11d5ddad8e36cb7acfebfb41175f4b7 Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
* | | | | | | Merge "msm: kgsl: Change pwrlevels array index type to unsigned int"Linux Build Service Account2017-07-16
|\ \ \ \ \ \ \
| * | | | | | | msm: kgsl: Change pwrlevels array index type to unsigned intVenkateswara Rao Tadikonda2017-07-14
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the array index 'i' of pwrlevels[] to unsigned int, which can't be decremented beyond zero. Change-Id: I9b646fccf03437f6facf0d5938f097916d13d2f2 Signed-off-by: Venkateswara Rao Tadikonda <vtadik@codeaurora.org>
* | | | | | | drm/msm: add YUV format support for HDMIYuan Zhao2017-07-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds YUV format support for HDMI. Also, chooses the best mode for turning on the sink based on sink source capabilities. This can be either RGB or YUV. For YUV formats adjust the pixel clock and also configure the relevant hardware blocks in SDE. Change-Id: I48a36a991c194badb3ddca4bbf5bcbc21d838b8f Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
* | | | | | | drm/msm: add RGB 30-bit deep color support for HDMIYuan Zhao2017-07-14
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check if the TV supports deep color and adjust the pixel clock accordingly before setting the mode. Also make sure that this pixel clock is within the limits of the sink. Change-Id: I3c44c06ea54b6c49e19c8c41d693000f7c3feeb7 Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
* | | | | | Merge "msm: kgsl: Use vma_area_struct with proper locks"Linux Build Service Account2017-07-12
|\ \ \ \ \ \
| * | | | | | msm: kgsl: Use vma_area_struct with proper locksSunil Khatri2017-07-06
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure to use proper locks when using the vma_struct_area. This will avoid the race condition in a scenario where one thread gets a vma_struct_area and other thread is unmapping the vma from the process. Change-Id: I6c7837d1a8dd24fc6955ab5be8b1917a42f2cb53 Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
* | | | | | Merge "Merge android-4.4@64a73ff (v4.4.76) into msm-4.4"Linux Build Service Account2017-07-12
|\ \ \ \ \ \
| * \ \ \ \ \ Merge android-4.4@64a73ff (v4.4.76) into msm-4.4Blagovest Kolenichev2017-07-10
| |\ \ \ \ \ \ | | | |_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/heads/tmp-64a73ff: Linux 4.4.76 KVM: nVMX: Fix exception injection KVM: x86: zero base3 of unusable segments KVM: x86/vPMU: fix undefined shift in intel_pmu_refresh() KVM: x86: fix emulation of RSM and IRET instructions cpufreq: s3c2416: double free on driver init error path iommu/amd: Fix incorrect error handling in amd_iommu_bind_pasid() iommu: Handle default domain attach failure iommu/vt-d: Don't over-free page table directories ocfs2: o2hb: revert hb threshold to keep compatible x86/mm: Fix flush_tlb_page() on Xen x86/mpx: Correctly report do_mpx_bt_fault() failures to user-space ARM: 8685/1: ensure memblock-limit is pmd-aligned ARM64/ACPI: Fix BAD_MADT_GICC_ENTRY() macro implementation sched/loadavg: Avoid loadavg spikes caused by delayed NO_HZ accounting watchdog: bcm281xx: Fix use of uninitialized spinlock. xfrm: Oops on error in pfkey_msg2xfrm_state() xfrm: NULL dereference on allocation failure xfrm: fix stack access out of bounds with CONFIG_XFRM_SUB_POLICY jump label: fix passing kbuild_cflags when checking for asm goto support ravb: Fix use-after-free on `ifconfig eth0 down` sctp: check af before verify address in sctp_addr_id2transport net/mlx4_core: Eliminate warning messages for SRQ_LIMIT under SRIOV perf probe: Fix to show correct locations for events on modules be2net: fix status check in be_cmd_pmac_add() s390/ctl_reg: make __ctl_load a full memory barrier swiotlb: ensure that page-sized mappings are page-aligned coredump: Ensure proper size of sparse core files x86/mpx: Use compatible types in comparison to fix sparse error mac80211: initialize SMPS field in HT capabilities spi: davinci: use dma_mapping_error() scsi: lpfc: avoid double free of resource identifiers HID: i2c-hid: Add sleep between POWER ON and RESET kernel/panic.c: add missing \n ibmveth: Add a proper check for the availability of the checksum features vxlan: do not age static remote mac entries virtio_net: fix PAGE_SIZE > 64k vfio/spapr: fail tce_iommu_attach_group() when iommu_data is null drm/amdgpu: check ring being ready before using net: dsa: Check return value of phy_connect_direct() amd-xgbe: Check xgbe_init() return code platform/x86: ideapad-laptop: handle ACPI event 1 scsi: virtio_scsi: Reject commands when virtqueue is broken xen-netfront: Fix Rx stall during network stress and OOM swiotlb-xen: update dev_addr after swapping pages virtio_console: fix a crash in config_work_handler Btrfs: fix truncate down when no_holes feature is enabled gianfar: Do not reuse pages from emergency reserve powerpc/eeh: Enable IO path on permanent error net: bgmac: Remove superflous netif_carrier_on() net: bgmac: Start transmit queue in bgmac_open net: bgmac: Fix SOF bit checking bgmac: Fix reversed test of build_skb() return value. mtd: bcm47xxpart: don't fail because of bit-flips bgmac: fix a missing check for build_skb mtd: bcm47xxpart: limit scanned flash area on BCM47XX (MIPS) only MIPS: ralink: fix MT7628 wled_an pinmux gpio MIPS: ralink: fix MT7628 pinmux typos MIPS: ralink: Fix invalid assignment of SoC type MIPS: ralink: fix USB frequency scaling MIPS: ralink: MT7688 pinmux fixes net: korina: Fix NAPI versus resources freeing MIPS: ath79: fix regression in PCI window initialization net: mvneta: Fix for_each_present_cpu usage ARM: dts: BCM5301X: Correct GIC_PPI interrupt flags qla2xxx: Fix erroneous invalid handle message scsi: lpfc: Set elsiocb contexts to NULL after freeing it scsi: sd: Fix wrong DPOFUA disable in sd_read_cache_type KVM: x86: fix fixing of hypercalls mm: numa: avoid waiting on freed migrated pages block: fix module reference leak on put_disk() call for cgroups throttle sysctl: enable strict writes usb: gadget: f_fs: Fix possibe deadlock drm/vmwgfx: Free hash table allocated by cmdbuf managed res mgr ALSA: hda - set input_path bitmap to zero after moving it to new place ALSA: hda - Fix endless loop of codec configure MIPS: Fix IRQ tracing & lockdep when rescheduling MIPS: pm-cps: Drop manual cache-line alignment of ready_count MIPS: Avoid accidental raw backtrace mm, swap_cgroup: reschedule when neeed in swap_cgroup_swapoff() drm/ast: Handle configuration without P2A bridge NFSv4: fix a reference leak caused WARNING messages netfilter: synproxy: fix conntrackd interaction netfilter: xt_TCPMSS: add more sanity tests on tcph->doff rtnetlink: add IFLA_GROUP to ifla_policy ipv6: Do not leak throw route references sfc: provide dummy definitions of vswitch functions net: 8021q: Fix one possible panic caused by BUG_ON in free_netdev decnet: always not take dst->__refcnt when inserting dst into hash table net/mlx5: Wait for FW readiness before initializing command interface ipv6: fix calling in6_ifa_hold incorrectly for dad work igmp: add a missing spin_lock_init() igmp: acquire pmc lock for ip_mc_clear_src() net: caif: Fix a sleep-in-atomic bug in cfpkt_create_pfx Fix an intermittent pr_emerg warning about lo becoming free. af_unix: Add sockaddr length checks before accessing sa_family in bind and connect handlers net: Zero ifla_vf_info in rtnl_fill_vfinfo() decnet: dn_rtmsg: Improve input length sanitization in dnrmg_receive_user_skb net: don't call strlen on non-terminated string in dev_set_alias() ipv6: release dst on error in ip6_dst_lookup_tail UPSTREAM: selinux: enable genfscon labeling for tracefs Change-Id: I05ae1d6271769a99ea3817e5066f5ab6511f3254 Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
| | * | | | | drm/amdgpu: check ring being ready before usingDing Pixel2017-07-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ Upstream commit c5f21c9f878b8dcd54d0b9739c025ca73cb4c091 ] Return success when the ring is properly initialized, otherwise return failure. Tonga SRIOV VF doesn't have UVD and VCE engines, the initialization of these IPs is bypassed. The system crashes if application submit IB to their rings which are not ready to use. It could be a common issue if IP having ring buffer is disabled for some reason on specific ASIC, so it should check the ring being ready to use. Bug: amdgpu_test crashes system on Tonga VF. Signed-off-by: Ding Pixel <Pixel.Ding@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| | * | | | | drm/vmwgfx: Free hash table allocated by cmdbuf managed res mgrDeepak Rawat2017-07-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 82fcee526ba8ca2c5d378bdf51b21b7eb058fe3a upstream. The hash table created during vmw_cmdbuf_res_man_create was never freed. This causes memory leak in context creation. Added the corresponding drm_ht_remove in vmw_cmdbuf_res_man_destroy. Tested for memory leak by running piglit overnight and kernel memory is not inflated which earlier was. Signed-off-by: Deepak Rawat <drawat@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| | * | | | | drm/ast: Handle configuration without P2A bridgeRussell Currey2017-07-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 71f677a91046599ece96ebab21df956ce909c456 upstream. The ast driver configures a window to enable access into BMC memory space in order to read some configuration registers. If this window is disabled, which it can be from the BMC side, the ast driver can't function. Closing this window is a necessity for security if a machine's host side and BMC side are controlled by different parties; i.e. a cloud provider offering machines "bare metal". A recent patch went in to try to check if that window is open but it does so by trying to access the registers in question and testing if the result is 0xffffffff. This method will trigger a PCIe error when the window is closed which on some systems will be fatal (it will trigger an EEH for example on POWER which will take out the device). This patch improves this in two ways: - First, if the firmware has put properties in the device-tree containing the relevant configuration information, we use these. - Otherwise, a bit in one of the SCU scratch registers (which are readable via the VGA register space and writeable by the BMC) will indicate if the BMC has closed the window. This bit has been defined by Y.C Chen from Aspeed. If the window is closed and the configuration isn't available from the device-tree, some sane defaults are used. Those defaults are hopefully sufficient for standard video modes used on a server. Signed-off-by: Russell Currey <ruscur@russell.cc> Acked-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Dave Airlie <airlied@redhat.com> Cc: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | | | | | Merge "drm/msm/sde: Expose the HDR support capability of the chipset"Linux Build Service Account2017-07-11
|\ \ \ \ \ \ \
| * | | | | | | drm/msm/sde: Expose the HDR support capability of the chipsetSrikanth Rajagopalan2017-07-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expose HDR capability using a property to the userspace. This will help userspace to decide whether to invoke the HDR library and pass the relevant parameters to be sent to the sink. Change-Id: I3c4bf4d6c4e0f0babdf49b3c99baab42dcb2b5c0 Signed-off-by: Srikanth Rajagopalan <rasrik@codeaurora.org>
* | | | | | | | Merge "Merge android-4.4@8c91412 (v4.4.75) into msm-4.4"Linux Build Service Account2017-07-11
|\ \ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | |
| * | | | | | | Merge android-4.4@8c91412 (v4.4.75) into msm-4.4Blagovest Kolenichev2017-07-06
| |\ \ \ \ \ \ \ | | | |/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/heads/tmp-8c91412: Linux 4.4.75 nvme: apply DELAY_BEFORE_CHK_RDY quirk at probe time too nvme/quirk: Add a delay before checking for adapter readiness net: phy: fix marvell phy status reading net: phy: Initialize mdio clock at probe function usb: gadget: f_fs: avoid out of bounds access on comp_desc powerpc/slb: Force a full SLB flush when we insert for a bad EA mtd: spi-nor: fix spansion quad enable of: Add check to of_scan_flat_dt() before accessing initial_boot_params rxrpc: Fix several cases where a padded len isn't checked in ticket decode USB: usbip: fix nonconforming hub descriptor drm/amdgpu: adjust default display clock drm/amdgpu/atom: fix ps allocation size for EnableDispPowerGating drm/radeon: add a quirk for Toshiba Satellite L20-183 drm/radeon: add a PX quirk for another K53TK variant iscsi-target: Reject immediate data underflow larger than SCSI transfer length target: Fix kref->refcount underflow in transport_cmd_finish_abort time: Fix clock->read(clock) race around clocksource changes Input: i8042 - add Fujitsu Lifebook AH544 to notimeout list powerpc/kprobes: Pause function_graph tracing during jprobes handling signal: Only reschedule timers on signals timers have sent HID: Add quirk for Dell PIXART OEM mouse CIFS: Improve readdir verbosity KVM: PPC: Book3S HV: Preserve userspace HTM state properly lib/cmdline.c: fix get_options() overflow while parsing ranges autofs: sanity check status reported with AUTOFS_DEV_IOCTL_FAIL fs/exec.c: account for argv/envp pointers UPSTREAM: drivers/perf: arm-pmu: fix RCU usage on pmu resume from low-power UPSTREAM: drivers/perf: arm_pmu: implement CPU_PM notifier ANDROID: squashfs: Fix endianness issue ANDROID: squashfs: Fix signed division issue Change-Id: Iabe0921dd7b9a582f5237235338ef0f730de7edb Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
| | * | | | | | drm/amdgpu: adjust default display clockAlex Deucher2017-06-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 52b482b0f4fd6d5267faf29fe91398e203f3c230 upstream. Increase the default display clock on newer asics to accomodate some high res modes with really high refresh rates. bug: https://bugs.freedesktop.org/show_bug.cgi?id=93826 Acked-by: Chunming Zhou <david1.zhou@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| | * | | | | | drm/amdgpu/atom: fix ps allocation size for EnableDispPowerGatingAlex Deucher2017-06-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 05b4017b37f1fce4b7185f138126dd8decdb381f upstream. We were using the wrong structure which lead to an overflow on some boards. bug: https://bugs.freedesktop.org/show_bug.cgi?id=101387 Acked-by: Chunming Zhou <david1.zhou@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| | * | | | | | drm/radeon: add a quirk for Toshiba Satellite L20-183Alex Deucher2017-06-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit acfd6ee4fa7ebeee75511825fe02be3f7ac1d668 upstream. Fixes resume from suspend. bug: https://bugzilla.kernel.org/show_bug.cgi?id=196121 Reported-by: Przemek <soprwa@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| | * | | | | | drm/radeon: add a PX quirk for another K53TK variantAlex Deucher2017-06-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 4eb59793cca00b0e629b6d55b5abb5acb82c5868 upstream. Disable PX on these systems. bug: https://bugs.freedesktop.org/show_bug.cgi?id=101491 Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | | | | | | drm/msm: add input validation before setting HDR infoframeAbhinav Kumar2017-07-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the input validation for the connector's HDR support before calling the API to set the infoframe rather than within the API itself. This helps to avoid redundant checks and logging. Change-Id: If21562920edb1613a73b5e18ab258a57e46c1d7b Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
* | | | | | | | Merge "msm: kgsl: Fix a dead loop issue while changing gpu frequency"Linux Build Service Account2017-07-06
|\ \ \ \ \ \ \ \
| * | | | | | | | msm: kgsl: Fix a dead loop issue while changing gpu frequencyVenkateswara Rao Tadikonda2017-07-05
| | |_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a dead loop in kgsl_devfreq_target(), while governor request to change GPU frequency. In governor 'userspace' mode, If the requested frequency (set_freq) is more than the configured frequency and max_freq is also set to more than the configured frequency, then there is a dead loop while changing target frequency. Dead loop occurs due to comparing signed integer with unsigned integer. So, type casting unsigned integer to signed integer will terminate the loop when loop variable is less than zero. Change-Id: Ic82b7477d50d1abcd348b011f64246066887922c Signed-off-by: Venkateswara Rao Tadikonda <vtadik@codeaurora.org>
* | | | | | | | Merge "msm: kgsl: Make sure regulators are ON before GPU clocks are forced on"Linux Build Service Account2017-07-06
|\ \ \ \ \ \ \ \ | |_|_|_|/ / / / |/| | | | | | |
| * | | | | | | msm: kgsl: Make sure regulators are ON before GPU clocks are forced onRajesh Kemisetti2017-06-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The debug option to always ON the GPU clocks does not check the regulator state. If the user tries to set this option while GPU is in Slumber state then enabling clocks will fail. Make sure we enable the GPU regulators before enabling its clocks. Change-Id: Id77773224c674fe2e1b6179a039750b24e5e5f87 Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>