From: <luo.penghao@zte.com.cn>
To: <ville.syrjala@linux.intel.com>
Cc: <cgel.zte@gmail.com>, <jani.nikula@linux.intel.com>,
<joonas.lahtinen@linux.intel.com>, <rodrigo.vivi@intel.com>,
<airlied@linux.ie>, <daniel@ffwll.ch>, <sfr@canb.auug.org.au>,
<intel-gfx@lists.freedesktop.org>,
<dri-devel@lists.freedesktop.org>
Subject: Re: [Intel-gfx] [PATCH linux-next] drm/i915/display: Remove unused variable and its assignment.
Date: Tue, 19 Oct 2021 10:24:25 +0800 (CST) [thread overview]
Message-ID: <202110191024257210716@zte.com.cn> (raw)
[-- Attachment #1.1.1: Type: text/plain, Size: 963 bytes --]
> This one we could use. For some reason we hardcode it to
> 1 now, which is correct for our use cases but I don't really> see a reason to hardcode it here. We are supposed to calculate> it correctly after all, and chv_crtc_clock_get() also just blindly> reads it out.> > > bestm2_frac = crtc_state->dpll.m2 & 0x3fffff;> > - bestm1 = crtc_state->dpll.m1;> > This one is a bit trickier since I don't think the spec even> gives us other values. But we could assert that it's correct.> > Some something along these lines I think would be best:> + drm_WARN_ON(&dev_priv->drm, bestm1 != 2);> vlv_dpio_write(dev_priv, pipe, CHV_PLL_DW1(port),> DPIO_CHV_M1_DIV_BY_2 |> - 1 << DPIO_CHV_N_DIV_SHIFT);> + bestn << DPIO_CHV_N_DIV_SHIFT);
Thanks for your kind response ! Does that means the variable will be
used by the hardware?if so as far as I see it, I don't seem to see the
relevant interface.
[-- Attachment #1.1.2: Type: text/html , Size: 2862 bytes --]
next reply other threads:[~2021-10-19 12:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-19 2:24 luo.penghao [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-10-19 2:23 [Intel-gfx] [PATCH linux-next] drm/i915/display: Remove unused variable and its assignment luo.penghao
2021-10-18 8:43 luo penghao
2021-10-18 8:57 ` Ville Syrjälä
2021-10-19 2:22 ` luo.penghao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202110191024257210716@zte.com.cn \
--to=luo.penghao@zte.com.cn \
--cc=airlied@linux.ie \
--cc=cgel.zte@gmail.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=joonas.lahtinen@linux.intel.com \
--cc=rodrigo.vivi@intel.com \
--cc=sfr@canb.auug.org.au \
--cc=ville.syrjala@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox