Re: [PATCH] drm/ttm: fix, avoid iomapping system memory

2010-05-05 Thread Rafał Miłecki
2010/5/5 Jerome Glisse jgli...@redhat.com: If the memory is not iomem we should not try to ioremap it. Should fix : https://bugs.freedesktop.org/show_bug.cgi?id=27822 Signed-off-by: Jerome Glisse jgli...@redhat.com Tested-by: Rafał Miłecki zaj...@gmail.com Thanks! -- Rafał

Re: linux-next - drm/ttm versus nouveau - WARNING and dead driver.

2010-05-06 Thread Rafał Miłecki
2010/5/6 valdis.kletni...@vt.edu: Bisected down to: 82c5da6bf8b55a931b042fb531083863d26c8020 is the first bad commit commit 82c5da6bf8b55a931b042fb531083863d26c8020 Author: Jerome Glisse jgli...@redhat.com Date:   Fri Apr 9 14:39:23 2010 +0200    drm/ttm: ttm_fault callback to allow

Re: [PATCH 0/9] drm/radeon/kms: update pm code

2010-05-10 Thread Rafał Miłecki
2010/5/10 Andy Furniss andy...@ukfsn.org: The module parameter is obsolete. you can enable it dynamically via sysfs (power_method).  The default pm method is profile. OK, I know dynpm was removed - but this is dynclks are the two the same? dynclks is for disabling clocking unused blocks. It

Re: [PATCH 1/2] drm/radeon/kms: reset ddc_bus in object header parsing

2010-05-19 Thread Rafał Miłecki
2010/5/19 Alex Deucher alexdeuc...@gmail.com: Some LVDS connectors don't have a ddc bus, so reset the ddc bus to invalid before parsing the next connector to avoid using stale ddc bus data.  Should fix fdo bug 28164. It does, thanks :) Tested-by: Rafał Miłecki zaj...@gmail.com -- Rafał

Re: [PATCH] drm/radeon/kms/pm: voltage fixes

2010-06-03 Thread Rafał Miłecki
2010/5/27 Alex Deucher alexdeuc...@gmail.com: diff --git a/drivers/gpu/drm/radeon/radeon_combios.c b/drivers/gpu/drm/radeon/radeon_combios.c index 7b5e10d..102c744 100644 --- a/drivers/gpu/drm/radeon/radeon_combios.c +++ b/drivers/gpu/drm/radeon/radeon_combios.c @@ -2454,7 +2454,12 @@

Re: [PATCH] drm/radeon/kms: r600 dump last 64 dwords of ring.

2010-06-04 Thread Rafał Miłecki
2010/6/4 Jerome Glisse jgli...@redhat.com: Instead of dumping unprocessed dwords, dump the last 64 dwords of the ring. This make debugging of some case easier. Signed-off-by: Jerome Glisse jgli...@redhat.com ---  drivers/gpu/drm/radeon/r600.c |    6 +++---  1 files changed, 3 insertions(+),

[PATCH V2] drm/radeon/kms/r600+: use voltage from requested clock mode

2010-06-06 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- This fixes FDO bug #28375, must have for .35 V2: Fix on RV770+ as well. All other chipsets have only one clock mode per state. --- drivers/gpu/drm/radeon/r600.c |8 drivers/gpu/drm/radeon/rv770.c |7 --- 2 files changed, 8

[PATCH V3] drm/radeon/kms/r600+: use voltage from requested clock mode

2010-06-06 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- This fixes FDO bug #28375, it's kind of regression, so quite important to have it for .35. V2: Fix on RV770+ as well. All other chipsets have only one clock mode per state. V3: I'm out of luck today. Grepped for voltage in r*.c and missed

[PATCH 1/2] drm/radeon/kms/r600+: do not set the same voltage as current one

2010-06-06 Thread Rafał Miłecki
We have similar tracking for engine and memory. We could think about some solution for older GPUs as well, however there are not strict voltage values set. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- drivers/gpu/drm/radeon/evergreen.c |8 ++-- drivers/gpu/drm/radeon/r600.c

Re: [PATCH 1/2] drm/radeon/kms/r600+: do not set the same voltage as current one

2010-06-07 Thread Rafał Miłecki
W dniu 7 czerwca 2010 07:00 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: 2010/6/6 Rafał Miłecki zaj...@gmail.com: We have similar tracking for engine and memory. We could think about some solution for older GPUs as well, however there are not strict voltage values set. Signed-off

Re: [PATCH 1/2] drm/radeon/kms/r600+: do not set the same voltage as current one

2010-06-07 Thread Rafał Miłecki
W dniu 7 czerwca 2010 18:09 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: 2010/6/7 Rafał Miłecki zaj...@gmail.com: W dniu 7 czerwca 2010 07:00 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: 2010/6/6 Rafał Miłecki zaj...@gmail.com: We have similar tracking for engine

Re: [PATCH 1/2] drm/radeon/kms/r600+: do not set the same voltage as current one

2010-06-07 Thread Rafał Miłecki
W dniu 7 czerwca 2010 18:24 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: Only VOLTAGE_SW uses current_vddc so it's irrelevant for other voltage types. I introduced displaying this value in radeom_pm_info debugfs in next patch. -- Rafał ___

Re: [PATCH] drm/radeon/kms: fix regressions in CS checker due to r6xx tiling changes

2010-06-09 Thread Rafał Miłecki
Any news on that? Maybe you can get it as is (for d-r-t) Dave and eventually get another patch later? -- Rafał ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] drm/radeon/kms: fix regressions in CS checker due to r6xx tiling changes

2010-06-09 Thread Rafał Miłecki
W dniu 9 czerwca 2010 16:25 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: 2010/6/9 Rafał Miłecki zaj...@gmail.com: Any news on that? Maybe you can get it as is (for d-r-t) Dave and eventually get another patch later? I have a set of rebased patches built against drm-fixes (including

Re: [Regression, post-2.6.34] Hibernation broken on machines with radeon/KMS and r300

2010-06-14 Thread Rafał Miłecki
2010/6/14 Rafael J. Wysocki r...@sisk.pl: On Monday, June 14, 2010, Alex Deucher wrote: On Mon, Jun 14, 2010 at 10:53 AM, Rafael J. Wysocki r...@sisk.pl wrote: Alex, Dave, I'm afraid hibernation is broken on all machines using radeon/KMS with r300 after commit

Re: [PATCH] DRM / radeon / PM: Do not evict VRAM during freeze phase of hibernation

2010-06-18 Thread Rafał Miłecki
2010/6/18 Rafael J. Wysocki r...@sisk.pl: From: Rafael J. Wysocki r...@sisk.pl Thanks for you recent involvement in radeon driver! I can see you used way shorter commit title this time ;) Just as a minor note, maybe you could follow prefix-style we used to see around? Like simple drm/radeon/pm?

[RFT][PATCH 2/2] drm/radeon/kms: enable HDMI audio on RS600/RS690.

2010-06-19 Thread Rafał Miłecki
We will need method of selecting encoder that should receive HDMI block. For now we assign HDMI block to first enabled encoder. Hopefully there are not many RS6x0 chips with two digital encoders. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- Is there anyone with RS6x0 and HDMI audio received

Re: [PATCH] drm/radeon/kms/pm: fix power state indexing on igp chips in dynpm mode

2010-06-25 Thread Rafał Miłecki
2010/6/25 Alex Deucher alexdeuc...@gmail.com: Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=28745 Signed-off-by: Alex Deucher alexdeuc...@gmail.com Tested-by: Rafał Miłecki zaj...@gmail.com -- Rafał ___ dri-devel mailing list dri-devel

Re: [PATCH] drm/radeon/kms/pm: fix power state indexing on igp chips in dynpm mode

2010-06-25 Thread Rafał Miłecki
2010/6/25 Alex Deucher alexdeuc...@gmail.com: Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=28745 Signed-off-by: Alex Deucher alexdeuc...@gmail.com This fixes div by 0 which kills my machine, so I really would like to see this in .35 -- Rafał

Re: [PATCH] drm/radeon/kms: add ioport register access

2010-07-04 Thread Rafał Miłecki
=28774 and similar issues reported by Alberto Milone. Signed-off-by: Alex Deucher alexdeuc...@gmail.com Tested-by: Rafał Miłecki zaj...@gmail.com It really fixes FDO #28774, thanks Alex. As this is not regression fix, I guess it'll go for .36? -- Rafał

Documentation of DRM's API?

2010-07-04 Thread Rafał Miłecki
Hi, While it's quite easy to track initialization of existing KMS drivers (plus we have http://www.botchco.com/agd5f/?p=50) I am not sure where to find documentation of API. I know driver has to register some outputs/encoders/transmitters related functions that will perform querying and setting.

Re: Documentation of DRM's API?

2010-07-04 Thread Rafał Miłecki
W dniu 4 lipca 2010 17:54 użytkownik Jesse Barnes jbar...@virtuousgeek.org napisał: You can edit the DocBook/Makefile to remove the broken docs from the build.  That should get you going with the drm doc itself. I removed z8530book.xml but still got error. Then removed mcabook.xml and I still

Re: Documentation of DRM's API?

2010-07-04 Thread Rafał Miłecki
W dniu 4 lipca 2010 18:07 użytkownik Rafał Miłecki zaj...@gmail.com napisał: W dniu 4 lipca 2010 17:54 użytkownik Jesse Barnes jbar...@virtuousgeek.org napisał: You can edit the DocBook/Makefile to remove the broken docs from the build.  That should get you going with the drm doc itself. I

Re: Documentation of DRM's API?

2010-07-04 Thread Rafał Miłecki
W dniu 4 lipca 2010 18:11 użytkownik Rafał Miłecki zaj...@gmail.com napisał: However, generating HTML (make htmldocs) seems to work. I can live with that, it's fine. OK, HTMLs were generated fine for drm. I can see there are few interesting sections, including Output configuration and Output

EXA - when does it's implementation depend on DRM?

2010-07-04 Thread Rafał Miłecki
AFAIU EXA is collection of operations (Solid, Copy, UploadToScreen, DownloadFromScreen) that touch VRAM. So we can tell hardware to move xterm window 100px right (Copy) and fill freed place with blue (Solid). Is that right? So my question is: when implementing EXA (in DDX) needs DRM and when it

Re: EXA - when does it's implementation depend on DRM?

2010-07-04 Thread Rafał Miłecki
W dniu 4 lipca 2010 22:37 użytkownik Dave Airlie airl...@gmail.com napisał: 2010/7/5 Rafał Miłecki zaj...@gmail.com: W dniu 4 lipca 2010 22:24 użytkownik Dave Airlie airl...@gmail.com napisał: 2010/7/5 Rafał Miłecki zaj...@gmail.com: AFAIU EXA is collection of operations (Solid, Copy

Re: [PATCH] drm/radeon/kms: trivial code style fixes for audio

2010-07-12 Thread Rafał Miłecki
W dniu 25 czerwca 2010 21:24 użytkownik Rafał Miłecki zaj...@gmail.com napisał: Signed-off-by: Rafał Miłecki zaj...@gmail.com --- Nothing serious, just annoying lack of \n made me touch this. Trivial fixes. That's of course for some next merge window. As I said it's trivial but still nice

Suspend lockup: How to bisect d-r-t specific commits?

2010-07-20 Thread Rafał Miłecki
I've installed openSUSE 11.3 which comes with 2.6.34 kernel and added 2.6.35-rc5 from package. In both cases suspending and resuming works fine. Then I downloaded 2.6.35-rc5 and compiled it myself. Suspending and resuming works fine. When trying d-r-t with the same config my machine locks up on

Re: Suspend lockup: How to bisect d-r-t specific commits?

2010-07-20 Thread Rafał Miłecki
W dniu 20 lipca 2010 18:21 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: The last upstream -rc to get merged into d-r-t was 2.6.35-rc4.  If -rc4 works, you could try bisecting from that point:

Re: Suspend lockup: How to bisect d-r-t specific commits?

2010-07-20 Thread Rafał Miłecki
W dniu 20 lipca 2010 20:44 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: Then merge Linus' tree into your local tree: git pull linus It was just about adding master after last one. Thanks a lot! :) -- Rafał ___ dri-devel mailing list

Re: Suspend lockup: How to bisect d-r-t specific commits?

2010-07-20 Thread Rafał Miłecki
W dniu 20 lipca 2010 13:15 użytkownik Marius Gröger marius.groe...@googlemail.com napisał: Am 20.07.2010 12:14, schrieb Rafał Miłecki: I've installed openSUSE 11.3 which comes with 2.6.34 kernel and added 2.6.35-rc5 from package. In both cases suspending and resuming works fine. Then I

Re: Suspend lockup: How to bisect d-r-t specific commits?

2010-07-20 Thread Rafał Miłecki
OK, next question :/ How can I rebase local d-r-t onto Linus's tree? I've Linus's remote tree added and fetched but can not rebase against it. # git rebase linus Current branch drm-radeon-testing is up to date. # git rebase --onto linus drm-radeon-testing Current branch drm-radeon-testing is up

Re: Suspend lockup: How to bisect d-r-t specific commits?

2010-07-21 Thread Rafał Miłecki
W dniu 21 lipca 2010 00:36 użytkownik Dave Airlie airl...@redhat.com napisał: On Tue, 2010-07-20 at 23:37 +0200, Rafał Miłecki wrote: OK, next question :/ How can I rebase local d-r-t onto Linus's tree? I've Linus's remote tree added and fetched but can not rebase against it. # git rebase

Re: Suspend lockup: How to bisect d-r-t specific commits?

2010-07-21 Thread Rafał Miłecki
W dniu 21 lipca 2010 11:30 użytkownik Rafał Miłecki zaj...@gmail.com napisał: First bisect try gave me: bad: [d8c253f30d0eb975e5c42c31587ef718517f5067] drm/radeon: optimize default 3D state for r6xx/r7xx blits I'm leaving today, not sure if I manage to confirm this before next week. I

Re: Suspend lockup: How to bisect d-r-t specific commits?

2010-07-24 Thread Rafał Miłecki
W dniu 21 lipca 2010 19:23 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: 2010/7/21 Rafał Miłecki zaj...@gmail.com: W dniu 21 lipca 2010 11:30 użytkownik Rafał Miłecki zaj...@gmail.com napisał: First bisect try gave me: bad: [d8c253f30d0eb975e5c42c31587ef718517f5067] drm/radeon

Re: Suspend lockup: How to bisect d-r-t specific commits?

2010-07-25 Thread Rafał Miłecki
W dniu 24 lipca 2010 22:41 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: 2010/7/24 Rafał Miłecki zaj...@gmail.com: W dniu 21 lipca 2010 19:23 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: 2010/7/21 Rafał Miłecki zaj...@gmail.com: W dniu 21 lipca 2010 11:30 użytkownik Rafał

Re: Suspend lockup: How to bisect d-r-t specific commits?

2010-07-26 Thread Rafał Miłecki
W dniu 26 lipca 2010 07:57 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: How about v4 (attached)?  Any better? I counted up to 9 flashes after resume this time. Didn't try this again (maybe different amount of flashses). -- Rafał ___

Re: Suspend lockup: How to bisect d-r-t specific commits?

2010-07-26 Thread Rafał Miłecki
W dniu 26 lipca 2010 20:55 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: 2010/7/26 Rafał Miłecki zaj...@gmail.com: W dniu 26 lipca 2010 07:57 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: How about v4 (attached)?  Any better? I counted up to 9 flashes after resume this time

Re: Suspend lockup: How to bisect d-r-t specific commits?

2010-07-27 Thread Rafał Miłecki
W dniu 27 lipca 2010 17:27 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: I'm an idiot.  The sampler state needs to be there as it's not emitted subsequently;  I was thinking it got emitted with the texture fetch constants like it does in the ddx.  That was the issue all along. Thanks

Re: Suspend lockup: How to bisect d-r-t specific commits?

2010-07-28 Thread Rafał Miłecki
W dniu 28 lipca 2010 01:01 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: 2010/7/27 Rafał Miłecki zaj...@gmail.com: W dniu 27 lipca 2010 17:27 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: I'm an idiot.  The sampler state needs to be there as it's not emitted subsequently;  I

Re: [PATCH] drm/radeon: Add early unregister of firmware fb's

2010-08-16 Thread Rafał Miłecki
2010/8/10 Benjamin Herrenschmidt b...@kernel.crashing.org: +#ifdef CONFIG_X86 +       primary = dev-pdev-resource[PCI_ROM_RESOURCE].flags IORESOURCE_ROM_SHADOW; +#endif It won't compile for CONFIG_X86, no dev. -- Rafał ___ dri-devel mailing list

Re: [PATCH] drm/radeon/kms: DCE3/4 AdjustPixelPll updates

2010-08-16 Thread Rafał Miłecki
2010/8/16 Alex Deucher alexdeuc...@gmail.com: Add options necessary bits for: - SS on DP - SS on LVDS And SS stands for... ? ;) -- Rafał ___ dri-devel mailing list dri-devel@lists.freedesktop.org

Re: [PATCH] drm/edid: Don't repeatedly log hex dumps of bad EDIDs by default

2010-09-19 Thread Rafał Miłecki
2010/9/18 Marcin Slusarz marcin.slus...@gmail.com: On Fri, Sep 17, 2010 at 06:53:26PM -0400, Andy Walls wrote: On my system, every 10 seconds drm_edid_block_valid() gets called 4 times by radeon_dvi_detect().  This results in 4 instances of a multi-line hex dump of the same EDID (non-)data

Re: [PATCH] drm/sysfs: Provide per connector control of DRM KMS polling

2010-09-20 Thread Rafał Miłecki
2010/9/20 Andy Walls awa...@md.metrocast.net: DRM KMS polling of connections providing errant EDID responses, or polling of connectors that have chips responding on DDC I2C bus address 0xA0/0xA1 with no actual physical connector nor EDID EEPROM, will create perpetual noise in dmesg and the

Re: [PATCH] vgaarb: use bridges to control VGA routing where possible.

2010-12-16 Thread Rafał Miłecki
2010/12/16 Mark Marshall mark.marsh...@csr.com: On 16/12/2010 05:54, Dave Airlie wrote: From: Dave Airlieairl...@redhat.com  int pci_set_vga_state(struct pci_dev *dev, bool decode, -                     unsigned int command_bits, bool change_bridge) +                     unsigned int

Re: [PATCH] drm/radeon/kms: only enable underscan by default if the monitor supports audio

2010-12-17 Thread Rafał Miłecki
2010/12/17 Alex Deucher alexdeuc...@gmail.com: Users with TVs or monitors that don't overscan by default would prefer to not have underscan enabled, while users with overscanning TVs prefer underscan.  This should hopefully make everyone happy as most monitors with audio tend to be TVs which

Re: [PATCH] drm/radeon/kms: reorder display resume to avoid problems

2010-12-20 Thread Rafał Miłecki
2010/12/20 Alex Deucher alexdeuc...@gmail.com: On resume, we were attemping to unblank the displays before the timing and plls had be reprogrammed which led to atom timeouts waiting for things that are not yet programmed.  Re-program the mode first, then reset the dpms state. This fixes the

Re: [PATCH] drm/radeon/kms: disable underscan by default

2011-01-09 Thread Rafał Miłecki
2011/1/5 Alex Deucher alexdeuc...@gmail.com: Lots of HDMI TVs overscan the incoming image by default. The underscan option was added as a way to compensate for that by underscanning the image so that the edges would not be cut off on an overscanning TV.  However, the TV provides no way of

Re: [git pull] drm fixes

2011-02-18 Thread Rafał Miłecki
2011/2/18 Anca Emanuel anca.eman...@gmail.com: Nouveau OpenGL regresion Tools used: http://packages.ubuntu.com/maverick/misc/glmark2 With 2.6.38-rc5 latest git: nv50_screen_get_param:162 -  Unknown PIPE_CAP 11 ===    glmark2 10.07.1

Re: [PATCH] drm radeon: Return -EINVAL on wrong pm sysfs access

2011-03-26 Thread Rafał Miłecki
2011/3/23 Thomas Renninger tr...@suse.de: drm radeon: Return -EINVAL on wrong pm sysfs access Throw an error if someone tries to fill this with wrong data, instead of simply ignoring the input. Now you get: echo hello /sys/../power_method -bash: echo: write error: Invalid argument

Re: [PATCH] drm radeon: Return -EINVAL on wrong pm sysfs access

2011-03-26 Thread Rafał Miłecki
W dniu 26 marca 2011 16:38 użytkownik Rafał Miłecki zaj...@gmail.com napisał: 2011/3/23 Thomas Renninger tr...@suse.de: drm radeon: Return -EINVAL on wrong pm sysfs access Throw an error if someone tries to fill this with wrong data, instead of simply ignoring the input. Now you get: echo

Re: [PATCH] bugfix and cleanup patches in the TTM code for 3.1.

2011-06-08 Thread Rafał Miłecki
Hi Konrad, 2011/6/8 Konrad Rzeszutek Wilk konrad.w...@oracle.com: The bug-fix ttm: Do not increment the amount of pages in a pool by the current amount I never observed, but found while looking at the code. The cleanup patch: ttm: Fix spelling mistakes and remove unused #ifdef, I had posted

Re: [PATCH] drm/radeon/kms: fix regression in hotplug

2011-07-11 Thread Rafał Miłecki
2011/7/11 Alex Deucher alexdeuc...@gmail.com: Skip connectors that do not have an HPD pin. Should fix: https://bugs.freedesktop.org/show_bug.cgi?id=39027 Signed-off-by: Alex Deucher alexdeuc...@gmail.com Tested-by: Rafał Miłecki zaj...@gmail.com Fixes the regression. -- Rafał

Re: [Feature request] Multiple X servers on one graphics card?

2011-08-02 Thread Rafał Miłecki
2011/8/2 Alan Cox a...@lxorguk.ukuu.org.uk: But I believe this is a problem of all approaches which provide multiple hardware-accelerated (or Xv-enabled) seats on a single GPU, no matter if based on multiple DRM devices, on Xephyr or Xnest with some kind of OpenGL or DRI passthrough, or on

Re: r600 hdmi sound issue

2011-11-09 Thread Rafał Miłecki
2011/11/9 Greg Dietsche g...@gregd.org: Hi, I have a ASUS M4A89GTD motherboard and when I play back music in Rhythmbox, there is no sound (hdmi connection). Also, the playback speed is in a sort of fast forward (for example, after a few seconds of real time, rhythmbox shows something like 30

Re: 3.2-rc2+: Reported regressions from 3.0 and 3.1

2011-11-22 Thread Rafał Miłecki
W dniu 21 listopada 2011 23:22 użytkownik Linus Torvalds torva...@linux-foundation.org napisał: On Mon, Nov 21, 2011 at 1:49 PM, Rafael J. Wysocki r...@sisk.pl wrote: Subject    : [3.1-rc8 REGRESSION] sky2 hangs machine on turning off or suspending Submitter  : Rafał Miłecki zaj...@gmail.com

[PATCH] drm/radeon/kms: minor HDMI audio cleanups

2011-12-04 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- drivers/gpu/drm/radeon/r600_audio.c | 37 +++--- drivers/gpu/drm/radeon/r600_hdmi.c | 14 ++-- 2 files changed, 32 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_audio.c b

[RFC][PATCH 2/2] drm/radeon/kms: enable HDMI on Evergreen encoders

2011-12-04 Thread Rafał Miłecki
--- drivers/gpu/drm/radeon/evergreen_reg.h |3 +++ drivers/gpu/drm/radeon/r600_hdmi.c | 16 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen_reg.h b/drivers/gpu/drm/radeon/evergreen_reg.h index b883911..2dc1365 100644 ---

[HACK][TESTING ONLY][PATCH] drm/radeon/kms: workaround broken atombios_get_encoder_mode (see FIXMEs)

2011-12-04 Thread Rafał Miłecki
--- drivers/gpu/drm/radeon/atombios_encoders.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers/gpu/drm/radeon/atombios_encoders.c index 39c04c1..6bb967d 100644 --- a/drivers/gpu/drm/radeon/atombios_encoders.c +++

Request for fixing atombios_get_encoder_mode

2011-12-07 Thread Rafał Miłecki
In theory function atombios_get_encoder_mode should report ATOM_ENCODER_MODE_HDMI when TV supports audio. Current we report ATOM_ENCODER_MODE_DVI if card is DCE4. Is there any reason for it? Can we just drop that DCE4 condition? This fixme seems to be here since ever. -- Rafał

Request for fixing atombios_get_encoder_mode

2011-12-07 Thread Rafał Miłecki
In theory function atombios_get_encoder_mode should report ATOM_ENCODER_MODE_HDMI when TV supports audio. Current we report ATOM_ENCODER_MODE_DVI if card is DCE4. Is there any reason for it? Can we just drop that DCE4 condition? This fixme seems to be here since ever. -- Rafał

Re: Request for fixing atombios_get_encoder_mode

2011-12-07 Thread Rafał Miłecki
W dniu 7 grudnia 2011 14:53 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: 2011/12/7 Rafał Miłecki zaj...@gmail.com: In theory function atombios_get_encoder_mode should report ATOM_ENCODER_MODE_HDMI when TV supports audio. Current we report ATOM_ENCODER_MODE_DVI if card is DCE4

Re: Request for fixing atombios_get_encoder_mode

2011-12-07 Thread Rafał Miłecki
W dniu 7 grudnia 2011 15:53 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: 2011/12/7 Rafał Miłecki zaj...@gmail.com: W dniu 7 grudnia 2011 14:53 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: 2011/12/7 Rafał Miłecki zaj...@gmail.com: In theory function

[PATCH 1/3] drm/radeon/kms: one more HDMI cleanup (in disabling code)

2011-12-07 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- drivers/gpu/drm/radeon/r600_hdmi.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_hdmi.c b/drivers/gpu/drm/radeon/r600_hdmi.c index 5021372..06f923e 100644 --- a/drivers/gpu/drm

[PATCH 2/3] drm/radeon/kms: support for audio on Evergreen

2011-12-07 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- drivers/gpu/drm/radeon/evergreen.c | 14 ++ drivers/gpu/drm/radeon/evergreen_reg.h |8 drivers/gpu/drm/radeon/r600_audio.c| 22 +++--- 3 files changed, 41 insertions(+), 3 deletions(-) diff

[PATCH 3/3] drm/radeon/kms: enable HDMI mode on Evergreen encoders

2011-12-07 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- drivers/gpu/drm/radeon/evergreen_reg.h | 10 +++ drivers/gpu/drm/radeon/r600_hdmi.c | 44 ++-- 2 files changed, 46 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen_reg.h b

Re: [PATCH] drm/radeon/kms: do not force DVI mode on DCE4 if audio is on

2011-12-07 Thread Rafał Miłecki
2011/12/7 Alex Deucher alexdeuc...@gmail.com: 2011/12/7 Rafał Miłecki zaj...@gmail.com: Signed-off-by: Rafał Miłecki zaj...@gmail.com ---  drivers/gpu/drm/radeon/atombios_encoders.c |    6 +++---  1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon

[PATCH V2] drm/radeon/kms: do not force DVI mode on DCE4 if audio is on

2011-12-07 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V2: don't duplicate check for radeon_audio --- drivers/gpu/drm/radeon/atombios_encoders.c | 35 +-- 1 files changed, 12 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers

[PATCH 2/3] drm/radeon/kms: one more HDMI cleanup (in disabling code)

2011-12-07 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- drivers/gpu/drm/radeon/r600_hdmi.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_hdmi.c b/drivers/gpu/drm/radeon/r600_hdmi.c index 5021372..06f923e 100644 --- a/drivers/gpu/drm

[PATCH V2 3/3] drm/radeon/kms: enable HDMI mode on Evergreen encoders

2011-12-07 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V2: Don't touch DIG_CNTL manually, AtomBIOS does that for us. My early testing was done with hacked code to enable HDMI on DVI. After fixing atombios_get_encoder_mode the behaviour has changed a little, that hack is not needed anymore

[PATCH] drm/radeon/kms: workaround invalid AVI infoframe checksum issue

2011-12-23 Thread Rafał Miłecki
Cc: sta...@vger.kernel.org Signed-off-by: Rafał Miłecki zaj...@gmail.com --- I'd like to propose taking this patch into older releases. It's really trivial while it fixes important feature. This change was verified to fix both issues with no video I've investigated. I've also checked checksum

[PATCH V3] drm/radeon/kms: setup HDMI mode on Evergreen encoders

2011-12-23 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V3: the earlier V2 wasn't applied, so I resend it with some changes. I've switched HDMI block calculation to use register offsets known from CRCT. This should match better the rest of Evergreen code. Dave: this is on top of drm-radeon-testing

Re: [PATCH] drm/radeon/kms: workaround invalid AVI infoframe checksum issue

2011-12-23 Thread Rafał Miłecki
W dniu 23 grudnia 2011 20:32 użytkownik Rafał Miłecki zaj...@gmail.com napisał: Cc: sta...@vger.kernel.org Signed-off-by: Rafał Miłecki zaj...@gmail.com --- I'd like to propose taking this patch into older releases. It's really trivial while it fixes important feature. This change

[PATCH] drm/radeon/kms: define TMDS/LVTM HDMI enabling bits

2011-12-24 Thread Rafał Miłecki
The names has been taken from free M76 specs. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- drivers/gpu/drm/radeon/r500_reg.h |2 ++ drivers/gpu/drm/radeon/r600_hdmi.c | 12 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/r500_reg.h

Looking for libsegfault

2012-01-24 Thread Rafał Miłecki
Hey, I want to do some RE-ing and I'm looking for libsegfault to trace Xorg driver ops. Unfortunately I can't find libsegfault at http://people.freedesktop.org/~glisse/ anymore. Can someone share this, please? -- Rafał ___ dri-devel mailing list

Re: [PATCH 1/2] drm/radeon/kms: use drm_detect_hdmi_monitor for picking encoder mode

2012-01-27 Thread Rafał Miłecki
2012/1/20 alexdeuc...@gmail.com: From: Alex Deucher alexander.deuc...@amd.com We were previously just checking for audio. So... Does every hdmi_monitor supports audio? Or should it rather be if (drm_detect_monitor_audio(radeon_connector-edid) drm_detect_hdmi_monitor(radeon_connector-edid)) ?

[PATCH][RFC] drm/radeon/kms: use HDMI IRQ on Evergreen

2012-03-25 Thread Rafał Miłecki
--- drivers/gpu/drm/radeon/evergreen.c | 45 drivers/gpu/drm/radeon/r600_hdmi.c |7 - drivers/gpu/drm/radeon/radeon.h|2 +- 3 files changed, 52 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c

Re: [PATCH] drm/radeon/kms: add register definitions for audio

2012-03-29 Thread Rafał Miłecki
2012/3/28 alexdeuc...@gmail.com: +/* digital blocks */ +#define TMDSA_CNTL                       0x7880 +#       define TMDSA_HDMI_EN             (1 2) +#define LVTMA_CNTL                       0x7a80 +#       define LVTMA_HDMI_EN             (1 2) +#define DDIA_CNTL                      

Re: [PATCH] drm/radeon/kms: add register definitions for audio

2012-03-30 Thread Rafał Miłecki
2012/3/28 alexdeuc...@gmail.com: From: Alex Deucher alexander.deuc...@amd.com This adds register definitions for HDMI/DP audio on DCE2/3/4/5 hardware. OK, AICS we got PLL regs and HDMI blocks regs. May I ask about audio block regs? Did you just missed them or do they need passing some

Re: [PATCH] drm/radeon/kms: add register definitions for audio

2012-03-30 Thread Rafał Miłecki
W dniu 30 marca 2012 11:09 użytkownik Rafał Miłecki zaj...@gmail.com napisał: 2012/3/28  alexdeuc...@gmail.com: From: Alex Deucher alexander.deuc...@amd.com This adds register definitions for HDMI/DP audio on DCE2/3/4/5 hardware. OK, AICS we got PLL regs and HDMI blocks regs. May I ask

[next][PATCH 0/5] radeon HDMI cleaning

2012-04-28 Thread Rafał Miłecki
both: R6xx and Evergreen). Rafał Miłecki (5): drm/radeon/kms: move audio params to separated struct drm/radeon/kms: get rid of hdmi_config_offset drm/radeon/kms: get rid of r600_hdmi_find_free_block drm/radeon/kms: keep HDMI state in separated variable drm/radeon/kms/hdmi: use relative

[next][PATCH 1/5] drm/radeon/kms: move audio params to separated struct

2012-04-28 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/r600_audio.c | 34 +- drivers/gpu/drm/radeon/radeon.h | 19 ++- 2 files changed, 27 insertions(+), 26 deletions

[next][PATCH 2/5] drm/radeon/kms: get rid of hdmi_config_offset

2012-04-28 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- drivers/gpu/drm/radeon/evergreen_reg.h |2 -- drivers/gpu/drm/radeon/r600_hdmi.c | 14 -- drivers/gpu/drm/radeon/r600_reg.h |6 ++ drivers/gpu/drm/radeon/radeon_mode.h |1 - 4 files changed, 6 insertions

[next][PATCH 3/5] drm/radeon/kms: get rid of r600_hdmi_find_free_block

2012-04-28 Thread Rafał Miłecki
R6xx has routable blocks, but there's nothing wrong in assignment based on dig_encoder. We didn't really need that algorithm. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- drivers/gpu/drm/radeon/r600_hdmi.c | 45 ++- 1 files changed, 8 insertions(+), 37

[next][PATCH 4/5] drm/radeon/kms: keep HDMI state in separated variable

2012-04-28 Thread Rafał Miłecki
If we want hdmi_offset to be relative to the first block, zero value can be used also for enabled block. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- drivers/gpu/drm/radeon/r600_hdmi.c | 16 +--- drivers/gpu/drm/radeon/radeon_mode.h |1 + 2 files changed, 10 insertions

[next][PATCH 5/5] drm/radeon/kms/hdmi: use relative offsets, official regs

2012-04-28 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- drivers/gpu/drm/radeon/r600.c | 28 ++-- drivers/gpu/drm/radeon/r600_hdmi.c | 90 +++- drivers/gpu/drm/radeon/r600_reg.h | 39 --- drivers/gpu/drm/radeon/r600d.h |7 ++- 4

[next][PATCH 0/3] radeon HDMI: next minor improvements

2012-04-30 Thread Rafał Miłecki
sent yesterday. Again, tested on RV620 and HD6320. Unfortunately I don't have DCE32 card or sth to test code in r600_hdmi_enable/r600_hdmi_disable (pre DCE3). P.S. I'm leaving civilization for the rest of this week. Rafał Miłecki (3): drm/radeon/kms/hdmi: enable audio packets at one place drm

[next][PATCH 1/3] drm/radeon/kms/hdmi: enable audio packets at one place

2012-04-30 Thread Rafał Miłecki
--- drivers/gpu/drm/radeon/r600_hdmi.c | 26 -- 1 files changed, 16 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_hdmi.c b/drivers/gpu/drm/radeon/r600_hdmi.c index c6de0022..69839df 100644 --- a/drivers/gpu/drm/radeon/r600_hdmi.c +++

[next][PATCH 2/3] drm/radeon/kms/hdmi: cleanimprove handling HDMI mode

2012-04-30 Thread Rafał Miłecki
--- drivers/gpu/drm/radeon/r600_hdmi.c | 42 +++ 1 files changed, 27 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_hdmi.c b/drivers/gpu/drm/radeon/r600_hdmi.c index 69839df..7d24753 100644 --- a/drivers/gpu/drm/radeon/r600_hdmi.c +++

[next][PATCH 3/3] drm/radeon/kms/hdmi: helper getting ready ACR entry

2012-04-30 Thread Rafał Miłecki
--- drivers/gpu/drm/radeon/r600_hdmi.c | 61 drivers/gpu/drm/radeon/radeon.h| 14 2 files changed, 41 insertions(+), 34 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_hdmi.c b/drivers/gpu/drm/radeon/r600_hdmi.c index 7d24753..0319619

[next][PATCH 0/3] drm/radeon/hdmi: separate Evergreen, update modesetting

2012-05-06 Thread Rafał Miłecki
This patch finally separates Evergreen code and applies changes published as WIP by Alex. Alex: I think we should add your Signed-o-b in PATCH 2, can you take a look at this? Rafał Miłecki (3): drm/radeon/hdmi: separate evergreen code drm/radeon/hdmi: update modesetting drm/radeon/hdmi

[next][PATCH 1/3] drm/radeon/hdmi: separate evergreen code

2012-05-06 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- drivers/gpu/drm/radeon/Makefile|5 +- drivers/gpu/drm/radeon/atombios_encoders.c |5 +- drivers/gpu/drm/radeon/evergreen_hdmi.c| 187 drivers/gpu/drm/radeon/r600_hdmi.c |9

[next][PATCH 3/3] drm/radeon/hdmi: fix some coding style

2012-05-06 Thread Rafał Miłecki
Use defined macros by the way. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- drivers/gpu/drm/radeon/r600_hdmi.c | 47 --- 1 files changed, 32 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_hdmi.c b/drivers/gpu/drm/radeon

[RFC][PATCH] drm/radeon/hdmi: define struct for AVI infoframe

2012-05-06 Thread Rafał Miłecki
--- drivers/gpu/drm/radeon/r600_hdmi.c | 81 ++- drivers/gpu/drm/radeon/radeon.h| 41 ++ 2 files changed, 55 insertions(+), 67 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_hdmi.c b/drivers/gpu/drm/radeon/r600_hdmi.c index

Re: [RFC][PATCH] drm/radeon/hdmi: define struct for AVI infoframe

2012-05-06 Thread Rafał Miłecki
2012/5/6 Rafał Miłecki zaj...@gmail.com: diff --git a/drivers/gpu/drm/radeon/r600_hdmi.c b/drivers/gpu/drm/radeon/r600_hdmi.c index c308432..b14c90a 100644 --- a/drivers/gpu/drm/radeon/r600_hdmi.c +++ b/drivers/gpu/drm/radeon/r600_hdmi.c @@ -134,78 +134,22 @@ static void

Re: [RFC][PATCH] drm/radeon/hdmi: define struct for AVI infoframe

2012-05-06 Thread Rafał Miłecki
2012/5/6 Dave Airlie airl...@gmail.com: On Sun, May 6, 2012 at 5:19 PM, Rafał Miłecki zaj...@gmail.com wrote: 2012/5/6 Rafał Miłecki zaj...@gmail.com: diff --git a/drivers/gpu/drm/radeon/r600_hdmi.c b/drivers/gpu/drm/radeon/r600_hdmi.c index c308432..b14c90a 100644 --- a/drivers/gpu/drm

Re: [RFC][PATCH] drm/radeon/hdmi: define struct for AVI infoframe

2012-05-06 Thread Rafał Miłecki
2012/5/6 Daniel Vetter dan...@ffwll.ch: On Sun, May 06, 2012 at 05:22:59PM +0100, Dave Airlie wrote: On Sun, May 6, 2012 at 5:19 PM, Rafał Miłecki zaj...@gmail.com wrote: 2012/5/6 Rafał Miłecki zaj...@gmail.com: diff --git a/drivers/gpu/drm/radeon/r600_hdmi.c b/drivers/gpu/drm/radeon

[PATCH 1/2] drm/radeon/hdmi: store info about all AFMT blocks

2012-05-14 Thread Rafał Miłecki
From: Alex Deucher alexander.deuc...@amd.com Introduce special struct radeon_afmt for this purpose. Signed-off-by: Alex Deucher alexander.deuc...@amd.com Signed-off-by: Rafał Miłecki zaj...@gmail.com --- drivers/gpu/drm/radeon/r600_reg.h |6 ++ drivers/gpu/drm/radeon/r600d.h

[PATCH 2/2] drm/radeon/hdmi: use new AFMT structs

2012-05-14 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- drivers/gpu/drm/radeon/atombios_encoders.c | 11 ++- drivers/gpu/drm/radeon/evergreen_hdmi.c| 16 ++- drivers/gpu/drm/radeon/r600_audio.c| 25 + drivers/gpu/drm/radeon/r600_hdmi.c | 151

[PATCH] drm/radeon/hdmi: compile audio status in 1 function

2012-05-14 Thread Rafał Miłecki
This optmizes calls, registers reads and assignments. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- This should be applied on top of: [PATCH 1/2] drm/radeon/hdmi: store info about all AFMT blocks [PATCH 2/2] drm/radeon/hdmi: use new AFMT structs --- drivers/gpu/drm/radeon/r600_audio.c

  1   2   3   4   5   >