summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-04-28mmc: each mmc_host has its own workqueueTroy Kisky
2014-04-28sdhci: print opcode/retries on timeout errorTroy Kisky
2014-04-24rtc-rv4162: add dt supportTroy Kisky
2014-04-24Add driver for Micro Crystal RV-4162 real-time clockEric Nelson
2014-04-24mm: ensure get_unmapped_area() returns higher address than mmap_min_addrAkira Takeuchi
commit 2afc745f3e3079ab16c826be4860da2529054dd2 upstream. This patch fixes the problem that get_unmapped_area() can return illegal address and result in failing mmap(2) etc. In case that the address higher than PAGE_SIZE is set to /proc/sys/vm/mmap_min_addr, the address lower than mmap_min_addr can be returned by get_unmapped_area(), even if you do not pass any virtual address hint (i.e. the second argument). This is because the current get_unmapped_area() code does not take into account mmap_min_addr. This leads to two actual problems as follows: 1. mmap(2) can fail with EPERM on the process without CAP_SYS_RAWIO, although any illegal parameter is not passed. 2. The bottom-up search path after the top-down search might not work in arch_get_unmapped_area_topdown(). Note: The first and third chunk of my patch, which changes "len" check, are for more precise check using mmap_min_addr, and not for solving the above problem. [How to reproduce] --- test.c ------------------------------------------------- #include <stdio.h> #include <unistd.h> #include <sys/mman.h> #include <sys/errno.h> int main(int argc, char *argv[]) { void *ret = NULL, *last_map; size_t pagesize = sysconf(_SC_PAGESIZE); do { last_map = ret; ret = mmap(0, pagesize, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); // printf("ret=%p\n", ret); } while (ret != MAP_FAILED); if (errno != ENOMEM) { printf("ERR: unexpected errno: %d (last map=%p)\n", errno, last_map); } return 0; } --------------------------------------------------------------- $ gcc -m32 -o test test.c $ sudo sysctl -w vm.mmap_min_addr=65536 vm.mmap_min_addr = 65536 $ ./test (run as non-priviledge user) ERR: unexpected errno: 1 (last map=0x10000) Signed-off-by: Akira Takeuchi <takeuchi.akr@jp.panasonic.com> Signed-off-by: Kiyoshi Owada <owada.kiyoshi@jp.panasonic.com> Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-24sdhci-esdhc-imx: add vqmmc-1-8-v property to stop regulator errorsTroy Kisky
2014-04-24ci_hdrc_imx: add reset-gpiosTroy Kisky
2014-04-24ov5640_mipi: make read_reg use only 1 i2c_transfer callTroy Kisky
2014-04-24Add board nitrogen6_mtpTroy Kisky
2014-04-24Add nitrogen6_max boardTroy Kisky
2014-04-24ov5640_mipi: software reset does not affect i2c addressTroy Kisky
2014-04-24ov5640_mipi: update pr_debug/pr_err to say mipiTroy Kisky
2014-04-24mipi: reduce code, pair up mipi_csi2_pixelclk_enable/disableTroy Kisky
2014-04-24add new API ipu_channel_request/disable/freeTroy Kisky
2014-04-24mxc_v4l2_capture: pair up ipu_enable_csi/ipu_disable_csiTroy Kisky
2014-04-24ipu_common: ipu_free_irq, do nothing if not ownerTroy Kisky
2014-04-24mxc_v4l2_capture: improve debug messagesTroy Kisky
2014-04-24ipu_csi_enc: improve error messageTroy Kisky
2014-04-24ipu_prp_enc: improve error messageTroy Kisky
2014-04-24fec_main: add debug info to fec_timeoutTroy Kisky
2014-04-24fec_main: test for restart quirk in fec_enet_txTroy Kisky
2014-04-24fec_main: only schedule quirk if controller is activeTroy Kisky
2014-04-24fec_main: pass real device to dma_alloc_coherentTroy Kisky
2014-04-24fec_main: set cbd_sc without relying on previous valueTroy Kisky
2014-04-24fec_main: give tx descriptor to controller AFTER writing extended infoTroy Kisky
2014-04-24ov5642: fix csi/ipu check for imx6dlTroy Kisky
2014-04-24ov5640_mipi: fix csi/ipu check for imx6dlTroy Kisky
2014-04-24ov5642: add i2c address change featureTroy Kisky
2014-04-24ov5640_mipi: add i2c address change featureTroy Kisky
2014-04-24mxc_v4l2_capture: add mxc_camera_common_lock/unlock, fix device nameTroy Kisky
2014-04-24mxc_mipi_csi2: add ipu/csi info to probed outputTroy Kisky
2014-04-24ov5640_mipi: change registered name from ov5640 to ov5640_mipi to reduce ↵Troy Kisky
confusion
2014-04-24i.MX6: v4lout: none of our displays support color-space conversionEric Nelson
Without this, fb0 can become a YUV buffer and doesn't switch back to being rgb when fb0 is closed by the app. Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com> Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
2014-04-24mxc_v4l2_capture: cleanup debug messagesTroy Kisky
2014-04-24ov5640: setup mux for parallel inputTroy Kisky
2014-04-24tw68: audio fixesTroy Kisky
2014-04-24tw68: add driver for tw6869Troy Kisky
2014-04-24dma-mapping: increase DEFAULT_DMA_COHERENT_POOL_SIZE ifdef CONFIG_VIDEO_TW68Troy Kisky
2014-04-24PCI: Add quirk for setting valid class for TW6869 frame grabberTroy Kisky
Based on commit d4ab3dedc3be1a033420de9daf03056f949c4e51 (PCI: Add quirk for setting valid class for TI816X Endpoint) Having class code = 0 makes kernel PCI bus code skip allocating BARs to these devices resulting in the following error: PCI: Device 0000:01:00.0 not available because of resource collisions This patch adds a ID specific (0x1797:6869) early fixup quirk to replace class code with PCI_CLASS_MULTIMEDIA_VIDEO. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
2014-04-24pci-imx6.c: wait for retrainingMarek Vasut
This patch handles the case where the PCIe link is up and running, yet drops into the LTSSM training mode. The link spends short time in the LTSSM training mode, but the current code can misinterpret it as the link being stalled. Waiting for the LTSSM training to complete fixes the issue. Signed-off-by: Marek Vasut <marex@denx.de> Tested-by: Troy Kisky <troy.kisky@boundarydevices.com>
2014-04-24ft5x06: Add screenres parameter, use it to publish rangesEric Nelson
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
2014-04-24ft5x06: implement /proc/ft5x06 to allow register readsEric Nelson
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
2014-04-24Add nitrogen6x_ub_defconfig with Ubuntu's preferred settingsEric Nelson
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
2014-04-24fec_main: reduce interruptsTroy Kisky
2014-04-24fec_main: add struct bufdesc_propTroy Kisky
2014-04-24fec: fix rx error countsTroy Kisky
On an overrun, the other flags are not valid, so don't check them. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
2014-04-24fec: stop the "rcv is not +last, " error messagesTroy Kisky
Setting the FTRL register will stop the fec from trying to use multiple receive buffers. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
2014-04-24PCI: imx6: add commentRichard Zhu
Signed-off-by: Richard Zhu <r65037@freescale.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Shawn Guo <shawn.guo@linaro.org> Cc: Frank Li <lznuaa@gmail.com> Cc: Harro Haan <hrhaan@gmail.com> Cc: Jingoo Han <jg1.han@samsung.com> Cc: Mohit KUMAR <Mohit.KUMAR@st.com> Cc: Pratyush Anand <pratyush.anand@st.com> Cc: Richard Zhu <r65037@freescale.com> Cc: Sascha Hauer <s.hauer@pengutronix.de> Cc: Sean Cross <xobs@kosagi.com> Cc: Siva Reddy Kallam <siva.kallam@samsung.com> Cc: Srikanth T Shivanand <ts.srikanth@samsung.com> Cc: Tim Harvey <tharvey@gateworks.com> Cc: Troy Kisky <troy.kisky@boundarydevices.com> Cc: Yinghai Lu <yinghai@kernel.org> Conflicts: drivers/pci/host/pci-imx6.c
2014-04-24pci-imx6: add gen 2 timeout messageTroy Kisky
2014-04-24Revert "Add support to Vivante 4.6.9p12 GPU code"Tele Laci
This reverts commit b00f35bf61032d5c87958b96e275dc677db5c4b0.