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

2010-07-17 Thread Rafał Miłecki
W dniu 17 lipca 2010 11:27 u?ytkownik Dave Airlie napisa?: > 2010/7/17 Rafa? Mi?ecki : >> Dave, last time you decided to push this fix for 2.6.35, then >> resigned. After additional fix from Alex I can see this in drm-next >> only, not in drm-fixes or Linus's tree. Did you change your mind to >>

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 s

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 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: > http://git.kernel.org/?p=linux/kernel/git/airlied/drm-2.6.git;a=commitdiff;h=815c4163b6c8ebf8152f42b0a5fd015cfdc

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 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?

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 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 downloaded 2.6.35-rc5

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 t

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 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 linus >>

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 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 switched back to

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 napisa?: > 2010/7/21 Rafa? Mi?ecki : >> W dniu 21 lipca 2010 11:30 u?ytkownik Rafa? Mi?ecki >> napisa?: >>> First bisect try gave me: >>> bad: [d8c253f30d0eb975e5c42c31587ef718517f5067] >>> drm/radeon: optimize default 3D state for r6xx/r7xx bli

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 napisa?: > 2010/7/24 Rafa? Mi?ecki : >> W dniu 21 lipca 2010 19:23 u?ytkownik Alex Deucher >> napisa?: >>> 2010/7/21 Rafa? Mi?ecki : W dniu 21 lipca 2010 11:30 u?ytkownik Rafa? Mi?ecki napisa?: > First bisect try gave me: > ba

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 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?

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

2010-07-27 Thread Rafał Miłecki
W dniu 26 lipca 2010 20:55 u?ytkownik Alex Deucher napisa?: > 2010/7/26 Rafa? Mi?ecki : >> W dniu 26 lipca 2010 07:57 u?ytkownik Alex Deucher >> napisa?: >>> How about v4 (attached)? ?Any better? >> >> I counted up to 9 flashes after resume this time. Didn't try this >> again (maybe different amo

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 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 for tracking that

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

2010-07-27 Thread Rafał Miłecki
W dniu 27 lipca 2010 23:53 u?ytkownik Rafa? Mi?ecki napisa?: > W dniu 27 lipca 2010 17:27 u?ytkownik Alex Deucher > 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

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 napisa?: > 2010/7/27 Rafa? Mi?ecki : >> W dniu 27 lipca 2010 17:27 u?ytkownik Alex Deucher >> 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 fe

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

2010-06-04 Thread Rafał Miłecki
2010/5/27 Alex Deucher : > 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 @@ default_mode: > ? ? ?

[PATCH] drm/radeon/kms/pm: add support for SetVoltage cmd table (V2)

2010-06-04 Thread Rafał Miłecki
2010/5/28 Alex Deucher : > diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c > index dac2534..d84d7cf 100644 > --- a/drivers/gpu/drm/radeon/r600.c > +++ b/drivers/gpu/drm/radeon/r600.c > @@ -475,6 +475,12 @@ void r600_pm_init_profile(struct radeon_device *rdev) > > ?void r6

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

2010-06-04 Thread Rafał Miłecki
2010/6/4 Jerome Glisse : > 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 > --- > ?drivers/gpu/drm/radeon/r600.c | ? ?6 +++--- > ?1 files changed, 3 insertions(+), 3 deletions(-) > > diff --git

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

2010-06-04 Thread Rafał Miłecki
W dniu 4 czerwca 2010 21:55 u?ytkownik Jerome Glisse napisa?: > On Fri, Jun 04, 2010 at 02:54:42PM +0200, Rafa? Mi?ecki wrote: >> 2010/6/4 Jerome Glisse : >> > Instead of dumping unprocessed dwords, dump the last 64 >> > dwords of the ring. This make debugging of some case easier. >> > >> > Signed

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

2010-06-06 Thread Rafał Miłecki
Signed-off-by: Rafa? Mi?ecki --- This fixes FDO bug #28375, must have for .35 --- drivers/gpu/drm/radeon/r600.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c index d84d7cf..94c27d0 100644 --- a/drivers

[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 --- 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 insertions(+), 7 d

[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 --- 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 evergreen. --- drivers/

[PATCH 0/2] Little voltage improvements

2010-06-06 Thread Rafał Miłecki
Patches simply add tracking of voltage and debug setting it. While it may look trivial and not important, having it would save a lot of time in debugging FDO bug #36081. This way I try to say it could be nice to have it in .35 as voltage stuff is new and we still may discover some bugs around it.

[PATCH 2/2] drm/radeon/kms: add trivial debugging for voltage

2010-06-06 Thread Rafał Miłecki
Signed-off-by: Rafa? Mi?ecki --- drivers/gpu/drm/radeon/evergreen.c |1 + drivers/gpu/drm/radeon/r600.c |1 + drivers/gpu/drm/radeon/radeon_pm.c |2 ++ drivers/gpu/drm/radeon/rv770.c |1 + 4 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/rade

[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 --- drivers/gpu/drm/radeon/evergreen.c |8 ++-- drivers/gpu/drm/radeon/r600.c |8 ++-- dri

[PATCH] drm/radeon/kms/pm: resurrect printing power states

2010-06-06 Thread Rafał Miłecki
Signed-off-by: Rafa? Mi?ecki --- Alex you dropped this in "rework power management". Did you have some reason for doing that? Or was that just accident? --- drivers/gpu/drm/radeon/radeon_pm.c | 45 1 files changed, 45 insertions(+), 0 deletions(-) diff --gi

[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 napisa?: > 2010/6/6 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 > > I act

[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 napisa?: > 2010/6/7 Rafa? Mi?ecki : >> W dniu 7 czerwca 2010 07:00 u?ytkownik Alex Deucher >> napisa?: >>> 2010/6/6 Rafa? Mi?ecki : We have similar tracking for engine and memory. We could think about some solution for older GPUs as we

[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 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?

[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?

[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 napisa?: > 2010/6/9 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? > > I have a set of rebased patches built against drm-fixes (including > Matt's suggestion), but there

[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 : > On Monday, June 14, 2010, Alex Deucher wrote: >> On Mon, Jun 14, 2010 at 10:53 AM, Rafael J. Wysocki wrote: >> > Alex, Dave, >> > >> > I'm afraid hibernation is broken on all machines using radeon/KMS with r300 >> > after commit ce8f53709bf440100cb9d31b1303291551cf5

[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 : > From: Rafael J. Wysocki 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"? Or eventually somethin

[PATCH 1/2] drm/radeon/kms: track audio engine state, do not use not setup timer

2010-06-19 Thread Rafał Miłecki
This is needed to enable audio support on devices using polling. In case user decides to disable audio (module parameter) we still will try to use timer in r600_audio_enable_polling. This would lead to BUG in kernel/timer.c. Signed-off-by: Rafa? Mi?ecki --- Dave: I think we should not hit this wi

[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 --- Is there anyone with RS6x0 and HDMI audio received around? --- driv

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

2010-06-25 Thread Rafał Miłecki
Signed-off-by: Rafa? Mi?ecki --- Nothing serious, just annoying lack of \n made me touch this. Trivial fixes. That's of course for some next merge window. --- drivers/gpu/drm/radeon/r600_audio.c | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/

[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 : > Fixes: > https://bugs.freedesktop.org/show_bug.cgi?id=28745 > > Signed-off-by: Alex Deucher Tested-by: Rafa? Mi?ecki -- Rafa?

[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 : > Fixes: > https://bugs.freedesktop.org/show_bug.cgi?id=28745 > > Signed-off-by: Alex Deucher This fixes div by 0 which kills my machine, so I really would like to see this in .35 -- Rafa?

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

2010-05-05 Thread Rafał Miłecki
2010/5/5 Jerome Glisse : > 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 Tested-by: Rafa? Mi?ecki Thanks! -- Rafa?

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

2010-05-06 Thread Rafał Miłecki
2010/5/6 : > Bisected down to: > > 82c5da6bf8b55a931b042fb531083863d26c8020 is the first bad commit > commit 82c5da6bf8b55a931b042fb531083863d26c8020 > Author: Jerome Glisse > Date: ? Fri Apr 9 14:39:23 2010 +0200 > > ? ?drm/ttm: ttm_fault callback to allow driver to handle bo placement V6 Can t

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

2010-05-10 Thread Rafał Miłecki
2010/5/10 Andy Furniss : >> 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 means you don

[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 : > 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 -- Rafa?

2.6.36-rc6-git2: Reported regressions 2.6.34 -> 2.6.35

2010-10-04 Thread Rafał Miłecki
2010/10/3 Rafael J. Wysocki : > Bug-Entry ? ? ? : http://bugzilla.kernel.org/show_bug.cgi?id=19302 > Subject ? ? ? ? : PROBLEM: kernel crash on USB-modem (Huawei E1750) hangup. > Submitter ? ? ? : O01eg > Date ? ? ? ? ? ?: 2010-09-26 19:50 (8 days old) > Message-ID ? ? ?: > References ? ? ?: http

Looking for a RV710 / RV730 / RV740 user with HDMI TV

2013-10-04 Thread Rafał Miłecki
Hi guys, I wanted to verify/improve HDMI (audio) implementation in radeon for so-called DCE3.2 cards. To achieve that I need a log from fglrx. Is there anyone around using RV710 / RV730 / RV740 who can install fglrx for one day and do few simple tests for me? In case you don't know chipsets: RV7

[RFC][PATCH 1/2] drm/radeon: remove unneeded HDMI r/w ops on DCE4+

2013-10-06 Thread Rafał Miłecki
Write to HDMI_VBI_PACKET_CONTROL was duplicated. Writes to AFMT_AUDIO_CRC_CONTROL and AFMT_RAMP_CONTROL[0-3] came from DCE2/3 code (copy & paste) and were never needed on DCE4+. See https://bugzilla.kernel.org/show_bug.cgi?id=62591 for details. --- That patches weren't tested with the HW, please d

[RFC][PATCH 2/2] drm/radeon: add missing writes for DCE4+ HDMI mode

2013-10-06 Thread Rafał Miłecki
They were verified to be used by fglrx on PALM, BARTS, CAICOS and VERDE. VERDE which is DCE6 seems to need also clearing 0x7138 register. See https://bugzilla.kernel.org/show_bug.cgi?id=62591 for details. --- That patches weren't tested with the HW, please don't apply them yet. --- drivers/gpu/dr

[RFC][PATCH 3/2] drm/radeon: use masks when doing DCE4+ HDMI R/W ops

2013-10-06 Thread Rafał Miłecki
Recent RE with faking reading values allowed us to figure out correct masks for all R/W ops. Use them following fglrx logic. See https://bugzilla.kernel.org/show_bug.cgi?id=62591 for details. --- That patches weren't tested with the HW, please don't apply them yet. --- drivers/gpu/drm/radeon/ever

[TIP] Catalyst / fglrx and DVI to HDMI adapters (audio)

2013-10-07 Thread Rafał Miłecki
For the last few days it was I was testing fglrx on various cards to trace HDMI setup. One thing that was killing me was no HDMI audio when using some generic/cheap DVI to HDMI adapter with my HD 4850. I started digging and it has appeared to be common problem when using Catalyst / fglrx. Windows

Re: [TIP] Catalyst / fglrx and DVI to HDMI adapters (audio)

2013-10-07 Thread Rafał Miłecki
2013/10/7 Christian König : > Why didn't you just asked me? I was told on #radeon you're on holidays ;) I was trying to catch you. > I've figured this out over five years ago by applying brute force to one of > the "magic" DVI->HDMI adapters that came with my original RV635. And it > indeed conta

Re: [RFC][PATCH 1/2] drm/radeon: remove unneeded HDMI r/w ops on DCE4+

2013-10-07 Thread Rafał Miłecki
2013/10/7 Alex Deucher : > On Sun, Oct 6, 2013 at 4:46 PM, Rafał Miłecki wrote: >> Write to HDMI_VBI_PACKET_CONTROL was duplicated. >> Writes to AFMT_AUDIO_CRC_CONTROL and AFMT_RAMP_CONTROL[0-3] came from >> DCE2/3 code (copy & paste) and were never needed

Re: [pull] radeon drm-fixes-3.12

2013-10-09 Thread Rafał Miłecki
2013/10/10 Alex Deucher : > drm/radeon: use hw generated CTS/N values for audio I'd like to see such patches earlier :| I'm OK with the change for DCE4+ (Evergreen) (I even suggested that change myself recently), but I didn't have time to check how this should be programmed on DCE2/3/4... I

Re: [pull] radeon drm-fixes-3.12

2013-10-10 Thread Rafał Miłecki
2013/10/10 Alex Deucher : > On Thu, Oct 10, 2013 at 1:39 AM, Rafał Miłecki wrote: >> 2013/10/10 Alex Deucher : >>> drm/radeon: use hw generated CTS/N values for audio >> >> I'd like to see such patches earlier :| I'm OK with the change for >> D

Re: [pull] radeon drm-fixes-3.12

2013-10-10 Thread Rafał Miłecki
2013/10/10 Alex Deucher : > Attached. I'll send an updated pull request with the patch added. Thanks! I promise to work on that, it just takes time to gather so old hardware and run it (especially fglrx). -- Rafał ___ dri-devel mailing list dri-devel@

[RFC][PATCH] drm/radeon: put DCE4 audio init/fini in evergreen_hdmi.c

2013-10-13 Thread Rafał Miłecki
That allow us to use registers defined in evergreend.h. --- This is another proposal for HDMI code improvment. I'll start testing my patches soon, so I hope to re-send all of them in the following days. --- drivers/gpu/drm/radeon/evergreen.c |4 +-- drivers/gpu/drm/radeon/evergreen_hdmi.c

Re: [RFC][PATCH] drm/radeon: put DCE4 audio init/fini in evergreen_hdmi.c

2013-10-13 Thread Rafał Miłecki
2013/10/13 Alex Deucher : > On Sun, Oct 13, 2013 at 12:26 PM, Rafał Miłecki wrote: >> That allow us to use registers defined in evergreend.h. >> --- >> This is another proposal for HDMI code improvment. I'll start testing >> my patches soon, so I hope to re-send a

[patch] radeon: handle errors in radeon_hwmon_init()

2010-08-08 Thread Rafał Miłecki
2010/8/8 Dan Carpenter : > Smatch complained that the ERR_PTR from hwmon_device_register() wasn't > handled. ?I added some error handling in radeon_hwmon_init() to silence > the warning. > > Unfortunately errors from radeon_pm_init() aren't handled so this > doesn't really make a difference beyond

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

2010-08-16 Thread Rafał Miłecki
2010/8/10 Benjamin Herrenschmidt : > +#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?

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

2010-08-16 Thread Rafał Miłecki
2010/8/16 Alex Deucher : > Add options necessary bits for: > - SS on DP > - SS on LVDS And SS stands for... ? ;) -- Rafa?

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

2010-12-16 Thread Rafał Miłecki
2010/12/16 Mark Marshall : > On 16/12/2010 05:54, Dave Airlie wrote: >> >> From: Dave Airlie >> ?int pci_set_vga_state(struct pci_dev *dev, bool decode, >> - ? ? ? ? ? ? ? ? ? ? unsigned int command_bits, bool change_bridge) >> + ? ? ? ? ? ? ? ? ? ? unsigned int command_bits, u32 flags) >> ?{ >> ?

[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 : > 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 overscan by default

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

2010-12-20 Thread Rafał Miłecki
2010/12/20 Alex Deucher : > 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 infamous atombio

[git pull] drm fixes

2011-02-18 Thread Rafał Miłecki
2011/2/18 Anca Emanuel : > 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 > ==

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

2011-01-10 Thread Rafał Miłecki
2011/1/5 Alex Deucher : > 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 knowing whether it i

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

2011-07-11 Thread Rafał Miłecki
2011/7/11 Alex Deucher : > 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 Tested-by: Rafa? Mi?ecki Fixes the regression. -- Rafa?

[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 : > 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 earlier > and

3.14-rc1 ring/display regression in "low" power_profile (drm/radeon/pm: move pm handling into the asic specific code)

2014-03-01 Thread Rafał Miłecki
2014-02-25 18:04 GMT+01:00 Alex Deucher : > Does the attached patch help? It does, thanks! -- Rafa?

CIK hangs with kernel 3.15, bisected

2014-05-09 Thread Rafał Miłecki
On 9 May 2014 20:03, Marek Ol??k wrote: > This commit which first appeared in 3.15-rc1 causes hangs on Bonaire: > > commit 6d2f2944e95e504a7d33385eeeb9bb7fcca72592 > Author: Christian K?nig > Date: Thu Feb 20 13:42:17 2014 +0100 > > drm/radeon: use normal BOs for the page tables v4 Also re

[RFC][PATCH] drm/radeon/hdmi: use separated file for DCE 3.1+ hw

2014-05-12 Thread Rafał Miłecki
DCE 3.1 and 3.2 have different HDMI registers and should be programmed in a slightly different way. Moving support to separated file will allow use to use rv770d.h header in the future and adjust code as well. --- drivers/gpu/drm/radeon/Makefile | 2 +- drivers/gpu/drm/radeon/dce3_1_afmt.c

[RFC][PATCH] drm/radeon/hdmi: use separated file for DCE 3.1+ hw

2014-05-12 Thread Rafał Miłecki
On 12 May 2014 16:19, Christian K?nig wrote: > Am 12.05.2014 15:54, schrieb Rafa? Mi?ecki: > >> DCE 3.1 and 3.2 have different HDMI registers and should be programmed >> in a slightly different way. Moving support to separated file will >> allow use to use rv770d.h header in the future and adjust

[RFC][PATCH] drm/radeon/hdmi: use separated file for DCE 3.1+ hw

2014-05-12 Thread Rafał Miłecki
On 12 May 2014 17:57, Alex Deucher wrote: > On Mon, May 12, 2014 at 9:54 AM, Rafa? Mi?ecki wrote: >> DCE 3.1 and 3.2 have different HDMI registers and should be programmed >> in a slightly different way. Moving support to separated file will >> allow use to use rv770d.h header in the future and a

[RFC][PATCH] drm/radeon/hdmi: use separated file for DCE 3.1+ hw

2014-05-12 Thread Rafał Miłecki
On 12 May 2014 19:42, Rafa? Mi?ecki wrote: > On 12 May 2014 17:57, Alex Deucher wrote: >> On Mon, May 12, 2014 at 9:54 AM, Rafa? Mi?ecki wrote: >>> DCE 3.1 and 3.2 have different HDMI registers and should be programmed >>> in a slightly different way. Moving support to separated file will >>> al

[RFC][PATCH] drm/radeon/hdmi: use separated file for DCE 3.1+ hw

2014-05-13 Thread Rafał Miłecki
On 12 May 2014 20:09, Alex Deucher wrote: > As far as I recall, 3.1 is > pretty much the same as 3.0 from a programming perspective, but it's > been a while since I looked at it in detail. Please take a look at attached dce31.html file. It's a dump from fglrx operations during HDMI mode setup.

[deathsimple/drm-next-3.16][1/4] drm/radeon/hdmi: use separated file for DCE 3.1/3.2 code

2014-05-14 Thread Rafał Miłecki
DCE 3.1 and 3.2 should be programmed in a different way than DCE 2 and DCE 3. The order of setting registers and sets of registers are different. It's still unsure how we will handle DCE 3.1 vs. DCE 3.2, since they have few differences as well. For now separate DCE 2 and DCE 3 path, so we can work

[deathsimple/drm-next-3.16][2/4] drm/radeon/hdmi: DCE3: clean ACR control

2014-05-14 Thread Rafał Miłecki
What initially seemed to be a typo in fglrx (using register 0x740c instead of 74dc) appeared to be a correct behavior. Without this 0x740c reg operation DCE 3 doesn't work and it seems we got code for that already in place. Recent RE effors allowed to finally understand this magic: WREG32(HDMI0_AUD

[deathsimple/drm-next-3.16][3/4] drm/radeon/hdmi: DCE2: update setmode

2014-05-14 Thread Rafał Miłecki
Recent RE efforts revealed ops performed by fglrx during HDMI setup. This mostly adds masks to r/w ops plus few single missing bits. This has been tested for possible regressions on: 1) DCE2 D2400 (RV610) 2) DCE3 HD3470 (RV620) For a reference and details see: https://bugzilla.kernel.org/show_bug

[deathsimple/drm-next-3.16][4/4] drm/radeon/hdmi: DCE2: simplify audio workaround

2014-05-14 Thread Rafał Miłecki
Thanks to advanced RE of fglrx we finally know what exactly needs to be handled of AFMT change. This has been tested for possible regressions on: 1) DCE2 D2400 (RV610) 2) DCE3 HD3470 (RV620) For a reference and details see: https://bugzilla.kernel.org/show_bug.cgi?id=76231 Signed-off-by: Rafa? M

[deathsimple/drm-next-3.16][PATCH V2 3/4] drm/radeon/hdmi: DCE2: update setmode

2014-05-15 Thread Rafał Miłecki
Recent RE efforts revealed ops performed by fglrx during HDMI setup. This mostly adds masks to r/w ops plus few single missing bits. This has been tested for possible regressions on: 1) DCE2 HD2400 (RV610) 2) DCE3 HD3470 (RV620) For a reference and details see: https://bugzilla.kernel.org/show_bu

[deathsimple/drm-next-3.16][PATCH V2 4/4] drm/radeon/hdmi: DCE2: simplify audio workaround

2014-05-15 Thread Rafał Miłecki
Thanks to advanced RE of fglrx we finally know what exactly needs to be handled of AFMT change. This has been tested for possible regressions on: 1) DCE2 HD2400 (RV610) 2) DCE3 HD3470 (RV620) For a reference and details see: https://bugzilla.kernel.org/show_bug.cgi?id=76231 Signed-off-by: Rafa?

Is there IGP DCE5?

2013-04-07 Thread Rafał Miłecki
I was surprised that my BARTS in a Samsung notebook doesn't have a RADEON_IS_IGP flag. Are there any DCE5 devices that are IGP? Btw. who does set that "flags" anyway? Flags are passed to the radeon_driver_load_kms function from drm_pci.c: dev->driver->load(dev, ent->driver_data); (so driver_data

[RFC][PATCH] drm: add helper extracting SADs from EDID

2013-04-07 Thread Rafał Miłecki
Some devices (ATI/AMD cards) don't want passing ELD struct to the hardware but just require filling specific registers and then hardware/firmware does the rest. In such a cases we need to read info from SAD blocks and put them in the correct registers. --- drivers/gpu/drm/drm_edid.c | 55 +++

[RFC][PATCH] drm: add helper extracting SADs from EDID

2013-04-07 Thread Rafał Miłecki
2013/4/7 Boszormenyi Zoltan : > will there be a followup patch where this function is actually used? Sure :) It's just early patch post, with RFC, to see if I'm doing it the right way. -- Rafa?

[RFC][PATCH] drm: add helper extracting SADs from EDID

2013-04-07 Thread Rafał Miłecki
2013/4/7 Rafa? Mi?ecki : > Some devices (ATI/AMD cards) don't want passing ELD struct to the > hardware but just require filling specific registers and then > hardware/firmware does the rest. In such a cases we need to read info > from SAD blocks and put them in the correct registers. If you wish

[RFC][PATCH] drm: add helper extracting SADs from EDID

2013-04-07 Thread Rafał Miłecki
Thanks for comments! 2013/4/7 Paul Menzel : > Am Sonntag, den 07.04.2013, 12:52 +0200 schrieb Rafa? Mi?ecki: >> +struct cea_sad *drm_edid_to_sad(struct edid *edid) >> +{ >> + struct cea_sad *sads = NULL; > > No need to set it NULL, as it gets assigned later on? Looks like in the > end there is

[RFC][PATCH] drm/radeon: add helpers for masking and setting bits in regs

2013-04-07 Thread Rafał Miłecki
--- drivers/gpu/drm/radeon/r600_hdmi.c | 16 ++-- drivers/gpu/drm/radeon/radeon.h|2 ++ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_hdmi.c b/drivers/gpu/drm/radeon/r600_hdmi.c index 21ecc0e..91582a5 100644 --- a/drivers/gpu/drm

[RFC][PATCH V2 1/2] drm: add drm_edid_to_eld helper extracting SADs from EDID

2013-04-07 Thread Rafał Miłecki
Some devices (ATI/AMD cards) don't support passing ELD struct to the hardware but just require filling specific registers and then the hardware/firmware does the rest. In such cases we need to read the info from SAD blocks and put them in the correct registers. --- V2: fix commit message return

[PROOF][TESTING ONLY][PATCH 2/2] drm/radeon/evergreen: set ELD registers

2013-04-07 Thread Rafał Miłecki
--- drivers/gpu/drm/radeon/evergreen_hdmi.c | 63 +++ 1 file changed, 63 insertions(+) diff --git a/drivers/gpu/drm/radeon/evergreen_hdmi.c b/drivers/gpu/drm/radeon/evergreen_hdmi.c index ed46dad..81db8b9 100644 --- a/drivers/gpu/drm/radeon/evergreen_hdmi.c +++ b/dr

[RFC][PATCH V2 1/2] drm: add drm_edid_to_eld helper extracting SADs from EDID

2013-04-08 Thread Rafał Miłecki
2013/4/8 Ville Syrj?l? : >> + *sads = kzalloc(count * sizeof(*sads), GFP_KERNEL); > > Still looks a bit wrong. > > kcalloc(count, sizeof(**sads), GFP_KERNEL); > > Also a minor nit, but the scope of some variables is needlessly large. > db and dbl are only needed inside the outer

[PATCH 0/6] drm/radeon: minor HDMI improvements

2013-04-14 Thread Rafał Miłecki
I've managed to track fglrx operations on HDMI regs, so we can finally setup everything in (hopefully) the correct way and order. This changes HDMI setup on Evergreen to mostly match fglrx and was tested on: 1) AMD Radeon HD 6320 (PALM == DCE41) 2) AMD Radeon HD 6970M (BARTS == DCE5) No regression

[PATCH 1/6] drm/radeon: add helpers for masking and setting bits in regs

2013-04-14 Thread Rafał Miłecki
Signed-off-by: Rafa? Mi?ecki Reviewed-by: Michel D?nzer --- drivers/gpu/drm/radeon/r600_hdmi.c | 16 ++-- drivers/gpu/drm/radeon/radeon.h|2 ++ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_hdmi.c b/drivers/gpu/drm/radeon/r600_

[PATCH 2/6] drm/radeon: remove HDMI interrupts on Evergreen

2013-04-14 Thread Rafał Miłecki
We need interrupts on format change for R6xx only, where hardware seems to be somehow bugged and requires setting audio info manually. Signed-off-by: Rafa? Mi?ecki --- drivers/gpu/drm/radeon/evergreen.c | 127 +--- 1 file changed, 1 insertion(+), 126 deletions(-)

[PATCH 3/6] drm/radeon: add some HDMI comments

2013-04-14 Thread Rafał Miłecki
Signed-off-by: Rafa? Mi?ecki --- drivers/gpu/drm/radeon/evergreen_hdmi.c | 14 ++ drivers/gpu/drm/radeon/radeon_display.c |5 + 2 files changed, 19 insertions(+) diff --git a/drivers/gpu/drm/radeon/evergreen_hdmi.c b/drivers/gpu/drm/radeon/evergreen_hdmi.c index 4fdecc2..

[PATCH 4/6] drm/radeon/evergreen: setup HDMI before enabling it

2013-04-14 Thread Rafał Miłecki
Closed source driver fglrx seems to enable infoframes and audio packets at the end, which makes sense, do the same. Signed-off-by: Rafa? Mi?ecki --- drivers/gpu/drm/radeon/evergreen_hdmi.c | 15 +++ drivers/gpu/drm/radeon/evergreend.h |1 + 2 files changed, 12 insertions(+)

[PATCH 5/6] drm/radeon/evergreen: reorder HDMI setup

2013-04-14 Thread Rafał Miłecki
Driver fglrx setups audio and ACR packets after basic initialization, which sounds sane, do the same. Signed-off-by: Rafa? Mi?ecki --- drivers/gpu/drm/radeon/evergreen_hdmi.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/radeo

[PATCH 6/6] drm/radeon/evergreen: write default channel numbers

2013-04-14 Thread Rafał Miłecki
Signed-off-by: Rafa? Mi?ecki --- drivers/gpu/drm/radeon/evergreen_hdmi.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/gpu/drm/radeon/evergreen_hdmi.c b/drivers/gpu/drm/radeon/evergreen_hdmi.c index 24d13ac..ed46dad 100644 --- a/drivers/gpu/drm/radeon/ever

[PATCH 2/6] drm/radeon: remove HDMI interrupts on Evergreen

2013-04-14 Thread Rafał Miłecki
2013/4/14 Paul Menzel : > Am Sonntag, den 14.04.2013, 01:26 +0200 schrieb Rafa? Mi?ecki: >> We need interrupts on format change for R6xx only, where hardware seems >> to be somehow bugged and requires setting audio info manually. > > How should this be tested? Just play some audio using different

[PATCH 4/6] drm/radeon/evergreen: setup HDMI before enabling it

2013-04-14 Thread Rafał Miłecki
2013/4/14 Paul Menzel : > Am Sonntag, den 14.04.2013, 01:26 +0200 schrieb Rafa? Mi?ecki: >> Closed source driver fglrx seems to enable infoframes and audio packets >> at the end, which makes sense, do the same. > > Any functionality change? Does not sound like it, but being unambiguous > is better.

[PATCH 3/6] drm/radeon: add some HDMI comments

2013-04-14 Thread Rafał Miłecki
2013/4/14 Paul Menzel : > Am Sonntag, den 14.04.2013, 01:26 +0200 schrieb Rafa? Mi?ecki: > > Maybe for a more descriptive summary: > > drm/radeon: Add some HDMI (audio) comments about fglrx? reg reads I also comment sth in radeon_display.c. -- Rafa?

[PATCH V2 3/6] drm/radeon: add some HDMI audio comments

2013-04-14 Thread Rafał Miłecki
Signed-off-by: Rafa? Mi?ecki --- V2: fix typo and add extra \n --- drivers/gpu/drm/radeon/evergreen_hdmi.c | 14 ++ drivers/gpu/drm/radeon/radeon_display.c |6 ++ 2 files changed, 20 insertions(+) diff --git a/drivers/gpu/drm/radeon/evergreen_hdmi.c b/drivers/gpu/drm/rade

[PATCH 5/6] drm/radeon/evergreen: reorder HDMI setup

2013-04-14 Thread Rafał Miłecki
2013/4/14 Paul Menzel : > Am Sonntag, den 14.04.2013, 01:26 +0200 schrieb Rafa? Mi?ecki: > > Maybe use the following for a more descriptive summary: > > drm/radeon/evergreen: Set up audio and ACR packets after basic init That extra message you can see in my patch: > Driver fglrx setups audio and A

[PATCH V2 5/6] drm/radeon/evergreen: reorder HDMI setup

2013-04-14 Thread Rafał Miłecki
Driver fglrx setups audio and ACR packets after basic initialization, which sounds sane, do the same. Signed-off-by: Rafa? Mi?ecki --- V2: typo in "sufficient" --- drivers/gpu/drm/radeon/evergreen_hdmi.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) diff

<    1   2   3   4   5   6   >