Displaying 17 results from an estimated 17 matches for "nv_trace".
2009 Dec 13
3
[PATCH] drm/nouveau: use drm debug levels
- Use driver level (0x2) for NV_DEBUG instead of all levels
- Create a NV_DEBUG_KMS for KMS level (04) and use them in modesetting code
- Remove a few odd NV_TRACE calls and replace with NV_DEBUG_KMS
Signed-off-by: Maarten Maathuis <madman2003 at gmail.com>
---
drivers/gpu/drm/nouveau/nouveau_bios.c | 12 +++++-----
drivers/gpu/drm/nouveau/nouveau_connector.c | 8 +++---
drivers/gpu/drm/nouveau/nouveau_dp.c | 28 +++++++++++++-------...
2012 Nov 06
1
[PATCH] nouveau: Fix crash after D3
.../gpu/drm/nouveau/core/core/object.c
index 0daab62..3da3525 100644
--- a/drivers/gpu/drm/nouveau/core/core/object.c
+++ b/drivers/gpu/drm/nouveau/core/core/object.c
@@ -354,12 +354,16 @@ static int
nouveau_object_decf(struct nouveau_object *object)
{
int ret;
+ struct nouveau_ofuncs *pfuncs;
nv_trace(object, "stopping...\n");
- ret = nv_ofuncs(object)->fini(object, false);
- if (ret)
- nv_warn(object, "failed fini, %d\n", ret);
+ pfuncs = nv_ofuncs(object);
+ if (pfuncs->fini) {
+ ret = nv_ofuncs(object)->fini(object, false);
+ if (ret)
+ nv_warn(object, &quo...
2014 Dec 18
2
[RFC PATCH 2/3] dvfs: add support for GK20A
...> + }
> +
> + if (status.total)
> + utilization = div_u64((u64)status.busy * 100, status.total);
> +
> + data->avg_load = (data->p_smooth * data->avg_load) + utilization;
> + data->avg_load /= data->p_smooth + 1;
> + nv_trace(dvfs, "utilization = %d %%, avg_load = %d %%\n",
> + utilization, data->avg_load);
> +
> + ret = impl->get_cur_state(dvfs, &state);
> + if (ret) {
> + nv_warn(dvfs, "failed to get current state\n");
> +...
2014 Dec 18
3
[RFC PATCH 2/3] dvfs: add support for GK20A
...>>> + utilization = div_u64((u64)status.busy * 100,
>>> status.total);
>>> +
>>> + data->avg_load = (data->p_smooth * data->avg_load) + utilization;
>>> + data->avg_load /= data->p_smooth + 1;
>>> + nv_trace(dvfs, "utilization = %d %%, avg_load = %d %%\n",
>>> + utilization, data->avg_load);
>>> +
>>> + ret = impl->get_cur_state(dvfs, &state);
>>> + if (ret) {
>>> + nv_warn(dvfs, "faile...
2014 Dec 18
4
[RFC PATCH 0/3] introduce DVFS for GK20A
Hi,
This is a try to have some simple DVFS (Dynamic Voltage and Frequency Scaling)
support for GK20A. Instead of relying on other existing frequency scaling
framework, we create a simple subdev in Nouveau for the same purpose. That's
because we don't want to make the DVFS implementation for GK20A far more
than enough in the beginning and hinder the implementation for dGPU in the
future.
2014 Dec 18
0
[RFC PATCH 2/3] dvfs: add support for GK20A
...t) {
+ nv_warn(dvfs, "failed to get device status\n");
+ goto resched;
+ }
+
+ if (status.total)
+ utilization = div_u64((u64)status.busy * 100, status.total);
+
+ data->avg_load = (data->p_smooth * data->avg_load) + utilization;
+ data->avg_load /= data->p_smooth + 1;
+ nv_trace(dvfs, "utilization = %d %%, avg_load = %d %%\n",
+ utilization, data->avg_load);
+
+ ret = impl->get_cur_state(dvfs, &state);
+ if (ret) {
+ nv_warn(dvfs, "failed to get current state\n");
+ goto resched;
+ }
+
+ if (impl->get_target_state(dvfs, &state, data...
2014 Dec 18
0
[RFC PATCH 2/3] dvfs: add support for GK20A
...t;> + if (status.total)
>> + utilization = div_u64((u64)status.busy * 100, status.total);
>> +
>> + data->avg_load = (data->p_smooth * data->avg_load) + utilization;
>> + data->avg_load /= data->p_smooth + 1;
>> + nv_trace(dvfs, "utilization = %d %%, avg_load = %d %%\n",
>> + utilization, data->avg_load);
>> +
>> + ret = impl->get_cur_state(dvfs, &state);
>> + if (ret) {
>> + nv_warn(dvfs, "failed to get current sta...
2014 Dec 18
0
[RFC PATCH 2/3] dvfs: add support for GK20A
...utilization = div_u64((u64)status.busy * 100,
>>>> status.total);
>>>> +
>>>> + data->avg_load = (data->p_smooth * data->avg_load) + utilization;
>>>> + data->avg_load /= data->p_smooth + 1;
>>>> + nv_trace(dvfs, "utilization = %d %%, avg_load = %d %%\n",
>>>> + utilization, data->avg_load);
>>>> +
>>>> + ret = impl->get_cur_state(dvfs, &state);
>>>> + if (ret) {
>>>> + nv_wa...
2014 Dec 22
7
[PATCH V2 1/4] clk: allow non-blocking for nouveau_clock_astate()
There might be some callers of nouveau_clock_astate(), and they are from
inetrrupt context. So we must ensure that this function can be atomic in
that condition. This patch adds one parameter which is subsequently passed
to nouveau_pstate_calc(). Therefore we can choose whether we want to wait
for the pstate work's completion or not.
Signed-off-by: Vince Hsu <vinceh at nvidia.com>
---
2015 Apr 16
2
[PATCH 6/6] mmu: gk20a: implement IOMMU mapping for big pages
...t;offset + i) << PAGE_SHIFT,
> + *list,
> + PAGE_SIZE,
> + IOMMU_READ | IOMMU_WRITE);
> +
> + if (ret < 0)
> + return;
> +
> + nv_trace(mmu, "IOMMU: IOVA=0x%016llx-> IOMMU -> PA=%016llx\n",
> + (u64)(node->offset + i) << PAGE_SHIFT, (u64)(*list));
> + }
> +
> + addr = (u64)node->offset << PAGE_SHIFT;
> + addr |= BIT_ULL(plat->gpu->...
2009 Dec 15
2
[PATCH 1/2] drm/nouveau: Kill global state in NvShadowBIOS
...ev, data);
+ if (score_vbios(dev, data, methods[i].rw))
return true;
}
@@ -229,28 +228,24 @@ static bool NVShadowVBIOS(struct drm_device *dev, uint8_t *data)
else
methods = nv50_methods;
- method = methods;
- while (method->loadbios) {
+ for (i = 0; i < METHODCNT; i++) {
NV_TRACE(dev, "Attempting to load BIOS image from %s\n",
- method->desc);
+ methods[i].desc);
data[0] = data[1] = 0; /* avoid reuse of previous image */
- method->loadbios(dev, data);
- method->score = score_vbios(dev, data, method->rw);
- if (method->score == testscore)...
2014 Jan 28
19
[Bug 74164] New: [NV04] Native monitor resolution missing
https://bugs.freedesktop.org/show_bug.cgi?id=74164
Priority: medium
Bug ID: 74164
Assignee: nouveau at lists.freedesktop.org
Summary: [NV04] Native monitor resolution missing
QA Contact: xorg-team at lists.x.org
Severity: major
Classification: Unclassified
OS: Linux (All)
Reporter: mauromol at tiscali.it
2015 Apr 16
15
[PATCH 0/6] map big page by platform IOMMU
Hi,
Generally the the imported buffers which has memory type TTM_PL_TT are
mapped as small pages probably due to lack of big page allocation. But the
platform device which also use memory type TTM_PL_TT, like GK20A, can
*allocate* big page though the IOMMU hardware inside the SoC. This is a try
to map the imported buffers as big pages in GMMU by the platform IOMMU. With
some preparation work to
2009 Aug 13
9
[PATCHv2 01/10] drm/nouveau: Fix a lock up at NVSetOwner with nv11.
It seems it was only locking up in the context of
nouveau_hw_save_vga_fonts, when it actually did something (because
the console wasn't already in graphics mode).
Signed-off-by: Francisco Jerez <currojerez at riseup.net>
---
drivers/gpu/drm/nouveau/nouveau_hw.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_hw.c
2009 Aug 12
14
[PATCH 00/12] TV-out modesetting kernel patches.
This patch series adds TV-out modesetting support to the KMS
implementation.
I've tried to test it on all the hardware I've got at hand (that is
nv11, nv17, nv34, nv35, nv40, nv4b) with every possible output
combination; I believe it has reached a mergeable state, however it
depends on some commits from drm-next that haven't got into Linus'
tree yet, if you agree to merge this
2009 Sep 06
2
[PATCH 1/4] drm/nouveau: add reg_debug module parameter
...tern int nouveau_fbpercrtc;
extern char *nouveau_tv_norm;
+extern int nouveau_reg_debug;
/* nouveau_state.c */
extern void nouveau_preclose(struct drm_device *dev, struct drm_file *);
@@ -1111,6 +1112,25 @@ static inline void nv_wo32(struct drm_device *dev, struct nouveau_gpuobj *obj,
#define NV_TRACE(d, fmt, arg...) NV_PRINTK(KERN_INFO, d, fmt, ##arg)
#define NV_WARN(d, fmt, arg...) NV_PRINTK(KERN_WARNING, d, fmt, ##arg)
+/* nouveau_reg_debug bitmask */
+enum {
+ NOUVEAU_REG_DEBUG_MC = 0x1,
+ NOUVEAU_REG_DEBUG_VIDEO = 0x2,
+ NOUVEAU_REG_DEBUG_FB = 0x4,
+ NOUV...
2009 Nov 23
2
[PATCH 1/3] drm/nouveau: Update the CRTC arbitration parameters on FB depth switch.
...ll_lim, dot_clock, pv);
- if (!vclk)
+ if (!nouveau_calc_pll_mnp(dev, &pll_lim, dot_clock, pv))
return;
state->pllsel &= PLLSEL_VPLL1_MASK | PLLSEL_VPLL2_MASK | PLLSEL_TV_MASK;
@@ -152,13 +149,6 @@ static void nv_crtc_calc_state_ext(struct drm_crtc *crtc, struct drm_display_mod
NV_TRACE(dev, "vpll: n %d m %d log2p %d\n",
pv->N1, pv->M1, pv->log2P);
- nouveau_calc_arb(dev, vclk, fb->bits_per_pixel, &arb_burst, &arb_fifo_lwm);
-
- regp->CRTC[NV_CIO_CRE_FF_INDEX] = arb_burst;
- regp->CRTC[NV_CIO_CRE_FFLWM__INDEX] = arb_fifo_lwm & 0xff;
-...