From: Teddy Wang <teddy.wang@siliconmotion.com>
If vesafb is enabled in the config then /dev/fb0 is created by vesa
and this sm750 driver gets fb1, fb2. But we need to be fb0 and fb1 to
effectively work with xorg.
So if it has been alloted fb1, then try to remove the other fb0.
Signed-off-by: Teddy Wang <teddy.wang@siliconmotion.com>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
---
drivers/staging/sm750fb/sm750.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
The previous patch which updated screen resolution was tested under
wrong environment. sm750 driver does not support 24bpp. It only
supports 8bpp, 16bpp and 32bpp.
Lets update the default screen resolution to use 32bpp for a better
screen performance.
Fixes: ac669251087d ("staging: sm750fb: change default screen resolution")
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
---
drivers/staging/sm750fb/sm750.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Why do we need #ifdef?
In any case you may introduce a temporary variable to have pointer to resource
struct resource *res = &pdev->resource[PCI_ROM_RESOURCE];
--
With Best Regards,
Andy Shevchenko
From: Dan Carpenter <hidden> Date: 2017-06-20 20:21:10
That's totally bogus. Just say you don't know. It's never a
reguirement that people fix AMD drivers before they can review code...
regards,
dan carpenter
Hi Dan,
On Tue, Jun 20, 2017 at 11:20:55PM +0300, Dan Carpenter wrote:
That's totally bogus. Just say you don't know. It's never a
reguirement that people fix AMD drivers before they can review code...
Yes, I don't know how drm drivers work, so I blindly follow what has
been done there. And since sm750 ultimately has to be converted to a drm
driver to be taken out of staging, so I will prefer to have similar
changes here.
--
Regards
Sudip
On Tue, Jun 20, 2017 at 11:40:59PM +0300, Andy Shevchenko wrote:
On Tue, Jun 20, 2017 at 11:20 PM, Dan Carpenter
[off-list ref] wrote:
quoted
That's totally bogus. Just say you don't know. It's never a
reguirement that people fix AMD drivers before they can review code...
Agree. It's not a cargo cult.
If there any real thing behind that #ifdef I would like to hear.
I dont know the real thing behind that. You can hear the real thing if
you send that patch to drm. And that is the only reason I mentioned that.
--
Regards
Sudip
On Mon, Jun 19, 2017 at 09:32:57PM +0100, Sudip Mukherjee wrote:
From: Teddy Wang <teddy.wang@siliconmotion.com>
If vesafb is enabled in the config then /dev/fb0 is created by vesa
and this sm750 driver gets fb1, fb2. But we need to be fb0 and fb1 to
effectively work with xorg.
So if it has been alloted fb1, then try to remove the other fb0.
Signed-off-by: Teddy Wang <teddy.wang@siliconmotion.com>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
---
Hi Greg,
You applied the second patch but not this one. Did I miss any review
comments from you about this one?
--
Regards
Sudip
On Sun, Jun 25, 2017 at 01:43:34PM +0100, Sudip Mukherjee wrote:
On Mon, Jun 19, 2017 at 09:32:57PM +0100, Sudip Mukherjee wrote:
quoted
From: Teddy Wang <teddy.wang@siliconmotion.com>
If vesafb is enabled in the config then /dev/fb0 is created by vesa
and this sm750 driver gets fb1, fb2. But we need to be fb0 and fb1 to
effectively work with xorg.
So if it has been alloted fb1, then try to remove the other fb0.
Signed-off-by: Teddy Wang <teddy.wang@siliconmotion.com>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
---
Hi Greg,
You applied the second patch but not this one. Did I miss any review
comments from you about this one?
All of the other complaints about this patch were not sufficient for me
to justify ignoring it? Why would I not listen to them?
Please fix and resend if you want it applied.
thanks,
greg k-h
On Sun, Jun 25, 2017 at 02:54:51PM +0200, Greg Kroah-Hartman wrote:
On Sun, Jun 25, 2017 at 01:43:34PM +0100, Sudip Mukherjee wrote:
quoted
On Mon, Jun 19, 2017 at 09:32:57PM +0100, Sudip Mukherjee wrote:
quoted
From: Teddy Wang <teddy.wang@siliconmotion.com>
If vesafb is enabled in the config then /dev/fb0 is created by vesa
and this sm750 driver gets fb1, fb2. But we need to be fb0 and fb1 to
effectively work with xorg.
So if it has been alloted fb1, then try to remove the other fb0.
Signed-off-by: Teddy Wang <teddy.wang@siliconmotion.com>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
---
Hi Greg,
You applied the second patch but not this one. Did I miss any review
comments from you about this one?
All of the other complaints about this patch were not sufficient for me
to justify ignoring it? Why would I not listen to them?
This patch is doing what all the drm drivers are doing. So you want
us to do something completely new rather than following the established
practice of a drm driver?
--
Regards
Sudip
On Sun, Jun 25, 2017 at 02:54:29PM +0100, Sudip Mukherjee wrote:
On Sun, Jun 25, 2017 at 02:54:51PM +0200, Greg Kroah-Hartman wrote:
quoted
On Sun, Jun 25, 2017 at 01:43:34PM +0100, Sudip Mukherjee wrote:
quoted
On Mon, Jun 19, 2017 at 09:32:57PM +0100, Sudip Mukherjee wrote:
quoted
From: Teddy Wang <teddy.wang@siliconmotion.com>
If vesafb is enabled in the config then /dev/fb0 is created by vesa
and this sm750 driver gets fb1, fb2. But we need to be fb0 and fb1 to
effectively work with xorg.
So if it has been alloted fb1, then try to remove the other fb0.
Signed-off-by: Teddy Wang <teddy.wang@siliconmotion.com>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
---
Hi Greg,
You applied the second patch but not this one. Did I miss any review
comments from you about this one?
All of the other complaints about this patch were not sufficient for me
to justify ignoring it? Why would I not listen to them?
This patch is doing what all the drm drivers are doing. So you want
us to do something completely new rather than following the established
practice of a drm driver?
I despise cargo-cult programming. You could not answer the "why", so
why would I accept such a patch?
greg k-h
On Sun, Jun 25, 2017 at 04:27:23PM +0200, Greg Kroah-Hartman wrote:
On Sun, Jun 25, 2017 at 02:54:29PM +0100, Sudip Mukherjee wrote:
quoted
On Sun, Jun 25, 2017 at 02:54:51PM +0200, Greg Kroah-Hartman wrote:
quoted
On Sun, Jun 25, 2017 at 01:43:34PM +0100, Sudip Mukherjee wrote:
quoted
On Mon, Jun 19, 2017 at 09:32:57PM +0100, Sudip Mukherjee wrote:
quoted
From: Teddy Wang <teddy.wang@siliconmotion.com>
If vesafb is enabled in the config then /dev/fb0 is created by vesa
and this sm750 driver gets fb1, fb2. But we need to be fb0 and fb1 to
effectively work with xorg.
So if it has been alloted fb1, then try to remove the other fb0.
Signed-off-by: Teddy Wang <teddy.wang@siliconmotion.com>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
---
Hi Greg,
You applied the second patch but not this one. Did I miss any review
comments from you about this one?
All of the other complaints about this patch were not sufficient for me
to justify ignoring it? Why would I not listen to them?
This patch is doing what all the drm drivers are doing. So you want
us to do something completely new rather than following the established
practice of a drm driver?
I despise cargo-cult programming. You could not answer the "why", so
why would I accept such a patch?
Did a quick research into "why".
The patch d8801e4df91e ("x86/PCI: Set IORESOURCE_ROM_SHADOW only for the
default VGA device") has started setting IORESOURCE_ROM_SHADOW in flags
for a default VGA device and that is being done only for x86.
And so, we will need that #ifdef to check IORESOURCE_ROM_SHADOW as that
needs to be checked only for a x86 and not for other arch.
--
Regards
Sudip