#compdef mausezahn # # mausezahn.zsh -- zsh completion function for mausezahn # # Copyright (C) 2013 Hideo Hattori # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. typeset -A opt_args _packet_type () { _values \ "arp" \ "bpdu" \ "cdp" \ "ip" \ "icmp" \ "udp" \ "tcp" \ "dns" \ "rtp" \ "syslog" \ "lldp" } _interface_keywords () { _values "interface keyword" \ "rand[Use a random MAC address]" \ "bc[Use a broadcast MAC address]" \ "own[Use own interface MAC address (default for source MAC)]" \ "stp[Use IEEE 802.1d STP multicast address]" \ "cisco[Use Cisco multicast address as used for CDP, VTP, or PVST+]" } _interfaces () { _wanted interfaces expl 'network interface' \ _net_interfaces _values "Pseudo-device that captures on all interfaces" "any" } _arguments -s -S \ "-x[Interactive mode with telnet CLI, default port: 25542]" \ "-l[Listen address in interactive mode, default: 0.0.0.0]" \ "(-6)-4[IPv4 mode (default)]" \ "(-4)-6[IPv6 mode]" \ "-c[Send packet count times, default:1, infinite:0]" \ "-d[Apply delay between transmissions. The delay value can be specified in usec (default, no additional unit needed), or in msec (e.g. 100m or 100msec), or in seconds (e.g. 100s or 100sec)]" \ "-r[Multiplies the specified delay with a random value]" \ "-p[Pad the raw frame to specified length (using random bytes)]" \ "-a[Use specified source mac address, no matter what has been specified with other arguments; keywords see below, Default is own interface]:keyword:_interface_keywords" \ "-b[Same with destination mac address; keywords]:keywords:_interface_keywords" \ "-A[Use specified source IP address (default is own interface IP)]" \ "-B[Send packet to specified destination IP or domain name]" \ "-P[Use the specified ASCII payload]" \ "-f[Read the ASCII payload from a file]:filename:_files" \ "-F[Read the hexadecimal payload from a file]:filename:_files" \ "-Q[Specify 802.1Q VLAN tag and optional Class of Service, you can specify multiple 802.1Q VLAN tags (QinQ...) by separating them via a comma or a period (e.g. '5:10,20,2:30')]" \ "-t[Specify packet type for autobuild (you don't need to care for encapsulations in lower layers, most packet types allow/require additional packet-specific arguments in an ; Currently supported types: arp, bpdu, cdp, ip, icmp, udp, tcp, dns, rtp, syslog, lldp and more; For context-help use 'help' as !]:packet_type:_packet_type" \ "-T[Specify packet type for server mode, currently only rtp is supported; Enter -T help or -T rtp help for further information]" \ "-M[Insert a MPLS label, enter '-M help' for a syntax description]" \ "(-V -VV -VVV)"{-V,-VV,-VVV}"[Verbose and more verbose mode]" \ "-q[Quiet mode, even omit 'important' standard short messages]" \ "-S[Simulation mode: DOES NOT put anything on the wire, this is typically combined with one of the verbose modes (v or V)]" \ "-v[Show version and exit]:" \ "-h[Print help and exit]:" \ "*::args:_gnu_generic" td class='ctrl'>mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2016-10-24 19:13:04 +0300
committerJani Nikula <jani.nikula@intel.com>2016-10-28 15:24:30 +0300
commitc89d5454d48e3b6ecae1c9f8bb14b3fac64d9fc8 (patch)
tree54e43989a694c70d518d572deef4eb61302e994f
parent7e9b3f95d64165f37c6448fe624d835c5adf17b9 (diff)
drm/i915: Fix SKL+ 90/270 degree rotated plane coordinate computation
Pass the framebuffer size in .16 fixed point coordinates to drm_rect_rotate() since that's what the source coordinates are as well at this stage. We used to do this part of the computation in integer coordinates, but that got changed when moving the computation to happen in the check phase of the operation. Unfortunately I forgot to shift up the fb width and height appropriately. With the bogus size we ended up with some negative fb offset, which when added to the vma offset caused out scanout to start at an offset earlier than we inteded. Eg. when testing on my SKL I saw a row of incorrect tiles at the top of my screen. Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com> Cc: drm-intel-fixes@lists.freedesktop.org Fixes: b63a16f6cd89 ("drm/i915: Compute display surface offset in the plane check hook for SKL+") Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1477325584-23679-1-git-send-email-ville.syrjala@linux.intel.com Tested-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> (cherry picked from commit da064b47c0b8d0dff1905b38c76e7e51fb5a9547) Signed-off-by: Jani Nikula <jani.nikula@intel.com>