summaryrefslogtreecommitdiffstats
path: root/include/video
AgeCommit message (Expand)Author
2019-07-15Merge tag 'drm-next-2019-07-16' of git://anongit.freedesktop.org/drm/drmLinus Torvalds
2019-07-09Merge tag 'fbdev-v5.3' of git://github.com/bzolnier/linuxLinus Torvalds
2019-06-21video: fbdev: omap2: remove rfbiBartlomiej Zolnierkiewicz
2019-06-19treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500Thomas Gleixner
2019-06-19treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234Thomas Gleixner
2019-06-14gpu: ipu-v3: ipu-ic: Fully describe colorspace conversionsSteve Longerbeam
2019-06-05treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 428Thomas Gleixner
2019-06-05treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 351Thomas Gleixner
2019-06-05treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333Thomas Gleixner
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157Thomas Gleixner
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156Thomas Gleixner
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152Thomas Gleixner
2019-05-24treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 27Thomas Gleixner
2019-05-21treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13Thomas Gleixner
2019-04-01udlfb: introduce a rendering mutexMikulas Patocka
2019-04-01udlfb: fix sleeping inside spinlockMikulas Patocka
2019-03-09Merge tag 'media/v5.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mch...Linus Torvalds
2019-02-22gpu: ipu-v3: prg: add function to get channel configure statusLucas Stach
2019-01-16media: gpu: ipu-v3: Add planar support to interlaced scanSteve Longerbeam
2019-01-16media: gpu: ipu-csi: Swap fields according to input/output field typesSteve Longerbeam
2018-12-14drm/exynos: fimd: Make pixel blend mode configurableChristoph Manszewski
2018-12-14drm/exynos: fimd: Make plane alpha configurableChristoph Manszewski
2018-11-05gpu: ipu-v3: ipu-ic: allow to manually set resize coefficientsPhilipp Zabel
2018-11-05gpu: ipu-v3: Add chroma plane offset overrides to ipu_cpmem_set_image()Steve Longerbeam
2018-10-08udlfb: handle unplug properlyMikulas Patocka
2018-08-23Merge tag 'fbdev-v4.19' of https://github.com/bzolnier/linuxLinus Torvalds
2018-07-25udlfb: allow reallocating the framebufferMikulas Patocka
2018-07-25udlfb: set optimal write delayMikulas Patocka
2018-07-25udlfb: make a local copy of fb_opsMikulas Patocka
2018-07-25udlfb: don't switch if we are switching to the same videomodeMikulas Patocka
2018-07-25udlfb: fix semaphore value leakMikulas Patocka
2018-07-25drm: Add support for pps and compression mode command packetvkorjani
2018-06-17Merge tag 'fbdev-v4.18' of git://github.com/bzolnier/linuxLinus Torvalds
2018-05-14video: fbdev: remove unused sh_mobile_meram driverBartlomiej Zolnierkiewicz
2018-05-14video: fbdev: sh_mobile_lcdcfb: remove unused MERAM supportBartlomiej Zolnierkiewicz
2018-05-14video: fbdev: remove unused auo_k190xfb driversBartlomiej Zolnierkiewicz
2018-05-05media: include/video/omapfb_dss.h: use IS_ENABLED()Mauro Carvalho Chehab
2018-05-04media: omapfb: omapfb_dss.h: add stubs to build with COMPILE_TEST && DRM_OMAPMauro Carvalho Chehab
2018-03-12video: of: display_timing: Remove of_display_timings_exist() functionVladimir Zapolskiy
2018-02-07Merge tag 'fbdev-v4.16' of git://github.com/bzolnier/linuxLinus Torvalds
2018-01-15video: udlfb: Do not name private data 'dev'Ladislav Michl
2018-01-15video: udlfb: Remove redundant gdev variableLadislav Michl
2018-01-05Merge tag 'imx-drm-next-2018-01-02' of git://git.pengutronix.de/git/pza/linux...Dave Airlie
2018-01-02drm/exynos/decon: Move headers from global to local placeKrzysztof Kozlowski
2017-12-19gpu: ipu-v3: prg: add modifier supportLucas Stach
2017-11-20Merge tag 'fbdev-v4.15' of git://github.com/bzolnier/linuxLinus Torvalds
2017-11-09video: fbdev: remove dead igafb driverBartlomiej Zolnierkiewicz
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman
2017-06-16Merge tag 'imx-drm-next-2017-06-08' of git://git.pengutronix.de/git/pza/linux...Dave Airlie
2017-06-08gpu: ipu-v3: Add support for double read/write reductionPhilipp Zabel
> t = spawn(l.clone().lock_owned()); let mut g = assert_ready!(t.poll()); assert_eq!(&*g, &99); *g = 98; } { let mut t = spawn(l.lock_owned()); let g = assert_ready!(t.poll()); assert_eq!(&*g, &98); } } #[test] fn readiness() { let l = Arc::new(Mutex::new(100)); let mut t1 = spawn(l.clone().lock_owned()); let mut t2 = spawn(l.lock_owned()); let g = assert_ready!(t1.poll()); // We can't now acquire the lease since it's already held in g assert_pending!(t2.poll()); // But once g unlocks, we can acquire it drop(g); assert!(t2.is_woken()); assert_ready!(t2.poll()); } #[tokio::test] /// Ensure a mutex is unlocked if a future holding the lock /// is aborted prematurely. async fn aborted_future_1() { let m1: Arc<Mutex<usize>> = Arc::new(Mutex::new(0)); { let m2 = m1.clone(); // Try to lock mutex in a future that is aborted prematurely timeout(Duration::from_millis(1u64), async move { let iv = interval(Duration::from_millis(1000)); tokio::pin!(iv); m2.lock_owned().await; iv.as_mut().tick().await; iv.as_mut().tick().await; }) .await .unwrap_err(); } // This should succeed as there is no lock left for the mutex. timeout(Duration::from_millis(1u64), async move { m1.lock_owned().await; }) .await .expect("Mutex is locked"); } #[tokio::test] /// This test is similar to `aborted_future_1` but this time the /// aborted future is waiting for the lock. async fn aborted_future_2() { let m1: Arc<Mutex<usize>> = Arc::new(Mutex::new(0)); { // Lock mutex let _lock = m1.clone().lock_owned().await; { let m2 = m1.clone(); // Try to lock mutex in a future that is aborted prematurely timeout(Duration::from_millis(1u64), async move { m2.lock_owned().await; }) .await .unwrap_err(); } } // This should succeed as there is no lock left for the mutex. timeout(Duration::from_millis(1u64), async move { m1.lock_owned().await; }) .await .expect("Mutex is locked"); } #[test] fn try_lock_owned() { let m: Arc<Mutex<usize>> = Arc::new(Mutex::new(0)); { let g1 = m.clone().try_lock_owned(); assert_eq!(g1.is_ok(), true); let g2 = m.clone().try_lock_owned(); assert_eq!(g2.is_ok(), false); } let g3 = m.try_lock_owned(); assert_eq!(g3.is_ok(), true); } #[tokio::test] async fn debug_format() { let s = "debug"; let m = Arc::new(Mutex::new(s.to_string())); assert_eq!(format!("{:?}", s), format!("{:?}", m.lock_owned().await)); }