summaryrefslogtreecommitdiff
path: root/wiki/Chat_log/20171005-io-chatlog
blob: 05ef52a9ad5f9eca73999c4426413c81dbb81313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
10:17 < geertu> Marex: Core related? I should hand over the mic to Wolfram...
10:17 < Marex> shimoda: I sent out the xhci patch I plan to submit to the U-Boot list to the periperi list first, the license grant should be OK, can you double-check please ?
10:18 < Marex> geertu: well it's inbetween, U-Boot is core and xhci is IO
10:18 < shimoda> Marex: sure, I will check it
10:18 < Marex> shimoda: thank you !
10:18 < Marex> shimoda: it'd be convenient if this worked out, since now I can just type "usb reset" and it works :)
10:19 < Marex> shimoda: it's hassle-free
10:19 < shimoda> Marex: nice! :)
10:20 < wsa_> geertu: don't worry, I am fine
10:20 < Marex> shimoda: btw re HS200/400 and SDR104, I am a bit blocked by the SD/MMC maintainer in U-Boot, sorry about that
10:20 < Marex> shimoda: he's not picking patches as fast as I'd like him to
10:20 < Marex> shimoda: I'm looking for ways to ... uh ... expedite that process
10:21 < shimoda> Marex: i got it. thanks!
10:21 < Marex> shimoda: you're welcome, I'll keep you updated
10:22 < wsa_> Marex: is yamada-san working on this, too?
10:22 < Marex> wsa_: Masahiro Yamada-san ?
10:22 < wsa_> hai
10:22 < Marex> wsa_: he works for socionext, although he did implement the uniphier-sd which I now use on RCar Gen3
10:22  * neg brb 2 min
10:22 < Marex> wsa_: their block doesn't support the HS200/400/SDR104 modes though, that's renesas specific
10:23 < Marex> wsa_: so he just reviews my uniphier-sd patches (which is nice) and makes sure they work on both
10:23 < wsa_> I see
10:24 < Marex> wsa_: the blocker really is the SD/MMC subsystem maintainer, he just doesn't respond much
10:24 < Marex> wsa_: some not long time ago I was really tempted to just replace him and start handling the SDMMC stuff myself
10:25 < Marex> wsa_: but then he came back, at like 5 mins to 12 and rolled out a PR ...
10:25 < wsa_> how about co-maintaining?
10:25 < Marex> wsa_: I feel like I'm hoarding functions ;-)
10:26 < wsa_> I see
10:26 < wsa_> that happens easily, yes
10:26 < Marex> wsa_: right
10:26  * neg back
10:26 < Marex> wsa_: and since U-Boot isn't as prestigeous as linux, maintainers don't really queue up to do it
10:27 < wsa_> okay
10:27 < Marex> wsa_: anyway ... maybe we should continue rather than complain about lack of manpower all over the place ? :)
10:27 < wsa_> ack
10:29 < wsa_> geertu: can i take over? or did i already? :)
10:29 < geertu> wsa_: I think you already did
10:30 < jmondi> ETHER is working as well \o/ (sorry to jump in with random messages, is rude, but I'm happy, now the peach is a grown up baby!)
10:30 < wsa_> well, then: welcome to the already started io meeting :D
10:30 < wsa_> jmondi: no problem, but only for success messages ;)
10:31 < jmondi> wsa_: I would be mostly silent then :)
10:31 < wsa_> ok, i collected (and rephrased) the ABC questions
10:31 < wsa_> and added a comment here and there, here they go:
10:31 < wsa_> A)
10:31 < wsa_> 	* Geert worked on RAVB PHY reset to support supsend/resume
10:31 < wsa_> 	* Niklas did SDR104/SDIO tests on Koelsch
10:31 < wsa_> 	* Simon got the RAVB RX checksum offload patch merged
10:31 < wsa_> 	* Uli got the HSCIF HW timeout patch merged and resent the HSCIF sampling point shift patch
10:31 < wsa_> 	  (the latter raised a few comments, though)
10:31 < wsa_> 	* Shimoda-san got f_printer driver merged and fixed quite some USB issues and added quite some
10:31 < wsa_> 	  DT nodes, and added suspense/resume support for USB PHY
10:31 < wsa_> 	* Wolfram discussed add. tasks and upport lists, added I2C to Salvator-XS, resend the eMMC drive
10:31 < wsa_> 	  strength patches, and commented on SDHI SDR104 tests and regulator patches
10:31 < wsa_> B)
10:31 < wsa_> 	* Geert will keep an eye to get RAVB PHY reset working and wants to tackle MSIOF again
10:31 < wsa_> 	  (multiple chip selects, I assume?)
10:31 < wsa_> 	* Simon starts working on HS400
10:31 < wsa_> 	  (nice timing because Marek works on HS400 for U-Boot currently)
10:31 < wsa_> 	* I assume Uli will keep working on the sampling point patch?
10:31 < wsa_> 	* Shimoda-san works on the USBHS driver more if he gets feedback from HW team
10:31 < wsa_> 	* Wolfram wants to finalize the I2C DMA patches, improve the I2C fault injector and start
10:31 < wsa_> 	  preparing the talk & showcase about it for ELCE, debug SDR104 on Gen2, and add. tasks
10:31 < wsa_> 	  plus upport lists, of course.
10:31 < wsa_> C)
10:31 < wsa_> 	* Shimoda-san's patches for USB2.0 phy for r8a77995 got no feedback from PHY maintainer
10:31 < wsa_> 	* Wolfram wonders where all the time since San Sebastian has gone
10:32 < wsa_> please have a look if everything is correct or i missed something
10:33 < geertu> wsa_: German tax rate is how many %? ;-)
10:34 < wsa_> too many :D
10:35 < wsa_> it stops at 42% IIRC
10:35 < wsa_> okay, there don't seem to be any comments
10:35 < wsa_> other than taxes
10:35 < horms> HS400 will be fun, but the fun hasn't started yet. Tax is less fun, we can swap notes another time.
10:36 < Marex> horms: HS400 seems like HS200 DDR, why the worry ?
10:36 < wsa_> I don't really have other topics for now; I'd think the SDR stuff and the upport list discussion are better suited for emails currently
10:36 < wsa_> unless there is something you guys want to discuss right now
10:37 < horms> Marex: thanks for the encoragement :)
10:38 < Marex> horms: well I was serious, it doesn't seem all that different
10:38 < wsa_> at least we won't have "long cable" problems with HS400 :)
10:38 < Marex> ^_^'
10:38 < geertu> wsa_: Why not?
10:38 < wsa_> HS400 is eMMC only
10:38 < horms> eMMC is on the board
10:40 < wsa_> dammsan: do you need anything from me regarding add. tasks?
10:40 < geertu> UHS-III is even faster, and using actual cards?
10:41 < wsa_> looks like it
10:42 < wsa_> maybe microsd only, though
10:42 < Marex> wsa_: they use PCIe-like bus
10:42 < Marex> for UHS3 that is
10:43 < Marex> the full-size UHS3 cards have extra pads for that, differential ones
10:43 < Marex> I think the bus might even be PCIe compatible right away
10:43 < wsa_> heh
10:44 < Marex> well that's where it's all headed anyway
10:44 < wsa_> let's see what comes out of that :)
10:44 < Marex> USB3 and PCIe use the same physical layer, the SD probably joins that too
10:44 < Marex> shimoda: I just received USB3 Totalphase Beagle 5000 V2 :-3
10:44 < wsa_> let's see how this will all end up in some R-Car Generation
10:45 < wsa_> but for now, it is SDR104 and HS400 :)
10:45 < wsa_> so, last call for topics from your side
10:46 < wsa_> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaand we are done!
10:46 < wsa_> Thank you guys!
10:46 < neg> thanks all
10:46 < shimoda> Marex: wow! nice!
10:46 < shimoda> thank you!
10:47 < jmondi> thank you all!
10:47 < Marex> thank you all!
10:47 < jmondi> neg: pinchartl: kbingham: catch you later
10:47 < uli__> see you
10:47 < horms> wsa_: were we going to talk about upporting about now?
10:48 < wsa_> i don't think so
10:48 < wsa_> i mean we can do
10:48 < wsa_> but i think it would be good to have morimoto-san here, too
10:48 < Marex> shimoda: jupp, so many hard-to-debug USB problems are hopefully fixed soon :)
10:48 < horms> Sure. Perhaps we can continue the discussion via email.
10:48 < wsa_> i'd suggest to keep discussing via email until then
10:49 < wsa_> ;D
10:49 < shimoda> Marex: I hope so :)
10:49 < horms> my question for you would be: do you think it would be more useful for Kaneko-san to help with keeping the upport list up to date, or to focus on upporting trivial patches
10:52 < wsa_> hmmm
10:53 -!- horms [~horms@217.111.208.18] has quit Quit: Leaving
10:55 < wsa_> seems this answer also needs to go via email...
d='n389' href='#n389'>389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969
/**
 * \file drm.h
 * Header for the Direct Rendering Manager
 *
 * \author Rickard E. (Rik) Faith <faith@valinux.com>
 *
 * \par Acknowledgments:
 * Dec 1999, Richard Henderson <rth@twiddle.net>, move to generic \c cmpxchg.
 */

/*
 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
 * All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice (including the next
 * paragraph) shall be included in all copies or substantial portions of the
 * Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 */

/**
 * \mainpage
 *
 * The Direct Rendering Manager (DRM) is a device-independent kernel-level
 * device driver that provides support for the XFree86 Direct Rendering
 * Infrastructure (DRI).
 *
 * The DRM supports the Direct Rendering Infrastructure (DRI) in four major
 * ways:
 *     -# The DRM provides synchronized access to the graphics hardware via
 *        the use of an optimized two-tiered lock.
 *     -# The DRM enforces the DRI security policy for access to the graphics
 *        hardware by only allowing authenticated X11 clients access to
 *        restricted regions of memory.
 *     -# The DRM provides a generic DMA engine, complete with multiple
 *        queues and the ability to detect the need for an OpenGL context
 *        switch.
 *     -# The DRM is extensible via the use of small device-specific modules
 *        that rely extensively on the API exported by the DRM module.
 *
 */

#ifndef _DRM_H_
#define _DRM_H_

#ifndef __user
#define __user
#endif
#ifndef __iomem
#define __iomem
#endif

#ifdef __GNUC__
# define DEPRECATED  __attribute__ ((deprecated))
#else
# define DEPRECATED
#endif

#if defined(__linux__)
#include <asm/ioctl.h>		/* For _IO* macros */
#define DRM_IOCTL_NR(n)		_IOC_NR(n)
#define DRM_IOC_VOID		_IOC_NONE
#define DRM_IOC_READ		_IOC_READ
#define DRM_IOC_WRITE		_IOC_WRITE
#define DRM_IOC_READWRITE	_IOC_READ|_IOC_WRITE
#define DRM_IOC(dir, group, nr, size) _IOC(dir, group, nr, size)
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
#include <sys/ioccom.h>
#define DRM_IOCTL_NR(n)		((n) & 0xff)
#define DRM_IOC_VOID		IOC_VOID
#define DRM_IOC_READ		IOC_OUT
#define DRM_IOC_WRITE		IOC_IN
#define DRM_IOC_READWRITE	IOC_INOUT
#define DRM_IOC(dir, group, nr, size) _IOC(dir, group, nr, size)
#endif

#define XFREE86_VERSION(major,minor,patch,snap) \
		((major << 16) | (minor << 8) | patch)

#ifndef CONFIG_XFREE86_VERSION
#define CONFIG_XFREE86_VERSION XFREE86_VERSION(4,1,0,0)
#endif

#if CONFIG_XFREE86_VERSION < XFREE86_VERSION(4,1,0,0)
#define DRM_PROC_DEVICES "/proc/devices"
#define DRM_PROC_MISC	 "/proc/misc"
#define DRM_PROC_DRM	 "/proc/drm"
#define DRM_DEV_DRM	 "/dev/drm"
#define DRM_DEV_MODE	 (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP)
#define DRM_DEV_UID	 0
#define DRM_DEV_GID	 0
#endif

#if CONFIG_XFREE86_VERSION >= XFREE86_VERSION(4,1,0,0)
#ifdef __OpenBSD__
#define DRM_MAJOR       81
#endif
#if defined(__linux__) || defined(__NetBSD__)
#define DRM_MAJOR       226
#endif